-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.4de2f0e7bc9ce874d34b.js
1 lines (1 loc) · 125 KB
/
main.4de2f0e7bc9ce874d34b.js
1
(self.webpackChunksearchalgorithmvisualizer=self.webpackChunksearchalgorithmvisualizer||[]).push([[179],{255:t=>{function e(t){return Promise.resolve().then(()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}e.keys=()=>[],e.resolve=e,e.id=255,t.exports=e},510:(t,e,n)=>{"use strict";function r(t){return"function"==typeof t}let s=!1;const o={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else s&&console.log("RxJS: Back to a better error behavior. Thank you. <3");s=t},get useDeprecatedSynchronousErrorHandling(){return s}};function i(t){setTimeout(()=>{throw t},0)}const l={closed:!0,next(t){},error(t){if(o.useDeprecatedSynchronousErrorHandling)throw t;i(t)},complete(){}},u=Array.isArray||(t=>t&&"number"==typeof t.length);function a(t){return null!==t&&"object"==typeof t}const c=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();class h{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:n,_unsubscribe:s,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof h)e.remove(this);else if(null!==e)for(let r=0;r<e.length;++r)e[r].remove(this);if(r(s)){n&&(this._unsubscribe=void 0);try{s.call(this)}catch(i){t=i instanceof c?d(i.errors):[i]}}if(u(o)){let e=-1,n=o.length;for(;++e<n;){const n=o[e];if(a(n))try{n.unsubscribe()}catch(i){t=t||[],i instanceof c?t=t.concat(d(i.errors)):t.push(i)}}}if(t)throw new c(t)}add(t){let e=t;if(!t)return h.EMPTY;switch(typeof t){case"function":e=new h(t);case"object":if(e===this||e.closed||"function"!=typeof e.unsubscribe)return e;if(this.closed)return e.unsubscribe(),e;if(!(e instanceof h)){const t=e;e=new h,e._subscriptions=[t]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}let{_parentOrParents:n}=e;if(null===n)e._parentOrParents=this;else if(n instanceof h){if(n===this)return e;e._parentOrParents=[n,this]}else{if(-1!==n.indexOf(this))return e;n.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[e]:r.push(e),e}remove(t){const e=this._subscriptions;if(e){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}}}function d(t){return t.reduce((t,e)=>t.concat(e instanceof c?e.errors:e),[])}h.EMPTY=function(t){return t.closed=!0,t}(new h);const f="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class p extends h{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=l;break;case 1:if(!t){this.destination=l;break}if("object"==typeof t){t instanceof p?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new g(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new g(this,t,e,n)}}[f](){return this}static create(t,e,n){const r=new p(t,e,n);return r.syncErrorThrowable=!1,r}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class g extends p{constructor(t,e,n,s){let o;super(),this._parentSubscriber=t;let i=this;r(e)?o=e:e&&(o=e.next,n=e.error,s=e.complete,e!==l&&(i=Object.create(e),r(i.unsubscribe)&&this.add(i.unsubscribe.bind(i)),i.unsubscribe=this.unsubscribe.bind(this))),this._context=i,this._next=o,this._error=n,this._complete=s}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;o.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=o;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):i(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;i(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);o.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),o.useDeprecatedSynchronousErrorHandling)throw n;i(n)}}__tryOrSetError(t,e,n){if(!o.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(r){return o.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(i(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const m="function"==typeof Symbol&&Symbol.observable||"@@observable";function _(t){return t}let y=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:r}=this,s=function(t,e,n){if(t){if(t instanceof p)return t;if(t[f])return t[f]()}return t||e||n?new p(t,e,n):new p(l)}(t,e,n);if(s.add(r?r.call(s,this.source):this.source||o.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),o.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(t){try{return this._subscribe(t)}catch(e){o.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:r}=t;if(e||r)return!1;t=n&&n instanceof p?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=v(e))((e,n)=>{let r;r=this.subscribe(e=>{try{t(e)}catch(s){n(s),r&&r.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[m](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?_:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=v(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function v(t){if(t||(t=o.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const w=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class b extends h{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}class C extends p{constructor(t){super(t),this.destination=t}}let x=(()=>{class t extends y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[f](){return new C(this)}lift(t){const e=new k(this,this);return e.operator=t,e}next(t){if(this.closed)throw new w;if(!this.isStopped){const{observers:e}=this,n=e.length,r=e.slice();for(let s=0;s<n;s++)r[s].next(t)}}error(t){if(this.closed)throw new w;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:e}=this,n=e.length,r=e.slice();for(let s=0;s<n;s++)r[s].error(t);this.observers.length=0}complete(){if(this.closed)throw new w;this.isStopped=!0;const{observers:t}=this,e=t.length,n=t.slice();for(let r=0;r<e;r++)n[r].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new w;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new w;return this.hasError?(t.error(this.thrownError),h.EMPTY):this.isStopped?(t.complete(),h.EMPTY):(this.observers.push(t),new b(this,t))}asObservable(){const t=new y;return t.source=this,t}}return t.create=(t,e)=>new k(t,e),t})();class k extends x{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):h.EMPTY}}class E{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new S(t,this.project,this.thisArg))}}class S extends p{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}const T=t=>e=>{for(let n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()},I="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";const A=t=>{if(t&&"function"==typeof t[m])return s=t,t=>{const e=s[m]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if((e=t)&&"number"==typeof e.length&&"function"!=typeof e)return T(t);var e,n,r,s;if((n=t)&&"function"!=typeof n.subscribe&&"function"==typeof n.then)return(t=>e=>(t.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,i),e))(t);if(t&&"function"==typeof t[I])return r=t,t=>{const e=r[I]();for(;;){let r;try{r=e.next()}catch(n){return t.error(n),t}if(r.done){t.complete();break}if(t.next(r.value),t.closed)break}return"function"==typeof e.return&&t.add(()=>{e.return&&e.return()}),t};{const e=a(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}};class D extends p{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class O extends p{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function M(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe(M((n,r)=>{return(s=t(n,r),s instanceof y?s:new y(A(s))).pipe(function(t,e){return function(e){return e.lift(new E(t,void 0))}}((t,s)=>e(n,t,r,s)));var s},n)):("number"==typeof e&&(n=e),e=>e.lift(new P(t,n)))}class P{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new F(t,this.project,this.concurrent))}}class F extends O{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}_tryNext(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(e)}_innerSub(t){const e=new D(this),n=this.destination;n.add(e);const r=function(t,e){if(e.closed)return;if(t instanceof y)return t.subscribe(e);let n;try{n=A(t)(e)}catch(r){e.error(r)}return n}(t,e);r!==e&&n.add(r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t){this.destination.next(t)}notifyComplete(){const t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function N(){return function(t){return t.lift(new R(t))}}class R{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const r=new j(t,n),s=e.subscribe(r);return r.closed||(r.connection=n.connect()),s}}class j extends p{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}class H extends y{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new h,t.add(this.source.subscribe(new L(this.getSubject(),this))),t.closed&&(this._connection=null,t=h.EMPTY)),t}refCount(){return N()(this)}}const V=(()=>{const t=H.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class L extends C{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function B(){return new x}function $(t){for(let e in t)if(t[e]===$)return e;throw Error("Could not find renamed property on target object.")}function Z(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Z).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function z(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const W=$({__forward_ref__:$});function U(t){return t.__forward_ref__=U,t.toString=function(){return Z(this())},t}function q(t){return"function"==typeof(e=t)&&e.hasOwnProperty(W)&&e.__forward_ref__===U?t():t;var e}class G extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function Q(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():function(t){return"string"==typeof t?t:null==t?"":String(t)}(t)}function K(t,e){const n=e?` in ${e}`:"";throw new G("201",`No provider for ${Q(t)} found${n}`)}function J(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Y(t){return{providers:t.providers||[],imports:t.imports||[]}}function X(t){return tt(t,nt)||tt(t,st)}function tt(t,e){return t.hasOwnProperty(e)?t[e]:null}function et(t){return t&&(t.hasOwnProperty(rt)||t.hasOwnProperty(ot))?t[rt]:null}const nt=$({"\u0275prov":$}),rt=$({"\u0275inj":$}),st=$({ngInjectableDef:$}),ot=$({ngInjectorDef:$});var it=(()=>((it=it||{})[it.Default=0]="Default",it[it.Host=1]="Host",it[it.Self=2]="Self",it[it.SkipSelf=4]="SkipSelf",it[it.Optional=8]="Optional",it))();let lt;function ut(t){const e=lt;return lt=t,e}function at(t,e,n){const r=X(t);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&it.Optional?null:void 0!==e?e:void K(Z(t),"Injector")}function ct(t){return{toString:t}.toString()}var ht=(()=>((ht=ht||{})[ht.OnPush=0]="OnPush",ht[ht.Default=1]="Default",ht))(),dt=(()=>((dt=dt||{})[dt.Emulated=0]="Emulated",dt[dt.None=2]="None",dt[dt.ShadowDom=3]="ShadowDom",dt))();const ft="undefined"!=typeof globalThis&&globalThis,pt="undefined"!=typeof window&&window,gt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,mt="undefined"!=typeof global&&global,_t=ft||mt||pt||gt,yt={},vt=[],wt=$({"\u0275cmp":$}),bt=$({"\u0275dir":$}),Ct=$({"\u0275pipe":$}),xt=$({"\u0275mod":$}),kt=$({"\u0275loc":$}),Et=$({"\u0275fac":$}),St=$({__NG_ELEMENT_ID__:$});let Tt=0;function It(t){return ct(()=>{const e={},n={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===ht.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||vt,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||dt.Emulated,id:"c",styles:t.styles||vt,_:null,setInput:null,schemas:t.schemas||null,tView:null},r=t.directives,s=t.features,o=t.pipes;return n.id+=Tt++,n.inputs=Pt(t.inputs,e),n.outputs=Pt(t.outputs),s&&s.forEach(t=>t(n)),n.directiveDefs=r?()=>("function"==typeof r?r():r).map(At):null,n.pipeDefs=o?()=>("function"==typeof o?o():o).map(Dt):null,n})}function At(t){return Nt(t)||function(t){return t[bt]||null}(t)}function Dt(t){return function(t){return t[Ct]||null}(t)}const Ot={};function Mt(t){return ct(()=>{const e={type:t.type,bootstrap:t.bootstrap||vt,declarations:t.declarations||vt,imports:t.imports||vt,exports:t.exports||vt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(Ot[t.id]=t.type),e})}function Pt(t,e){if(null==t)return yt;const n={};for(const r in t)if(t.hasOwnProperty(r)){let s=t[r],o=s;Array.isArray(s)&&(o=s[1],s=s[0]),n[s]=r,e&&(e[s]=o)}return n}const Ft=It;function Nt(t){return t[wt]||null}function Rt(t,e){const n=t[xt]||null;if(!n&&!0===e)throw new Error(`Type ${Z(t)} does not have '\u0275mod' property.`);return n}const jt=20,Ht=10;function Vt(t){return Array.isArray(t)&&"object"==typeof t[1]}function Lt(t){return Array.isArray(t)&&!0===t[1]}function Bt(t){return 0!=(8&t.flags)}function $t(t){return 2==(2&t.flags)}function Zt(t){return 1==(1&t.flags)}function zt(t){return null!==t.template}function Wt(t,e){return t.hasOwnProperty(Et)?t[Et]:null}class Ut{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function qt(){const t=Qt(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===yt)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function Gt(t,e,n,r){const s=Qt(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:yt,current:null}),o=s.current||(s.current={}),i=s.previous,l=this.declaredInputs[n],u=i[l];o[l]=new Ut(u&&u.currentValue,e,i===yt),t[r]=e}function Qt(t){return t.__ngSimpleChanges__||null}let Kt;function Jt(t){return!!t.listen}const Yt={createRenderer:(t,e)=>void 0!==Kt?Kt:"undefined"!=typeof document?document:void 0};function Xt(t){for(;Array.isArray(t);)t=t[0];return t}function te(t,e){return Xt(e[t.index])}function ee(t,e){return t.data[e]}function ne(t,e){const n=e[t];return Vt(n)?n:n[0]}function re(t){return 128==(128&t[2])}function se(t,e){return null==e?null:t[e]}function oe(t){t[18]=0}function ie(t,e){t[5]+=e;let n=t,r=t[3];for(;null!==r&&(1===e&&1===n[5]||-1===e&&0===n[5]);)r[5]+=e,n=r,r=r[3]}const le={lFrame:ke(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function ue(){return le.bindingsEnabled}function ae(){return le.lFrame.lView}function ce(){return le.lFrame.tView}function he(){let t=de();for(;null!==t&&64===t.type;)t=t.parent;return t}function de(){return le.lFrame.currentTNode}function fe(t,e){const n=le.lFrame;n.currentTNode=t,n.isParent=e}function pe(){return le.lFrame.isParent}function ge(){return le.isInCheckNoChangesMode}function me(t){le.isInCheckNoChangesMode=t}function _e(t,e){const n=le.lFrame;n.bindingIndex=n.bindingRootIndex=t,ye(e)}function ye(t){le.lFrame.currentDirectiveIndex=t}function ve(t){le.lFrame.currentQueryIndex=t}function we(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function be(t,e,n){if(n&it.SkipSelf){let r=e,s=t;for(;r=r.parent,!(null!==r||n&it.Host||(r=we(s),null===r)||(s=s[15],10&r.type)););if(null===r)return!1;e=r,t=s}const r=le.lFrame=xe();return r.currentTNode=e,r.lView=t,!0}function Ce(t){const e=xe(),n=t[1];le.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function xe(){const t=le.lFrame,e=null===t?null:t.child;return null===e?ke(t):e}function ke(t){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function Ee(){const t=le.lFrame;return le.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const Se=Ee;function Te(){const t=Ee();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Ie(){return le.lFrame.selectedIndex}function Ae(t){le.lFrame.selectedIndex=t}function De(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n<r;n++){const e=t.data[n].type.prototype,{ngAfterContentInit:r,ngAfterContentChecked:s,ngAfterViewInit:o,ngAfterViewChecked:i,ngOnDestroy:l}=e;r&&(t.contentHooks||(t.contentHooks=[])).push(-n,r),s&&((t.contentHooks||(t.contentHooks=[])).push(n,s),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,s)),o&&(t.viewHooks||(t.viewHooks=[])).push(-n,o),i&&((t.viewHooks||(t.viewHooks=[])).push(n,i),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,i)),null!=l&&(t.destroyHooks||(t.destroyHooks=[])).push(n,l)}}function Oe(t,e,n){Fe(t,e,3,n)}function Me(t,e,n,r){(3&t[2])===n&&Fe(t,e,n,r)}function Pe(t,e){let n=t[2];(3&n)===e&&(n&=2047,n+=1,t[2]=n)}function Fe(t,e,n,r){const s=null!=r?r:-1,o=e.length-1;let i=0;for(let l=void 0!==r?65535&t[18]:0;l<o;l++)if("number"==typeof e[l+1]){if(i=e[l],null!=r&&i>=r)break}else e[l]<0&&(t[18]+=65536),(i<s||-1==s)&&(Ne(t,n,e,l),t[18]=(4294901760&t[18])+l+2),l++}function Ne(t,e,n,r){const s=n[r]<0,o=n[r+1],i=t[s?-n[r]:n[r]];if(s){if(t[2]>>11<t[18]>>16&&(3&t[2])===e){t[2]+=2048;try{o.call(i)}finally{}}}else try{o.call(i)}finally{}}const Re=-1;class je{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function He(t,e,n){const r=Jt(t);let s=0;for(;s<n.length;){const o=n[s];if("number"==typeof o){if(0!==o)break;s++;const i=n[s++],l=n[s++],u=n[s++];r?t.setAttribute(e,l,u,i):e.setAttributeNS(i,l,u)}else{const i=o,l=n[++s];Ve(i)?r&&t.setProperty(e,i,l):r?t.setAttribute(e,i,l):e.setAttribute(i,l),s++}}return s}function Ve(t){return 64===t.charCodeAt(0)}function Le(t,e){if(null===e||0===e.length);else if(null===t||0===t.length)t=e.slice();else{let n=-1;for(let r=0;r<e.length;r++){const s=e[r];"number"==typeof s?n=s:0===n||Be(t,n,s,null,-1===n||2===n?e[++r]:null)}}return t}function Be(t,e,n,r,s){let o=0,i=t.length;if(-1===e)i=-1;else for(;o<t.length;){const n=t[o++];if("number"==typeof n){if(n===e){i=-1;break}if(n>e){i=o-1;break}}}for(;o<t.length;){const e=t[o];if("number"==typeof e)break;if(e===n){if(null===r)return void(null!==s&&(t[o+1]=s));if(r===t[o+1])return void(t[o+2]=s)}o++,null!==r&&o++,null!==s&&o++}-1!==i&&(t.splice(i,0,e),o=i+1),t.splice(o++,0,n),null!==r&&t.splice(o++,0,r),null!==s&&t.splice(o++,0,s)}function $e(t){return t!==Re}function Ze(t){return 32767&t}function ze(t,e){let n=t>>16,r=e;for(;n>0;)r=r[15],n--;return r}let We=!0;function Ue(t){const e=We;return We=t,e}let qe=0;function Ge(t,e){const n=Ke(t,e);if(-1!==n)return n;const r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,Qe(r.data,t),Qe(e,null),Qe(r.blueprint,null));const s=Je(t,e),o=t.injectorIndex;if($e(s)){const t=Ze(s),n=ze(s,e),r=n[1].data;for(let s=0;s<8;s++)e[o+s]=n[t+s]|r[t+s]}return e[o+8]=s,o}function Qe(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Ke(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function Je(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,r=null,s=e;for(;null!==s;){const t=s[1],e=t.type;if(r=2===e?t.declTNode:1===e?s[6]:null,null===r)return Re;if(n++,s=s[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return Re}function Ye(t,e,n){!function(t,e,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(St)&&(r=n[St]),null==r&&(r=n[St]=qe++);const s=255&r;e.data[t+(s>>5)]|=1<<s}(t,e,n)}function Xe(t,e,n){if(n&it.Optional)return t;K(e,"NodeInjector")}function tn(t,e,n,r){if(n&it.Optional&&void 0===r&&(r=null),0==(n&(it.Self|it.Host))){const s=t[9],o=ut(void 0);try{return s?s.get(e,r,n&it.Optional):at(e,r,n&it.Optional)}finally{ut(o)}}return Xe(r,e,n)}function en(t,e,n,r=it.Default,s){if(null!==t){const o=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t.hasOwnProperty(St)?t[St]:void 0;return"number"==typeof e?e>=0?255&e:rn:e}(n);if("function"==typeof o){if(!be(e,t,r))return r&it.Host?Xe(s,n,r):tn(e,n,r,s);try{const t=o(r);if(null!=t||r&it.Optional)return t;K(n)}finally{Se()}}else if("number"==typeof o){let s=null,i=Ke(t,e),l=Re,u=r&it.Host?e[16][6]:null;for((-1===i||r&it.SkipSelf)&&(l=-1===i?Je(t,e):e[i+8],l!==Re&&un(r,!1)?(s=e[1],i=Ze(l),e=ze(l,e)):i=-1);-1!==i;){const t=e[1];if(ln(o,i,t.data)){const t=sn(i,e,n,s,r,u);if(t!==nn)return t}l=e[i+8],l!==Re&&un(r,e[1].data[i+8]===u)&&ln(o,i,e)?(s=t,i=Ze(l),e=ze(l,e)):i=-1}}}return tn(e,n,r,s)}const nn={};function rn(){return new an(he(),ae())}function sn(t,e,n,r,s,o){const i=e[1],l=i.data[t+8],u=function(t,e,n,r,s){const o=t.providerIndexes,i=e.data,l=1048575&o,u=t.directiveStart,a=o>>20,c=s?l+a:t.directiveEnd;for(let h=r?l:l+a;h<c;h++){const t=i[h];if(h<u&&n===t||h>=u&&t.type===n)return h}if(s){const t=i[u];if(t&&zt(t)&&t.type===n)return u}return null}(l,i,n,null==r?$t(l)&&We:r!=i&&0!=(3&l.type),s&it.Host&&o===l);return null!==u?on(e,i,u,l):nn}function on(t,e,n,r){let s=t[n];const o=e.data;if(s instanceof je){const i=s;i.resolving&&function(t,e){throw new G("200",`Circular dependency in DI detected for ${t}`)}(Q(o[n]));const l=Ue(i.canSeeViewProviders);i.resolving=!0;const u=i.injectImpl?ut(i.injectImpl):null;be(t,r,it.Default);try{s=t[n]=i.factory(void 0,o,t,r),e.firstCreatePass&&n>=r.directiveStart&&function(t,e,n){const{ngOnChanges:r,ngOnInit:s,ngDoCheck:o}=e.type.prototype;if(r){const r=((i=e).type.prototype.ngOnChanges&&(i.setInput=Gt),qt);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r)}var i;s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,s),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,o))}(n,o[n],e)}finally{null!==u&&ut(u),Ue(l),i.resolving=!1,Se()}}return s}function ln(t,e,n){return!!(n[e+(t>>5)]&1<<t)}function un(t,e){return!(t&it.Self||t&it.Host&&e)}class an{constructor(t,e){this._tNode=t,this._lView=e}get(t,e){return en(this._tNode,this._lView,t,void 0,e)}}const cn="__parameters__";function hn(t,e,n){return ct(()=>{const r=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function s(...t){if(this instanceof s)return r.apply(this,t),this;const e=new s(...t);return n.annotation=e,n;function n(t,n,r){const s=t.hasOwnProperty(cn)?t[cn]:Object.defineProperty(t,cn,{value:[]})[cn];for(;s.length<=r;)s.push(null);return(s[r]=s[r]||[]).push(e),t}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}class dn{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=J({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}function fn(t,e){t.forEach(t=>Array.isArray(t)?fn(t,e):e(t))}function pn(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function gn(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}const mn={},_n=/\n/gm,yn="__source",vn=$({provide:String,useValue:$});let wn;function bn(t){const e=wn;return wn=t,e}function Cn(t,e=it.Default){if(void 0===wn)throw new Error("inject() must be called from an injection context");return null===wn?at(t,void 0,e):wn.get(t,e&it.Optional?null:void 0,e)}function xn(t,e=it.Default){return(lt||Cn)(q(t),e)}function kn(t){const e=[];for(let n=0;n<t.length;n++){const r=q(t[n]);if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");let t,n=it.Default;for(let e=0;e<r.length;e++){const s=r[e],o=s.__NG_DI_FLAG__;"number"==typeof o?-1===o?t=s.token:n|=o:t=s}e.push(xn(t,n))}else e.push(xn(r))}return e}function En(t,e){return t.__NG_DI_FLAG__=e,t.prototype.__NG_DI_FLAG__=e,t}const Sn=En(hn("Inject",t=>({token:t})),-1),Tn=En(hn("Optional"),8),In=En(hn("SkipSelf"),4);function An(t,e){t.__ngContext__=e}function Dn(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function On(t){return t.ngOriginalError}function Mn(t,...e){t.error(...e)}class Pn{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),r=function(t){return t&&t.ngErrorLogger||Mn}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?function(t){return t.ngDebugContext}(t)||this._findContext(On(t)):null}_findOriginalError(t){let e=t&&On(t);for(;e&&On(e);)e=On(e);return e||null}}const Fn=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(_t))();function Nn(t){return t instanceof Function?t():t}var Rn=(()=>((Rn=Rn||{})[Rn.Important=1]="Important",Rn[Rn.DashCase=2]="DashCase",Rn))();function jn(t,e){return(void 0)(t,e)}function Hn(t){const e=t[3];return Lt(e)?e[3]:e}function Vn(t){return Bn(t[13])}function Ln(t){return Bn(t[4])}function Bn(t){for(;null!==t&&!Lt(t);)t=t[4];return t}function $n(t,e,n,r,s){if(null!=r){let o,i=!1;Lt(r)?o=r:Vt(r)&&(i=!0,r=r[0]);const l=Xt(r);0===t&&null!==n?null==s?Qn(e,n,l):Gn(e,n,l,s||null,!0):1===t&&null!==n?Gn(e,n,l,s||null,!0):2===t?function(t,e,n){const r=Jn(t,e);r&&function(t,e,n,r){Jt(t)?t.removeChild(e,n,r):e.removeChild(n)}(t,r,e,n)}(e,l,i):3===t&&e.destroyNode(l),null!=o&&function(t,e,n,r,s){const o=n[7];o!==Xt(n)&&$n(e,t,r,o,s);for(let i=Ht;i<n.length;i++){const s=n[i];rr(s[1],s,t,e,r,o)}}(e,t,o,n,s)}}function Zn(t,e,n){return Jt(t)?t.createElement(e,n):null===n?t.createElement(e):t.createElementNS(n,e)}function zn(t,e){const n=t[9],r=n.indexOf(e),s=e[3];1024&e[2]&&(e[2]&=-1025,ie(s,-1)),n.splice(r,1)}function Wn(t,e){if(t.length<=Ht)return;const n=Ht+e,r=t[n];if(r){const o=r[17];null!==o&&o!==t&&zn(o,r),e>0&&(t[n-1][4]=r[4]);const i=gn(t,Ht+e);rr(r[1],s=r,s[11],2,null,null),s[0]=null,s[6]=null;const l=i[19];null!==l&&l.detachView(i[1]),r[3]=null,r[4]=null,r[2]&=-129}var s;return r}function Un(t,e){if(!(256&e[2])){const n=e[11];Jt(n)&&n.destroyNode&&rr(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return qn(t[1],t);for(;e;){let n=null;if(Vt(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)Vt(e)&&qn(e[1],e),e=e[3];null===e&&(e=t),Vt(e)&&qn(e[1],e),n=e&&e[4]}e=n}}(e)}}function qn(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let r=0;r<n.length;r+=2){const t=e[n[r]];if(!(t instanceof je)){const e=n[r+1];if(Array.isArray(e))for(let n=0;n<e.length;n+=2){const r=t[e[n]],s=e[n+1];try{s.call(r)}finally{}}else try{e.call(t)}finally{}}}}(t,e),function(t,e){const n=t.cleanup,r=e[7];let s=-1;if(null!==n)for(let o=0;o<n.length-1;o+=2)if("string"==typeof n[o]){const t=n[o+1],i="function"==typeof t?t(e):Xt(e[t]),l=r[s=n[o+2]],u=n[o+3];"boolean"==typeof u?i.removeEventListener(n[o],l,u):u>=0?r[s=u]():r[s=-u].unsubscribe(),o+=2}else{const t=r[s=n[o+1]];n[o].call(t)}if(null!==r){for(let t=s+1;t<r.length;t++)(0,r[t])();e[7]=null}}(t,e),1===e[1].type&&Jt(e[11])&&e[11].destroy();const n=e[17];if(null!==n&&Lt(e[3])){n!==e[3]&&zn(n,e);const r=e[19];null!==r&&r.detachView(t)}}}function Gn(t,e,n,r,s){Jt(t)?t.insertBefore(e,n,r,s):e.insertBefore(n,r,s)}function Qn(t,e,n){Jt(t)?t.appendChild(e,n):e.appendChild(n)}function Kn(t,e,n,r,s){null!==r?Gn(t,e,n,r,s):Qn(t,e,n)}function Jn(t,e){return Jt(t)?t.parentNode(e):e.parentNode}function Yn(t,e,n,r){const s=function(t,e,n){return function(t,e,n){let r=e;for(;null!==r&&40&r.type;)r=(e=r).parent;if(null===r)return n[0];if(2&r.flags){const e=t.data[r.directiveStart].encapsulation;if(e===dt.None||e===dt.Emulated)return null}return te(r,n)}(t,e.parent,n)}(t,r,e),o=e[11],i=function(t,e,n){return function(t,e,n){return 40&t.type?te(t,n):null}(t,0,n)}(r.parent||e[6],0,e);if(null!=s)if(Array.isArray(n))for(let l=0;l<n.length;l++)Kn(o,s,n[l],i,!1);else Kn(o,s,n,i,!1)}function Xn(t,e){if(null!==e){const n=e.type;if(3&n)return te(e,t);if(4&n)return er(-1,t[e.index]);if(8&n){const n=e.child;if(null!==n)return Xn(t,n);{const n=t[e.index];return Lt(n)?er(-1,n):Xt(n)}}if(32&n)return jn(e,t)()||Xt(t[e.index]);{const n=tr(t,e);return null!==n?Array.isArray(n)?n[0]:Xn(Hn(t[16]),n):Xn(t,e.next)}}return null}function tr(t,e){return null!==e?t[16][6].projection[e.projection]:null}function er(t,e){const n=Ht+t+1;if(n<e.length){const t=e[n],r=t[1].firstChild;if(null!==r)return Xn(t,r)}return e[7]}function nr(t,e,n,r,s,o,i){for(;null!=n;){const l=r[n.index],u=n.type;if(i&&0===e&&(l&&An(Xt(l),r),n.flags|=4),64!=(64&n.flags))if(8&u)nr(t,e,n.child,r,s,o,!1),$n(e,t,s,l,o);else if(32&u){const i=jn(n,r);let u;for(;u=i();)$n(e,t,s,u,o);$n(e,t,s,l,o)}else 16&u?sr(t,e,r,n,s,o):$n(e,t,s,l,o);n=i?n.projectionNext:n.next}}function rr(t,e,n,r,s,o){nr(n,r,t.firstChild,e,s,o,!1)}function sr(t,e,n,r,s,o){const i=n[16],l=i[6].projection[r.projection];if(Array.isArray(l))for(let u=0;u<l.length;u++)$n(e,t,s,l[u],o);else nr(t,e,l,i[3],s,o,!0)}function or(t,e,n){Jt(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function ir(t,e,n){Jt(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}function lr(t,e,n){let r=t.length;for(;;){const s=t.indexOf(e,n);if(-1===s)return s;if(0===s||t.charCodeAt(s-1)<=32){const n=e.length;if(s+n===r||t.charCodeAt(s+n)<=32)return s}n=s+1}}const ur="ng-template";function ar(t,e,n){let r=0;for(;r<t.length;){let s=t[r++];if(n&&"class"===s){if(s=t[r],-1!==lr(s.toLowerCase(),e,0))return!0}else if(1===s){for(;r<t.length&&"string"==typeof(s=t[r++]);)if(s.toLowerCase()===e)return!0;return!1}}return!1}function cr(t){return 4===t.type&&t.value!==ur}function hr(t,e,n){return e===(4!==t.type||n?t.value:ur)}function dr(t,e,n){let r=4;const s=t.attrs||[],o=function(t){for(let n=0;n<t.length;n++)if(3===(e=t[n])||4===e||6===e)return n;var e;return t.length}(s);let i=!1;for(let l=0;l<e.length;l++){const u=e[l];if("number"!=typeof u){if(!i)if(4&r){if(r=2|1&r,""!==u&&!hr(t,u,n)||""===u&&1===e.length){if(fr(r))return!1;i=!0}}else{const a=8&r?u:e[++l];if(8&r&&null!==t.attrs){if(!ar(t.attrs,a,n)){if(fr(r))return!1;i=!0}continue}const c=pr(8&r?"class":u,s,cr(t),n);if(-1===c){if(fr(r))return!1;i=!0;continue}if(""!==a){let t;t=c>o?"":s[c+1].toLowerCase();const e=8&r?t:null;if(e&&-1!==lr(e,a,0)||2&r&&a!==t){if(fr(r))return!1;i=!0}}}}else{if(!i&&!fr(r)&&!fr(u))return!1;if(i&&fr(u))continue;i=!1,r=u|1&r}}return fr(r)||i}function fr(t){return 0==(1&t)}function pr(t,e,n,r){if(null===e)return-1;let s=0;if(r||!n){let n=!1;for(;s<e.length;){const r=e[s];if(r===t)return s;if(3===r||6===r)n=!0;else{if(1===r||2===r){let t=e[++s];for(;"string"==typeof t;)t=e[++s];continue}if(4===r)break;if(0===r){s+=4;continue}}s+=n?1:2}return-1}return function(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){const r=t[n];if("number"==typeof r)return-1;if(r===e)return n;n++}return-1}(e,t)}function gr(t,e,n=!1){for(let r=0;r<e.length;r++)if(dr(t,e[r],n))return!0;return!1}function mr(t,e){return t?":not("+e.trim()+")":e}function _r(t){let e=t[0],n=1,r=2,s="",o=!1;for(;n<t.length;){let i=t[n];if("string"==typeof i)if(2&r){const e=t[++n];s+="["+i+(e.length>0?'="'+e+'"':"")+"]"}else 8&r?s+="."+i:4&r&&(s+=" "+i);else""===s||fr(i)||(e+=mr(o,s),s=""),r=i,o=o||!fr(r);n++}return""!==s&&(e+=mr(o,s)),e}const yr={};function vr(t){wr(ce(),ae(),Ie()+t,ge())}function wr(t,e,n,r){if(!r)if(3==(3&e[2])){const r=t.preOrderCheckHooks;null!==r&&Oe(e,r,n)}else{const r=t.preOrderHooks;null!==r&&Me(e,r,0,n)}Ae(n)}function br(t,e){const n=t.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const s=n[r],o=n[r+1];if(-1!==o){const n=t.data[o];ve(s),n.contentQueries(2,e[o],o)}}}function Cr(t,e,n,r,s,o,i,l,u,a){const c=e.blueprint.slice();return c[0]=s,c[2]=140|r,oe(c),c[3]=c[15]=t,c[8]=n,c[10]=i||t&&t[10],c[11]=l||t&&t[11],c[12]=u||t&&t[12]||null,c[9]=a||t&&t[9]||null,c[6]=o,c[16]=2==e.type?t[16]:c,c}function xr(t,e,n,r,s){let o=t.data[e];if(null===o)o=function(t,e,n,r,s){const o=de(),i=pe(),l=t.data[e]=function(t,e,n,r,s,o){return{type:n,index:r,insertBeforeIndex:null,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:s,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,i?o:o&&o.parent,n,e,r,s);return null===t.firstChild&&(t.firstChild=l),null!==o&&(i?null==o.child&&null!==l.parent&&(o.child=l):null===o.next&&(o.next=l)),l}(t,e,n,r,s),le.lFrame.inI18n&&(o.flags|=64);else if(64&o.type){o.type=n,o.value=r,o.attrs=s;const t=function(){const t=le.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}();o.injectorIndex=null===t?-1:t.injectorIndex}return fe(o,!0),o}function kr(t,e,n,r){if(0===n)return-1;const s=e.length;for(let o=0;o<n;o++)e.push(r),t.blueprint.push(r),t.data.push(null);return s}function Er(t,e,n){Ce(e);try{const r=t.viewQuery;null!==r&&Yr(1,r,n);const s=t.template;null!==s&&Ir(t,e,s,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&br(t,e),t.staticViewQueries&&Yr(2,t.viewQuery,n);const o=t.components;null!==o&&function(t,e){for(let n=0;n<e.length;n++)qr(t,e[n])}(e,o)}catch(r){throw t.firstCreatePass&&(t.incompleteFirstPass=!0),r}finally{e[2]&=-5,Te()}}function Sr(t,e,n,r){const s=e[2];if(256==(256&s))return;Ce(e);const o=ge();try{oe(e),le.lFrame.bindingIndex=t.bindingStartIndex,null!==n&&Ir(t,e,n,2,r);const i=3==(3&s);if(!o)if(i){const n=t.preOrderCheckHooks;null!==n&&Oe(e,n,null)}else{const n=t.preOrderHooks;null!==n&&Me(e,n,0,null),Pe(e,0)}if(function(t){for(let e=Vn(t);null!==e;e=Ln(e)){if(!e[2])continue;const t=e[9];for(let e=0;e<t.length;e++){const n=t[e],r=n[3];0==(1024&n[2])&&ie(r,1),n[2]|=1024}}}(e),function(t){for(let e=Vn(t);null!==e;e=Ln(e))for(let t=Ht;t<e.length;t++){const n=e[t],r=n[1];re(n)&&Sr(r,n,r.template,n[8])}}(e),null!==t.contentQueries&&br(t,e),!o)if(i){const n=t.contentCheckHooks;null!==n&&Oe(e,n)}else{const n=t.contentHooks;null!==n&&Me(e,n,1),Pe(e,1)}!function(t,e){const n=t.hostBindingOpCodes;if(null!==n)try{for(let t=0;t<n.length;t++){const r=n[t];if(r<0)Ae(~r);else{const s=r,o=n[++t],i=n[++t];_e(o,s),i(2,e[s])}}}finally{Ae(-1)}}(t,e);const l=t.components;null!==l&&function(t,e){for(let n=0;n<e.length;n++)Wr(t,e[n])}(e,l);const u=t.viewQuery;if(null!==u&&Yr(2,u,r),!o)if(i){const n=t.viewCheckHooks;null!==n&&Oe(e,n)}else{const n=t.viewHooks;null!==n&&Me(e,n,2),Pe(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),o||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,ie(e[3],-1))}finally{Te()}}function Tr(t,e,n,r){const s=e[10],o=!ge(),i=4==(4&e[2]);try{o&&!i&&s.begin&&s.begin(),i&&Er(t,e,r),Sr(t,e,n,r)}finally{o&&!i&&s.end&&s.end()}}function Ir(t,e,n,r,s){const o=Ie(),i=2&r;try{Ae(-1),i&&e.length>jt&&wr(t,e,jt,ge()),n(r,s)}finally{Ae(o)}}function Ar(t,e,n){ue()&&(function(t,e,n,r){const s=n.directiveStart,o=n.directiveEnd;t.firstCreatePass||Ge(n,e),An(r,e);const i=n.initialInputs;for(let l=s;l<o;l++){const r=t.data[l],o=zt(r);o&&Br(e,n,r);const u=on(e,t,l,n);An(u,e),null!==i&&$r(0,l-s,u,r,0,i),o&&(ne(n.index,e)[8]=u)}}(t,e,n,te(n,e)),128==(128&n.flags)&&function(t,e,n){const r=n.directiveStart,s=n.directiveEnd,o=n.index,i=le.lFrame.currentDirectiveIndex;try{Ae(o);for(let n=r;n<s;n++){const r=t.data[n],s=e[n];ye(n),null===r.hostBindings&&0===r.hostVars&&null===r.hostAttrs||Rr(r,s)}}finally{Ae(-1),ye(i)}}(t,e,n))}function Dr(t,e,n=te){const r=e.localNames;if(null!==r){let s=e.index+1;for(let o=0;o<r.length;o+=2){const i=r[o+1],l=-1===i?n(e,t):t[i];t[s++]=l}}}function Or(t){const e=t.tView;return null===e||e.incompleteFirstPass?t.tView=Mr(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function Mr(t,e,n,r,s,o,i,l,u,a){const c=jt+r,h=c+s,d=function(t,e){const n=[];for(let r=0;r<e;r++)n.push(r<t?null:yr);return n}(c,h),f="function"==typeof a?a():a;return d[1]={type:t,blueprint:d,template:n,queries:null,viewQuery:l,declTNode:e,data:d.slice().fill(null,c),bindingStartIndex:c,expandoStartIndex:h,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof o?o():o,pipeRegistry:"function"==typeof i?i():i,firstChild:null,schemas:u,consts:f,incompleteFirstPass:!1}}function Pr(t,e,n){for(let r in t)if(t.hasOwnProperty(r)){const s=t[r];(n=null===n?{}:n).hasOwnProperty(r)?n[r].push(e,s):n[r]=[e,s]}return n}function Fr(t,e,n,r){let s=!1;if(ue()){const o=function(t,e,n){const r=t.directiveRegistry;let s=null;if(r)for(let o=0;o<r.length;o++){const i=r[o];gr(n,i.selectors,!1)&&(s||(s=[]),Ye(Ge(n,e),t,i.type),zt(i)?(jr(t,n),s.unshift(i)):s.push(i))}return s}(t,e,n),i=null===r?null:{"":-1};if(null!==o){s=!0,Vr(n,t.data.length,o.length);for(let t=0;t<o.length;t++){const e=o[t];e.providersResolver&&e.providersResolver(e)}let r=!1,l=!1,u=kr(t,e,o.length,null);for(let s=0;s<o.length;s++){const a=o[s];n.mergedAttrs=Le(n.mergedAttrs,a.hostAttrs),Lr(t,n,e,u,a),Hr(u,a,i),null!==a.contentQueries&&(n.flags|=8),null===a.hostBindings&&null===a.hostAttrs&&0===a.hostVars||(n.flags|=128);const c=a.type.prototype;!r&&(c.ngOnChanges||c.ngOnInit||c.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index),r=!0),l||!c.ngOnChanges&&!c.ngDoCheck||((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index),l=!0),u++}!function(t,e){const n=e.directiveEnd,r=t.data,s=e.attrs,o=[];let i=null,l=null;for(let u=e.directiveStart;u<n;u++){const t=r[u],n=t.inputs,a=null===s||cr(e)?null:Zr(n,s);o.push(a),i=Pr(n,u,i),l=Pr(t.outputs,u,l)}null!==i&&(i.hasOwnProperty("class")&&(e.flags|=16),i.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=o,e.inputs=i,e.outputs=l}(t,n)}i&&function(t,e,n){if(e){const r=t.localNames=[];for(let t=0;t<e.length;t+=2){const s=n[e[t+1]];if(null==s)throw new G("301",`Export of name '${e[t+1]}' not found!`);r.push(e[t],s)}}}(n,r,i)}return n.mergedAttrs=Le(n.mergedAttrs,n.attrs),s}function Nr(t,e,n,r,s,o){const i=o.hostBindings;if(i){let n=t.hostBindingOpCodes;null===n&&(n=t.hostBindingOpCodes=[]);const o=~e.index;(function(t){let e=t.length;for(;e>0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(n)!=o&&n.push(o),n.push(r,s,i)}}function Rr(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function jr(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Hr(t,e,n){if(n){if(e.exportAs)for(let r=0;r<e.exportAs.length;r++)n[e.exportAs[r]]=t;zt(e)&&(n[""]=t)}}function Vr(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function Lr(t,e,n,r,s){t.data[r]=s;const o=s.factory||(s.factory=Wt(s.type)),i=new je(o,zt(s),null);t.blueprint[r]=i,n[r]=i,Nr(t,e,0,r,kr(t,n,s.hostVars,yr),s)}function Br(t,e,n){const r=te(e,t),s=Or(n),o=t[10],i=Gr(t,Cr(t,s,null,n.onPush?64:16,r,e,o,o.createRenderer(r,n),null,null));t[e.index]=i}function $r(t,e,n,r,s,o){const i=o[e];if(null!==i){const t=r.setInput;for(let e=0;e<i.length;){const s=i[e++],o=i[e++],l=i[e++];null!==t?r.setInput(n,l,s,o):n[o]=l}}}function Zr(t,e){let n=null,r=0;for(;r<e.length;){const s=e[r];if(0!==s)if(5!==s){if("number"==typeof s)break;t.hasOwnProperty(s)&&(null===n&&(n=[]),n.push(s,t[s],e[r+1])),r+=2}else r+=2;else r+=4}return n}function zr(t,e,n,r){return new Array(t,!0,!1,e,null,0,r,n,null,null)}function Wr(t,e){const n=ne(e,t);if(re(n)){const t=n[1];80&n[2]?Sr(t,n,t.template,n[8]):n[5]>0&&Ur(n)}}function Ur(t){for(let n=Vn(t);null!==n;n=Ln(n))for(let t=Ht;t<n.length;t++){const e=n[t];if(1024&e[2]){const t=e[1];Sr(t,e,t.template,e[8])}else e[5]>0&&Ur(e)}const e=t[1].components;if(null!==e)for(let n=0;n<e.length;n++){const r=ne(e[n],t);re(r)&&r[5]>0&&Ur(r)}}function qr(t,e){const n=ne(e,t),r=n[1];!function(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}(r,n),Er(r,n,n[8])}function Gr(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function Qr(t){for(;t;){t[2]|=64;const e=Hn(t);if(0!=(512&t[2])&&!e)return t;t=e}return null}function Kr(t,e,n){const r=e[10];r.begin&&r.begin();try{Sr(t,e,t.template,n)}catch(s){throw ns(e,s),s}finally{r.end&&r.end()}}function Jr(t){!function(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],r=Dn(n),s=r[1];Tr(s,r,s.template,n)}}(t[8])}function Yr(t,e,n){ve(0),e(t,n)}const Xr=(()=>Promise.resolve(null))();function ts(t){return t[7]||(t[7]=[])}function es(t){return t.cleanup||(t.cleanup=[])}function ns(t,e){const n=t[9],r=n?n.get(Pn,null):null;r&&r.handleError(e)}function rs(t,e,n,r,s){for(let o=0;o<n.length;){const i=n[o++],l=n[o++],u=e[i],a=t.data[i];null!==a.setInput?a.setInput(u,s,r,l):u[l]=s}}function ss(t,e,n){let r=n?t.styles:null,s=n?t.classes:null,o=0;if(null!==e)for(let i=0;i<e.length;i++){const t=e[i];"number"==typeof t?o=t:1==o?s=z(s,t):2==o&&(r=z(r,t+": "+e[++i]+";"))}n?t.styles=r:t.stylesWithoutHost=r,n?t.classes=s:t.classesWithoutHost=s}const os=new dn("INJECTOR",-1);class is{get(t,e=mn){if(e===mn){const e=new Error(`NullInjectorError: No provider for ${Z(t)}!`);throw e.name="NullInjectorError",e}return e}}const ls=new dn("Set Injector scope."),us={},as={};let cs;function hs(){return void 0===cs&&(cs=new is),cs}function ds(t,e=null,n=null,r){return new fs(t,n,e||hs(),r)}class fs{constructor(t,e,n,r=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];e&&fn(e,n=>this.processProvider(n,t,e)),fn([t],t=>this.processInjectorType(t,[],s)),this.records.set(os,gs(void 0,this));const o=this.records.get(ls);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof t?null:Z(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=mn,n=it.Default){this.assertNotDestroyed();const r=bn(this),s=ut(void 0);try{if(!(n&it.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(o=t)||"object"==typeof o&&o instanceof dn)&&X(t);e=n&&this.injectableDefInScope(n)?gs(ps(t),us):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&it.Self?hs():this.parent).get(t,e=n&it.Optional&&e===mn?null:e)}catch(i){if("NullInjectorError"===i.name){if((i.ngTempTokenPath=i.ngTempTokenPath||[]).unshift(Z(t)),r)throw i;return function(t,e,n,r){const s=t.ngTempTokenPath;throw e[yn]&&s.unshift(e[yn]),t.message=function(t,e,n,r=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=Z(e);if(Array.isArray(e))s=e.map(Z).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let r=e[n];t.push(n+":"+("string"==typeof r?JSON.stringify(r):Z(r)))}s=`{${t.join(", ")}}`}return`${n}${r?"("+r+")":""}[${s}]: ${t.replace(_n,"\n ")}`}("\n"+t.message,s,n,r),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(i,t,"R3InjectorError",this.source)}throw i}finally{ut(s),bn(r)}var o}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(Z(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=q(t)))return!1;let r=et(t);const s=null==r&&t.ngModule||void 0,o=void 0===s?t:s,i=-1!==n.indexOf(o);if(void 0!==s&&(r=et(s)),null==r)return!1;if(null!=r.imports&&!i){let t;n.push(o);try{fn(r.imports,r=>{this.processInjectorType(r,e,n)&&(void 0===t&&(t=[]),t.push(r))})}finally{}if(void 0!==t)for(let e=0;e<t.length;e++){const{ngModule:n,providers:r}=t[e];fn(r,t=>this.processProvider(t,n,r||vt))}}this.injectorDefTypes.add(o);const l=Wt(o)||(()=>new o);this.records.set(o,gs(l,us));const u=r.providers;if(null!=u&&!i){const e=t;fn(u,t=>this.processProvider(t,e,u))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,n){let r=_s(t=q(t))?t:q(t&&t.provide);const s=function(t,e,n){return ms(t)?gs(void 0,t.useValue):gs(function(t,e,n){let r;if(_s(t)){const e=q(t);return Wt(e)||ps(e)}if(ms(t))r=()=>q(t.useValue);else if((s=t)&&s.useFactory)r=()=>t.useFactory(...kn(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))r=()=>xn(q(t.useExisting));else{const e=q(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return Wt(e)||ps(e);r=()=>new e(...kn(t.deps))}var s;return r}(t),us)}(t);if(_s(t)||!0!==t.multi)this.records.get(r);else{let e=this.records.get(r);e||(e=gs(void 0,us,!0),e.factory=()=>kn(e.multi),this.records.set(r,e)),r=t,e.multi.push(t)}this.records.set(r,s)}hydrate(t,e){var n;return e.value===us&&(e.value=as,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=q(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function ps(t){const e=X(t),n=null!==e?e.factory:Wt(t);if(null!==n)return n;if(t instanceof dn)throw new Error(`Token ${Z(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=function(t,e){const n=[];for(let r=0;r<t;r++)n.push("?");return n}(e);throw new Error(`Can't resolve all parameters for ${Z(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[nt]||t[st]);if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function gs(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function ms(t){return null!==t&&"object"==typeof t&&vn in t}function _s(t){return"function"==typeof t}const ys=function(t,e,n){return function(t,e=null,n=null,r){const s=ds(t,e,n,r);return s._resolveInjectorDefTypes(),s}({name:n},e,t,n)};class vs{static create(t,e){return Array.isArray(t)?ys(t,e,""):ys(t.providers,t.parent,t.name||"")}}function ws(t,e){De(Dn(t)[1],he())}vs.THROW_IF_NOT_FOUND=mn,vs.NULL=new is,vs.\u0275prov=J({token:vs,providedIn:"any",factory:()=>xn(os)}),vs.__NG_ELEMENT_ID__=-1;let bs=null;function Cs(){if(!bs){const t=_t.Symbol;if(t&&t.iterator)bs=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const n=t[e];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(bs=n)}}}return bs}function xs(t){return!!ks(t)&&(Array.isArray(t)||!(t instanceof Map)&&Cs()in t)}function ks(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Es(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function Ss(t,e,n,r){const s=Es(t,e,n);return Es(t,e+1,r)||s}function Ts(t,e,n,r,s,o,i,l){const u=ae(),a=ce(),c=t+jt,h=a.firstCreatePass?function(t,e,n,r,s,o,i,l,u){const a=e.consts,c=xr(e,t,4,i||null,se(a,l));Fr(e,n,c,se(a,u)),De(e,c);const h=c.tViews=Mr(2,c,r,s,o,e.directiveRegistry,e.pipeRegistry,null,e.schemas,a);return null!==e.queries&&(e.queries.template(e,c),h.queries=e.queries.embeddedTView(c)),c}(c,a,u,e,n,r,s,o,i):a.data[c];fe(h,!1);const d=u[11].createComment("");Yn(a,u,d,h),An(d,u),Gr(u,u[c]=zr(d,u,d,h)),Zt(h)&&Ar(a,u,h),null!=i&&Dr(u,h,l)}function Is(t,e=it.Default){const n=ae();return null===n?xn(t,e):en(he(),n,q(t),e)}function As(t,e,n){const r=ae();return Es(r,le.lFrame.bindingIndex++,e)&&function(t,e,n,r,s,o,i,l){const u=te(e,n);let a,c=e.inputs;var h;null!=c&&(a=c[r])?(rs(t,n,a,r,s),$t(e)&&function(t,e){const n=ne(e,t);16&n[2]||(n[2]|=64)}(n,e.index)):3&e.type&&(r="class"===(h=r)?"className":"for"===h?"htmlFor":"formaction"===h?"formAction":"innerHtml"===h?"innerHTML":"readonly"===h?"readOnly":"tabindex"===h?"tabIndex":h,s=null!=i?i(s,e.value||"",r):s,Jt(o)?o.setProperty(u,r,s):Ve(r)||(u.setProperty?u.setProperty(r,s):u[r]=s))}(ce(),function(){const t=le.lFrame;return ee(t.tView,t.selectedIndex)}(),r,t,e,r[11],n),As}function Ds(t,e,n,r,s){const o=s?"class":"style";rs(t,n,e.inputs[o],o,r)}function Os(t,e,n,r){const s=ae(),o=ce(),i=jt+t,l=s[11],u=s[i]=Zn(l,e,le.lFrame.currentNamespace),a=o.firstCreatePass?function(t,e,n,r,s,o,i){const l=e.consts,u=xr(e,t,2,s,se(l,o));return Fr(e,n,u,se(l,i)),null!==u.attrs&&ss(u,u.attrs,!1),null!==u.mergedAttrs&&ss(u,u.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,u),u}(i,o,s,0,e,n,r):o.data[i];fe(a,!0);const c=a.mergedAttrs;null!==c&&He(l,u,c);const h=a.classes;null!==h&&ir(l,u,h);const d=a.styles;null!==d&&or(l,u,d),64!=(64&a.flags)&&Yn(o,s,u,a),0===le.lFrame.elementDepthCount&&An(u,s),le.lFrame.elementDepthCount++,Zt(a)&&(Ar(o,s,a),function(t,e,n){if(Bt(e)){const r=e.directiveEnd;for(let s=e.directiveStart;s<r;s++){const e=t.data[s];e.contentQueries&&e.contentQueries(1,n[s],s)}}}(o,a,s)),null!==r&&Dr(s,a)}function Ms(){let t=he();pe()?le.lFrame.isParent=!1:(t=t.parent,fe(t,!1));const e=t;le.lFrame.elementDepthCount--;const n=ce();n.firstCreatePass&&(De(n,t),Bt(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&Ds(n,e,ae(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&Ds(n,e,ae(),e.stylesWithoutHost,!1)}function Ps(t,e,n,r){Os(t,e,n,r),Ms()}function Fs(t){return!!t&&"function"==typeof t.then}function Ns(t,e,n,r){const s=ae(),o=ce(),i=he();return function(t,e,n,r,s,o,i,l){const u=Zt(r),a=t.firstCreatePass&&es(t),c=ts(e);let h=!0;if(3&r.type||l){const d=te(r,e),f=l?l(d):d,p=c.length,g=l?t=>l(Xt(t[r.index])):r.index;if(Jt(n)){let i=null;if(!l&&u&&(i=function(t,e,n,r){const s=t.cleanup;if(null!=s)for(let o=0;o<s.length-1;o+=2){const t=s[o];if(t===n&&s[o+1]===r){const t=e[7],n=s[o+2];return t.length>n?t[n]:null}"string"==typeof t&&(o+=2)}return null}(t,e,s,r.index)),null!==i)(i.__ngLastListenerFn__||i).__ngNextListenerFn__=o,i.__ngLastListenerFn__=o,h=!1;else{o=js(r,e,0,o,!1);const t=n.listen(f,s,o);c.push(o,t),a&&a.push(s,g,p,p+1)}}else o=js(r,e,0,o,!0),f.addEventListener(s,o,i),c.push(o),a&&a.push(s,g,p,i)}else o=js(r,e,0,o,!1);const d=r.outputs;let f;if(h&&null!==d&&(f=d[s])){const t=f.length;if(t)for(let n=0;n<t;n+=2){const t=e[f[n]][f[n+1]].subscribe(o),i=c.length;c.push(o,t),a&&a.push(s,r.index,i,-(i+1))}}}(o,s,s[11],i,t,e,!!n,r),Ns}function Rs(t,e,n,r){try{return!1!==n(r)}catch(s){return ns(t,s),!1}}function js(t,e,n,r,s){return function n(o){if(o===Function)return r;const i=2&t.flags?ne(t.index,e):e;0==(32&e[2])&&Qr(i);let l=Rs(e,0,r,o),u=n.__ngNextListenerFn__;for(;u;)l=Rs(e,0,u,o)&&l,u=u.__ngNextListenerFn__;return s&&!1===l&&(o.preventDefault(),o.returnValue=!1),l}}function Hs(t,e=""){const n=ae(),r=ce(),s=t+jt,o=r.firstCreatePass?xr(r,s,1,e,null):r.data[s],i=n[s]=function(t,e){return Jt(t)?t.createText(e):t.createTextNode(e)}(n[11],e);Yn(r,n,i,o),fe(o,!1)}const Vs=void 0;var Ls=["en",[["a","p"],["AM","PM"],Vs],[["AM","PM"],Vs,Vs],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Vs,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Vs,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Vs,"{1} 'at' {0}",Vs],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let Bs={};function $s(t){return t in Bs||(Bs[t]=_t.ng&&_t.ng.common&&_t.ng.common.locales&&_t.ng.common.locales[t]),Bs[t]}var Zs=(()=>((Zs=Zs||{})[Zs.LocaleId=0]="LocaleId",Zs[Zs.DayPeriodsFormat=1]="DayPeriodsFormat",Zs[Zs.DayPeriodsStandalone=2]="DayPeriodsStandalone",Zs[Zs.DaysFormat=3]="DaysFormat",Zs[Zs.DaysStandalone=4]="DaysStandalone",Zs[Zs.MonthsFormat=5]="MonthsFormat",Zs[Zs.MonthsStandalone=6]="MonthsStandalone",Zs[Zs.Eras=7]="Eras",Zs[Zs.FirstDayOfWeek=8]="FirstDayOfWeek",Zs[Zs.WeekendRange=9]="WeekendRange",Zs[Zs.DateFormat=10]="DateFormat",Zs[Zs.TimeFormat=11]="TimeFormat",Zs[Zs.DateTimeFormat=12]="DateTimeFormat",Zs[Zs.NumberSymbols=13]="NumberSymbols",Zs[Zs.NumberFormats=14]="NumberFormats",Zs[Zs.CurrencyCode=15]="CurrencyCode",Zs[Zs.CurrencySymbol=16]="CurrencySymbol",Zs[Zs.CurrencyName=17]="CurrencyName",Zs[Zs.Currencies=18]="Currencies",Zs[Zs.Directionality=19]="Directionality",Zs[Zs.PluralCase=20]="PluralCase",Zs[Zs.ExtraData=21]="ExtraData",Zs))();const zs="en-US";let Ws=zs;function Us(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,r){throw new Error(`ASSERTION ERROR: ${t} [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(Ws=t.toLowerCase().replace(/_/g,"-"))}class qs{}class Gs{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${Z(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}class Qs{}function Ks(...t){}function Js(t,e){return new Xs(te(t,e))}Qs.NULL=new Gs;const Ys=function(){return Js(he(),ae())};let Xs=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=Ys,t})();class to{}let eo=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>no(),t})();const no=function(){const t=ae(),e=ne(he().index,t);return function(t){return t[11]}(Vt(e)?e:t)};let ro=(()=>{class t{}return t.\u0275prov=J({token:t,providedIn:"root",factory:()=>null}),t})();class so{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const oo=new so("12.1.5");class io{constructor(){}supports(t){return xs(t)}create(t){return new uo(t)}}const lo=(t,e)=>e;class uo{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||lo}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,r=0,s=null;for(;e||n;){const o=!n||e&&e.currentIndex<fo(n,r,s)?e:n,i=fo(o,r,s),l=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(e=e._next,null==o.previousIndex)r++;else{s||(s=[]);const t=i-r,e=l-r;if(t!=e){for(let n=0;n<t;n++){const r=n<s.length?s[n]:s[n]=0,o=r+n;e<=o&&o<t&&(s[n]=r+1)}s[o.previousIndex]=e-t}}i!==l&&t(o,i,l)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!xs(t))throw new Error(`Error trying to diff '${Z(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e,n,r,s=this._itHead,o=!1;if(Array.isArray(t)){this.length=t.length;for(let e=0;e<this.length;e++)n=t[e],r=this._trackByFn(e,n),null!==s&&Object.is(s.trackById,r)?(o&&(s=this._verifyReinsertion(s,n,r,e)),Object.is(s.item,n)||this._addIdentityChange(s,n)):(s=this._mismatch(s,n,r,e),o=!0),s=s._next}else e=0,function(t,e){if(Array.isArray(t))for(let n=0;n<t.length;n++)e(t[n]);else{const n=t[Cs()]();let r;for(;!(r=n.next()).done;)e(r.value)}}(t,t=>{r=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,r)?(o&&(s=this._verifyReinsertion(s,t,r,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,r,e),o=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,r){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,r)):t=this._addAfter(new ao(e,n),s,r),t}_verifyReinsertion(t,e,n,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?t=this._reinsertAfter(s,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,s=t._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new ho),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new ho),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class ao{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class co{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class ho{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new co,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function fo(t,e,n){const r=t.previousIndex;if(null===r)return r;let s=0;return n&&r<n.length&&(s=n[r]),r+e+s}class po{constructor(){}supports(t){return t instanceof Map||ks(t)}create(){return new go}}class go{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||ks(t)))throw new Error(`Error trying to diff '${Z(t)}'. Only maps and objects are allowed`)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(t,n)=>{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const r=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const r=n._prev,s=n._next;return r&&(r._next=s),s&&(s._prev=r),n._next=null,n._prev=null,n}const n=new mo(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class mo{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function _o(){return new yo([new io])}let yo=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||_o()),deps:[[t,new In,new Tn]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.\u0275prov=J({token:t,providedIn:"root",factory:_o}),t})();function vo(){return new wo([new po])}let wo=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||vo()),deps:[[t,new In,new Tn]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=J({token:t,providedIn:"root",factory:vo}),t})();function bo(t,e,n,r,s=!1){for(;null!==n;){const o=e[n.index];if(null!==o&&r.push(Xt(o)),Lt(o))for(let t=Ht;t<o.length;t++){const e=o[t],n=e[1].firstChild;null!==n&&bo(e[1],e,n,r)}const i=n.type;if(8&i)bo(t,e,n.child,r);else if(32&i){const t=jn(n,e);let s;for(;s=t();)r.push(s)}else if(16&i){const t=tr(e,n);if(Array.isArray(t))r.push(...t);else{const n=Hn(e[16]);bo(n[1],n,t,r,!0)}}n=s?n.projectionNext:n.next}return r}class Co{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const t=this._lView,e=t[1];return bo(e,t,e.firstChild,[])}get context(){return this._lView[8]}set context(t){this._lView[8]=t}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(Lt(t)){const e=t[8],n=e?e.indexOf(this):-1;n>-1&&(Wn(t,n),gn(e,n))}this._attachedToViewContainer=!1}Un(this._lView[1],this._lView)}onDestroy(t){!function(t,e,n,r){const s=ts(e);s.push(r)}(0,this._lView,0,t)}markForCheck(){Qr(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Kr(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){me(!0);try{Kr(t,e,n)}finally{me(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,rr(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class xo extends Co{constructor(t){super(t),this._view=t}detectChanges(){Jr(this._view)}checkNoChanges(){!function(t){me(!0);try{Jr(t)}finally{me(!1)}}(this._view)}get context(){return null}}const ko=[new po],Eo=new yo([new io]),So=new wo(ko),To=function(){return t=he(),e=ae(),4&t.type?new Do(e,t,Js(t,e)):null;var t,e};let Io=(()=>{class t{}return t.__NG_ELEMENT_ID__=To,t})();const Ao=Io,Do=class extends Ao{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=Cr(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const r=this._declarationLView[19];return null!==r&&(n[19]=r.createEmbeddedView(e)),Er(e,n,t),new Co(n)}};class Oo{}const Mo=function(){return function(t,e){let n;const r=e[t.index];if(Lt(r))n=r;else{let s;if(8&t.type)s=Xt(r);else{const n=e[11];s=n.createComment("");const r=te(t,e);Gn(n,Jn(n,r),s,function(t,e){return Jt(t)?t.nextSibling(e):e.nextSibling}(n,r),!1)}e[t.index]=n=zr(r,e,s,t),Gr(e,n)}return new No(n,t,e)}(he(),ae())};let Po=(()=>{class t{}return t.__NG_ELEMENT_ID__=Mo,t})();const Fo=Po,No=class extends Fo{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return Js(this._hostTNode,this._hostLView)}get injector(){return new an(this._hostTNode,this._hostLView)}get parentInjector(){const t=Je(this._hostTNode,this._hostLView);if($e(t)){const e=ze(t,this._hostLView),n=Ze(t);return new an(e[1].data[n+8],e)}return new an(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=Ro(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-Ht}createEmbeddedView(t,e,n){const r=t.createEmbeddedView(e||{});return this.insert(r,n),r}createComponent(t,e,n,r,s){const o=n||this.parentInjector;if(!s&&null==t.ngModule&&o){const t=o.get(Oo,null);t&&(s=t)}const i=t.create(o,r,void 0,s);return this.insert(i.hostView,e),i}insert(t,e){const n=t._lView,r=n[1];if(Lt(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],r=new No(e,e[6],e[3]);r.detach(r.indexOf(t))}}const s=this._adjustIndex(e),o=this._lContainer;!function(t,e,n,r){const s=Ht+r,o=n.length;r>0&&(n[s-1][4]=e),r<o-Ht?(e[4]=n[s],pn(n,Ht+r,e)):(n.push(e),e[4]=null),e[3]=n;const i=e[17];null!==i&&n!==i&&function(t,e){const n=t[9];e[16]!==e[3][3][16]&&(t[2]=!0),null===n?t[9]=[e]:n.push(e)}(i,e);const l=e[19];null!==l&&l.insertView(t),e[2]|=128}(r,n,o,s);const i=er(s,o),l=n[11],u=Jn(l,o[7]);return null!==u&&function(t,e,n,r,s,o){r[0]=s,r[6]=e,rr(t,r,n,1,s,o)}(r,o[6],l,n,u,i),t.attachToViewContainerRef(),pn(jo(o),s,t),t}move(t,e){return this.insert(t,e)}indexOf(t){const e=Ro(this._lContainer);return null!==e?e.indexOf(t):-1}remove(t){const e=this._adjustIndex(t,-1),n=Wn(this._lContainer,e);n&&(gn(jo(this._lContainer),e),Un(n[1],n))}detach(t){const e=this._adjustIndex(t,-1),n=Wn(this._lContainer,e);return n&&null!=gn(jo(this._lContainer),e)?new Co(n):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}};function Ro(t){return t[8]}function jo(t){return t[8]||(t[8]=[])}const Ho={};class Vo extends Qs{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=Nt(t);return new $o(e,this.ngModule)}}function Lo(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const Bo=new dn("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Fn});class $o extends qs{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(_r).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Lo(this.componentDef.inputs)}get outputs(){return Lo(this.componentDef.outputs)}create(t,e,n,r){const s=(r=r||this.ngModule)?function(t,e){return{get:(n,r,s)=>{const o=t.get(n,Ho,s);return o!==Ho||r===Ho?o:e.get(n,r,s)}}}(t,r.injector):t,o=s.get(to,Yt),i=s.get(ro,null),l=o.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",a=n?function(t,e,n){if(Jt(t))return t.selectRootElement(e,n===dt.ShadowDom);let r="string"==typeof e?t.querySelector(e):e;return r.textContent="",r}(l,n,this.componentDef.encapsulation):Zn(o.createRenderer(null,this.componentDef),u,function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(u)),c=this.componentDef.onPush?576:528,h={components:[],scheduler:Fn,clean:Xr,playerHandler:null,flags:0},d=Mr(0,null,null,1,0,null,null,null,null,null),f=Cr(null,d,h,c,null,null,o,l,i,s);let p,g;Ce(f);try{const t=function(t,e,n,r,s,o){const i=n[1];n[20]=t;const l=xr(i,20,2,"#host",null),u=l.mergedAttrs=e.hostAttrs;null!==u&&(ss(l,u,!0),null!==t&&(He(s,t,u),null!==l.classes&&ir(s,t,l.classes),null!==l.styles&&or(s,t,l.styles)));const a=r.createRenderer(t,e),c=Cr(n,Or(e),null,e.onPush?64:16,n[20],l,r,a,null,null);return i.firstCreatePass&&(Ye(Ge(l,n),i,e.type),jr(i,l),Vr(l,n.length,1)),Gr(n,c),n[20]=c}(a,this.componentDef,f,o,l);if(a)if(n)He(l,a,["ng-version",oo.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let r=1,s=2;for(;r<t.length;){let o=t[r];if("string"==typeof o)2===s?""!==o&&e.push(o,t[++r]):8===s&&n.push(o);else{if(!fr(s))break;s=o}r++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);t&&He(l,a,t),e&&e.length>0&&ir(l,a,e.join(" "))}if(g=ee(d,jt),void 0!==e){const t=g.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const r=e[n];t.push(null!=r?Array.from(r):null)}}p=function(t,e,n,r,s){const o=n[1],i=function(t,e,n){const r=he();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Lr(t,r,e,kr(t,e,1,null),n));const s=on(e,t,r.directiveStart,r);An(s,e);const o=te(r,e);return o&&An(o,e),s}(o,n,e);if(r.components.push(i),t[8]=i,s&&s.forEach(t=>t(i,e)),e.contentQueries){const t=he();e.contentQueries(1,i,t.directiveStart)}const l=he();return!o.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(Ae(l.index),Nr(n[1],l,0,l.directiveStart,l.directiveEnd,e),Rr(e,i)),i}(t,this.componentDef,f,h,[ws]),Er(d,f,null)}finally{Te()}return new Zo(this.componentType,p,Js(g,f),f,g)}}class Zo extends class{}{constructor(t,e,n,r,s){super(),this.location=n,this._rootLView=r,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new xo(r),this.componentType=t}get injector(){return new an(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const zo=new Map;class Wo extends Oo{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Vo(this);const n=Rt(t),r=t[kt]||null;r&&Us(r),this._bootstrapComponents=Nn(n.bootstrap),this._r3Injector=ds(t,e,[{provide:Oo,useValue:this},{provide:Qs,useValue:this.componentFactoryResolver}],Z(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=vs.THROW_IF_NOT_FOUND,n=it.Default){return t===vs||t===Oo||t===os?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Uo extends class{}{constructor(t){super(),this.moduleType=t,null!==Rt(t)&&function(t){const e=new Set;!function t(n){const r=Rt(n,!0),s=r.id;null!==s&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${Z(e)} vs ${Z(e.name)}`)}(s,zo.get(s),n),zo.set(s,n));const o=Nn(r.imports);for(const i of o)e.has(i)||(e.add(i),t(i))}(t)}(t)}create(t){return new Wo(this.moduleType,t)}}function qo(t){return e=>{setTimeout(t,void 0,e)}}const Go=class extends x{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){var r,s,o;let i=t,l=e||(()=>null),u=n;if(t&&"object"==typeof t){const e=t;i=null===(r=e.next)||void 0===r?void 0:r.bind(e),l=null===(s=e.error)||void 0===s?void 0:s.bind(e),u=null===(o=e.complete)||void 0===o?void 0:o.bind(e)}this.__isAsync&&(l=qo(l),i&&(i=qo(i)),u&&(u=qo(u)));const a=super.subscribe({next:i,error:l,complete:u});return t instanceof h&&t.add(a),a}};Symbol;const Qo=new dn("Application Initializer");let Ko=(()=>{class t{constructor(t){this.appInits=t,this.resolve=Ks,this.reject=Ks,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r<this.appInits.length;r++){const e=this.appInits[r]();if(Fs(e))t.push(e);else if((n=e)&&"function"==typeof n.subscribe){const n=new Promise((t,n)=>{e.subscribe({complete:t,error:n})});t.push(n)}}var n;Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(xn(Qo,8))},t.\u0275prov=J({token:t,factory:t.\u0275fac}),t})();const Jo=new dn("AppId"),Yo={provide:Jo,useFactory:function(){return`${Xo()}${Xo()}${Xo()}`},deps:[]};function Xo(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const ti=new dn("Platform Initializer"),ei=new dn("Platform ID"),ni=new dn("appBootstrapListener");let ri=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=J({token:t,factory:t.\u0275fac}),t})();const si=new dn("LocaleId"),oi=new dn("DefaultCurrencyCode");class ii{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const li=function(t){return new Uo(t)},ui=li,ai=function(t){return Promise.resolve(li(t))},ci=function(t){const e=li(t),n=Nn(Rt(t).declarations).reduce((t,e)=>{const n=Nt(e);return n&&t.push(new $o(n)),t},[]);return new ii(e,n)},hi=ci,di=function(t){return Promise.resolve(ci(t))};let fi=(()=>{class t{constructor(){this.compileModuleSync=ui,this.compileModuleAsync=ai,this.compileModuleAndAllComponentsSync=hi,this.compileModuleAndAllComponentsAsync=di}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=J({token:t,factory:t.\u0275fac}),t})();const pi=(()=>Promise.resolve(0))();function gi(t){"undefined"==typeof Zone?pi.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class mi{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Go(!1),this.onMicrotaskEmpty=new Go(!1),this.onStable=new Go(!1),this.onError=new Go(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!n&&e,r.shouldCoalesceRunChangeDetection=n,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function(){let t=_t.requestAnimationFrame,e=_t.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(_t,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,vi(t),t.isCheckStableRunning=!0,yi(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),vi(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,s,o,i,l)=>{try{return wi(t),n.invokeTask(s,o,i,l)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&e(),bi(t)}},onInvoke:(n,r,s,o,i,l,u)=>{try{return wi(t),n.invoke(s,o,i,l,u)}finally{t.shouldCoalesceRunChangeDetection&&e(),bi(t)}},onHasTask:(e,n,r,s)=>{e.hasTask(r,s),n===r&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,vi(t),yi(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,r,s)=>(e.handleError(r,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(r)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!mi.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(mi.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,r){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,t,_i,Ks,Ks);try{return s.runTask(o,e,n)}finally{s.cancelTask(o)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}const _i={};function yi(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function vi(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function wi(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function bi(t){t._nesting--,yi(t)}class Ci{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Go,this.onMicrotaskEmpty=new Go,this.onStable=new Go,this.onError=new Go}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,r){return t.apply(e,n)}}let xi=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{mi.assertNotInAngularZone(),gi(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())gi(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let r=-1;e&&e>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==r),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:r,updateCb:n})}whenStable(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(xn(mi))},t.\u0275prov=J({token:t,factory:t.\u0275fac}),t})(),ki=(()=>{class t{constructor(){this._applications=new Map,Ti.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return Ti.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=J({token:t,factory:t.\u0275fac}),t})();class Ei{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}let Si,Ti=new Ei,Ii=!0,Ai=!1;const Di=new dn("AllowMultipleToken");function Oi(t,e,n=[]){const r=`Platform: ${e}`,s=new dn(r);return(e=[])=>{let o=Mi();if(!o||o.injector.get(Di,!1))if(t)t(n.concat(e).concat({provide:s,useValue:!0}));else{const t=n.concat(e).concat({provide:s,useValue:!0},{provide:ls,useValue:"platform"});!function(t){if(Si&&!Si.destroyed&&!Si.injector.get(Di,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Si=t.get(Pi);const e=t.get(ti,null);e&&e.forEach(t=>t())}(vs.create({providers:t,name:r}))}return function(t){const e=Mi();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(s)}}function Mi(){return Si&&!Si.destroyed?Si:null}let Pi=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new Ci:("zone.js"===t?void 0:t)||new mi({enableLongStackTrace:(Ai=!0,Ii),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),n}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),r=[{provide:mi,useValue:n}];return n.run(()=>{const e=vs.create({providers:r,parent:this.injector,name:t.moduleType.name}),s=t.create(e),o=s.injector.get(Pn,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular(()=>{const t=n.onError.subscribe({next:t=>{o.handleError(t)}});s.onDestroy(()=>{Ri(this._modules,s),t.unsubscribe()})}),function(t,e,n){try{const r=n();return Fs(r)?r.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}(o,n,()=>{const t=s.injector.get(Ko);return t.runInitializers(),t.donePromise.then(()=>(Us(s.injector.get(si,zs)||zs),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const n=Fi({},e);return function(t,e,n){const r=new Uo(n);return Promise.resolve(r)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(Ni);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${Z(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(xn(vs))},t.\u0275prov=J({token:t,factory:t.\u0275fac}),t})();function Fi(t,e){return Array.isArray(e)?e.reduce(Fi,t):Object.assign(Object.assign({},t),e)}let Ni=(()=>{class t{constructor(t,e,n,r,s){this._zone=t,this._injector=e,this._exceptionHandler=n,this._componentFactoryResolver=r,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new y(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),i=new y(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{mi.assertNotInAngularZone(),gi(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{mi.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=function(...t){let e=Number.POSITIVE_INFINITY,n=null,r=t[t.length-1];var s;return(s=r)&&"function"==typeof s.schedule?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof r&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof y?t[0]:function(t=Number.POSITIVE_INFINITY){return M(_,t)}(e)(function(t,e){return e?function(t,e){return new y(n=>{const r=new h;let s=0;return r.add(e.schedule(function(){s!==t.length?(n.next(t[s++]),n.closed||r.add(this.schedule())):n.complete()})),r})}(t,e):new y(T(t))}(t,n))}(o,i.pipe(t=>{return N()((e=B,function(t){let n;n="function"==typeof e?e:function(){return e};const r=Object.create(t,V);return r.source=t,r.subjectFactory=n,r})(t));var e}))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof qs?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const r=n.isBoundToModule?void 0:this._injector.get(Oo),s=n.create(vs.NULL,[],e||n.selector,r),o=s.location.nativeElement,i=s.injector.get(xi,null),l=i&&s.injector.get(ki);return i&&l&&l.registerApplication(o,i),s.onDestroy(()=>{this.detachView(s.hostView),Ri(this.components,s),l&&l.unregisterApplication(o)}),this._loadComponent(s),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Ri(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(ni,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(xn(mi),xn(vs),xn(Pn),xn(Qs),xn(Ko))},t.\u0275prov=J({token:t,factory:t.\u0275fac}),t})();function Ri(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const ji=Oi(null,"core",[{provide:ei,useValue:"unknown"},{provide:Pi,deps:[vs]},{provide:ki,deps:[]},{provide:ri,deps:[]}]),Hi=[{provide:Ni,useClass:Ni,deps:[mi,vs,Pn,Qs,Ko]},{provide:Bo,deps:[mi],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Ko,useClass:Ko,deps:[[new Tn,Qo]]},{provide:fi,useClass:fi,deps:[]},Yo,{provide:yo,useFactory:function(){return Eo},deps:[]},{provide:wo,useFactory:function(){return So},deps:[]},{provide:si,useFactory:function(t){return Us(t=t||"undefined"!=typeof $localize&&$localize.locale||zs),t},deps:[[new Sn(si),new Tn,new In]]},{provide:oi,useValue:"USD"}];let Vi=(()=>{class t{constructor(t){}}return t.\u0275fac=function(e){return new(e||t)(xn(Ni))},t.\u0275mod=Mt({type:t}),t.\u0275inj=Y({providers:Hi}),t})(),Li=null;function Bi(){return Li}const $i=new dn("DocumentToken");var Zi=(()=>((Zi=Zi||{})[Zi.Zero=0]="Zero",Zi[Zi.One=1]="One",Zi[Zi.Two=2]="Two",Zi[Zi.Few=3]="Few",Zi[Zi.Many=4]="Many",Zi[Zi.Other=5]="Other",Zi))();class zi{}let Wi=(()=>{class t extends zi{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(function(t){return function(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=$s(e);if(n)return n;const r=e.split("-")[0];if(n=$s(r),n)return n;if("en"===r)return Ls;throw new Error(`Missing locale data for the locale "${t}".`)}(t)[Zs.PluralCase]}(e||this.locale)(t)){case Zi.Zero:return"zero";case Zi.One:return"one";case Zi.Two:return"two";case Zi.Few:return"few";case Zi.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(xn(si))},t.\u0275prov=J({token:t,factory:t.\u0275fac}),t})(),Ui=(()=>{class t{constructor(t,e,n,r){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(xs(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${Z(t.item)}`);this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(Is(yo),Is(wo),Is(Xs),Is(eo))},t.\u0275dir=Ft({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class qi{constructor(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Gi=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${n}' of type '${t=n,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,r)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new qi(null,this._ngForOf,-1,-1),null===r?void 0:r),s=new Qi(t,n);e.push(s)}else if(null==r)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const s=this._viewContainer.get(n);this._viewContainer.move(s,r);const o=new Qi(t,s);e.push(o)}});for(let n=0;n<e.length;n++)this._perViewChange(e[n].view,e[n].record);for(let n=0,r=this._viewContainer.length;n<r;n++){const t=this._viewContainer.get(n);t.context.index=n,t.context.count=r,t.context.ngForOf=this._ngForOf}t.forEachIdentityChange(t=>{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(Is(Po),Is(Io),Is(yo))},t.\u0275dir=Ft({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class Qi{constructor(t,e){this.record=t,this.view=e}}let Ki=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Mt({type:t}),t.\u0275inj=Y({providers:[{provide:zi,useClass:Wi}]}),t})();class Ji extends class extends class{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){var t;t=new Ji,Li||(Li=t)}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=(Xi=Xi||document.querySelector("base"),Xi?Xi.getAttribute("href"):null);return null==e?null:function(t){Yi=Yi||document.createElement("a"),Yi.setAttribute("href",t);const e=Yi.pathname;return"/"===e.charAt(0)?e:`/${e}`}(e)}resetBaseElement(){Xi=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return function(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[r,s]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(r.trim()===e)return decodeURIComponent(s)}return null}(document.cookie,t)}}let Yi,Xi=null;const tl=new dn("TRANSITION_ID"),el=[{provide:Qo,useFactory:function(t,e,n){return()=>{n.get(Ko).donePromise.then(()=>{const n=Bi();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[tl,$i,vs],multi:!0}];class nl{static init(){var t;t=new nl,Ti=t}addToWindow(t){_t.getAngularTestability=(e,n=!0)=>{const r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},_t.getAllAngularTestabilities=()=>t.getAllTestabilities(),_t.getAllAngularRootElements=()=>t.getAllRootElements(),_t.frameworkStabilizers||(_t.frameworkStabilizers=[]),_t.frameworkStabilizers.push(t=>{const e=_t.getAllAngularTestabilities();let n=e.length,r=!1;const s=function(e){r=r||e,n--,0==n&&t(r)};e.forEach(function(t){t.whenStable(s)})})}findTestabilityInTree(t,e,n){if(null==e)return null;const r=t.getTestability(e);return null!=r?r:n?Bi().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let rl=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=J({token:t,factory:t.\u0275fac}),t})();const sl=new dn("EventManagerPlugins");let ol=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let r=0;r<n.length;r++){const e=n[r];if(e.supports(t))return this._eventNameToPlugin.set(t,e),e}throw new Error(`No event manager plugin found for event ${t}`)}}return t.\u0275fac=function(e){return new(e||t)(xn(sl),xn(mi))},t.\u0275prov=J({token:t,factory:t.\u0275fac}),t})();class il{constructor(t){this._doc=t}addGlobalEventListener(t,e,n){const r=Bi().getGlobalEventTarget(this._doc,t);if(!r)throw new Error(`Unsupported event target ${r} for event ${e}`);return this.addEventListener(r,e,n)}}let ll=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=J({token:t,factory:t.\u0275fac}),t})(),ul=(()=>{class t extends ll{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,e,n){t.forEach(t=>{const r=this._doc.createElement("style");r.textContent=t,n.push(e.appendChild(r))})}addHost(t){const e=[];this._addStylesToHost(this._stylesSet,t,e),this._hostNodes.set(t,e)}removeHost(t){const e=this._hostNodes.get(t);e&&e.forEach(al),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((e,n)=>{this._addStylesToHost(t,n,e)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(al))}}return t.\u0275fac=function(e){return new(e||t)(xn($i))},t.\u0275prov=J({token:t,factory:t.\u0275fac}),t})();function al(t){Bi().remove(t)}const cl={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},hl=/%COMP%/g;function dl(t,e,n){for(let r=0;r<e.length;r++){let s=e[r];Array.isArray(s)?dl(t,s,n):(s=s.replace(hl,t),n.push(s))}return n}function fl(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let pl=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new gl(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case dt.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new ml(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case 1:case dt.ShadowDom:return new _l(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=dl(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(xn(ol),xn(ul),xn(Jo))},t.\u0275prov=J({token:t,factory:t.\u0275fac}),t})();class gl{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(cl[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,r){if(r){e=r+":"+e;const s=cl[r];s?t.setAttributeNS(s,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const r=cl[n];r?t.removeAttributeNS(r,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,r){r&(Rn.DashCase|Rn.Important)?t.style.setProperty(e,n,r&Rn.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&Rn.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,fl(n)):this.eventManager.addEventListener(t,e,fl(n))}}class ml extends gl{constructor(t,e,n,r){super(t),this.component=n;const s=dl(r+"-"+n.id,n.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(hl,r+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(hl,r+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class _l extends gl{constructor(t,e,n,r){super(t),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=dl(r.id,r.styles,[]);for(let o=0;o<s.length;o++){const t=document.createElement("style");t.textContent=s[o],this.shadowRoot.appendChild(t)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,n){return super.insertBefore(this.nodeOrShadowRoot(t),e,n)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let yl=(()=>{class t extends il{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(xn($i))},t.\u0275prov=J({token:t,factory:t.\u0275fac}),t})();const vl=["alt","control","meta","shift"],wl={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},bl={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Cl={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let xl=(()=>{class t extends il{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,r){const s=t.parseEventName(n),o=t.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Bi().onAndCancel(e,s.domEventName,o))}static parseEventName(e){const n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const s=t._normalizeKey(n.pop());let o="";if(vl.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),o+=t+".")}),o+=s,0!=n.length||0===s.length)return null;const i={};return i.domEventName=r,i.fullKey=o,i}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&bl.hasOwnProperty(e)&&(e=bl[e]))}return wl[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),vl.forEach(r=>{r!=n&&(0,Cl[r])(t)&&(e+=r+".")}),e+=n,e}static eventCallback(e,n,r){return s=>{t.getEventFullKey(s)===e&&r.runGuarded(()=>n(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(xn($i))},t.\u0275prov=J({token:t,factory:t.\u0275fac}),t})();const kl=Oi(ji,"browser",[{provide:ei,useValue:"browser"},{provide:ti,useValue:function(){Ji.makeCurrent(),nl.init()},multi:!0},{provide:$i,useFactory:function(){return function(t){Kt=t}(document),document},deps:[]}]),El=[[],{provide:ls,useValue:"root"},{provide:Pn,useFactory:function(){return new Pn},deps:[]},{provide:sl,useClass:yl,multi:!0,deps:[$i,mi,ei]},{provide:sl,useClass:xl,multi:!0,deps:[$i]},[],{provide:pl,useClass:pl,deps:[ol,ul,Jo]},{provide:to,useExisting:pl},{provide:ll,useExisting:ul},{provide:ul,useClass:ul,deps:[$i]},{provide:xi,useClass:xi,deps:[mi]},{provide:ol,useClass:ol,deps:[sl,mi]},{provide:class{},useClass:rl,deps:[]},[]];let Sl=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:Jo,useValue:e.appId},{provide:tl,useExisting:Jo},el]}}}return t.\u0275fac=function(e){return new(e||t)(xn(t,12))},t.\u0275mod=Mt({type:t}),t.\u0275inj=Y({providers:El,imports:[Ki,Vi]}),t})();"undefined"!=typeof window&&window;let Tl=(()=>{class t{constructor(){this.isPainting=!1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=J({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class Il{constructor(t,e,n=!1,r=!1,s=!1,o=!1,i,l=!1){this.column=t,this.row=e,this.isStart=n,this.isEnd=r,this.isVisited=s,this.isClosed=o,this.parent=i,this.isWall=l}}class Al{constructor(t=[],e=[]){this.traversal=t,this.path=e}}let Dl=(()=>{class t{constructor(){this.initialPercentage=.75,this.iterations=25,this.survive=new Set([1,2,3,4]),this.birth=new Set([3])}generateMaze(t,e){let n=[];for(let r=0;r<e;r++){n.push([]);for(let e=0;e<t;e++)n[r][e]=Math.random()>this.initialPercentage?1:0}for(let r=0;r<this.iterations;r++)this.advance(n);return n}advance(t){let e=Array.from(Array(t.length),()=>new Array(t[0].length));for(let n of e)n.fill(0);for(let n=0;n<t.length;n++)for(let r=0;r<t[0].length;r++)n>0&&r>0&&(e[n][r]+=t[n-1][r-1]),n>0&&(e[n][r]+=t[n-1][r]),r>0&&(e[n][r]+=t[n][r-1]),n<t.length-1&&r<t[0].length-1&&(e[n][r]+=t[n+1][r+1]),n<t.length-1&&(e[n][r]+=t[n+1][r]),r<t[0].length-1&&(e[n][r]+=t[n][r+1]),n>0&&r<t[0].length-1&&(e[n][r]+=t[n-1][r+1]),n<t.length-1&&r>0&&(e[n][r]+=t[n+1][r-1]);for(let n=0;n<t.length;n++)for(let r=0;r<t[0].length;r++)t[n][r]=0==t[n][r]?this.birth.has(e[n][r])?1:0:this.survive.has(e[n][r])?1:0}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=J({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ol=(()=>{class t{constructor(t){this.mazeGeneratorService=t,this.lines=[{x1:85.31,y1:9.67,x2:98.23,y2:9.67}],this.rows=25,this.columns=44,this.map=[],this.setup()}clear(){for(let t of this.map)for(let e of t)e.isVisited=!1,e.isClosed=!1}clearWalls(){for(let t of this.map)for(let e of t)e.isWall=!1}setup(){this.map=[];for(let t=0;t<this.rows;t++){let e=[];for(let n=0;n<this.columns;n++)e.push(new Il(n,t,t==Math.trunc(this.rows/2)&&n==Math.trunc(this.columns/4),t==Math.trunc(this.rows/2)&&n==Math.trunc(this.columns/4*3),!1,!1,void 0,Math.trunc(this.rows/4)<t&&Math.trunc(this.rows/4*3)>t&&n==Math.trunc(this.columns/2)));this.map.push(e)}}getMap(){return this.map}manhattan(t,e){return Math.abs(t.column-e.column)+Math.abs(t.row-e.row)}euclidean(t,e){return Math.sqrt(Math.pow(t.row-e.row,2)+Math.pow(t.column-e.column,2))}bestFirstSearch(t){return this.solveAStar(t,(t,e)=>1e6*this.euclidean(t,e))}depthFirstSearch(t){return this.solveBreadthFirst(t,!0)}solveAStar(t,e){let n=t?this.euclidean:this.manhattan;function r(t,e,n){let r=[];return t.row>0&&r.push(e[t.row-1][t.column]),t.column<e[0].length-1&&r.push(e[t.row][t.column+1]),t.row<e.length-1&&r.push(e[t.row+1][t.column]),t.column>0&&r.push(e[t.row][t.column-1]),n&&(t.row>0&&t.column>0&&r.push(e[t.row-1][t.column-1]),t.row>0&&t.column<e[0].length-1&&r.push(e[t.row-1][t.column+1]),t.row<e.length-1&&t.column<e[0].length-1&&r.push(e[t.row+1][t.column+1]),t.row<e.length-1&&t.column>0&&r.push(e[t.row+1][t.column-1])),r}null!=e&&(n=e);const s=new Al;let o=this.getStart(),i=this.getEnd(),l=[],u=new Map,a=new Map;for(let c=0;c<this.rows;c++)for(let t=0;t<this.columns;t++)u.set(this.map[c][t],1/0),a.set(this.map[c][t],1/0);for(o.isVisited=!0,l.push(o),u.set(o,0),a.set(o,n(o,i));l.length>0;){let e=l[0];for(let t=1;t<l.length;t++)a.get(e)>a.get(l[t])&&(e=l[t]);if(l=l.filter(t=>t!==e),e.isClosed=!0,e===i){for(;null!=e.parent;)s.path.push(e),e=e.parent;break}for(let o of r(e,this.map,t)){if(o.isWall||o.isClosed)continue;let t=u.get(e)+(e.column===o.column||e.row===o.row?1:Math.sqrt(2));(!o.isVisited||t<u.get(o))&&(o.parent=e,u.set(o,t),a.set(o,t+n(o,i)),o.isVisited?(l=l.filter(t=>t!==o),l.push(o)):(s.traversal.push(o),l.push(o),o.isVisited=!0))}}return s}solveBreadthFirst(t,e=!1){const n=new Al;let r=this.getStart();for(let o=0;o<this.map.length;o++)for(let t=0;t<this.map[o].length;t++)if(this.map[o][t].isStart){r=this.map[o][t];break}let s=[];for(s.push(r);0!=s.length;){let r=e?s.pop():s.shift();if(r.isVisited=!0,n.traversal.push(r),r.isEnd){for(;null!=r.parent;)n.path.push(r),r=r.parent;break}this.processNeighbor(r,r.row,r.column+1,s),t&&this.processNeighbor(r,r.row+1,r.column+1,s),this.processNeighbor(r,r.row+1,r.column,s),t&&this.processNeighbor(r,r.row+1,r.column-1,s),this.processNeighbor(r,r.row,r.column-1,s),t&&this.processNeighbor(r,r.row-1,r.column-1,s),this.processNeighbor(r,r.row-1,r.column,s),t&&this.processNeighbor(r,r.row-1,r.column+1,s)}return n}getStart(){for(let t=0;t<this.map.length;t++)for(let e=0;e<this.map[t].length;e++)if(this.map[t][e].isStart)return this.map[t][e];return this.map[0][0]}getEnd(){for(let t=0;t<this.map.length;t++)for(let e=0;e<this.map[t].length;e++)if(this.map[t][e].isEnd)return this.map[t][e];return this.map[0][0]}processNeighbor(t,e,n,r){if(e<0||n<0||e>=this.rows||n>=this.columns)return;let s=this.map[e][n];s.isVisited||s.isWall||(s.isVisited=!0,s.parent=t,r.push(s))}generateMaze(){let t=!0;for(;t;){let e=this.mazeGeneratorService.generateMaze(this.columns,this.rows);for(let n=0;n<this.map.length;n++){for(let t=0;t<this.map[n].length;t++)this.map[n][t].isEnd||this.map[n][t].isStart||(this.map[n][t].isWall=1==e[n][t]);this.clear(),t=0==this.solveBreadthFirst(!1).path.length}}}getLines(){return this.lines}}return t.\u0275fac=function(e){return new(e||t)(xn(Dl))},t.\u0275prov=J({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ml=(()=>{class t{constructor(t){this.pathfinderService=t,this.timeouts=[],this.diagonalMovement=!1}ngOnInit(){}generateMaze(){return this.resetPath(),this.pathfinderService.generateMaze()}solveBreadthFirst(){this.resetPath(),this.animate(this.pathfinderService.solveBreadthFirst(this.diagonalMovement))}solveAStar(){this.resetPath(),this.animate(this.pathfinderService.solveAStar(this.diagonalMovement))}solveBestFirst(){this.resetPath(),this.animate(this.pathfinderService.bestFirstSearch(this.diagonalMovement))}solveDepthFirst(){this.resetPath(),this.animate(this.pathfinderService.solveBreadthFirst(this.diagonalMovement,!0))}animate(t){for(let e=0;e<t.traversal.length;e++)if(this.timeouts.push(setTimeout(function(){let n=t.traversal[e],r=document.getElementById(n.column+"-"+n.row);null==r||r.classList.add("visited")},25*e)),e==t.traversal.length-1)for(let n=0;n<t.path.length;n++)this.timeouts.push(setTimeout(function(){let e=t.path[n],r=document.getElementById(e.column+"-"+e.row);null==r||r.classList.add("path")},25*e+50*n));this.pathfinderService.lines=[];for(let e=1;e<t.path.length;e++){let n=document.getElementById(t.path[e-1].column+"-"+t.path[e-1].row),r=document.getElementById(t.path[e].column+"-"+t.path[e].row);this.pathfinderService.lines.push({x1:n.getBoundingClientRect().left,y1:n.getBoundingClientRect().top,x2:r.getBoundingClientRect().left,y2:r.getBoundingClientRect().top})}}resetPath(){this.pathfinderService.clear();let t=document.getElementsByClassName("visited");for(;t.length>0;)t[0].classList.remove("path"),t[0].classList.remove("visited");for(;this.timeouts.length>0;)clearTimeout(this.timeouts.pop())}resetWalls(){this.pathfinderService.clearWalls(),this.resetPath();let t=document.getElementsByClassName("wall");for(;t.length>0;)t[0].classList.remove("wall")}onDiagonalToggle(t){this.diagonalMovement=t}}return t.\u0275fac=function(e){return new(e||t)(Is(Ol))},t.\u0275cmp=It({type:t,selectors:[["app-topbar"]],decls:45,vars:1,consts:[[2,"width","100px",3,"click"],[2,"background-color","darkorange","height","50px","width","50px","text-align","center","vertical-align","middle","line-height","50px"],[2,"background-color","mediumpurple","height","50px","width","50px","text-align","center","vertical-align","middle","line-height","50px"],[2,"background-color","rgba(90, 245, 56, 0.75)","height","50px","width","50px","text-align","center","vertical-align","middle","line-height","50px"],[2,"background-color","#404040","color","white","height","50px","width","50px","text-align","center","vertical-align","middle","line-height","50px"],[2,"background-color","deepskyblue","height","50px","width","50px","text-align","center","vertical-align","middle","line-height","50px"],["type","checkbox","id","diagonal","name","diagonal",3,"checked","change"],["diagonal",""],["for","diagonal"]],template:function(t,e){if(1&t){const t=ae();Os(0,"div"),Os(1,"table"),Os(2,"tr"),Os(3,"td"),Os(4,"button",0),Ns("click",function(){return e.solveBreadthFirst()}),Hs(5,"BFS"),Ms(),Os(6,"button",0),Ns("click",function(){return e.solveAStar()}),Hs(7,"A*"),Ms(),Os(8,"button",0),Ns("click",function(){return e.solveBestFirst()}),Hs(9,"Best First"),Ms(),Os(10,"button",0),Ns("click",function(){return e.solveDepthFirst()}),Hs(11,"DFS"),Ms(),Ms(),Os(12,"td"),Os(13,"div",1),Hs(14,"Start"),Ms(),Ms(),Os(15,"td"),Os(16,"div",2),Hs(17,"Target"),Ms(),Ms(),Os(18,"td"),Os(19,"div",3),Hs(20,"Search"),Ms(),Ms(),Os(21,"td"),Os(22,"div",4),Hs(23,"Wall"),Ms(),Ms(),Os(24,"td"),Os(25,"div",5),Hs(26,"Path"),Ms(),Ms(),Ms(),Os(27,"tr"),Os(28,"td"),Os(29,"button",0),Ns("click",function(){return e.generateMaze()}),Hs(30,"Generate Maze"),Ms(),Ms(),Ms(),Os(31,"tr"),Os(32,"td"),Os(33,"button",0),Ns("click",function(){return e.resetPath()}),Hs(34," Reset Path"),Ms(),Ms(),Ms(),Os(35,"tr"),Os(36,"td"),Os(37,"button",0),Ns("click",function(){return e.resetWalls()}),Hs(38,"Reset Walls"),Ms(),Ms(),Ms(),Os(39,"tr"),Os(40,"td"),Os(41,"input",6,7),Ns("change",function(){le.lFrame.contextLView=t;const n=le.lFrame.contextLView[62];return e.onDiagonalToggle(n.checked)}),Ms(),Os(43,"label",8),Hs(44,"Allow Diagonal Movement"),Ms(),Ms(),Ms(),Ms(),Ms()}2&t&&(vr(41),As("checked",e.diagonalMovement))},styles:["div[_ngcontent-%COMP%]{display:inline-block}"]}),t})();const Pl=function(t,e,n,r){return{wall:t,normal:e,start:n,end:r}};let Fl=(()=>{class t{constructor(t,e){this.appService=t,this.pathfinderService=e,this.isWall=!1,this.row=0,this.column=0,this.isStart=!1,this.isEnd=!1}ngOnInit(){}mouseEnter(){this.appService.isPainting&&this.flipWall()}mouseDown(){this.flipWall()}flipWall(){this.isStart||this.isEnd||(this.isWall=!this.isWall,this.pathfinderService.getMap()[this.row][this.column].isWall=this.isWall)}getId(){return this.column+"-"+this.row}}return t.\u0275fac=function(e){return new(e||t)(Is(Tl),Is(Ol))},t.\u0275cmp=It({type:t,selectors:[["app-cell"]],inputs:{isWall:"isWall",row:"row",column:"column",isStart:"isStart",isEnd:"isEnd"},decls:2,vars:7,consts:[[3,"ngClass","id","mousedown","mouseover"]],template:function(t,e){var n,r,s,o,i,l,u;1&t&&(Os(0,"div",0),Ns("mousedown",function(){return e.mouseDown()})("mouseover",function(){return e.mouseEnter()}),Hs(1,"x"),Ms()),2&t&&As("ngClass",(n=2,r=Pl,s=e.isWall,o=!e.isWall,i=e.isStart,l=e.isEnd,function(t,e,n,r,s,o,i,l,u){const a=e+n;return function(t,e,n,r,s,o){const i=Ss(t,e,n,r);return Ss(t,e+2,s,o)||i}(t,a,s,o,i,l)?function(t,e,n){return t[e]=n}(t,a+4,u?r.call(u,s,o,i,l):r(s,o,i,l)):function(t,e){const n=t[e];return n===yr?void 0:n}(t,a+4)}(ae(),function(){const t=le.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}(),n,r,s,o,i,l,u)))("id",e.getId())},directives:[Ui],styles:["div[_ngcontent-%COMP%]{background-color:#fff;color:#0000;user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none;width:30px;height:30px}.start[_ngcontent-%COMP%]{background-color:#ff8c00}.end[_ngcontent-%COMP%]{background-color:#9370db}.wall[_ngcontent-%COMP%]{position:relative;z-index:99;background-color:#404040;animation-name:wallAnimation;animation-duration:.2s;animation-timing-function:ease-out;animation-delay:0;animation-direction:alternate;animation-iteration-count:1;animation-fill-mode:forwards;animation-play-state:running;outline:1px solid #404040}@keyframes wallAnimation{0%{transform:scale(1.15)}to{transform:scale(1)}}.visited[_ngcontent-%COMP%]:not(.start):not(.end):not(.wall){animation-name:visitedAnimation;animation-duration:.5s;animation-timing-function:ease-out;animation-delay:0;animation-direction:alternate;animation-iteration-count:1;animation-fill-mode:forwards;animation-play-state:running}.path[_ngcontent-%COMP%]:not(.start):not(.end):not(.wall){animation-name:pathAnimation;animation-duration:.75s;animation-timing-function:ease-in;animation-delay:0;animation-direction:alternate;animation-iteration-count:1;animation-fill-mode:forwards;animation-play-state:running}@keyframes pathAnimation{0%{transform:scale(.5);background-color:#00526a}50%{transform:scale(1.2);background-color:#fff}to{transform:scale(1);background-color:#00bfff}}@keyframes visitedAnimation{0%{transform:scale(.7);background-color:#e30000bf}50%{background-color:#e0ef0fbf}75%{transform:scale(1.2);background-color:#74d900bf}to{transform:scale(1);background-color:#7ff867bf}}"]}),t})();function Nl(t,e){if(1&t&&(Os(0,"td"),Ps(1,"app-cell",3),Ms()),2&t){const t=e.$implicit;vr(1),As("column",t.column)("row",t.row)("isStart",t.isStart)("isEnd",t.isEnd)("isWall",t.isWall)}}function Rl(t,e){if(1&t&&(Os(0,"tr"),Ts(1,Nl,2,5,"td",2),Ms()),2&t){const t=e.$implicit;vr(1),As("ngForOf",t)}}let jl=(()=>{class t{constructor(t,e){this.appService=t,this.pathfinderService=e}getLines(){return this.pathfinderService.getLines()}getMap(){return this.pathfinderService.getMap()}stopPainting(){this.appService.isPainting=!1}startPainting(){this.appService.isPainting=!0}}return t.\u0275fac=function(e){return new(e||t)(Is(Tl),Is(Ol))},t.\u0275cmp=It({type:t,selectors:[["app-root"]],decls:6,vars:1,consts:[[3,"mousedown","mouseup"],["cellspacing","1","border","0","align","center","cellpadding","0",2,"background-color","#a8a8a8"],[4,"ngFor","ngForOf"],[3,"column","row","isStart","isEnd","isWall"]],template:function(t,e){1&t&&(Os(0,"div",0),Ns("mousedown",function(){return e.startPainting()})("mouseup",function(){return e.stopPainting()}),Os(1,"div"),Ps(2,"app-topbar"),Os(3,"table",1),Ts(4,Rl,2,1,"tr",2),Ms(),Ms(),Ps(5,"div"),Ms()),2&t&&(vr(4),As("ngForOf",e.getMap()))},directives:[Ml,Gi,Fl],styles:[""]}),t})(),Hl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Mt({type:t,bootstrap:[jl]}),t.\u0275inj=Y({providers:[],imports:[[Sl,Ki]]}),t})();(function(){if(Ai)throw new Error("Cannot enable prod mode after platform setup.");Ii=!1})(),kl().bootstrapModule(Hl).catch(t=>console.error(t))}},t=>{"use strict";t(t.s=510)}]);