| 1 |
- (self.webpackChunkclient=self.webpackChunkclient||[]).push([[179],{255:ii=>{function Gn(si){return Promise.resolve().then(()=>{var wn=new Error("Cannot find module '"+si+"'");throw wn.code="MODULE_NOT_FOUND",wn})}Gn.keys=()=>[],Gn.resolve=Gn,Gn.id=255,ii.exports=Gn},795:(ii,Gn,si)=>{"use strict";function wn(t){return"function"==typeof t}let lu=!1;const Lt={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else lu&&console.log("RxJS: Back to a better error behavior. Thank you. <3");lu=t},get useDeprecatedSynchronousErrorHandling(){return lu}};function Hr(t){setTimeout(()=>{throw t},0)}const Ps={closed:!0,next(t){},error(t){if(Lt.useDeprecatedSynchronousErrorHandling)throw t;Hr(t)},complete(){}},Fs=Array.isArray||(t=>t&&"number"==typeof t.length);function uu(t){return null!==t&&"object"==typeof t}const ks=(()=>{function t(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((n,r)=>`${r+1}) ${n.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return t.prototype=Object.create(Error.prototype),t})();class me{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:r,_unsubscribe:o,_subscriptions:i}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof me)n.remove(this);else if(null!==n)for(let s=0;s<n.length;++s)n[s].remove(this);if(wn(o)){r&&(this._unsubscribe=void 0);try{o.call(this)}catch(s){e=s instanceof ks?Bh(s.errors):[s]}}if(Fs(i)){let s=-1,a=i.length;for(;++s<a;){const l=i[s];if(uu(l))try{l.unsubscribe()}catch(u){e=e||[],u instanceof ks?e=e.concat(Bh(u.errors)):e.push(u)}}}if(e)throw new ks(e)}add(e){let n=e;if(!e)return me.EMPTY;switch(typeof e){case"function":n=new me(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof me)){const i=n;n=new me,n._subscriptions=[i]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:r}=n;if(null===r)n._parentOrParents=this;else if(r instanceof me){if(r===this)return n;n._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return n;r.push(this)}const o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n}remove(e){const n=this._subscriptions;if(n){const r=n.indexOf(e);-1!==r&&n.splice(r,1)}}}var t;function Bh(t){return t.reduce((e,n)=>e.concat(n instanceof ks?n.errors:n),[])}me.EMPTY=((t=new me).closed=!0,t);const Vs="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class he extends me{constructor(e,n,r){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=Ps;break;case 1:if(!e){this.destination=Ps;break}if("object"==typeof e){e instanceof he?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new Hh(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new Hh(this,e,n,r)}}[Vs](){return this}static create(e,n,r){const o=new he(e,n,r);return o.syncErrorThrowable=!1,o}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class Hh extends he{constructor(e,n,r,o){super(),this._parentSubscriber=e;let i,s=this;wn(n)?i=n:n&&(i=n.next,r=n.error,o=n.complete,n!==Ps&&(s=Object.create(n),wn(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=i,this._error=r,this._complete=o}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:n}=this;Lt.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?this.__tryOrSetError(n,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:n}=this,{useDeprecatedSynchronousErrorHandling:r}=Lt;if(this._error)r&&n.syncErrorThrowable?(this.__tryOrSetError(n,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(n.syncErrorThrowable)r?(n.syncErrorValue=e,n.syncErrorThrown=!0):Hr(e),this.unsubscribe();else{if(this.unsubscribe(),r)throw e;Hr(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const n=()=>this._complete.call(this._context);Lt.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,n){try{e.call(this._context,n)}catch(r){if(this.unsubscribe(),Lt.useDeprecatedSynchronousErrorHandling)throw r;Hr(r)}}__tryOrSetError(e,n,r){if(!Lt.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{n.call(this._context,r)}catch(o){return Lt.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=o,e.syncErrorThrown=!0,!0):(Hr(o),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const ai="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ls(t){return t}let le=(()=>{class t{constructor(n){this._isScalar=!1,n&&(this._subscribe=n)}lift(n){const r=new t;return r.source=this,r.operator=n,r}subscribe(n,r,o){const{operator:i}=this,s=function(t,e,n){if(t){if(t instanceof he)return t;if(t[Vs])return t[Vs]()}return t||e||n?new he(t,e,n):new he(Ps)}(n,r,o);if(s.add(i?i.call(s,this.source):this.source||Lt.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),Lt.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(n){try{return this._subscribe(n)}catch(r){Lt.useDeprecatedSynchronousErrorHandling&&(n.syncErrorThrown=!0,n.syncErrorValue=r),function(t){for(;t;){const{closed:e,destination:n,isStopped:r}=t;if(e||r)return!1;t=n&&n instanceof he?n:null}return!0}(n)?n.error(r):console.warn(r)}}forEach(n,r){return new(r=$h(r))((o,i)=>{let s;s=this.subscribe(a=>{try{n(a)}catch(l){i(l),s&&s.unsubscribe()}},i,o)})}_subscribe(n){const{source:r}=this;return r&&r.subscribe(n)}[ai](){return this}pipe(...n){return 0===n.length?this:function(t){return 0===t.length?Ls:1===t.length?t[0]:function(n){return t.reduce((r,o)=>o(r),n)}}(n)(this)}toPromise(n){return new(n=$h(n))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return t.create=e=>new t(e),t})();function $h(t){if(t||(t=Lt.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const Ur=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class Nb extends me{constructor(e,n){super(),this.subject=e,this.subscriber=n,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,n=e.observers;if(this.subject=null,!n||0===n.length||e.isStopped||e.closed)return;const r=n.indexOf(this.subscriber);-1!==r&&n.splice(r,1)}}class Gh extends he{constructor(e){super(e),this.destination=e}}let Mn=(()=>{class t extends le{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[Vs](){return new Gh(this)}lift(n){const r=new Wh(this,this);return r.operator=n,r}next(n){if(this.closed)throw new Ur;if(!this.isStopped){const{observers:r}=this,o=r.length,i=r.slice();for(let s=0;s<o;s++)i[s].next(n)}}error(n){if(this.closed)throw new Ur;this.hasError=!0,this.thrownError=n,this.isStopped=!0;const{observers:r}=this,o=r.length,i=r.slice();for(let s=0;s<o;s++)i[s].error(n);this.observers.length=0}complete(){if(this.closed)throw new Ur;this.isStopped=!0;const{observers:n}=this,r=n.length,o=n.slice();for(let i=0;i<r;i++)o[i].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(n){if(this.closed)throw new Ur;return super._trySubscribe(n)}_subscribe(n){if(this.closed)throw new Ur;return this.hasError?(n.error(this.thrownError),me.EMPTY):this.isStopped?(n.complete(),me.EMPTY):(this.observers.push(n),new Nb(this,n))}asObservable(){const n=new le;return n.source=this,n}}return t.create=(e,n)=>new Wh(e,n),t})();class Wh extends Mn{constructor(e,n){super(),this.destination=e,this.source=n}next(e){const{destination:n}=this;n&&n.next&&n.next(e)}error(e){const{destination:n}=this;n&&n.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:n}=this;return n?this.source.subscribe(e):me.EMPTY}}function js(t){return t&&"function"==typeof t.schedule}function Y(t,e){return function(r){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new Ob(t,e))}}class Ob{constructor(e,n){this.project=e,this.thisArg=n}call(e,n){return n.subscribe(new Pb(e,this.project,this.thisArg))}}class Pb extends he{constructor(e,n,r){super(e),this.project=n,this.count=0,this.thisArg=r||this}_next(e){let n;try{n=this.project.call(this.thisArg,e,this.count++)}catch(r){return void this.destination.error(r)}this.destination.next(n)}}const qh=t=>e=>{for(let n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()},Bs="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator",zh=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function Qh(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const cu=t=>{if(t&&"function"==typeof t[ai])return(t=>e=>{const n=t[ai]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)})(t);if(zh(t))return qh(t);if(Qh(t))return(t=>e=>(t.then(n=>{e.closed||(e.next(n),e.complete())},n=>e.error(n)).then(null,Hr),e))(t);if(t&&"function"==typeof t[Bs])return(t=>e=>{const n=t[Bs]();for(;;){let r;try{r=n.next()}catch(o){return e.error(o),e}if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e})(t);{const n=`You provided ${uu(t)?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(n)}};function du(t,e){return new le(n=>{const r=new me;let o=0;return r.add(e.schedule(function(){o!==t.length?(n.next(t[o++]),n.closed||r.add(this.schedule())):n.complete()})),r})}function Be(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[ai]}(t))return function(t,e){return new le(n=>{const r=new me;return r.add(e.schedule(()=>{const o=t[ai]();r.add(o.subscribe({next(i){r.add(e.schedule(()=>n.next(i)))},error(i){r.add(e.schedule(()=>n.error(i)))},complete(){r.add(e.schedule(()=>n.complete()))}}))})),r})}(t,e);if(Qh(t))return function(t,e){return new le(n=>{const r=new me;return r.add(e.schedule(()=>t.then(o=>{r.add(e.schedule(()=>{n.next(o),r.add(e.schedule(()=>n.complete()))}))},o=>{r.add(e.schedule(()=>n.error(o)))}))),r})}(t,e);if(zh(t))return du(t,e);if(function(t){return t&&"function"==typeof t[Bs]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new le(n=>{const r=new me;let o;return r.add(()=>{o&&"function"==typeof o.return&&o.return()}),r.add(e.schedule(()=>{o=t[Bs](),r.add(e.schedule(function(){if(n.closed)return;let i,s;try{const a=o.next();i=a.value,s=a.done}catch(a){return void n.error(a)}s?n.complete():(n.next(i),this.schedule())}))})),r})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof le?t:new le(cu(t))}class fu extends he{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class hu extends he{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function pu(t,e){if(e.closed)return;if(t instanceof le)return t.subscribe(e);let n;try{n=cu(t)(e)}catch(r){e.error(r)}return n}function He(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe(He((o,i)=>Be(t(o,i)).pipe(Y((s,a)=>e(o,s,i,a))),n)):("number"==typeof e&&(n=e),r=>r.lift(new Wb(t,n)))}class Wb{constructor(e,n=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=n}call(e,n){return n.subscribe(new qb(e,this.project,this.concurrent))}}class qb extends hu{constructor(e,n,r=Number.POSITIVE_INFINITY){super(e),this.project=n,this.concurrent=r,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let n;const r=this.index++;try{n=this.project(e,r)}catch(o){return void this.destination.error(o)}this.active++,this._innerSub(n)}_innerSub(e){const n=new fu(this),r=this.destination;r.add(n);const o=pu(e,n);o!==n&&r.add(o)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyComplete(){const e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function li(t=Number.POSITIVE_INFINITY){return He(Ls,t)}function gu(t,e){return e?du(t,e):new le(qh(t))}function mu(){return function(e){return e.lift(new Qb(e))}}class Qb{constructor(e){this.connectable=e}call(e,n){const{connectable:r}=this;r._refCount++;const o=new Kb(e,r),i=n.subscribe(o);return o.closed||(o.connection=r.connect()),i}}class Kb extends he{constructor(e,n){super(e),this.connectable=n}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const n=e._refCount;if(n<=0)return void(this.connection=null);if(e._refCount=n-1,n>1)return void(this.connection=null);const{connection:r}=this,o=e._connection;this.connection=null,o&&(!r||o===r)&&o.unsubscribe()}}class Kh extends le{constructor(e,n){super(),this.source=e,this.subjectFactory=n,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new me,e.add(this.source.subscribe(new Yb(this.getSubject(),this))),e.closed&&(this._connection=null,e=me.EMPTY)),e}refCount(){return mu()(this)}}const Jb=(()=>{const t=Kh.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 Yb extends Gh{constructor(e,n){super(e),this.connectable=n}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const n=e._connection;e._refCount=0,e._subject=null,e._connection=null,n&&n.unsubscribe()}}}function tw(){return new Mn}function X(t){for(let e in t)if(t[e]===X)return e;throw Error("Could not find renamed property on target object.")}function yu(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function $(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map($).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 _u(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const rw=X({__forward_ref__:X});function ie(t){return t.__forward_ref__=ie,t.toString=function(){return $(this())},t}function S(t){return Jh(t)?t():t}function Jh(t){return"function"==typeof t&&t.hasOwnProperty(rw)&&t.__forward_ref__===ie}class hr extends Error{constructor(e,n){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(e,n)),this.code=e}}function L(t){return"string"==typeof t?t:null==t?"":String(t)}function Ze(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():L(t)}function Hs(t,e){const n=e?` in ${e}`:"";throw new hr("201",`No provider for ${Ze(t)} found${n}`)}function ht(t,e){null==t&&function(t,e,n,r){throw new Error(`ASSERTION ERROR: ${t}`+(null==r?"":` [Expected=> ${n} ${r} ${e} <=Actual]`))}(e,t,null,"!=")}function O(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function at(t){return{providers:t.providers||[],imports:t.imports||[]}}function An(t){return Yh(t,Us)||Yh(t,Xh)}function Yh(t,e){return t.hasOwnProperty(e)?t[e]:null}function Zh(t){return t&&(t.hasOwnProperty(vu)||t.hasOwnProperty(cw))?t[vu]:null}const Us=X({\u0275prov:X}),vu=X({\u0275inj:X}),Xh=X({ngInjectableDef:X}),cw=X({ngInjectorDef:X});var T=(()=>((T=T||{})[T.Default=0]="Default",T[T.Host=1]="Host",T[T.Self=2]="Self",T[T.SkipSelf=4]="SkipSelf",T[T.Optional=8]="Optional",T))();let Du;function Wn(t){const e=Du;return Du=t,e}function ep(t,e,n){const r=An(t);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&T.Optional?null:void 0!==e?e:void Hs($(t),"Injector")}function qn(t){return{toString:t}.toString()}var Et=(()=>((Et=Et||{})[Et.OnPush=0]="OnPush",Et[Et.Default=1]="Default",Et))(),Ae=(()=>((Ae=Ae||{})[Ae.Emulated=0]="Emulated",Ae[Ae.None=2]="None",Ae[Ae.ShadowDom=3]="ShadowDom",Ae))();const fw="undefined"!=typeof globalThis&&globalThis,hw="undefined"!=typeof window&&window,pw="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,gw="undefined"!=typeof global&&global,ee=fw||gw||hw||pw,$r={},re=[],$s=X({\u0275cmp:X}),Eu=X({\u0275dir:X}),bu=X({\u0275pipe:X}),tp=X({\u0275mod:X}),mw=X({\u0275loc:X}),Sn=X({\u0275fac:X}),ui=X({__NG_ELEMENT_ID__:X});let yw=0;function Tn(t){return qn(()=>{const n={},r={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:n,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===Et.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||re,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||Ae.Emulated,id:"c",styles:t.styles||re,_:null,setInput:null,schemas:t.schemas||null,tView:null},o=t.directives,i=t.features,s=t.pipes;return r.id+=yw++,r.inputs=ip(t.inputs,n),r.outputs=ip(t.outputs),i&&i.forEach(a=>a(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(np):null,r.pipeDefs=s?()=>("function"==typeof s?s():s).map(rp):null,r})}function np(t){return Xe(t)||function(t){return t[Eu]||null}(t)}function rp(t){return function(t){return t[bu]||null}(t)}const op={};function bt(t){return qn(()=>{const e={type:t.type,bootstrap:t.bootstrap||re,declarations:t.declarations||re,imports:t.imports||re,exports:t.exports||re,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(op[t.id]=t.type),e})}function ip(t,e){if(null==t)return $r;const n={};for(const r in t)if(t.hasOwnProperty(r)){let o=t[r],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),n[o]=r,e&&(e[o]=i)}return n}const R=Tn;function lt(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Xe(t){return t[$s]||null}function wt(t,e){const n=t[tp]||null;if(!n&&!0===e)throw new Error(`Type ${$(t)} does not have '\u0275mod' property.`);return n}const H=11;function rn(t){return Array.isArray(t)&&"object"==typeof t[1]}function Bt(t){return Array.isArray(t)&&!0===t[1]}function Iu(t){return 0!=(8&t.flags)}function zs(t){return 2==(2&t.flags)}function Qs(t){return 1==(1&t.flags)}function Ht(t){return null!==t.template}function ww(t){return 0!=(512&t[2])}function _r(t,e){return t.hasOwnProperty(Sn)?t[Sn]:null}class ap{constructor(e,n,r){this.previousValue=e,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function We(){return lp}function lp(t){return t.type.prototype.ngOnChanges&&(t.setInput=Sw),Aw}function Aw(){const t=cp(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===$r)t.previous=e;else for(let r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e)}}function Sw(t,e,n,r){const o=cp(t)||function(t,e){return t[up]=e}(t,{previous:$r,current:null}),i=o.current||(o.current={}),s=o.previous,a=this.declaredInputs[n],l=s[a];i[a]=new ap(l&&l.currentValue,e,s===$r),t[r]=e}We.ngInherit=!0;const up="__ngSimpleChanges__";function cp(t){return t[up]||null}let Tu;function ye(t){return!!t.listen}const hp={createRenderer:(t,e)=>void 0!==Tu?Tu:"undefined"!=typeof document?document:void 0};function Ee(t){for(;Array.isArray(t);)t=t[0];return t}function Ks(t,e){return Ee(e[t])}function At(t,e){return Ee(e[t.index])}function Ru(t,e){return t.data[e]}function Qr(t,e){return t[e]}function gt(t,e){const n=e[t];return rn(n)?n:n[0]}function Nu(t){return 128==(128&t[2])}function Qn(t,e){return null==e?null:t[e]}function gp(t){t[18]=0}function Ou(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 P={lFrame:wp(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function mp(){return P.bindingsEnabled}function C(){return P.lFrame.lView}function Z(){return P.lFrame.tView}function Se(){let t=_p();for(;null!==t&&64===t.type;)t=t.parent;return t}function _p(){return P.lFrame.currentTNode}function on(t,e){const n=P.lFrame;n.currentTNode=t,n.isParent=e}function Pu(){return P.lFrame.isParent}function Js(){return P.isInCheckNoChangesMode}function Ys(t){P.isInCheckNoChangesMode=t}function et(){const t=P.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function sn(){return P.lFrame.bindingIndex}function Kr(){return P.lFrame.bindingIndex++}function xn(t){const e=P.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function $w(t,e){const n=P.lFrame;n.bindingIndex=n.bindingRootIndex=t,ku(e)}function ku(t){P.lFrame.currentDirectiveIndex=t}function Lu(t){P.lFrame.currentQueryIndex=t}function Ww(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function Ep(t,e,n){if(n&T.SkipSelf){let o=e,i=t;for(;!(o=o.parent,null!==o||n&T.Host||(o=Ww(i),null===o||(i=i[15],10&o.type))););if(null===o)return!1;e=o,t=i}const r=P.lFrame=bp();return r.currentTNode=e,r.lView=t,!0}function Zs(t){const e=bp(),n=t[1];P.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function bp(){const t=P.lFrame,e=null===t?null:t.child;return null===e?wp(t):e}function wp(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 Mp(){const t=P.lFrame;return P.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const Ip=Mp;function Xs(){const t=Mp();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 tt(){return P.lFrame.selectedIndex}function Kn(t){P.lFrame.selectedIndex=t}function _e(){const t=P.lFrame;return Ru(t.tView,t.selectedIndex)}function ea(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n<r;n++){const i=t.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:u,ngOnDestroy:c}=i;s&&(t.contentHooks||(t.contentHooks=[])).push(-n,s),a&&((t.contentHooks||(t.contentHooks=[])).push(n,a),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,a)),l&&(t.viewHooks||(t.viewHooks=[])).push(-n,l),u&&((t.viewHooks||(t.viewHooks=[])).push(n,u),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,u)),null!=c&&(t.destroyHooks||(t.destroyHooks=[])).push(n,c)}}function ta(t,e,n){Ap(t,e,3,n)}function na(t,e,n,r){(3&t[2])===n&&Ap(t,e,n,r)}function ju(t,e){let n=t[2];(3&n)===e&&(n&=2047,n+=1,t[2]=n)}function Ap(t,e,n,r){const i=null!=r?r:-1,s=e.length-1;let a=0;for(let l=void 0!==r?65535&t[18]:0;l<s;l++)if("number"==typeof e[l+1]){if(a=e[l],null!=r&&a>=r)break}else e[l]<0&&(t[18]+=65536),(a<i||-1==i)&&(e0(t,n,e,l),t[18]=(4294901760&t[18])+l+2),l++}function e0(t,e,n,r){const o=n[r]<0,i=n[r+1],a=t[o?-n[r]:n[r]];if(o){if(t[2]>>11<t[18]>>16&&(3&t[2])===e){t[2]+=2048;try{i.call(a)}finally{}}}else try{i.call(a)}finally{}}class pi{constructor(e,n,r){this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function ra(t,e,n){const r=ye(t);let o=0;for(;o<n.length;){const i=n[o];if("number"==typeof i){if(0!==i)break;o++;const s=n[o++],a=n[o++],l=n[o++];r?t.setAttribute(e,a,l,s):e.setAttributeNS(s,a,l)}else{const s=i,a=n[++o];Hu(s)?r&&t.setProperty(e,s,a):r?t.setAttribute(e,s,a):e.setAttribute(s,a),o++}}return o}function Sp(t){return 3===t||4===t||6===t}function Hu(t){return 64===t.charCodeAt(0)}function oa(t,e){if(null!==e&&0!==e.length)if(null===t||0===t.length)t=e.slice();else{let n=-1;for(let r=0;r<e.length;r++){const o=e[r];"number"==typeof o?n=o:0===n||Tp(t,n,o,null,-1===n||2===n?e[++r]:null)}}return t}function Tp(t,e,n,r,o){let i=0,s=t.length;if(-1===e)s=-1;else for(;i<t.length;){const a=t[i++];if("number"==typeof a){if(a===e){s=-1;break}if(a>e){s=i-1;break}}}for(;i<t.length;){const a=t[i];if("number"==typeof a)break;if(a===n){if(null===r)return void(null!==o&&(t[i+1]=o));if(r===t[i+1])return void(t[i+2]=o)}i++,null!==r&&i++,null!==o&&i++}-1!==s&&(t.splice(s,0,e),i=s+1),t.splice(i++,0,n),null!==r&&t.splice(i++,0,r),null!==o&&t.splice(i++,0,o)}function xp(t){return-1!==t}function Jr(t){return 32767&t}function Yr(t,e){let n=function(t){return t>>16}(t),r=e;for(;n>0;)r=r[15],n--;return r}let Uu=!0;function ia(t){const e=Uu;return Uu=t,e}let s0=0;function mi(t,e){const n=Gu(t,e);if(-1!==n)return n;const r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,$u(r.data,t),$u(e,null),$u(r.blueprint,null));const o=sa(t,e),i=t.injectorIndex;if(xp(o)){const s=Jr(o),a=Yr(o,e),l=a[1].data;for(let u=0;u<8;u++)e[i+u]=a[s+u]|l[s+u]}return e[i+8]=o,i}function $u(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Gu(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function sa(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,r=null,o=e;for(;null!==o;){const i=o[1],s=i.type;if(r=2===s?i.declTNode:1===s?o[6]:null,null===r)return-1;if(n++,o=o[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function aa(t,e,n){!function(t,e,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(ui)&&(r=n[ui]),null==r&&(r=n[ui]=s0++);const o=255&r;e.data[t+(o>>5)]|=1<<o}(t,e,n)}function Op(t,e,n){if(n&T.Optional)return t;Hs(e,"NodeInjector")}function Pp(t,e,n,r){if(n&T.Optional&&void 0===r&&(r=null),0==(n&(T.Self|T.Host))){const o=t[9],i=Wn(void 0);try{return o?o.get(e,r,n&T.Optional):ep(e,r,n&T.Optional)}finally{Wn(i)}}return Op(r,e,n)}function Fp(t,e,n,r=T.Default,o){if(null!==t){const i=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t.hasOwnProperty(ui)?t[ui]:void 0;return"number"==typeof e?e>=0?255&e:u0:e}(n);if("function"==typeof i){if(!Ep(e,t,r))return r&T.Host?Op(o,n,r):Pp(e,n,r,o);try{const s=i(r);if(null!=s||r&T.Optional)return s;Hs(n)}finally{Ip()}}else if("number"==typeof i){let s=null,a=Gu(t,e),l=-1,u=r&T.Host?e[16][6]:null;for((-1===a||r&T.SkipSelf)&&(l=-1===a?sa(t,e):e[a+8],-1!==l&&Lp(r,!1)?(s=e[1],a=Jr(l),e=Yr(l,e)):a=-1);-1!==a;){const c=e[1];if(Vp(i,a,c.data)){const d=c0(a,e,n,s,r,u);if(d!==kp)return d}l=e[a+8],-1!==l&&Lp(r,e[1].data[a+8]===u)&&Vp(i,a,e)?(s=c,a=Jr(l),e=Yr(l,e)):a=-1}}}return Pp(e,n,r,o)}const kp={};function u0(){return new Zr(Se(),C())}function c0(t,e,n,r,o,i){const s=e[1],a=s.data[t+8],c=function(t,e,n,r,o){const i=t.providerIndexes,s=e.data,a=1048575&i,l=t.directiveStart,c=i>>20,f=o?a+c:t.directiveEnd;for(let h=r?a:a+c;h<f;h++){const p=s[h];if(h<l&&n===p||h>=l&&p.type===n)return h}if(o){const h=s[l];if(h&&Ht(h)&&h.type===n)return l}return null}(a,s,n,null==r?zs(a)&&Uu:r!=s&&0!=(3&a.type),o&T.Host&&i===a);return null!==c?yi(e,s,c,a):kp}function yi(t,e,n,r){let o=t[n];const i=e.data;if(function(t){return t instanceof pi}(o)){const s=o;s.resolving&&function(t,e){throw new hr("200",`Circular dependency in DI detected for ${t}`)}(Ze(i[n]));const a=ia(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?Wn(s.injectImpl):null;Ep(t,r,T.Default);try{o=t[n]=s.factory(void 0,i,t,r),e.firstCreatePass&&n>=r.directiveStart&&function(t,e,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=e.type.prototype;if(r){const s=lp(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,s)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,o),i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i))}(n,i[n],e)}finally{null!==l&&Wn(l),ia(a),s.resolving=!1,Ip()}}return o}function Vp(t,e,n){return!!(n[e+(t>>5)]&1<<t)}function Lp(t,e){return!(t&T.Self||t&T.Host&&e)}class Zr{constructor(e,n){this._tNode=e,this._lView=n}get(e,n){return Fp(this._tNode,this._lView,e,void 0,n)}}function St(t){return qn(()=>{const e=t.prototype.constructor,n=e[Sn]||Wu(e),r=Object.prototype;let o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==r;){const i=o[Sn]||Wu(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Wu(t){return Jh(t)?()=>{const e=Wu(S(t));return e&&e()}:_r(t)}const eo="__parameters__";function Cr(t,e,n){return qn(()=>{const r=function(t){return function(...n){if(t){const r=t(...n);for(const o in r)this[o]=r[o]}}}(e);function o(...i){if(this instanceof o)return r.apply(this,i),this;const s=new o(...i);return a.annotation=s,a;function a(l,u,c){const d=l.hasOwnProperty(eo)?l[eo]:Object.defineProperty(l,eo,{value:[]})[eo];for(;d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(s),l}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}class G{constructor(e,n){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=O({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const p0=new G("AnalyzeForEntryComponents"),ua=Function;function an(t,e){t.forEach(n=>Array.isArray(n)?an(n,e):e(n))}function da(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function vr(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function mt(t,e,n){let r=no(t,e);return r>=0?t[1|r]=n:(r=~r,function(t,e,n,r){let o=t.length;if(o==e)t.push(n,r);else if(1===o)t.push(r,t[0]),t[0]=n;else{for(o--,t.push(t[o-1],t[o]);o>e;)t[o]=t[o-2],o--;t[e]=n,t[e+1]=r}}(t,r,e,n)),r}function zu(t,e){const n=no(t,e);if(n>=0)return t[1|n]}function no(t,e){return function(t,e,n){let r=0,o=t.length>>n;for(;o!==r;){const i=r+(o-r>>1),s=t[i<<n];if(e===s)return i<<n;s>e?o=i:r=i+1}return~(o<<n)}(t,e,1)}const Ei={},Ku="__NG_DI_FLAG__",ro="ngTempTokenPath",w0=/\n/gm,Ju="__source",Yu=X({provide:String,useValue:X});let bi;function oo(t){const e=bi;return bi=t,e}function I0(t,e=T.Default){if(void 0===bi)throw new Error("inject() must be called from an injection context");return null===bi?ep(t,void 0,e):bi.get(t,e&T.Optional?null:void 0,e)}function D(t,e=T.Default){return(Du||I0)(S(t),e)}function Dr(t){const e=[];for(let n=0;n<t.length;n++){const r=S(t[n]);if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");let o,i=T.Default;for(let s=0;s<r.length;s++){const a=r[s],l=A0(a);"number"==typeof l?-1===l?o=a.token:i|=l:o=a}e.push(D(o,i))}else e.push(D(r))}return e}function wi(t,e){return t[Ku]=e,t.prototype[Ku]=e,t}function A0(t){return t[Ku]}function Gp(t,e,n,r){const o=t[ro];throw e[Ju]&&o.unshift(e[Ju]),t.message=function(t,e,n,r=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let o=$(e);if(Array.isArray(e))o=e.map($).join(" -> ");else if("object"==typeof e){let i=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];i.push(s+":"+("string"==typeof a?JSON.stringify(a):$(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${t.replace(w0,"\n ")}`}("\n"+t.message,o,n,r),t.ngTokenPath=o,t[ro]=null,t}const io=wi(Cr("Inject",t=>({token:t})),-1),ct=wi(Cr("Optional"),8),Zn=wi(Cr("SkipSelf"),4);class Er{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}function yt(t){return t instanceof Er?t.changingThisBreaksApplicationSecurity:t}function ln(t,e){const n=function(t){return t instanceof Er&&t.getTypeName()||null}(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===e}const Y0=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Z0=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;var oe=(()=>((oe=oe||{})[oe.NONE=0]="NONE",oe[oe.HTML=1]="HTML",oe[oe.STYLE=2]="STYLE",oe[oe.SCRIPT=3]="SCRIPT",oe[oe.URL=4]="URL",oe[oe.RESOURCE_URL=5]="RESOURCE_URL",oe))();function lo(t){const e=function(){const t=C();return t&&t[12]}();return e?e.sanitize(oe.URL,t)||"":ln(t,"URL")?yt(t):function(t){return(t=String(t)).match(Y0)||t.match(Z0)?t:"unsafe:"+t}(L(t))}const ug="__ngContext__";function qe(t,e){t[ug]=e}function sc(t){const e=function(t){return t[ug]||null}(t);return e?Array.isArray(e)?e:e.lView:null}function _a(t){return t.ngOriginalError}function vM(t,...e){t.error(...e)}class br{constructor(){this._console=console}handleError(e){const n=this._findOriginalError(e),r=this._findContext(e),o=function(t){return t&&t.ngErrorLogger||vM}(e);o(this._console,"ERROR",e),n&&o(this._console,"ORIGINAL ERROR",n),r&&o(this._console,"ERROR CONTEXT",r)}_findContext(e){return e?function(t){return t.ngDebugContext}(e)||this._findContext(_a(e)):null}_findOriginalError(e){let n=e&&_a(e);for(;n&&_a(n);)n=_a(n);return n||null}}const _g=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(ee))();function cn(t){return t instanceof Function?t():t}var _t=(()=>((_t=_t||{})[_t.Important=1]="Important",_t[_t.DashCase=2]="DashCase",_t))();function uc(t,e){return undefined(t,e)}function xi(t){const e=t[3];return Bt(e)?e[3]:e}function cc(t){return bg(t[13])}function dc(t){return bg(t[4])}function bg(t){for(;null!==t&&!Bt(t);)t=t[4];return t}function co(t,e,n,r,o){if(null!=r){let i,s=!1;Bt(r)?i=r:rn(r)&&(s=!0,r=r[0]);const a=Ee(r);0===t&&null!==n?null==o?Tg(e,n,a):wr(e,n,a,o||null,!0):1===t&&null!==n?wr(e,n,a,o||null,!0):2===t?function(t,e,n){const r=va(t,e);r&&function(t,e,n,r){ye(t)?t.removeChild(e,n,r):e.removeChild(n)}(t,r,e,n)}(e,a,s):3===t&&e.destroyNode(a),null!=i&&function(t,e,n,r,o){const i=n[7];i!==Ee(n)&&co(e,t,r,i,o);for(let a=10;a<n.length;a++){const l=n[a];Ri(l[1],l,t,e,r,i)}}(e,t,i,n,o)}}function hc(t,e,n){return ye(t)?t.createElement(e,n):null===n?t.createElement(e):t.createElementNS(n,e)}function Mg(t,e){const n=t[9],r=n.indexOf(e),o=e[3];1024&e[2]&&(e[2]&=-1025,Ou(o,-1)),n.splice(r,1)}function pc(t,e){if(t.length<=10)return;const n=10+e,r=t[n];if(r){const o=r[17];null!==o&&o!==t&&Mg(o,r),e>0&&(t[n-1][4]=r[4]);const i=vr(t,10+e);!function(t,e){Ri(t,e,e[H],2,null,null),e[0]=null,e[6]=null}(r[1],r);const s=i[19];null!==s&&s.detachView(i[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function Ig(t,e){if(!(256&e[2])){const n=e[H];ye(n)&&n.destroyNode&&Ri(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return gc(t[1],t);for(;e;){let n=null;if(rn(e))n=e[13];else{const r=e[10];r&&(n=r)}if(!n){for(;e&&!e[4]&&e!==t;)rn(e)&&gc(e[1],e),e=e[3];null===e&&(e=t),rn(e)&&gc(e[1],e),n=e&&e[4]}e=n}}(e)}}function gc(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 o=e[n[r]];if(!(o instanceof pi)){const i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){const a=o[i[s]],l=i[s+1];try{l.call(a)}finally{}}else try{i.call(o)}finally{}}}}(t,e),function(t,e){const n=t.cleanup,r=e[7];let o=-1;if(null!==n)for(let i=0;i<n.length-1;i+=2)if("string"==typeof n[i]){const s=n[i+1],a="function"==typeof s?s(e):Ee(e[s]),l=r[o=n[i+2]],u=n[i+3];"boolean"==typeof u?a.removeEventListener(n[i],l,u):u>=0?r[o=u]():r[o=-u].unsubscribe(),i+=2}else{const s=r[o=n[i+1]];n[i].call(s)}if(null!==r){for(let i=o+1;i<r.length;i++)r[i]();e[7]=null}}(t,e),1===e[1].type&&ye(e[H])&&e[H].destroy();const n=e[17];if(null!==n&&Bt(e[3])){n!==e[3]&&Mg(n,e);const r=e[19];null!==r&&r.detachView(t)}}}function Ag(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 o=t.data[r.directiveStart].encapsulation;if(o===Ae.None||o===Ae.Emulated)return null}return At(r,n)}(t,e.parent,n)}function wr(t,e,n,r,o){ye(t)?t.insertBefore(e,n,r,o):e.insertBefore(n,r,o)}function Tg(t,e,n){ye(t)?t.appendChild(e,n):e.appendChild(n)}function xg(t,e,n,r,o){null!==r?wr(t,e,n,r,o):Tg(t,e,n)}function va(t,e){return ye(t)?t.parentNode(e):e.parentNode}let Og=function(t,e,n){return 40&t.type?At(t,n):null};function Da(t,e,n,r){const o=Ag(t,r,e),i=e[H],a=function(t,e,n){return Og(t,e,n)}(r.parent||e[6],r,e);if(null!=o)if(Array.isArray(n))for(let l=0;l<n.length;l++)xg(i,o,n[l],a,!1);else xg(i,o,n,a,!1)}function Ea(t,e){if(null!==e){const n=e.type;if(3&n)return At(e,t);if(4&n)return yc(-1,t[e.index]);if(8&n){const r=e.child;if(null!==r)return Ea(t,r);{const o=t[e.index];return Bt(o)?yc(-1,o):Ee(o)}}if(32&n)return uc(e,t)()||Ee(t[e.index]);{const r=Fg(t,e);return null!==r?Array.isArray(r)?r[0]:Ea(xi(t[16]),r):Ea(t,e.next)}}return null}function Fg(t,e){return null!==e?t[16][6].projection[e.projection]:null}function yc(t,e){const n=10+t+1;if(n<e.length){const r=e[n],o=r[1].firstChild;if(null!==o)return Ea(r,o)}return e[7]}function _c(t,e,n,r,o,i,s){for(;null!=n;){const a=r[n.index],l=n.type;if(s&&0===e&&(a&&qe(Ee(a),r),n.flags|=4),64!=(64&n.flags))if(8&l)_c(t,e,n.child,r,o,i,!1),co(e,t,o,a,i);else if(32&l){const u=uc(n,r);let c;for(;c=u();)co(e,t,o,c,i);co(e,t,o,a,i)}else 16&l?Vg(t,e,r,n,o,i):co(e,t,o,a,i);n=s?n.projectionNext:n.next}}function Ri(t,e,n,r,o,i){_c(n,r,t.firstChild,e,o,i,!1)}function Vg(t,e,n,r,o,i){const s=n[16],l=s[6].projection[r.projection];if(Array.isArray(l))for(let u=0;u<l.length;u++)co(e,t,o,l[u],i);else _c(t,e,l,s[3],o,i,!0)}function Lg(t,e,n){ye(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function Cc(t,e,n){ye(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}function jg(t,e,n){let r=t.length;for(;;){const o=t.indexOf(e,n);if(-1===o)return o;if(0===o||t.charCodeAt(o-1)<=32){const i=e.length;if(o+i===r||t.charCodeAt(o+i)<=32)return o}n=o+1}}const Bg="ng-template";function qM(t,e,n){let r=0;for(;r<t.length;){let o=t[r++];if(n&&"class"===o){if(o=t[r],-1!==jg(o.toLowerCase(),e,0))return!0}else if(1===o){for(;r<t.length&&"string"==typeof(o=t[r++]);)if(o.toLowerCase()===e)return!0;return!1}}return!1}function Hg(t){return 4===t.type&&t.value!==Bg}function zM(t,e,n){return e===(4!==t.type||n?t.value:Bg)}function QM(t,e,n){let r=4;const o=t.attrs||[],i=function(t){for(let e=0;e<t.length;e++)if(Sp(t[e]))return e;return t.length}(o);let s=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!s)if(4&r){if(r=2|1&r,""!==l&&!zM(t,l,n)||""===l&&1===e.length){if(Ut(r))return!1;s=!0}}else{const u=8&r?l:e[++a];if(8&r&&null!==t.attrs){if(!qM(t.attrs,u,n)){if(Ut(r))return!1;s=!0}continue}const d=KM(8&r?"class":l,o,Hg(t),n);if(-1===d){if(Ut(r))return!1;s=!0;continue}if(""!==u){let f;f=d>i?"":o[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==jg(h,u,0)||2&r&&u!==f){if(Ut(r))return!1;s=!0}}}}else{if(!s&&!Ut(r)&&!Ut(l))return!1;if(s&&Ut(l))continue;s=!1,r=l|1&r}}return Ut(r)||s}function Ut(t){return 0==(1&t)}function KM(t,e,n,r){if(null===e)return-1;let o=0;if(r||!n){let i=!1;for(;o<e.length;){const s=e[o];if(s===t)return o;if(3===s||6===s)i=!0;else{if(1===s||2===s){let a=e[++o];for(;"string"==typeof a;)a=e[++o];continue}if(4===s)break;if(0===s){o+=4;continue}}o+=i?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 Ug(t,e,n=!1){for(let r=0;r<e.length;r++)if(QM(t,e[r],n))return!0;return!1}function $g(t,e){return t?":not("+e.trim()+")":e}function eI(t){let e=t[0],n=1,r=2,o="",i=!1;for(;n<t.length;){let s=t[n];if("string"==typeof s)if(2&r){const a=t[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!Ut(s)&&(e+=$g(i,o),o=""),r=s,i=i||!Ut(r);n++}return""!==o&&(e+=$g(i,o)),e}const k={};function Q(t){Gg(Z(),C(),tt()+t,Js())}function Gg(t,e,n,r){if(!r)if(3==(3&e[2])){const i=t.preOrderCheckHooks;null!==i&&ta(e,i,n)}else{const i=t.preOrderHooks;null!==i&&na(e,i,0,n)}Kn(n)}function ba(t,e){return t<<17|e<<2}function $t(t){return t>>17&32767}function vc(t){return 2|t}function Rn(t){return(131068&t)>>2}function Dc(t,e){return-131069&t|e<<2}function Ec(t){return 1|t}function em(t,e){const n=t.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const o=n[r],i=n[r+1];if(-1!==i){const s=t.data[i];Lu(o),s.contentQueries(2,e[i],i)}}}function Ni(t,e,n,r,o,i,s,a,l,u){const c=e.blueprint.slice();return c[0]=o,c[2]=140|r,gp(c),c[3]=c[15]=t,c[8]=n,c[10]=s||t&&t[10],c[H]=a||t&&t[H],c[12]=l||t&&t[12]||null,c[9]=u||t&&t[9]||null,c[6]=i,c[16]=2==e.type?t[16]:c,c}function fo(t,e,n,r,o){let i=t.data[e];if(null===i)i=function(t,e,n,r,o){const i=_p(),s=Pu(),l=t.data[e]=function(t,e,n,r,o,i){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:o,attrs:i,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,s?i:i&&i.parent,n,e,r,o);return null===t.firstChild&&(t.firstChild=l),null!==i&&(s?null==i.child&&null!==l.parent&&(i.child=l):null===i.next&&(i.next=l)),l}(t,e,n,r,o),P.lFrame.inI18n&&(i.flags|=64);else if(64&i.type){i.type=n,i.value=r,i.attrs=o;const s=function(){const t=P.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}();i.injectorIndex=null===s?-1:s.injectorIndex}return on(i,!0),i}function ho(t,e,n,r){if(0===n)return-1;const o=e.length;for(let i=0;i<n;i++)e.push(r),t.blueprint.push(r),t.data.push(null);return o}function Oi(t,e,n){Zs(e);try{const r=t.viewQuery;null!==r&&Lc(1,r,n);const o=t.template;null!==o&&tm(t,e,o,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&em(t,e),t.staticViewQueries&&Lc(2,t.viewQuery,n);const i=t.components;null!==i&&function(t,e){for(let n=0;n<e.length;n++)OI(t,e[n])}(e,i)}catch(r){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),r}finally{e[2]&=-5,Xs()}}function po(t,e,n,r){const o=e[2];if(256==(256&o))return;Zs(e);const i=Js();try{gp(e),function(t){P.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==n&&tm(t,e,n,2,r);const s=3==(3&o);if(!i)if(s){const u=t.preOrderCheckHooks;null!==u&&ta(e,u,null)}else{const u=t.preOrderHooks;null!==u&&na(e,u,0,null),ju(e,0)}if(function(t){for(let e=cc(t);null!==e;e=dc(e)){if(!e[2])continue;const n=e[9];for(let r=0;r<n.length;r++){const o=n[r],i=o[3];0==(1024&o[2])&&Ou(i,1),o[2]|=1024}}}(e),function(t){for(let e=cc(t);null!==e;e=dc(e))for(let n=10;n<e.length;n++){const r=e[n],o=r[1];Nu(r)&&po(o,r,o.template,r[8])}}(e),null!==t.contentQueries&&em(t,e),!i)if(s){const u=t.contentCheckHooks;null!==u&&ta(e,u)}else{const u=t.contentHooks;null!==u&&na(e,u,1),ju(e,1)}!function(t,e){const n=t.hostBindingOpCodes;if(null!==n)try{for(let r=0;r<n.length;r++){const o=n[r];if(o<0)Kn(~o);else{const i=o,s=n[++r],a=n[++r];$w(s,i),a(2,e[i])}}}finally{Kn(-1)}}(t,e);const a=t.components;null!==a&&function(t,e){for(let n=0;n<e.length;n++)NI(t,e[n])}(e,a);const l=t.viewQuery;if(null!==l&&Lc(2,l,r),!i)if(s){const u=t.viewCheckHooks;null!==u&&ta(e,u)}else{const u=t.viewHooks;null!==u&&na(e,u,2),ju(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),i||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,Ou(e[3],-1))}finally{Xs()}}function hI(t,e,n,r){const o=e[10],i=!Js(),s=function(t){return 4==(4&t[2])}(e);try{i&&!s&&o.begin&&o.begin(),s&&Oi(t,e,r),po(t,e,n,r)}finally{i&&!s&&o.end&&o.end()}}function tm(t,e,n,r,o){const i=tt(),s=2&r;try{Kn(-1),s&&e.length>20&&Gg(t,e,20,Js()),n(r,o)}finally{Kn(i)}}function xc(t,e,n){!mp()||(function(t,e,n,r){const o=n.directiveStart,i=n.directiveEnd;t.firstCreatePass||mi(n,e),qe(r,e);const s=n.initialInputs;for(let a=o;a<i;a++){const l=t.data[a],u=Ht(l);u&&AI(e,n,l);const c=yi(e,t,a,n);qe(c,e),null!==s&&SI(0,a-o,c,l,0,s),u&&(gt(n.index,e)[8]=c)}}(t,e,n,At(n,e)),128==(128&n.flags)&&function(t,e,n){const r=n.directiveStart,o=n.directiveEnd,s=n.index,a=P.lFrame.currentDirectiveIndex;try{Kn(s);for(let l=r;l<o;l++){const u=t.data[l],c=e[l];ku(l),(null!==u.hostBindings||0!==u.hostVars||null!==u.hostAttrs)&&cm(u,c)}}finally{Kn(-1),ku(a)}}(t,e,n))}function Rc(t,e,n=At){const r=e.localNames;if(null!==r){let o=e.index+1;for(let i=0;i<r.length;i+=2){const s=r[i+1],a=-1===s?n(e,t):t[s];t[o++]=a}}}function rm(t){const e=t.tView;return null===e||e.incompleteFirstPass?t.tView=Ia(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function Ia(t,e,n,r,o,i,s,a,l,u){const c=20+r,d=c+o,f=function(t,e){const n=[];for(let r=0;r<e;r++)n.push(r<t?null:k);return n}(c,d),h="function"==typeof u?u():u;return f[1]={type:t,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:e,data:f.slice().fill(null,c),bindingStartIndex:c,expandoStartIndex:d,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 i?i():i,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:l,consts:h,incompleteFirstPass:!1}}function am(t,e,n){for(let r in t)if(t.hasOwnProperty(r)){const o=t[r];(n=null===n?{}:n).hasOwnProperty(r)?n[r].push(e,o):n[r]=[e,o]}return n}function Ct(t,e,n,r,o,i,s,a){const l=At(e,n);let c,u=e.inputs;!a&&null!=u&&(c=u[r])?(vm(t,n,c,r,o),zs(e)&&function(t,e){const n=gt(e,t);16&n[2]||(n[2]|=64)}(n,e.index)):3&e.type&&(r=function(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(r),o=null!=s?s(o,e.value||"",r):o,ye(i)?i.setProperty(l,r,o):Hu(r)||(l.setProperty?l.setProperty(r,o):l[r]=o))}function Nc(t,e,n,r){let o=!1;if(mp()){const i=function(t,e,n){const r=t.directiveRegistry;let o=null;if(r)for(let i=0;i<r.length;i++){const s=r[i];Ug(n,s.selectors,!1)&&(o||(o=[]),aa(mi(n,e),t,s.type),Ht(s)?(dm(t,n),o.unshift(s)):o.push(s))}return o}(t,e,n),s=null===r?null:{"":-1};if(null!==i){o=!0,fm(n,t.data.length,i.length);for(let c=0;c<i.length;c++){const d=i[c];d.providersResolver&&d.providersResolver(d)}let a=!1,l=!1,u=ho(t,e,i.length,null);for(let c=0;c<i.length;c++){const d=i[c];n.mergedAttrs=oa(n.mergedAttrs,d.hostAttrs),hm(t,n,e,u,d),II(u,d,s),null!==d.contentQueries&&(n.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(n.flags|=128);const f=d.type.prototype;!a&&(f.ngOnChanges||f.ngOnInit||f.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index),a=!0),!l&&(f.ngOnChanges||f.ngDoCheck)&&((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index),l=!0),u++}!function(t,e){const r=e.directiveEnd,o=t.data,i=e.attrs,s=[];let a=null,l=null;for(let u=e.directiveStart;u<r;u++){const c=o[u],d=c.inputs,f=null===i||Hg(e)?null:TI(d,i);s.push(f),a=am(d,u,a),l=am(c.outputs,u,l)}null!==a&&(a.hasOwnProperty("class")&&(e.flags|=16),a.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=s,e.inputs=a,e.outputs=l}(t,n)}s&&function(t,e,n){if(e){const r=t.localNames=[];for(let o=0;o<e.length;o+=2){const i=n[e[o+1]];if(null==i)throw new hr("301",`Export of name '${e[o+1]}' not found!`);r.push(e[o],i)}}}(n,r,s)}return n.mergedAttrs=oa(n.mergedAttrs,n.attrs),o}function um(t,e,n,r,o,i){const s=i.hostBindings;if(s){let a=t.hostBindingOpCodes;null===a&&(a=t.hostBindingOpCodes=[]);const l=~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})(a)!=l&&a.push(l),a.push(r,o,s)}}function cm(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function dm(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function II(t,e,n){if(n){if(e.exportAs)for(let r=0;r<e.exportAs.length;r++)n[e.exportAs[r]]=t;Ht(e)&&(n[""]=t)}}function fm(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function hm(t,e,n,r,o){t.data[r]=o;const i=o.factory||(o.factory=_r(o.type)),s=new pi(i,Ht(o),null);t.blueprint[r]=s,n[r]=s,um(t,e,0,r,ho(t,n,o.hostVars,k),o)}function AI(t,e,n){const r=At(e,t),o=rm(n),i=t[10],s=Aa(t,Ni(t,o,null,n.onPush?64:16,r,e,i,i.createRenderer(r,n),null,null));t[e.index]=s}function dn(t,e,n,r,o,i){const s=At(t,e);!function(t,e,n,r,o,i,s){if(null==i)ye(t)?t.removeAttribute(e,o,n):e.removeAttribute(o);else{const a=null==s?L(i):s(i,r||"",o);ye(t)?t.setAttribute(e,o,a,n):n?e.setAttributeNS(n,o,a):e.setAttribute(o,a)}}(e[H],s,i,t.value,n,r,o)}function SI(t,e,n,r,o,i){const s=i[e];if(null!==s){const a=r.setInput;for(let l=0;l<s.length;){const u=s[l++],c=s[l++],d=s[l++];null!==a?r.setInput(n,d,u,c):n[c]=d}}}function TI(t,e){let n=null,r=0;for(;r<e.length;){const o=e[r];if(0!==o)if(5!==o){if("number"==typeof o)break;t.hasOwnProperty(o)&&(null===n&&(n=[]),n.push(o,t[o],e[r+1])),r+=2}else r+=2;else r+=4}return n}function pm(t,e,n,r){return new Array(t,!0,!1,e,null,0,r,n,null,null)}function NI(t,e){const n=gt(e,t);if(Nu(n)){const r=n[1];80&n[2]?po(r,n,r.template,n[8]):n[5]>0&&Pc(n)}}function Pc(t){for(let r=cc(t);null!==r;r=dc(r))for(let o=10;o<r.length;o++){const i=r[o];if(1024&i[2]){const s=i[1];po(s,i,s.template,i[8])}else i[5]>0&&Pc(i)}const n=t[1].components;if(null!==n)for(let r=0;r<n.length;r++){const o=gt(n[r],t);Nu(o)&&o[5]>0&&Pc(o)}}function OI(t,e){const n=gt(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),Oi(r,n,n[8])}function Aa(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function Fc(t){for(;t;){t[2]|=64;const e=xi(t);if(ww(t)&&!e)return t;t=e}return null}function Vc(t,e,n){const r=e[10];r.begin&&r.begin();try{po(t,e,t.template,n)}catch(o){throw Cm(e,o),o}finally{r.end&&r.end()}}function gm(t){!function(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],r=sc(n),o=r[1];hI(o,r,o.template,n)}}(t[8])}function Lc(t,e,n){Lu(0),e(t,n)}const LI=(()=>Promise.resolve(null))();function mm(t){return t[7]||(t[7]=[])}function ym(t){return t.cleanup||(t.cleanup=[])}function Cm(t,e){const n=t[9],r=n?n.get(br,null):null;r&&r.handleError(e)}function vm(t,e,n,r,o){for(let i=0;i<n.length;){const s=n[i++],a=n[i++],l=e[s],u=t.data[s];null!==u.setInput?u.setInput(l,o,r,a):l[a]=o}}function On(t,e,n){const r=Ks(e,t);!function(t,e,n){ye(t)?t.setValue(e,n):e.textContent=n}(t[H],r,n)}function Sa(t,e,n){let r=n?t.styles:null,o=n?t.classes:null,i=0;if(null!==e)for(let s=0;s<e.length;s++){const a=e[s];"number"==typeof a?i=a:1==i?o=_u(o,a):2==i&&(r=_u(r,a+": "+e[++s]+";"))}n?t.styles=r:t.stylesWithoutHost=r,n?t.classes=o:t.classesWithoutHost=o}const go=new G("INJECTOR",-1);class Dm{get(e,n=Ei){if(n===Ei){const r=new Error(`NullInjectorError: No provider for ${$(e)}!`);throw r.name="NullInjectorError",r}return n}}const Pi=new G("Set Injector scope."),Fi={},HI={};let jc;function Em(){return void 0===jc&&(jc=new Dm),jc}function bm(t,e=null,n=null,r){return new $I(t,n,e||Em(),r)}class $I{constructor(e,n,r,o=null){this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const i=[];n&&an(n,a=>this.processProvider(a,e,n)),an([e],a=>this.processInjectorType(a,[],i)),this.records.set(go,mo(void 0,this));const s=this.records.get(Pi);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof e?null:$(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,n=Ei,r=T.Default){this.assertNotDestroyed();const o=oo(this),i=Wn(void 0);try{if(!(r&T.SkipSelf)){let a=this.records.get(e);if(void 0===a){const l=function(t){return"function"==typeof t||"object"==typeof t&&t instanceof G}(e)&&An(e);a=l&&this.injectableDefInScope(l)?mo(Bc(e),Fi):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(r&T.Self?Em():this.parent).get(e,n=r&T.Optional&&n===Ei?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[ro]=s[ro]||[]).unshift($(e)),o)throw s;return Gp(s,e,"R3InjectorError",this.source)}throw s}finally{Wn(i),oo(o)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((r,o)=>e.push($(o))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(e,n,r){if(!(e=S(e)))return!1;let o=Zh(e);const i=null==o&&e.ngModule||void 0,s=void 0===i?e:i,a=-1!==r.indexOf(s);if(void 0!==i&&(o=Zh(i)),null==o)return!1;if(null!=o.imports&&!a){let c;r.push(s);try{an(o.imports,d=>{this.processInjectorType(d,n,r)&&(void 0===c&&(c=[]),c.push(d))})}finally{}if(void 0!==c)for(let d=0;d<c.length;d++){const{ngModule:f,providers:h}=c[d];an(h,p=>this.processProvider(p,f,h||re))}}this.injectorDefTypes.add(s);const l=_r(s)||(()=>new s);this.records.set(s,mo(l,Fi));const u=o.providers;if(null!=u&&!a){const c=e;an(u,d=>this.processProvider(d,c,u))}return void 0!==i&&void 0!==e.providers}processProvider(e,n,r){let o=yo(e=S(e))?e:S(e&&e.provide);const i=function(t,e,n){return Mm(t)?mo(void 0,t.useValue):mo(wm(t),Fi)}(e);if(yo(e)||!0!==e.multi)this.records.get(o);else{let s=this.records.get(o);s||(s=mo(void 0,Fi,!0),s.factory=()=>Dr(s.multi),this.records.set(o,s)),o=e,s.multi.push(e)}this.records.set(o,i)}hydrate(e,n){return n.value===Fi&&(n.value=HI,n.value=n.factory()),"object"==typeof n.value&&n.value&&function(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(n.value)&&this.onDestroy.add(n.value),n.value}injectableDefInScope(e){if(!e.providedIn)return!1;const n=S(e.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function Bc(t){const e=An(t),n=null!==e?e.factory:_r(t);if(null!==n)return n;if(t instanceof G)throw new Error(`Token ${$(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const r=function(t,e){const n=[];for(let r=0;r<t;r++)n.push(e);return n}(e,"?");throw new Error(`Can't resolve all parameters for ${$(t)}: (${r.join(", ")}).`)}const n=function(t){const e=t&&(t[Us]||t[Xh]);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 wm(t,e,n){let r;if(yo(t)){const o=S(t);return _r(o)||Bc(o)}if(Mm(t))r=()=>S(t.useValue);else if(function(t){return!(!t||!t.useFactory)}(t))r=()=>t.useFactory(...Dr(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))r=()=>D(S(t.useExisting));else{const o=S(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return _r(o)||Bc(o);r=()=>new o(...Dr(t.deps))}return r}function mo(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function Mm(t){return null!==t&&"object"==typeof t&&Yu in t}function yo(t){return"function"==typeof t}const Im=function(t,e,n){return function(t,e=null,n=null,r){const o=bm(t,e,n,r);return o._resolveInjectorDefTypes(),o}({name:n},e,t,n)};let te=(()=>{class t{static create(n,r){return Array.isArray(n)?Im(n,r,""):Im(n.providers,n.parent,n.name||"")}}return t.THROW_IF_NOT_FOUND=Ei,t.NULL=new Dm,t.\u0275prov=O({token:t,providedIn:"any",factory:()=>D(go)}),t.__NG_ELEMENT_ID__=-1,t})();function cA(t,e){ea(sc(t)[1],Se())}function ce(t){let e=function(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),n=!0;const r=[t];for(;e;){let o;if(Ht(t))o=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");o=e.\u0275dir}if(o){if(n){r.push(o);const s=t;s.inputs=qc(t.inputs),s.declaredInputs=qc(t.declaredInputs),s.outputs=qc(t.outputs);const a=o.hostBindings;a&&pA(t,a);const l=o.viewQuery,u=o.contentQueries;if(l&&fA(t,l),u&&hA(t,u),yu(t.inputs,o.inputs),yu(t.declaredInputs,o.declaredInputs),yu(t.outputs,o.outputs),Ht(o)&&o.data.animation){const c=t.data;c.animation=(c.animation||[]).concat(o.data.animation)}}const i=o.features;if(i)for(let s=0;s<i.length;s++){const a=i[s];a&&a.ngInherit&&a(t),a===ce&&(n=!1)}}e=Object.getPrototypeOf(e)}!function(t){let e=0,n=null;for(let r=t.length-1;r>=0;r--){const o=t[r];o.hostVars=e+=o.hostVars,o.hostAttrs=oa(o.hostAttrs,n=oa(n,o.hostAttrs))}}(r)}function qc(t){return t===$r?{}:t===re?[]:t}function fA(t,e){const n=t.viewQuery;t.viewQuery=n?(r,o)=>{e(r,o),n(r,o)}:e}function hA(t,e){const n=t.contentQueries;t.contentQueries=n?(r,o,i)=>{e(r,o,i),n(r,o,i)}:e}function pA(t,e){const n=t.hostBindings;t.hostBindings=n?(r,o)=>{e(r,o),n(r,o)}:e}let Ta=null;function _o(){if(!Ta){const t=ee.Symbol;if(t&&t.iterator)Ta=t.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let n=0;n<e.length;++n){const r=e[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(Ta=r)}}}return Ta}class Wt{constructor(e){this.wrapped=e}static wrap(e){return new Wt(e)}static unwrap(e){return Wt.isWrapped(e)?e.wrapped:e}static isWrapped(e){return e instanceof Wt}}function Vi(t){return!!zc(t)&&(Array.isArray(t)||!(t instanceof Map)&&_o()in t)}function zc(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function fn(t,e,n){return t[e]=n}function ze(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function Mr(t,e,n,r){const o=ze(t,e,n);return ze(t,e+1,r)||o}function hn(t,e,n,r){const o=C();return ze(o,Kr(),e)&&(Z(),dn(_e(),o,t,e,n,r)),hn}function vo(t,e,n,r){return ze(t,Kr(),n)?e+L(n)+r:k}function bo(t,e,n,r,o,i,s,a,l,u){const d=function(t,e,n,r,o,i){const s=Mr(t,e,n,r);return Mr(t,e+2,o,i)||s}(t,sn(),n,o,s,l);return xn(4),d?e+L(n)+r+L(o)+i+L(s)+a+L(l)+u:k}function Fn(t,e,n,r,o,i,s,a){const l=C(),u=Z(),c=t+20,d=u.firstCreatePass?function(t,e,n,r,o,i,s,a,l){const u=e.consts,c=fo(e,t,4,s||null,Qn(u,a));Nc(e,n,c,Qn(u,l)),ea(e,c);const d=c.tViews=Ia(2,c,r,o,i,e.directiveRegistry,e.pipeRegistry,null,e.schemas,u);return null!==e.queries&&(e.queries.template(e,c),d.queries=e.queries.embeddedTView(c)),c}(c,u,l,e,n,r,o,i,s):u.data[c];on(d,!1);const f=l[H].createComment("");Da(u,l,f,d),qe(f,l),Aa(l,l[c]=pm(f,l,f,d)),Qs(d)&&xc(u,l,d),null!=s&&Rc(l,d,a)}function Qc(t){return Qr(P.lFrame.contextLView,20+t)}function v(t,e=T.Default){const n=C();return null===n?D(t,e):Fp(Se(),n,S(t),e)}function vt(t,e,n){const r=C();return ze(r,Kr(),e)&&Ct(Z(),_e(),r,t,e,r[H],n,!1),vt}function Xc(t,e,n,r,o){const s=o?"class":"style";vm(t,n,e.inputs[s],s,r)}function E(t,e,n,r){const o=C(),i=Z(),s=20+t,a=o[H],l=o[s]=hc(a,e,P.lFrame.currentNamespace),u=i.firstCreatePass?function(t,e,n,r,o,i,s){const a=e.consts,u=fo(e,t,2,o,Qn(a,i));return Nc(e,n,u,Qn(a,s)),null!==u.attrs&&Sa(u,u.attrs,!1),null!==u.mergedAttrs&&Sa(u,u.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,u),u}(s,i,o,0,e,n,r):i.data[s];on(u,!0);const c=u.mergedAttrs;null!==c&&ra(a,l,c);const d=u.classes;null!==d&&Cc(a,l,d);const f=u.styles;null!==f&&Lg(a,l,f),64!=(64&u.flags)&&Da(i,o,l,u),0===P.lFrame.elementDepthCount&&qe(l,o),P.lFrame.elementDepthCount++,Qs(u)&&(xc(i,o,u),function(t,e,n){if(Iu(e)){const o=e.directiveEnd;for(let i=e.directiveStart;i<o;i++){const s=t.data[i];s.contentQueries&&s.contentQueries(1,n[i],i)}}}(i,u,o)),null!==r&&Rc(o,u)}function b(){let t=Se();Pu()?P.lFrame.isParent=!1:(t=t.parent,on(t,!1));const e=t;P.lFrame.elementDepthCount--;const n=Z();n.firstCreatePass&&(ea(n,t),Iu(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&Xc(n,e,C(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&Xc(n,e,C(),e.stylesWithoutHost,!1)}function pn(t,e,n,r){E(t,e,n,r),b()}function ji(t){return!!t&&"function"==typeof t.then}const Na=function(t){return!!t&&"function"==typeof t.subscribe};function Fe(t,e,n,r){const o=C(),i=Z(),s=Se();return function(t,e,n,r,o,i,s,a){const l=Qs(r),c=t.firstCreatePass&&ym(t),d=e[8],f=mm(e);let h=!0;if(3&r.type||a){const g=At(r,e),_=a?a(g):g,y=f.length,M=a?A=>a(Ee(A[r.index])):r.index;if(ye(n)){let A=null;if(!a&&l&&(A=function(t,e,n,r){const o=t.cleanup;if(null!=o)for(let i=0;i<o.length-1;i+=2){const s=o[i];if(s===n&&o[i+1]===r){const a=e[7],l=o[i+2];return a.length>l?a[l]:null}"string"==typeof s&&(i+=2)}return null}(t,e,o,r.index)),null!==A)(A.__ngLastListenerFn__||A).__ngNextListenerFn__=i,A.__ngLastListenerFn__=i,h=!1;else{i=ed(r,e,d,i,!1);const W=n.listen(_,o,i);f.push(i,W),c&&c.push(o,M,y,y+1)}}else i=ed(r,e,d,i,!0),_.addEventListener(o,i,s),f.push(i),c&&c.push(o,M,y,s)}else i=ed(r,e,d,i,!1);const p=r.outputs;let m;if(h&&null!==p&&(m=p[o])){const g=m.length;if(g)for(let _=0;_<g;_+=2){const Oe=e[m[_]][m[_+1]].subscribe(i),Vt=f.length;f.push(i,Oe),c&&c.push(o,r.index,Vt,-(Vt+1))}}}(i,o,o[H],s,t,e,!!n,r),Fe}function my(t,e,n,r){try{return!1!==n(r)}catch(o){return Cm(t,o),!1}}function ed(t,e,n,r,o){return function i(s){if(s===Function)return r;const a=2&t.flags?gt(t.index,e):e;0==(32&e[2])&&Fc(a);let l=my(e,0,r,s),u=i.__ngNextListenerFn__;for(;u;)l=my(e,0,u,s)&&l,u=u.__ngNextListenerFn__;return o&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function Oa(t=1){return function(t){return(P.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,P.lFrame.contextLView))[8]}(t)}function Pa(t,e,n){return To(t,"",e,"",n),Pa}function To(t,e,n,r,o){const i=C(),s=vo(i,e,n,r);return s!==k&&Ct(Z(),_e(),i,t,s,i[H],o,!1),To}function My(t,e,n,r,o){const i=t[n+1],s=null===e;let a=r?$t(i):Rn(i),l=!1;for(;0!==a&&(!1===l||s);){const c=t[a+1];eS(t[a],e)&&(l=!0,t[a+1]=r?Ec(c):vc(c)),a=r?$t(c):Rn(c)}l&&(t[n+1]=r?vc(i):Ec(i))}function eS(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&no(t,e)>=0}function Fa(t,e){return function(t,e,n,r){const o=C(),i=Z(),s=xn(2);i.firstUpdatePass&&function(t,e,n,r){const o=t.data;if(null===o[n+1]){const i=o[tt()],s=function(t,e){return e>=t.expandoStartIndex}(t,n);(function(t,e){return 0!=(t.flags&(e?16:32))})(i,r)&&null===e&&!s&&(e=!1),e=function(t,e,n,r){const o=function(t){const e=P.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let i=r?e.residualClasses:e.residualStyles;if(null===o)0===(r?e.classBindings:e.styleBindings)&&(n=Bi(n=td(null,t,e,n,r),e.attrs,r),i=null);else{const s=e.directiveStylingLast;if(-1===s||t[s]!==o)if(n=td(o,t,e,n,r),null===i){let l=function(t,e,n){const r=n?e.classBindings:e.styleBindings;if(0!==Rn(r))return t[$t(r)]}(t,e,r);void 0!==l&&Array.isArray(l)&&(l=td(null,t,e,l[1],r),l=Bi(l,e.attrs,r),function(t,e,n,r){t[$t(n?e.classBindings:e.styleBindings)]=r}(t,e,r,l))}else i=function(t,e,n){let r;const o=e.directiveEnd;for(let i=1+e.directiveStylingLast;i<o;i++)r=Bi(r,t[i].hostAttrs,n);return Bi(r,e.attrs,n)}(t,e,r)}return void 0!==i&&(r?e.residualClasses=i:e.residualStyles=i),n}(o,i,e,r),function(t,e,n,r,o,i){let s=i?e.classBindings:e.styleBindings,a=$t(s),l=Rn(s);t[r]=n;let c,u=!1;if(Array.isArray(n)){const d=n;c=d[1],(null===c||no(d,c)>0)&&(u=!0)}else c=n;if(o)if(0!==l){const f=$t(t[a+1]);t[r+1]=ba(f,a),0!==f&&(t[f+1]=Dc(t[f+1],r)),t[a+1]=function(t,e){return 131071&t|e<<17}(t[a+1],r)}else t[r+1]=ba(a,0),0!==a&&(t[a+1]=Dc(t[a+1],r)),a=r;else t[r+1]=ba(l,0),0===a?a=r:t[l+1]=Dc(t[l+1],r),l=r;u&&(t[r+1]=vc(t[r+1])),My(t,c,r,!0),My(t,c,r,!1),function(t,e,n,r,o){const i=o?t.residualClasses:t.residualStyles;null!=i&&"string"==typeof e&&no(i,e)>=0&&(n[r+1]=Ec(n[r+1]))}(e,c,t,r,i),s=ba(a,l),i?e.classBindings=s:e.styleBindings=s}(o,i,e,n,s,r)}}(i,t,s,r),e!==k&&ze(o,s,e)&&function(t,e,n,r,o,i,s,a){if(!(3&e.type))return;const l=t.data,u=l[a+1];ka(function(t){return 1==(1&t)}(u)?Vy(l,e,n,o,Rn(u),s):void 0)||(ka(i)||function(t){return 2==(2&t)}(u)&&(i=Vy(l,null,n,o,a,s)),function(t,e,n,r,o){const i=ye(t);if(e)o?i?t.addClass(n,r):n.classList.add(r):i?t.removeClass(n,r):n.classList.remove(r);else{let s=-1===r.indexOf("-")?void 0:_t.DashCase;if(null==o)i?t.removeStyle(n,r,s):n.style.removeProperty(r);else{const a="string"==typeof o&&o.endsWith("!important");a&&(o=o.slice(0,-10),s|=_t.Important),i?t.setStyle(n,r,o,s):n.style.setProperty(r,o,a?"important":"")}}}(r,s,Ks(tt(),n),o,i))}(i,i.data[tt()],o,o[H],t,o[s+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=$(yt(t)))),t}(e,n),r,s)}(t,e,null,!0),Fa}function td(t,e,n,r,o){let i=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<s&&(i=e[a],r=Bi(r,i.hostAttrs,o),i!==t);)a++;return null!==t&&(n.directiveStylingLast=a),r}function Bi(t,e,n){const r=n?1:2;let o=-1;if(null!==e)for(let i=0;i<e.length;i++){const s=e[i];"number"==typeof s?o=s:o===r&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),mt(t,s,!!n||e[++i]))}return void 0===t?null:t}function Vy(t,e,n,r,o,i){const s=null===e;let a;for(;o>0;){const l=t[o],u=Array.isArray(l),c=u?l[1]:l,d=null===c;let f=n[o+1];f===k&&(f=d?re:void 0);let h=d?zu(f,r):c===r?f:void 0;if(u&&!ka(h)&&(h=zu(l,r)),ka(h)&&(a=h,s))return a;const p=t[o+1];o=s?$t(p):Rn(p)}if(null!==e){let l=i?e.residualClasses:e.residualStyles;null!=l&&(a=zu(l,r))}return a}function ka(t){return void 0!==t}function B(t,e=""){const n=C(),r=Z(),o=t+20,i=r.firstCreatePass?fo(r,o,1,e,null):r.data[o],s=n[o]=function(t,e){return ye(t)?t.createText(e):t.createTextNode(e)}(n[H],e);Da(r,n,s,i),on(i,!1)}function Qe(t){return kn("",t,""),Qe}function kn(t,e,n){const r=C(),o=vo(r,t,e,n);return o!==k&&On(r,tt(),o),kn}function nd(t,e,n,r,o){const i=C(),s=function(t,e,n,r,o,i){const a=Mr(t,sn(),n,o);return xn(2),a?e+L(n)+r+L(o)+i:k}(i,t,e,n,r,o);return s!==k&&On(i,tt(),s),nd}function rd(t,e,n,r,o,i,s,a,l){const u=C(),c=bo(u,t,e,n,r,o,i,s,a,l);return c!==k&&On(u,tt(),c),rd}function od(t,e,n){const r=C();return ze(r,Kr(),e)&&Ct(Z(),_e(),r,t,e,r[H],n,!0),od}const Ir=void 0;var FS=["en",[["a","p"],["AM","PM"],Ir],[["AM","PM"],Ir,Ir],[["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"]],Ir,[["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"]],Ir,[["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}",Ir,"{1} 'at' {0}",Ir],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){const e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let Ro={};function rt(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=n_(e);if(n)return n;const r=e.split("-")[0];if(n=n_(r),n)return n;if("en"===r)return FS;throw new Error(`Missing locale data for the locale "${t}".`)}function n_(t){return t in Ro||(Ro[t]=ee.ng&&ee.ng.common&&ee.ng.common.locales&&ee.ng.common.locales[t]),Ro[t]}var I=(()=>((I=I||{})[I.LocaleId=0]="LocaleId",I[I.DayPeriodsFormat=1]="DayPeriodsFormat",I[I.DayPeriodsStandalone=2]="DayPeriodsStandalone",I[I.DaysFormat=3]="DaysFormat",I[I.DaysStandalone=4]="DaysStandalone",I[I.MonthsFormat=5]="MonthsFormat",I[I.MonthsStandalone=6]="MonthsStandalone",I[I.Eras=7]="Eras",I[I.FirstDayOfWeek=8]="FirstDayOfWeek",I[I.WeekendRange=9]="WeekendRange",I[I.DateFormat=10]="DateFormat",I[I.TimeFormat=11]="TimeFormat",I[I.DateTimeFormat=12]="DateTimeFormat",I[I.NumberSymbols=13]="NumberSymbols",I[I.NumberFormats=14]="NumberFormats",I[I.CurrencyCode=15]="CurrencyCode",I[I.CurrencySymbol=16]="CurrencySymbol",I[I.CurrencyName=17]="CurrencyName",I[I.Currencies=18]="Currencies",I[I.Directionality=19]="Directionality",I[I.PluralCase=20]="PluralCase",I[I.ExtraData=21]="ExtraData",I))();const Va="en-US";let r_=Va;function id(t){ht(t,"Expected localeId to be defined"),"string"==typeof t&&(r_=t.toLowerCase().replace(/_/g,"-"))}function ld(t,e,n,r,o){if(t=S(t),Array.isArray(t))for(let i=0;i<t.length;i++)ld(t[i],e,n,r,o);else{const i=Z(),s=C();let a=yo(t)?t:S(t.provide),l=wm(t);const u=Se(),c=1048575&u.providerIndexes,d=u.directiveStart,f=u.providerIndexes>>20;if(yo(t)||!t.multi){const h=new pi(l,o,v),p=cd(a,e,o?c:c+f,d);-1===p?(aa(mi(u,s),i,a),ud(i,t,e.length),e.push(a),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=1048576),n.push(h),s.push(h)):(n[p]=h,s[p]=h)}else{const h=cd(a,e,c+f,d),p=cd(a,e,c,c+f),m=h>=0&&n[h],g=p>=0&&n[p];if(o&&!g||!o&&!m){aa(mi(u,s),i,a);const _=function(t,e,n,r,o){const i=new pi(t,n,v);return i.multi=[],i.index=e,i.componentProviders=0,A_(i,o,r&&!n),i}(o?NT:RT,n.length,o,r,l);!o&&g&&(n[p].providerFactory=_),ud(i,t,e.length,0),e.push(a),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=1048576),n.push(_),s.push(_)}else ud(i,t,h>-1?h:p,A_(n[o?p:h],l,!o&&r));!o&&r&&g&&n[p].componentProviders++}}}function ud(t,e,n,r){const o=yo(e);if(o||function(t){return!!t.useClass}(e)){const s=(e.useClass||e).prototype.ngOnDestroy;if(s){const a=t.destroyHooks||(t.destroyHooks=[]);if(!o&&e.multi){const l=a.indexOf(n);-1===l?a.push(n,[r,s]):a[l+1].push(r,s)}else a.push(n,s)}}}function A_(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function cd(t,e,n,r){for(let o=n;o<r;o++)if(e[o]===t)return o;return-1}function RT(t,e,n,r){return dd(this.multi,[])}function NT(t,e,n,r){const o=this.multi;let i;if(this.providerFactory){const s=this.providerFactory.componentProviders,a=yi(n,n[1],this.providerFactory.index,r);i=a.slice(0,s),dd(o,i);for(let l=s;l<a.length;l++)i.push(a[l])}else i=[],dd(o,i);return i}function dd(t,e){for(let n=0;n<t.length;n++)e.push((0,t[n])());return e}function fe(t,e=[]){return n=>{n.providersResolver=(r,o)=>function(t,e,n){const r=Z();if(r.firstCreatePass){const o=Ht(t);ld(n,r.data,r.blueprint,o,!0),ld(e,r.data,r.blueprint,o,!1)}}(r,o?o(t):t,e)}}class S_{}const x_="ngComponent";class FT{resolveComponentFactory(e){throw function(t){const e=Error(`No component factory found for ${$(t)}. Did you add it to @NgModule.entryComponents?`);return e[x_]=t,e}(e)}}let Ar=(()=>{class t{}return t.NULL=new FT,t})();function Ua(...t){}function Oo(t,e){return new ke(At(t,e))}const LT=function(){return Oo(Se(),C())};let ke=(()=>{class t{constructor(n){this.nativeElement=n}}return t.__NG_ELEMENT_ID__=LT,t})();class $a{}let Vn=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>BT(),t})();const BT=function(){const t=C(),n=gt(Se().index,t);return function(t){return t[H]}(rn(n)?n:t)};let hd=(()=>{class t{}return t.\u0275prov=O({token:t,providedIn:"root",factory:()=>null}),t})();class Wi{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const N_=new Wi("12.2.8");class O_{constructor(){}supports(e){return Vi(e)}create(e){return new GT(e)}}const $T=(t,e)=>e;class GT{constructor(e){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=e||$T}forEachItem(e){let n;for(n=this._itHead;null!==n;n=n._next)e(n)}forEachOperation(e){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){const s=!r||n&&n.currentIndex<F_(r,o,i)?n:r,a=F_(s,o,i),l=s.currentIndex;if(s===r)o--,r=r._nextRemoved;else if(n=n._next,null==s.previousIndex)o++;else{i||(i=[]);const u=a-o,c=l-o;if(u!=c){for(let f=0;f<u;f++){const h=f<i.length?i[f]:i[f]=0,p=h+f;c<=p&&p<u&&(i[f]=h+1)}i[s.previousIndex]=c-u}}a!==l&&e(s,a,l)}}forEachPreviousItem(e){let n;for(n=this._previousItHead;null!==n;n=n._nextPrevious)e(n)}forEachAddedItem(e){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)e(n)}forEachMovedItem(e){let n;for(n=this._movesHead;null!==n;n=n._nextMoved)e(n)}forEachRemovedItem(e){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)e(n)}forEachIdentityChange(e){let n;for(n=this._identityChangesHead;null!==n;n=n._nextIdentityChange)e(n)}diff(e){if(null==e&&(e=[]),!Vi(e))throw new Error(`Error trying to diff '${$(e)}'. Only arrays and iterables are allowed`);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let o,i,s,n=this._itHead,r=!1;if(Array.isArray(e)){this.length=e.length;for(let a=0;a<this.length;a++)i=e[a],s=this._trackByFn(a,i),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,i,s,a)),Object.is(n.item,i)||this._addIdentityChange(n,i)):(n=this._mismatch(n,i,s,a),r=!0),n=n._next}else o=0,function(t,e){if(Array.isArray(t))for(let n=0;n<t.length;n++)e(t[n]);else{const n=t[_o()]();let r;for(;!(r=n.next()).done;)e(r.value)}}(e,a=>{s=this._trackByFn(o,a),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,s,o),r=!0),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,n,r,o){let i;return null===e?i=this._itTail:(i=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._reinsertAfter(e,i,o)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._moveAfter(e,i,o)):e=this._addAfter(new WT(n,r),i,o),e}_verifyReinsertion(e,n,r,o){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==i?e=this._reinsertAfter(i,e._prev,o):e.currentIndex!=o&&(e.currentIndex=o,this._addToMoves(e,o)),e}_truncate(e){for(;null!==e;){const n=e._next;this._addToRemovals(this._unlink(e)),e=n}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(e,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const o=e._prevRemoved,i=e._nextRemoved;return null===o?this._removalsHead=i:o._nextRemoved=i,null===i?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(e,n,r),this._addToMoves(e,r),e}_moveAfter(e,n,r){return this._unlink(e),this._insertAfter(e,n,r),this._addToMoves(e,r),e}_addAfter(e,n,r){return this._insertAfter(e,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,n,r){const o=null===n?this._itHead:n._next;return e._next=o,e._prev=n,null===o?this._itTail=e:o._prev=e,null===n?this._itHead=e:n._next=e,null===this._linkedRecords&&(this._linkedRecords=new P_),this._linkedRecords.put(e),e.currentIndex=r,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const n=e._prev,r=e._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,e}_addToMoves(e,n){return e.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new P_),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,n){return e.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class WT{constructor(e,n){this.item=e,this.trackById=n,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 qT{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,e))return r;return null}remove(e){const n=e._prevDup,r=e._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class P_{constructor(){this.map=new Map}put(e){const n=e.trackById;let r=this.map.get(n);r||(r=new qT,this.map.set(n,r)),r.add(e)}get(e,n){const o=this.map.get(e);return o?o.get(e,n):null}remove(e){const n=e.trackById;return this.map.get(n).remove(e)&&this.map.delete(n),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function F_(t,e,n){const r=t.previousIndex;if(null===r)return r;let o=0;return n&&r<n.length&&(o=n[r]),r+e+o}class k_{constructor(){}supports(e){return e instanceof Map||zc(e)}create(){return new zT}}class zT{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(e){let n;for(n=this._mapHead;null!==n;n=n._next)e(n)}forEachPreviousItem(e){let n;for(n=this._previousMapHead;null!==n;n=n._nextPrevious)e(n)}forEachChangedItem(e){let n;for(n=this._changesHead;null!==n;n=n._nextChanged)e(n)}forEachAddedItem(e){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)e(n)}forEachRemovedItem(e){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)e(n)}diff(e){if(e){if(!(e instanceof Map||zc(e)))throw new Error(`Error trying to diff '${$(e)}'. Only maps and objects are allowed`)}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(e,(r,o)=>{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const i=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,n){if(e){const r=e._prev;return n._next=e,n._prev=r,e._prev=n,r&&(r._next=n),e===this._mapHead&&(this._mapHead=n),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(e,n){if(this._records.has(e)){const o=this._records.get(e);this._maybeAddToChanges(o,n);const i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o}const r=new QT(e);return this._records.set(e,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,n){Object.is(n,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=n,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,n){e instanceof Map?e.forEach(n):Object.keys(e).forEach(r=>n(e[r],r))}}class QT{constructor(e){this.key=e,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 V_(){return new qi([new O_])}let qi=(()=>{class t{constructor(n){this.factories=n}static create(n,r){if(null!=r){const o=r.factories.slice();n=n.concat(o)}return new t(n)}static extend(n){return{provide:t,useFactory:r=>t.create(n,r||V_()),deps:[[t,new Zn,new ct]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(null!=r)return r;throw new Error(`Cannot find a differ supporting object '${n}' of type '${function(t){return t.name||typeof t}(n)}'`)}}return t.\u0275prov=O({token:t,providedIn:"root",factory:V_}),t})();function L_(){return new Po([new k_])}let Po=(()=>{class t{constructor(n){this.factories=n}static create(n,r){if(r){const o=r.factories.slice();n=n.concat(o)}return new t(n)}static extend(n){return{provide:t,useFactory:r=>t.create(n,r||L_()),deps:[[t,new Zn,new ct]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(r)return r;throw new Error(`Cannot find a differ supporting object '${n}'`)}}return t.\u0275prov=O({token:t,providedIn:"root",factory:L_}),t})();function Ga(t,e,n,r,o=!1){for(;null!==n;){const i=e[n.index];if(null!==i&&r.push(Ee(i)),Bt(i))for(let a=10;a<i.length;a++){const l=i[a],u=l[1].firstChild;null!==u&&Ga(l[1],l,u,r)}const s=n.type;if(8&s)Ga(t,e,n.child,r);else if(32&s){const a=uc(n,e);let l;for(;l=a();)r.push(l)}else if(16&s){const a=Fg(e,n);if(Array.isArray(a))r.push(...a);else{const l=xi(e[16]);Ga(l[1],l,a,r,!0)}}n=o?n.projectionNext:n.next}return r}class zi{constructor(e,n){this._lView=e,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const e=this._lView,n=e[1];return Ga(n,e,n.firstChild,[])}get context(){return this._lView[8]}set context(e){this._lView[8]=e}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const e=this._lView[3];if(Bt(e)){const n=e[8],r=n?n.indexOf(this):-1;r>-1&&(pc(e,r),vr(n,r))}this._attachedToViewContainer=!1}Ig(this._lView[1],this._lView)}onDestroy(e){!function(t,e,n,r){const o=mm(e);null===n?o.push(r):(o.push(n),t.firstCreatePass&&ym(t).push(r,o.length-1))}(this._lView[1],this._lView,null,e)}markForCheck(){Fc(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Vc(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){Ys(!0);try{Vc(t,e,n)}finally{Ys(!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(){this._appRef=null,function(t,e){Ri(t,e,e[H],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}class JT extends zi{constructor(e){super(e),this._view=e}detectChanges(){gm(this._view)}checkNoChanges(){!function(t){Ys(!0);try{gm(t)}finally{Ys(!1)}}(this._view)}get context(){return null}}const ZT=function(t){return function(t,e,n){if(zs(t)&&!n){const r=gt(t.index,e);return new zi(r,r)}return 47&t.type?new zi(e[16],e):null}(Se(),C(),16==(16&t))};let pd=(()=>{class t{}return t.__NG_ELEMENT_ID__=ZT,t})();const tx=[new k_],rx=new qi([new O_]),ox=new Po(tx),sx=function(){return function(t,e){return 4&t.type?new lx(e,t,Oo(t,e)):null}(Se(),C())};let Ln=(()=>{class t{}return t.__NG_ELEMENT_ID__=sx,t})();const ax=Ln,lx=class extends ax{constructor(e,n,r){super(),this._declarationLView=e,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(e){const n=this._declarationTContainer.tViews,r=Ni(this._declarationLView,n,e,16,null,n.declTNode,null,null,null,null);r[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(r[19]=i.createEmbeddedView(n)),Oi(n,r,e),new zi(r)}};class yn{}class j_{}const dx=function(){return function(t,e){let n;const r=e[t.index];if(Bt(r))n=r;else{let o;if(8&t.type)o=Ee(r);else{const i=e[H];o=i.createComment("");const s=At(t,e);wr(i,va(i,s),o,function(t,e){return ye(t)?t.nextSibling(e):e.nextSibling}(i,s),!1)}e[t.index]=n=pm(r,e,o,t),Aa(e,n)}return new B_(n,t,e)}(Se(),C())};let Qt=(()=>{class t{}return t.__NG_ELEMENT_ID__=dx,t})();const hx=Qt,B_=class extends hx{constructor(e,n,r){super(),this._lContainer=e,this._hostTNode=n,this._hostLView=r}get element(){return Oo(this._hostTNode,this._hostLView)}get injector(){return new Zr(this._hostTNode,this._hostLView)}get parentInjector(){const e=sa(this._hostTNode,this._hostLView);if(xp(e)){const n=Yr(e,this._hostLView),r=Jr(e);return new Zr(n[1].data[r+8],n)}return new Zr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const n=H_(this._lContainer);return null!==n&&n[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,n,r){const o=e.createEmbeddedView(n||{});return this.insert(o,r),o}createComponent(e,n,r,o,i){const s=r||this.parentInjector;if(!i&&null==e.ngModule&&s){const l=s.get(yn,null);l&&(i=l)}const a=e.create(s,o,void 0,i);return this.insert(a.hostView,n),a}insert(e,n){const r=e._lView,o=r[1];if(function(t){return Bt(t[3])}(r)){const c=this.indexOf(e);if(-1!==c)this.detach(c);else{const d=r[3],f=new B_(d,d[6],d[3]);f.detach(f.indexOf(e))}}const i=this._adjustIndex(n),s=this._lContainer;!function(t,e,n,r){const o=10+r,i=n.length;r>0&&(n[o-1][4]=e),r<i-10?(e[4]=n[o],da(n,10+r,e)):(n.push(e),e[4]=null),e[3]=n;const s=e[17];null!==s&&n!==s&&function(t,e){const n=t[9];e[16]!==e[3][3][16]&&(t[2]=!0),null===n?t[9]=[e]:n.push(e)}(s,e);const a=e[19];null!==a&&a.insertView(t),e[2]|=128}(o,r,s,i);const a=yc(i,s),l=r[H],u=va(l,s[7]);return null!==u&&function(t,e,n,r,o,i){r[0]=o,r[6]=e,Ri(t,r,n,1,o,i)}(o,s[6],l,r,u,a),e.attachToViewContainerRef(),da(gd(s),i,e),e}move(e,n){return this.insert(e,n)}indexOf(e){const n=H_(this._lContainer);return null!==n?n.indexOf(e):-1}remove(e){const n=this._adjustIndex(e,-1),r=pc(this._lContainer,n);r&&(vr(gd(this._lContainer),n),Ig(r[1],r))}detach(e){const n=this._adjustIndex(e,-1),r=pc(this._lContainer,n);return r&&null!=vr(gd(this._lContainer),n)?new zi(r):null}_adjustIndex(e,n=0){return null==e?this.length+n:e}};function H_(t){return t[8]}function gd(t){return t[8]||(t[8]=[])}const Lo={};class lC extends Ar{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const n=Xe(e);return new cC(n,this.ngModule)}}function uC(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const uR=new G("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>_g});class cC extends S_{constructor(e,n){super(),this.componentDef=e,this.ngModule=n,this.componentType=e.type,this.selector=function(t){return t.map(eI).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return uC(this.componentDef.inputs)}get outputs(){return uC(this.componentDef.outputs)}create(e,n,r,o){const i=(o=o||this.ngModule)?function(t,e){return{get:(n,r,o)=>{const i=t.get(n,Lo,o);return i!==Lo||r===Lo?i:e.get(n,r,o)}}}(e,o.injector):e,s=i.get($a,hp),a=i.get(hd,null),l=s.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",c=r?function(t,e,n){if(ye(t))return t.selectRootElement(e,n===Ae.ShadowDom);let r="string"==typeof e?t.querySelector(e):e;return r.textContent="",r}(l,r,this.componentDef.encapsulation):hc(s.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)),d=this.componentDef.onPush?576:528,f=function(t,e){return{components:[],scheduler:t||_g,clean:LI,playerHandler:e||null,flags:0}}(),h=Ia(0,null,null,1,0,null,null,null,null,null),p=Ni(null,h,f,d,null,null,s,l,a,i);let m,g;Zs(p);try{const _=function(t,e,n,r,o,i){const s=n[1];n[20]=t;const l=fo(s,20,2,"#host",null),u=l.mergedAttrs=e.hostAttrs;null!==u&&(Sa(l,u,!0),null!==t&&(ra(o,t,u),null!==l.classes&&Cc(o,t,l.classes),null!==l.styles&&Lg(o,t,l.styles)));const c=r.createRenderer(t,e),d=Ni(n,rm(e),null,e.onPush?64:16,n[20],l,r,c,i||null,null);return s.firstCreatePass&&(aa(mi(l,n),s,e.type),dm(s,l),fm(l,n.length,1)),Aa(n,d),n[20]=d}(c,this.componentDef,p,s,l);if(c)if(r)ra(l,c,["ng-version",N_.full]);else{const{attrs:y,classes:M}=function(t){const e=[],n=[];let r=1,o=2;for(;r<t.length;){let i=t[r];if("string"==typeof i)2===o?""!==i&&e.push(i,t[++r]):8===o&&n.push(i);else{if(!Ut(o))break;o=i}r++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);y&&ra(l,c,y),M&&M.length>0&&Cc(l,c,M.join(" "))}if(g=Ru(h,20),void 0!==n){const y=g.projection=[];for(let M=0;M<this.ngContentSelectors.length;M++){const A=n[M];y.push(null!=A?Array.from(A):null)}}m=function(t,e,n,r,o){const i=n[1],s=function(t,e,n){const r=Se();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),hm(t,r,e,ho(t,e,1,null),n));const o=yi(e,t,r.directiveStart,r);qe(o,e);const i=At(r,e);return i&&qe(i,e),o}(i,n,e);if(r.components.push(s),t[8]=s,o&&o.forEach(l=>l(s,e)),e.contentQueries){const l=Se();e.contentQueries(1,s,l.directiveStart)}const a=Se();return!i.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(Kn(a.index),um(n[1],a,0,a.directiveStart,a.directiveEnd,e),cm(e,s)),s}(_,this.componentDef,p,f,[cA]),Oi(h,p,null)}finally{Xs()}return new fR(this.componentType,m,Oo(g,p),p,g)}}class fR extends class{}{constructor(e,n,r,o,i){super(),this.location=r,this._rootLView=o,this._tNode=i,this.instance=n,this.hostView=this.changeDetectorRef=new JT(o),this.componentType=e}get injector(){return new Zr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}const jo=new Map;class gR extends yn{constructor(e,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new lC(this);const r=wt(e),o=function(t){return t[mw]||null}(e);o&&id(o),this._bootstrapComponents=cn(r.bootstrap),this._r3Injector=bm(e,n,[{provide:yn,useValue:this},{provide:Ar,useValue:this.componentFactoryResolver}],$(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,n=te.THROW_IF_NOT_FOUND,r=T.Default){return e===te||e===yn||e===go?this:this._r3Injector.get(e,n,r)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class Sd extends j_{constructor(e){super(),this.moduleType=e,null!==wt(e)&&function(t){const e=new Set;!function n(r){const o=wt(r,!0),i=o.id;null!==i&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${$(e)} vs ${$(e.name)}`)}(i,jo.get(i),r),jo.set(i,r));const s=cn(o.imports);for(const a of s)e.has(a)||(e.add(a),n(a))}(t)}(e)}create(e){return new gR(this.moduleType,e)}}function ts(t,e){const n=t[e];return n===k?void 0:n}function gC(t,e,n,r,o,i,s,a){const l=e+n;return function(t,e,n,r,o){const i=Mr(t,e,n,r);return ze(t,e+2,o)||i}(t,l,o,i,s)?fn(t,l+3,a?r.call(a,o,i,s):r(o,i,s)):ts(t,l+3)}function _n(t,e){const n=Z();let r;const o=t+20;n.firstCreatePass?(r=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const r=e[n];if(t===r.name)return r}throw new hr("302",`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(o,r.onDestroy)):r=n.data[o];const i=r.factory||(r.factory=_r(r.type)),s=Wn(v);try{const a=ia(!1),l=i();return ia(a),function(t,e,n,r){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=r}(n,C(),o,l),l}finally{Wn(s)}}function Bo(t,e,n){const r=t+20,o=C(),i=Qr(o,r);return os(o,rs(o,r)?function(t,e,n,r,o,i){const s=e+n;return ze(t,s,o)?fn(t,s+1,i?r.call(i,o):r(o)):ts(t,s+1)}(o,et(),e,i.transform,n,i):i.transform(n))}function ns(t,e,n,r,o){const i=t+20,s=C(),a=Qr(s,i);return os(s,rs(s,i)?gC(s,et(),e,a.transform,n,r,o,a):a.transform(n,r,o))}function rs(t,e){return t[1].data[e].pure}function os(t,e){return Wt.isWrapped(e)&&(e=Wt.unwrap(e),t[sn()]=k),e}function Td(t){return e=>{setTimeout(t,void 0,e)}}const Re=class extends Mn{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,n,r){var o,i,s;let a=e,l=n||(()=>null),u=r;if(e&&"object"==typeof e){const d=e;a=null===(o=d.next)||void 0===o?void 0:o.bind(d),l=null===(i=d.error)||void 0===i?void 0:i.bind(d),u=null===(s=d.complete)||void 0===s?void 0:s.bind(d)}this.__isAsync&&(l=Td(l),a&&(a=Td(a)),u&&(u=Td(u)));const c=super.subscribe({next:a,error:l,complete:u});return e instanceof me&&e.add(c),c}};Symbol;const ss=new G("Application Initializer");let Uo=(()=>{class t{constructor(n){this.appInits=n,this.resolve=Ua,this.reject=Ua,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,o)=>{this.resolve=r,this.reject=o})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let o=0;o<this.appInits.length;o++){const i=this.appInits[o]();if(ji(i))n.push(i);else if(Na(i)){const s=new Promise((a,l)=>{i.subscribe({complete:a,error:l})});n.push(s)}}Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}}return t.\u0275fac=function(n){return new(n||t)(D(ss,8))},t.\u0275prov=O({token:t,factory:t.\u0275fac}),t})();const as=new G("AppId"),pN={provide:as,useFactory:function(){return`${$d()}${$d()}${$d()}`},deps:[]};function $d(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const BC=new G("Platform Initializer"),Xa=new G("Platform ID"),HC=new G("appBootstrapListener");let el=(()=>{class t{log(n){console.log(n)}warn(n){console.warn(n)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=O({token:t,factory:t.\u0275fac}),t})();const nr=new G("LocaleId"),UC=new G("DefaultCurrencyCode");class mN{constructor(e,n){this.ngModuleFactory=e,this.componentFactories=n}}const Gd=function(t){return new Sd(t)},yN=Gd,_N=function(t){return Promise.resolve(Gd(t))},$C=function(t){const e=Gd(t),r=cn(wt(t).declarations).reduce((o,i)=>{const s=Xe(i);return s&&o.push(new cC(s)),o},[]);return new mN(e,r)},CN=$C,vN=function(t){return Promise.resolve($C(t))};let xr=(()=>{class t{constructor(){this.compileModuleSync=yN,this.compileModuleAsync=_N,this.compileModuleAndAllComponentsSync=CN,this.compileModuleAndAllComponentsAsync=vN}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=O({token:t,factory:t.\u0275fac}),t})();const bN=(()=>Promise.resolve(0))();function Wd(t){"undefined"==typeof Zone?bN.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class be{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Re(!1),this.onMicrotaskEmpty=new Re(!1),this.onStable=new Re(!1),this.onError=new Re(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function(){let t=ee.requestAnimationFrame,e=ee.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(ee,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,zd(t),t.isCheckStableRunning=!0,qd(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),zd(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{try{return GC(t),n.invokeTask(o,i,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||t.shouldCoalesceRunChangeDetection)&&e(),WC(t)}},onInvoke:(n,r,o,i,s,a,l)=>{try{return GC(t),n.invoke(o,i,s,a,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),WC(t)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&("microTask"==i.change?(t._hasPendingMicrotasks=i.microTask,zd(t),qd(t)):"macroTask"==i.change&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.handleError(o,i),t.runOutsideAngular(()=>t.onError.emit(i)),!1)})}(o)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!be.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(be.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,n,r){return this._inner.run(e,n,r)}runTask(e,n,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,e,MN,Ua,Ua);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(e,n,r){return this._inner.runGuarded(e,n,r)}runOutsideAngular(e){return this._outer.run(e)}}const MN={};function qd(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 zd(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function GC(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function WC(t){t._nesting--,qd(t)}class SN{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Re,this.onMicrotaskEmpty=new Re,this.onStable=new Re,this.onError=new Re}run(e,n,r){return e.apply(n,r)}runGuarded(e,n,r){return e.apply(n,r)}runOutsideAngular(e){return e()}runTask(e,n,r,o){return e.apply(n,r)}}let Qd=(()=>{class t{constructor(n){this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.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:()=>{be.assertNotInAngularZone(),Wd(()=>{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())Wd(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:i,updateCb:o})}whenStable(n,r,o){if(o&&!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(n,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,r,o){return[]}}return t.\u0275fac=function(n){return new(n||t)(D(be))},t.\u0275prov=O({token:t,factory:t.\u0275fac}),t})(),qC=(()=>{class t{constructor(){this._applications=new Map,Kd.addToWindow(this)}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return Kd.findTestabilityInTree(this,n,r)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=O({token:t,factory:t.\u0275fac}),t})();class TN{addToWindow(e){}findTestabilityInTree(e,n,r){return null}}let Kd=new TN,zC=!0,QC=!1;let Yt;const JC=new G("AllowMultipleToken");class Jd{constructor(e,n){this.name=e,this.token=n}}function YC(t,e,n=[]){const r=`Platform: ${e}`,o=new G(r);return(i=[])=>{let s=ZC();if(!s||s.injector.get(JC,!1))if(t)t(n.concat(i).concat({provide:o,useValue:!0}));else{const a=n.concat(i).concat({provide:o,useValue:!0},{provide:Pi,useValue:"platform"});!function(t){if(Yt&&!Yt.destroyed&&!Yt.injector.get(JC,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Yt=t.get(XC);const e=t.get(BC,null);e&&e.forEach(n=>n())}(te.create({providers:a,name:r}))}return function(t){const e=ZC();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}(o)}}function ZC(){return Yt&&!Yt.destroyed?Yt:null}let XC=(()=>{class t{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const a=function(t,e){let n;return n="noop"===t?new SN:("zone.js"===t?void 0:t)||new be({enableLongStackTrace:(QC=!0,zC),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),n}(r?r.ngZone:void 0,{ngZoneEventCoalescing:r&&r.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:r&&r.ngZoneRunCoalescing||!1}),l=[{provide:be,useValue:a}];return a.run(()=>{const u=te.create({providers:l,parent:this.injector,name:n.moduleType.name}),c=n.create(u),d=c.injector.get(br,null);if(!d)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return a.runOutsideAngular(()=>{const f=a.onError.subscribe({next:h=>{d.handleError(h)}});c.onDestroy(()=>{Yd(this._modules,c),f.unsubscribe()})}),function(t,e,n){try{const r=n();return ji(r)?r.catch(o=>{throw e.runOutsideAngular(()=>t.handleError(o)),o}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}(d,a,()=>{const f=c.injector.get(Uo);return f.runInitializers(),f.donePromise.then(()=>(id(c.injector.get(nr,Va)||Va),this._moduleDoBootstrap(c),c))})})}bootstrapModule(n,r=[]){const o=ev({},r);return function(t,e,n){const r=new Sd(n);return Promise.resolve(r)}(0,0,n).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(n){const r=n.injector.get($o);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new Error(`The module ${$(n.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(n){return new(n||t)(D(te))},t.\u0275prov=O({token:t,factory:t.\u0275fac}),t})();function ev(t,e){return Array.isArray(e)?e.reduce(ev,t):Object.assign(Object.assign({},t),e)}let $o=(()=>{class t{constructor(n,r,o,i,s){this._zone=n,this._injector=r,this._exceptionHandler=o,this._componentFactoryResolver=i,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 a=new le(u=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{u.next(this._stable),u.complete()})}),l=new le(u=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{be.assertNotInAngularZone(),Wd(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,u.next(!0))})})});const d=this._zone.onUnstable.subscribe(()=>{be.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{u.next(!1)}))});return()=>{c.unsubscribe(),d.unsubscribe()}});this.isStable=function(...t){let e=Number.POSITIVE_INFINITY,n=null,r=t[t.length-1];return js(r)?(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 le?t[0]:li(e)(gu(t,n))}(a,l.pipe(t=>mu()(function(t,e){return function(r){let o;o="function"==typeof t?t:function(){return t};const i=Object.create(r,Jb);return i.source=r,i.subjectFactory=o,i}}(tw)(t))))}bootstrap(n,r){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 o;o=n instanceof S_?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(o.componentType);const i=function(t){return t.isBoundToModule}(o)?void 0:this._injector.get(yn),a=o.create(te.NULL,[],r||o.selector,i),l=a.location.nativeElement,u=a.injector.get(Qd,null),c=u&&a.injector.get(qC);return u&&c&&c.registerApplication(l,u),a.onDestroy(()=>{this.detachView(a.hostView),Yd(this.components,a),c&&c.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;Yd(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(HC,[]).concat(this._bootstrapListeners).forEach(o=>o(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(n){return new(n||t)(D(be),D(te),D(br),D(Ar),D(Uo))},t.\u0275prov=O({token:t,factory:t.\u0275fac}),t})();function Yd(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class nl{}class GN{}const WN={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let qN=(()=>{class t{constructor(n,r){this._compiler=n,this._config=r||WN}load(n){return this.loadAndCompile(n)}loadAndCompile(n){let[r,o]=n.split("#");return void 0===o&&(o="default"),si(255)(r).then(i=>i[o]).then(i=>ov(i,r,o)).then(i=>this._compiler.compileModuleAsync(i))}loadFactory(n){let[r,o]=n.split("#"),i="NgFactory";return void 0===o&&(o="default",i=""),si(255)(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(s=>s[o+i]).then(s=>ov(s,r,o))}}return t.\u0275fac=function(n){return new(n||t)(D(xr),D(GN,8))},t.\u0275prov=O({token:t,factory:t.\u0275fac}),t})();function ov(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const n1=YC(null,"core",[{provide:Xa,useValue:"unknown"},{provide:XC,deps:[te]},{provide:qC,deps:[]},{provide:el,deps:[]}]),a1=[{provide:$o,useClass:$o,deps:[be,te,br,Ar,Uo]},{provide:uR,deps:[be],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(n){e.push(n)}}},{provide:Uo,useClass:Uo,deps:[[new ct,ss]]},{provide:xr,useClass:xr,deps:[]},pN,{provide:qi,useFactory:function(){return rx},deps:[]},{provide:Po,useFactory:function(){return ox},deps:[]},{provide:nr,useFactory:function(t){return id(t=t||"undefined"!=typeof $localize&&$localize.locale||Va),t},deps:[[new io(nr),new ct,new Zn]]},{provide:UC,useValue:"USD"}];let u1=(()=>{class t{constructor(n){}}return t.\u0275fac=function(n){return new(n||t)(D($o))},t.\u0275mod=bt({type:t}),t.\u0275inj=at({providers:a1}),t})(),fl=null;function Cn(){return fl}const je=new G("DocumentToken");let Or=(()=>{class t{historyGo(n){throw new Error("Not implemented")}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=O({factory:lO,token:t,providedIn:"platform"}),t})();function lO(){return D(Sv)}const uO=new G("Location Initialized");let Sv=(()=>{class t extends Or{constructor(n){super(),this._doc=n,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Cn().getBaseHref(this._doc)}onPopState(n){const r=Cn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){const r=Cn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(n){this.location.pathname=n}pushState(n,r,o){Tv()?this._history.pushState(n,r,o):this.location.hash=o}replaceState(n,r,o){Tv()?this._history.replaceState(n,r,o):this.location.hash=o}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}}return t.\u0275fac=function(n){return new(n||t)(D(je))},t.\u0275prov=O({factory:cO,token:t,providedIn:"platform"}),t})();function Tv(){return!!window.history.pushState}function cO(){return new Sv(D(je))}function hf(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function xv(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function Bn(t){return t&&"?"!==t[0]?"?"+t:t}let qo=(()=>{class t{historyGo(n){throw new Error("Not implemented")}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=O({factory:dO,token:t,providedIn:"root"}),t})();function dO(t){const e=D(je).location;return new Rv(D(Or),e&&e.origin||"")}const pf=new G("appBaseHref");let Rv=(()=>{class t extends qo{constructor(n,r){if(super(),this._platformLocation=n,this._removeListenerFns=[],null==r&&(r=this._platformLocation.getBaseHrefFromDOM()),null==r)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=r}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return hf(this._baseHref,n)}path(n=!1){const r=this._platformLocation.pathname+Bn(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){const s=this.prepareExternalUrl(o+Bn(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){const s=this.prepareExternalUrl(o+Bn(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(n=0){var r,o;null===(o=(r=this._platformLocation).historyGo)||void 0===o||o.call(r,n)}}return t.\u0275fac=function(n){return new(n||t)(D(Or),D(pf,8))},t.\u0275prov=O({token:t,factory:t.\u0275fac}),t})(),fO=(()=>{class t extends qo{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(n){const r=hf(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+Bn(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+Bn(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(n=0){var r,o;null===(o=(r=this._platformLocation).historyGo)||void 0===o||o.call(r,n)}}return t.\u0275fac=function(n){return new(n||t)(D(Or),D(pf,8))},t.\u0275prov=O({token:t,factory:t.\u0275fac}),t})(),hl=(()=>{class t{constructor(n,r){this._subject=new Re,this._urlChangeListeners=[],this._platformStrategy=n;const o=this._platformStrategy.getBaseHref();this._platformLocation=r,this._baseHref=xv(Nv(o)),this._platformStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}path(n=!1){return this.normalize(this._platformStrategy.path(n))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+Bn(r))}normalize(n){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,Nv(n)))}prepareExternalUrl(n){return n&&"/"!==n[0]&&(n="/"+n),this._platformStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._platformStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Bn(r)),o)}replaceState(n,r="",o=null){this._platformStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Bn(r)),o)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(n=0){var r,o;null===(o=(r=this._platformStrategy).historyGo)||void 0===o||o.call(r,n)}onUrlChange(n){this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}))}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r,complete:o})}}return t.\u0275fac=function(n){return new(n||t)(D(qo),D(Or))},t.normalizeQueryParams=Bn,t.joinWithSlash=hf,t.stripTrailingSlash=xv,t.\u0275prov=O({factory:hO,token:t,providedIn:"root"}),t})();function hO(){return new hl(D(qo),D(Or))}function Nv(t){return t.replace(/\/index.html$/,"")}const Ov={ADP:[void 0,void 0,0],AFN:[void 0,void 0,0],ALL:[void 0,void 0,0],AMD:[void 0,void 0,2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,"\u0440.",2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:[void 0,"\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RUR:[void 0,"\u0440."],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["CFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var dt=(()=>((dt=dt||{})[dt.Decimal=0]="Decimal",dt[dt.Percent=1]="Percent",dt[dt.Currency=2]="Currency",dt[dt.Scientific=3]="Scientific",dt))(),we=(()=>((we=we||{})[we.Zero=0]="Zero",we[we.One=1]="One",we[we.Two=2]="Two",we[we.Few=3]="Few",we[we.Many=4]="Many",we[we.Other=5]="Other",we))(),x=(()=>((x=x||{})[x.Decimal=0]="Decimal",x[x.Group=1]="Group",x[x.List=2]="List",x[x.PercentSign=3]="PercentSign",x[x.PlusSign=4]="PlusSign",x[x.MinusSign=5]="MinusSign",x[x.Exponential=6]="Exponential",x[x.SuperscriptingExponent=7]="SuperscriptingExponent",x[x.PerMille=8]="PerMille",x[x.Infinity=9]="Infinity",x[x.NaN=10]="NaN",x[x.TimeSeparator=11]="TimeSeparator",x[x.CurrencyDecimal=12]="CurrencyDecimal",x[x.CurrencyGroup=13]="CurrencyGroup",x))();function Pt(t,e){const n=rt(t),r=n[I.NumberSymbols][e];if(void 0===r){if(e===x.CurrencyDecimal)return n[I.NumberSymbols][x.Decimal];if(e===x.CurrencyGroup)return n[I.NumberSymbols][x.Group]}return r}const DO=function(t){return rt(t)[I.PluralCase]};const BO=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function GO(t,e,n,r,o){const s=function(t,e="-"){const n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=t.split(";"),o=r[0],i=r[1],s=-1!==o.indexOf(".")?o.split("."):[o.substring(0,o.lastIndexOf("0")+1),o.substring(o.lastIndexOf("0")+1)],a=s[0],l=s[1]||"";n.posPre=a.substr(0,a.indexOf("#"));for(let c=0;c<l.length;c++){const d=l.charAt(c);"0"===d?n.minFrac=n.maxFrac=c+1:"#"===d?n.maxFrac=c+1:n.posSuf+=d}const u=a.split(",");if(n.gSize=u[1]?u[1].length:0,n.lgSize=u[2]||u[1]?(u[2]||u[1]).length:0,i){const c=o.length-n.posPre.length-n.posSuf.length,d=i.indexOf("#");n.negPre=i.substr(0,d).replace(/'/g,""),n.negSuf=i.substr(d+c).replace(/'/g,"")}else n.negPre=e+n.posPre,n.negSuf=n.posSuf;return n}(function(t,e){return rt(t)[I.NumberFormats][e]}(e,dt.Currency),Pt(e,x.MinusSign));return s.minFrac=function(t){let e;const n=Ov[t];return n&&(e=n[2]),"number"==typeof e?e:2}(r),s.maxFrac=s.minFrac,function(t,e,n,r,o,i,s=!1){let a="",l=!1;if(isFinite(t)){let u=function(t){let r,o,i,s,a,e=Math.abs(t)+"",n=0;for((o=e.indexOf("."))>-1&&(e=e.replace(".","")),(i=e.search(/e/i))>0?(o<0&&(o=i),o+=+e.slice(i+1),e=e.substring(0,i)):o<0&&(o=e.length),i=0;"0"===e.charAt(i);i++);if(i===(a=e.length))r=[0],o=1;else{for(a--;"0"===e.charAt(a);)a--;for(o-=i,r=[],s=0;i<=a;i++,s++)r[s]=Number(e.charAt(i))}return o>22&&(r=r.splice(0,21),n=o-1,o=1),{digits:r,exponent:n,integerLen:o}}(t);s&&(u=function(t){if(0===t.digits[0])return t;const e=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===e?t.digits.push(0,0):1===e&&t.digits.push(0),t.integerLen+=2),t}(u));let c=e.minInt,d=e.minFrac,f=e.maxFrac;if(i){const y=i.match(BO);if(null===y)throw new Error(`${i} is not a valid digit info`);const M=y[1],A=y[3],W=y[5];null!=M&&(c=Ef(M)),null!=A&&(d=Ef(A)),null!=W?f=Ef(W):null!=A&&d>f&&(f=d)}!function(t,e,n){if(e>n)throw new Error(`The minimum number of digits after fraction (${e}) is higher than the maximum (${n}).`);let r=t.digits,o=r.length-t.integerLen;const i=Math.min(Math.max(e,o),n);let s=i+t.integerLen,a=r[s];if(s>0){r.splice(Math.max(t.integerLen,s));for(let d=s;d<r.length;d++)r[d]=0}else{o=Math.max(0,o),t.integerLen=1,r.length=Math.max(1,s=i+1),r[0]=0;for(let d=1;d<s;d++)r[d]=0}if(a>=5)if(s-1<0){for(let d=0;d>s;d--)r.unshift(0),t.integerLen++;r.unshift(1),t.integerLen++}else r[s-1]++;for(;o<Math.max(0,i);o++)r.push(0);let l=0!==i;const u=e+t.integerLen,c=r.reduceRight(function(d,f,h,p){return p[h]=(f+=d)<10?f:f-10,l&&(0===p[h]&&h>=u?p.pop():l=!1),f>=10?1:0},0);c&&(r.unshift(c),t.integerLen++)}(u,d,f);let h=u.digits,p=u.integerLen;const m=u.exponent;let g=[];for(l=h.every(y=>!y);p<c;p++)h.unshift(0);for(;p<0;p++)h.unshift(0);p>0?g=h.splice(p,h.length):(g=h,h=[0]);const _=[];for(h.length>=e.lgSize&&_.unshift(h.splice(-e.lgSize,h.length).join(""));h.length>e.gSize;)_.unshift(h.splice(-e.gSize,h.length).join(""));h.length&&_.unshift(h.join("")),a=_.join(Pt(n,r)),g.length&&(a+=Pt(n,o)+g.join("")),m&&(a+=Pt(n,x.Exponential)+"+"+m)}else a=Pt(n,x.Infinity);return a=t<0&&!l?e.negPre+a+e.negSuf:e.posPre+a+e.posSuf,a}(t,s,e,x.CurrencyGroup,x.CurrencyDecimal,o).replace("\xa4",n).replace("\xa4","").trim()}function Ef(t){const e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}class bl{}let JO=(()=>{class t extends bl{constructor(n){super(),this.locale=n}getPluralCategory(n,r){switch(DO(r||this.locale)(n)){case we.Zero:return"zero";case we.One:return"one";case we.Two:return"two";case we.Few:return"few";case we.Many:return"many";default:return"other"}}}return t.\u0275fac=function(n){return new(n||t)(D(nr))},t.\u0275prov=O({token:t,factory:t.\u0275fac}),t})();function Hv(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const r=n.indexOf("="),[o,i]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===e)return decodeURIComponent(i)}return null}class XO{constructor(e,n,r,o){this.$implicit=e,this.ngForOf=n,this.index=r,this.count=o}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 wl=(()=>{class t{constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(n){n&&(this._template=n)}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(r){throw new Error(`Cannot find a differ supporting object '${n}' of type '${function(t){return t.name||typeof t}(n)}'. NgFor only supports binding to Iterables such as Arrays.`)}}if(this._differ){const n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){const r=[];n.forEachOperation((o,i,s)=>{if(null==o.previousIndex){const a=this._viewContainer.createEmbeddedView(this._template,new XO(null,this._ngForOf,-1,-1),null===s?void 0:s),l=new Uv(o,a);r.push(l)}else if(null==s)this._viewContainer.remove(null===i?void 0:i);else if(null!==i){const a=this._viewContainer.get(i);this._viewContainer.move(a,s);const l=new Uv(o,a);r.push(l)}});for(let o=0;o<r.length;o++)this._perViewChange(r[o].view,r[o].record);for(let o=0,i=this._viewContainer.length;o<i;o++){const s=this._viewContainer.get(o);s.context.index=o,s.context.count=i,s.context.ngForOf=this._ngForOf}n.forEachIdentityChange(o=>{this._viewContainer.get(o.currentIndex).context.$implicit=o.item})}_perViewChange(n,r){n.context.$implicit=r.item}static ngTemplateContextGuard(n,r){return!0}}return t.\u0275fac=function(n){return new(n||t)(v(Qt),v(Ln),v(qi))},t.\u0275dir=R({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class Uv{constructor(e,n){this.record=e,this.view=n}}let Ml=(()=>{class t{constructor(n,r){this._viewContainer=n,this._context=new tP,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){$v("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){$v("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,r){return!0}}return t.\u0275fac=function(n){return new(n||t)(v(Qt),v(Ln))},t.\u0275dir=R({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class tP{constructor(){this.$implicit=null,this.ngIf=null}}function $v(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${$(e)}'.`)}let Wv=(()=>{class t{transform(n){return JSON.stringify(n,null,2)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275pipe=lt({name:"json",type:t,pure:!1}),t})(),Il=(()=>{class t{constructor(n,r="USD"){this._locale=n,this._defaultCurrencyCode=r}transform(n,r=this._defaultCurrencyCode,o="symbol",i,s){if(!function(t){return!(null==t||""===t||t!=t)}(n))return null;s=s||this._locale,"boolean"==typeof o&&(o=o?"symbol":"code");let a=r||this._defaultCurrencyCode;"code"!==o&&(a="symbol"===o||"symbol-narrow"===o?function(t,e,n="en"){const r=function(t){return rt(t)[I.Currencies]}(n)[t]||Ov[t]||[],o=r[1];return"narrow"===e&&"string"==typeof o?o:r[0]||t}(a,"symbol"===o?"wide":"narrow",s):o);try{return GO(function(t){if("string"==typeof t&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if("number"!=typeof t)throw new Error(`${t} is not a number`);return t}(n),s,a,r,i)}catch(l){throw function(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${$(t)}'`)}(t,l.message)}}}return t.\u0275fac=function(n){return new(n||t)(v(nr,16),v(UC,16))},t.\u0275pipe=lt({name:"currency",type:t,pure:!0}),t})();let MP=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=bt({type:t}),t.\u0275inj=at({providers:[{provide:bl,useClass:JO}]}),t})();let Qv=(()=>{class t{}return t.\u0275prov=O({token:t,providedIn:"root",factory:()=>new TP(D(je),window)}),t})();class TP{constructor(e,n){this.document=e,this.window=n,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(!this.supportsScrolling())return;const n=function(t,e){const n=t.getElementById(e)||t.getElementsByName(e)[0];if(n)return n;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const r=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let o=r.currentNode;for(;o;){const i=o.shadowRoot;if(i){const s=i.getElementById(e)||i.querySelector(`[name="${e}"]`);if(s)return s}o=r.nextNode()}}return null}(this.document,e);n&&(this.scrollToElement(n),this.attemptFocus(n))}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const n=this.window.history;n&&n.scrollRestoration&&(n.scrollRestoration=e)}}scrollToElement(e){const n=e.getBoundingClientRect(),r=n.left+this.window.pageXOffset,o=n.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],o-i[1])}attemptFocus(e){return e.focus(),this.document.activeElement===e}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const e=Kv(this.window.history)||Kv(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(e){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(e){return!1}}}function Kv(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class Jv{}class Af extends class extends class{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function(t){fl||(fl=t)}(new Af)}onAndCancel(e,n,r){return e.addEventListener(n,r,!1),()=>{e.removeEventListener(n,r,!1)}}dispatchEvent(e,n){e.dispatchEvent(n)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,n){return(n=n||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,n){return"window"===n?window:"document"===n?e:"body"===n?e.body:null}getBaseHref(e){const n=(ps=ps||document.querySelector("base"),ps?ps.getAttribute("href"):null);return null==n?null:function(t){Al=Al||document.createElement("a"),Al.setAttribute("href",t);const e=Al.pathname;return"/"===e.charAt(0)?e:`/${e}`}(n)}resetBaseElement(){ps=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return Hv(document.cookie,e)}}let Al,ps=null;const Yv=new G("TRANSITION_ID"),FP=[{provide:ss,useFactory:function(t,e,n){return()=>{n.get(Uo).donePromise.then(()=>{const r=Cn(),o=e.querySelectorAll(`style[ng-transition="${t}"]`);for(let i=0;i<o.length;i++)r.remove(o[i])})}},deps:[Yv,je,te],multi:!0}];class Sf{static init(){!function(t){Kd=t}(new Sf)}addToWindow(e){ee.getAngularTestability=(r,o=!0)=>{const i=e.findTestabilityInTree(r,o);if(null==i)throw new Error("Could not find testability for element.");return i},ee.getAllAngularTestabilities=()=>e.getAllTestabilities(),ee.getAllAngularRootElements=()=>e.getAllRootElements(),ee.frameworkStabilizers||(ee.frameworkStabilizers=[]),ee.frameworkStabilizers.push(r=>{const o=ee.getAllAngularTestabilities();let i=o.length,s=!1;const a=function(l){s=s||l,i--,0==i&&r(s)};o.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(e,n,r){if(null==n)return null;const o=e.getTestability(n);return null!=o?o:r?Cn().isShadowRoot(n)?this.findTestabilityInTree(e,n.host,!0):this.findTestabilityInTree(e,n.parentElement,!0):null}}let kP=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=O({token:t,factory:t.\u0275fac}),t})();const gs=new G("EventManagerPlugins");let Tl=(()=>{class t{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>o.manager=this),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}addGlobalEventListener(n,r,o){return this._findPluginFor(r).addGlobalEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){const r=this._eventNameToPlugin.get(n);if(r)return r;const o=this._plugins;for(let i=0;i<o.length;i++){const s=o[i];if(s.supports(n))return this._eventNameToPlugin.set(n,s),s}throw new Error(`No event manager plugin found for event ${n}`)}}return t.\u0275fac=function(n){return new(n||t)(D(gs),D(be))},t.\u0275prov=O({token:t,factory:t.\u0275fac}),t})();class Tf{constructor(e){this._doc=e}addGlobalEventListener(e,n,r){const o=Cn().getGlobalEventTarget(this._doc,e);if(!o)throw new Error(`Unsupported event target ${o} for event ${n}`);return this.addEventListener(o,n,r)}}let Xv=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(n){const r=new Set;n.forEach(o=>{this._stylesSet.has(o)||(this._stylesSet.add(o),r.add(o))}),this.onStylesAdded(r)}onStylesAdded(n){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=O({token:t,factory:t.\u0275fac}),t})(),ms=(()=>{class t extends Xv{constructor(n){super(),this._doc=n,this._hostNodes=new Map,this._hostNodes.set(n.head,[])}_addStylesToHost(n,r,o){n.forEach(i=>{const s=this._doc.createElement("style");s.textContent=i,o.push(r.appendChild(s))})}addHost(n){const r=[];this._addStylesToHost(this._stylesSet,n,r),this._hostNodes.set(n,r)}removeHost(n){const r=this._hostNodes.get(n);r&&r.forEach(eD),this._hostNodes.delete(n)}onStylesAdded(n){this._hostNodes.forEach((r,o)=>{this._addStylesToHost(n,o,r)})}ngOnDestroy(){this._hostNodes.forEach(n=>n.forEach(eD))}}return t.\u0275fac=function(n){return new(n||t)(D(je))},t.\u0275prov=O({token:t,factory:t.\u0275fac}),t})();function eD(t){Cn().remove(t)}const xf={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/"},Rf=/%COMP%/g;function xl(t,e,n){for(let r=0;r<e.length;r++){let o=e[r];Array.isArray(o)?xl(t,o,n):(o=o.replace(Rf,t),n.push(o))}return n}function rD(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let Nf=(()=>{class t{constructor(n,r,o){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.rendererByCompId=new Map,this.defaultRenderer=new Of(n)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;switch(r.encapsulation){case Ae.Emulated:{let o=this.rendererByCompId.get(r.id);return o||(o=new YP(this.eventManager,this.sharedStylesHost,r,this.appId),this.rendererByCompId.set(r.id,o)),o.applyToHost(n),o}case 1:case Ae.ShadowDom:return new ZP(this.eventManager,this.sharedStylesHost,n,r);default:if(!this.rendererByCompId.has(r.id)){const o=xl(r.id,r.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(r.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(n){return new(n||t)(D(Tl),D(ms),D(as))},t.\u0275prov=O({token:t,factory:t.\u0275fac}),t})();class Of{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,n){return n?document.createElementNS(xf[n]||n,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,n){e.appendChild(n)}insertBefore(e,n,r){e&&e.insertBefore(n,r)}removeChild(e,n){e&&e.removeChild(n)}selectRootElement(e,n){let r="string"==typeof e?document.querySelector(e):e;if(!r)throw new Error(`The selector "${e}" did not match any elements`);return n||(r.textContent=""),r}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,n,r,o){if(o){n=o+":"+n;const i=xf[o];i?e.setAttributeNS(i,n,r):e.setAttribute(n,r)}else e.setAttribute(n,r)}removeAttribute(e,n,r){if(r){const o=xf[r];o?e.removeAttributeNS(o,n):e.removeAttribute(`${r}:${n}`)}else e.removeAttribute(n)}addClass(e,n){e.classList.add(n)}removeClass(e,n){e.classList.remove(n)}setStyle(e,n,r,o){o&(_t.DashCase|_t.Important)?e.style.setProperty(n,r,o&_t.Important?"important":""):e.style[n]=r}removeStyle(e,n,r){r&_t.DashCase?e.style.removeProperty(n):e.style[n]=""}setProperty(e,n,r){e[n]=r}setValue(e,n){e.nodeValue=n}listen(e,n,r){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,n,rD(r)):this.eventManager.addEventListener(e,n,rD(r))}}class YP extends Of{constructor(e,n,r,o){super(e),this.component=r;const i=xl(o+"-"+r.id,r.styles,[]);n.addStyles(i),this.contentAttr=function(t){return"_ngcontent-%COMP%".replace(Rf,t)}(o+"-"+r.id),this.hostAttr=function(t){return"_nghost-%COMP%".replace(Rf,t)}(o+"-"+r.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,n){const r=super.createElement(e,n);return super.setAttribute(r,this.contentAttr,""),r}}class ZP extends Of{constructor(e,n,r,o){super(e),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const i=xl(o.id,o.styles,[]);for(let s=0;s<i.length;s++){const a=document.createElement("style");a.textContent=i[s],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,n){return super.appendChild(this.nodeOrShadowRoot(e),n)}insertBefore(e,n,r){return super.insertBefore(this.nodeOrShadowRoot(e),n,r)}removeChild(e,n){return super.removeChild(this.nodeOrShadowRoot(e),n)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}let XP=(()=>{class t extends Tf{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}}return t.\u0275fac=function(n){return new(n||t)(D(je))},t.\u0275prov=O({token:t,factory:t.\u0275fac}),t})();const sD=["alt","control","meta","shift"],sF={"\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"},aD={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"},aF={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let lF=(()=>{class t extends Tf{constructor(n){super(n)}supports(n){return null!=t.parseEventName(n)}addEventListener(n,r,o){const i=t.parseEventName(r),s=t.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Cn().onAndCancel(n,i.domEventName,s))}static parseEventName(n){const r=n.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const i=t._normalizeKey(r.pop());let s="";if(sD.forEach(l=>{const u=r.indexOf(l);u>-1&&(r.splice(u,1),s+=l+".")}),s+=i,0!=r.length||0===i.length)return null;const a={};return a.domEventName=o,a.fullKey=s,a}static getEventFullKey(n){let r="",o=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&&aD.hasOwnProperty(e)&&(e=aD[e]))}return sF[e]||e}(n);return o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),sD.forEach(i=>{i!=o&&aF[i](n)&&(r+=i+".")}),r+=o,r}static eventCallback(n,r,o){return i=>{t.getEventFullKey(i)===n&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){switch(n){case"esc":return"escape";default:return n}}}return t.\u0275fac=function(n){return new(n||t)(D(je))},t.\u0275prov=O({token:t,factory:t.\u0275fac}),t})();const mF=YC(n1,"browser",[{provide:Xa,useValue:"browser"},{provide:BC,useValue:function(){Af.makeCurrent(),Sf.init()},multi:!0},{provide:je,useFactory:function(){return function(t){Tu=t}(document),document},deps:[]}]),yF=[[],{provide:Pi,useValue:"root"},{provide:br,useFactory:function(){return new br},deps:[]},{provide:gs,useClass:XP,multi:!0,deps:[je,be,Xa]},{provide:gs,useClass:lF,multi:!0,deps:[je]},[],{provide:Nf,useClass:Nf,deps:[Tl,ms,as]},{provide:$a,useExisting:Nf},{provide:Xv,useExisting:ms},{provide:ms,useClass:ms,deps:[je]},{provide:Qd,useClass:Qd,deps:[be]},{provide:Tl,useClass:Tl,deps:[gs,be]},{provide:Jv,useClass:kP,deps:[]},[]];let _F=(()=>{class t{constructor(n){if(n)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(n){return{ngModule:t,providers:[{provide:as,useValue:n.appId},{provide:Yv,useExisting:as},FP]}}}return t.\u0275fac=function(n){return new(n||t)(D(t,12))},t.\u0275mod=bt({type:t}),t.\u0275inj=at({providers:yF,imports:[MP,u1]}),t})();function j(...t){let e=t[t.length-1];return js(e)?(t.pop(),du(t,e)):gu(t)}function zo(t,e){return He(t,e,1)}function Pr(t,e){return function(r){return r.lift(new IF(t,e))}}"undefined"!=typeof window&&window;class IF{constructor(e,n){this.predicate=e,this.thisArg=n}call(e,n){return n.subscribe(new AF(e,this.predicate,this.thisArg))}}class AF extends he{constructor(e,n,r){super(e),this.predicate=n,this.thisArg=r,this.count=0}_next(e){let n;try{n=this.predicate.call(this.thisArg,e,this.count++)}catch(r){return void this.destination.error(r)}n&&this.destination.next(e)}}class uD{}class cD{}class vn{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(n=>{const r=n.indexOf(":");if(r>0){const o=n.slice(0,r),i=o.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(n=>{let r=e[n];const o=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(this.headers.set(o,r),this.maybeSetNormalizedName(n,o))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const n=this.headers.get(e.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,n){return this.clone({name:e,value:n,op:"a"})}set(e,n){return this.clone({name:e,value:n,op:"s"})}delete(e,n){return this.clone({name:e,value:n,op:"d"})}maybeSetNormalizedName(e,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,e)}init(){this.lazyInit&&(this.lazyInit instanceof vn?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(n=>{this.headers.set(n,e.headers.get(n)),this.normalizedNames.set(n,e.normalizedNames.get(n))})}clone(e){const n=new vn;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof vn?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n}applyUpdate(e){const n=e.name.toLowerCase();switch(e.op){case"a":case"s":let r=e.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(e.name,n);const o=("a"===e.op?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":const i=e.value;if(i){let s=this.headers.get(n);if(!s)return;s=s.filter(a=>-1===i.indexOf(a)),0===s.length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}else this.headers.delete(n),this.normalizedNames.delete(n)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>e(this.normalizedNames.get(n),this.headers.get(n)))}}class SF{encodeKey(e){return dD(e)}encodeValue(e){return dD(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}const xF=/%(\d[a-f0-9])/gi,RF={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function dD(t){return encodeURIComponent(t).replace(xF,(e,n)=>{var r;return null!==(r=RF[n])&&void 0!==r?r:e})}function fD(t){return`${t}`}class ir{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new SF,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{const i=o.indexOf("="),[s,a]=-1==i?[e.decodeKey(o),""]:[e.decodeKey(o.slice(0,i)),e.decodeValue(o.slice(i+1))],l=n.get(s)||[];l.push(a),n.set(s,l)}),n}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(n=>{const r=e.fromObject[n];this.map.set(n,Array.isArray(r)?r:[r])})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const n=this.map.get(e);return n?n[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,n){return this.clone({param:e,value:n,op:"a"})}appendAll(e){const n=[];return Object.keys(e).forEach(r=>{const o=e[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(e,n){return this.clone({param:e,value:n,op:"s"})}delete(e,n){return this.clone({param:e,value:n,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const n=this.encoder.encodeKey(e);return this.map.get(e).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const n=new ir({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(e),n}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const n=("a"===e.op?this.map.get(e.param):void 0)||[];n.push(fD(e.value)),this.map.set(e.param,n);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let r=this.map.get(e.param)||[];const o=r.indexOf(fD(e.value));-1!==o&&r.splice(o,1),r.length>0?this.map.set(e.param,r):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}class NF{constructor(){this.map=new Map}set(e,n){return this.map.set(e,n),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}keys(){return this.map.keys()}}function hD(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function pD(t){return"undefined"!=typeof Blob&&t instanceof Blob}function gD(t){return"undefined"!=typeof FormData&&t instanceof FormData}class ys{constructor(e,n,r,o){let i;if(this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==r?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params)),this.headers||(this.headers=new vn),this.context||(this.context=new NF),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=n;else{const a=n.indexOf("?");this.urlWithParams=n+(-1===a?"?":a<n.length-1?"&":"")+s}}else this.params=new ir,this.urlWithParams=n}serializeBody(){return null===this.body?null:hD(this.body)||pD(this.body)||gD(this.body)||function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof ir?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||gD(this.body)?null:pD(this.body)?this.body.type||null:hD(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof ir?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(e={}){var n;const r=e.method||this.method,o=e.url||this.url,i=e.responseType||this.responseType,s=void 0!==e.body?e.body:this.body,a=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,l=void 0!==e.reportProgress?e.reportProgress:this.reportProgress;let u=e.headers||this.headers,c=e.params||this.params;const d=null!==(n=e.context)&&void 0!==n?n:this.context;return void 0!==e.setHeaders&&(u=Object.keys(e.setHeaders).reduce((f,h)=>f.set(h,e.setHeaders[h]),u)),e.setParams&&(c=Object.keys(e.setParams).reduce((f,h)=>f.set(h,e.setParams[h]),c)),new ys(r,o,s,{params:c,headers:u,context:d,reportProgress:l,responseType:i,withCredentials:a})}}var Ie=(()=>((Ie=Ie||{})[Ie.Sent=0]="Sent",Ie[Ie.UploadProgress=1]="UploadProgress",Ie[Ie.ResponseHeader=2]="ResponseHeader",Ie[Ie.DownloadProgress=3]="DownloadProgress",Ie[Ie.Response=4]="Response",Ie[Ie.User=5]="User",Ie))();class Lf{constructor(e,n=200,r="OK"){this.headers=e.headers||new vn,this.status=void 0!==e.status?e.status:n,this.statusText=e.statusText||r,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}class jf extends Lf{constructor(e={}){super(e),this.type=Ie.ResponseHeader}clone(e={}){return new jf({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class Rl extends Lf{constructor(e={}){super(e),this.type=Ie.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new Rl({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class mD extends Lf{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${e.url||"(unknown url)"}`:`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}}function Bf(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let yD=(()=>{class t{constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof ys)i=n;else{let l,u;l=o.headers instanceof vn?o.headers:new vn(o.headers),o.params&&(u=o.params instanceof ir?o.params:new ir({fromObject:o.params})),i=new ys(n,r,void 0!==o.body?o.body:null,{headers:l,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const s=j(i).pipe(zo(l=>this.handler.handle(l)));if(n instanceof ys||"events"===o.observe)return s;const a=s.pipe(Pr(l=>l instanceof Rl));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(Y(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(Y(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(Y(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));case"json":default:return a.pipe(Y(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:(new ir).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,Bf(o,r))}post(n,r,o={}){return this.request("POST",n,Bf(o,r))}put(n,r,o={}){return this.request("PUT",n,Bf(o,r))}}return t.\u0275fac=function(n){return new(n||t)(D(uD))},t.\u0275prov=O({token:t,factory:t.\u0275fac}),t})();class _D{constructor(e,n){this.next=e,this.interceptor=n}handle(e){return this.interceptor.intercept(e,this.next)}}const CD=new G("HTTP_INTERCEPTORS");let FF=(()=>{class t{intercept(n,r){return r.handle(n)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=O({token:t,factory:t.\u0275fac}),t})();const kF=/^\)\]\}',?\n/;let vD=(()=>{class t{constructor(n){this.xhrFactory=n}handle(n){if("JSONP"===n.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new le(r=>{const o=this.xhrFactory.build();if(o.open(n.method,n.urlWithParams),n.withCredentials&&(o.withCredentials=!0),n.headers.forEach((h,p)=>o.setRequestHeader(h,p.join(","))),n.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){const h=n.detectContentTypeHeader();null!==h&&o.setRequestHeader("Content-Type",h)}if(n.responseType){const h=n.responseType.toLowerCase();o.responseType="json"!==h?h:"text"}const i=n.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const h=1223===o.status?204:o.status,p=o.statusText||"OK",m=new vn(o.getAllResponseHeaders()),g=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(o)||n.url;return s=new jf({headers:m,status:h,statusText:p,url:g}),s},l=()=>{let{headers:h,status:p,statusText:m,url:g}=a(),_=null;204!==p&&(_=void 0===o.response?o.responseText:o.response),0===p&&(p=_?200:0);let y=p>=200&&p<300;if("json"===n.responseType&&"string"==typeof _){const M=_;_=_.replace(kF,"");try{_=""!==_?JSON.parse(_):null}catch(A){_=M,y&&(y=!1,_={error:A,text:_})}}y?(r.next(new Rl({body:_,headers:h,status:p,statusText:m,url:g||void 0})),r.complete()):r.error(new mD({error:_,headers:h,status:p,statusText:m,url:g||void 0}))},u=h=>{const{url:p}=a(),m=new mD({error:h,status:o.status||0,statusText:o.statusText||"Unknown Error",url:p||void 0});r.error(m)};let c=!1;const d=h=>{c||(r.next(a()),c=!0);let p={type:Ie.DownloadProgress,loaded:h.loaded};h.lengthComputable&&(p.total=h.total),"text"===n.responseType&&!!o.responseText&&(p.partialText=o.responseText),r.next(p)},f=h=>{let p={type:Ie.UploadProgress,loaded:h.loaded};h.lengthComputable&&(p.total=h.total),r.next(p)};return o.addEventListener("load",l),o.addEventListener("error",u),o.addEventListener("timeout",u),o.addEventListener("abort",u),n.reportProgress&&(o.addEventListener("progress",d),null!==i&&o.upload&&o.upload.addEventListener("progress",f)),o.send(i),r.next({type:Ie.Sent}),()=>{o.removeEventListener("error",u),o.removeEventListener("abort",u),o.removeEventListener("load",l),o.removeEventListener("timeout",u),n.reportProgress&&(o.removeEventListener("progress",d),null!==i&&o.upload&&o.upload.removeEventListener("progress",f)),o.readyState!==o.DONE&&o.abort()}})}}return t.\u0275fac=function(n){return new(n||t)(D(Jv))},t.\u0275prov=O({token:t,factory:t.\u0275fac}),t})();const Hf=new G("XSRF_COOKIE_NAME"),Uf=new G("XSRF_HEADER_NAME");class DD{}let LF=(()=>{class t{constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Hv(n,this.cookieName),this.lastCookieString=n),this.lastToken}}return t.\u0275fac=function(n){return new(n||t)(D(je),D(Xa),D(Hf))},t.\u0275prov=O({token:t,factory:t.\u0275fac}),t})(),$f=(()=>{class t{constructor(n,r){this.tokenService=n,this.headerName=r}intercept(n,r){const o=n.url.toLowerCase();if("GET"===n.method||"HEAD"===n.method||o.startsWith("http://")||o.startsWith("https://"))return r.handle(n);const i=this.tokenService.getToken();return null!==i&&!n.headers.has(this.headerName)&&(n=n.clone({headers:n.headers.set(this.headerName,i)})),r.handle(n)}}return t.\u0275fac=function(n){return new(n||t)(D(DD),D(Uf))},t.\u0275prov=O({token:t,factory:t.\u0275fac}),t})(),jF=(()=>{class t{constructor(n,r){this.backend=n,this.injector=r,this.chain=null}handle(n){if(null===this.chain){const r=this.injector.get(CD,[]);this.chain=r.reduceRight((o,i)=>new _D(o,i),this.backend)}return this.chain.handle(n)}}return t.\u0275fac=function(n){return new(n||t)(D(cD),D(te))},t.\u0275prov=O({token:t,factory:t.\u0275fac}),t})(),BF=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:$f,useClass:FF}]}}static withOptions(n={}){return{ngModule:t,providers:[n.cookieName?{provide:Hf,useValue:n.cookieName}:[],n.headerName?{provide:Uf,useValue:n.headerName}:[]]}}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=bt({type:t}),t.\u0275inj=at({providers:[$f,{provide:CD,useExisting:$f,multi:!0},{provide:DD,useClass:LF},{provide:Hf,useValue:"XSRF-TOKEN"},{provide:Uf,useValue:"X-XSRF-TOKEN"}]}),t})(),HF=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=bt({type:t}),t.\u0275inj=at({providers:[yD,{provide:uD,useClass:jF},vD,{provide:cD,useExisting:vD}],imports:[[BF.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();class nn extends Mn{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const n=super._subscribe(e);return n&&!n.closed&&e.next(this._value),n}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Ur;return this._value}next(e){super.next(this._value=e)}}class UF extends he{notifyNext(e,n,r,o,i){this.destination.next(n)}notifyError(e,n){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}class $F extends he{constructor(e,n,r){super(),this.parent=e,this.outerValue=n,this.outerIndex=r,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function GF(t,e,n,r,o=new $F(t,n,r)){if(!o.closed)return e instanceof le?e.subscribe(o):cu(e)(o)}const ED={};class qF{constructor(e){this.resultSelector=e}call(e,n){return n.subscribe(new zF(e,this.resultSelector))}}class zF extends UF{constructor(e,n){super(e),this.resultSelector=n,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(ED),this.observables.push(e)}_complete(){const e=this.observables,n=e.length;if(0===n)this.destination.complete();else{this.active=n,this.toRespond=n;for(let r=0;r<n;r++)this.add(GF(this,e[r],void 0,r))}}notifyComplete(e){0==(this.active-=1)&&this.destination.complete()}notifyNext(e,n,r){const o=this.values,s=this.toRespond?o[r]===ED?--this.toRespond:this.toRespond:0;o[r]=n,0===s&&(this.resultSelector?this._tryResultSelector(o):this.destination.next(o.slice()))}_tryResultSelector(e){let n;try{n=this.resultSelector.apply(this,e)}catch(r){return void this.destination.error(r)}this.destination.next(n)}}const Nl=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();function Gf(...t){return li(1)(j(...t))}const Qo=new le(t=>t.complete());function Wf(t){return t?function(t){return new le(e=>t.schedule(()=>e.complete()))}(t):Qo}function bD(t){return new le(e=>{let n;try{n=t()}catch(o){return void e.error(o)}return(n?Be(n):Wf()).subscribe(e)})}function sr(t,e){return"function"==typeof e?n=>n.pipe(sr((r,o)=>Be(t(r,o)).pipe(Y((i,s)=>e(r,i,o,s))))):n=>n.lift(new JF(t))}class JF{constructor(e){this.project=e}call(e,n){return n.subscribe(new YF(e,this.project))}}class YF extends hu{constructor(e,n){super(e),this.project=n,this.index=0}_next(e){let n;const r=this.index++;try{n=this.project(e,r)}catch(o){return void this.destination.error(o)}this._innerSub(n)}_innerSub(e){const n=this.innerSubscription;n&&n.unsubscribe();const r=new fu(this),o=this.destination;o.add(r),this.innerSubscription=pu(e,r),this.innerSubscription!==r&&o.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;(!e||e.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}const wD=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function qf(t){return e=>0===t?Wf():e.lift(new ZF(t))}class ZF{constructor(e){if(this.total=e,this.total<0)throw new wD}call(e,n){return n.subscribe(new XF(e,this.total))}}class XF extends he{constructor(e,n){super(e),this.total=n,this.count=0}_next(e){const n=this.total,r=++this.count;r<=n&&(this.destination.next(e),r===n&&(this.destination.complete(),this.unsubscribe()))}}function MD(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(o){return o.lift(new tk(t,e,n))}}class tk{constructor(e,n,r=!1){this.accumulator=e,this.seed=n,this.hasSeed=r}call(e,n){return n.subscribe(new nk(e,this.accumulator,this.seed,this.hasSeed))}}class nk extends he{constructor(e,n,r,o){super(e),this.accumulator=n,this._seed=r,this.hasSeed=o,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}_tryNext(e){const n=this.index++;let r;try{r=this.accumulator(this.seed,e,n)}catch(o){this.destination.error(o)}this.seed=r,this.destination.next(r)}}function Fr(t){return function(n){const r=new rk(t),o=n.lift(r);return r.caught=o}}class rk{constructor(e){this.selector=e}call(e,n){return n.subscribe(new ok(e,this.selector,this.caught))}}class ok extends hu{constructor(e,n,r){super(e),this.selector=n,this.caught=r}error(e){if(!this.isStopped){let n;try{n=this.selector(e,this.caught)}catch(i){return void super.error(i)}this._unsubscribeAndRecycle();const r=new fu(this);this.add(r);const o=pu(n,r);o!==r&&this.add(o)}}}function zf(t){return function(n){return 0===t?Wf():n.lift(new ik(t))}}class ik{constructor(e){if(this.total=e,this.total<0)throw new wD}call(e,n){return n.subscribe(new sk(e,this.total))}}class sk extends he{constructor(e,n){super(e),this.total=n,this.ring=new Array,this.count=0}_next(e){const n=this.ring,r=this.total,o=this.count++;n.length<r?n.push(e):n[o%r]=e}_complete(){const e=this.destination;let n=this.count;if(n>0){const r=this.count>=this.total?this.total:this.count,o=this.ring;for(let i=0;i<r;i++){const s=n++%r;e.next(o[s])}}e.complete()}}function ID(t=uk){return e=>e.lift(new ak(t))}class ak{constructor(e){this.errorFactory=e}call(e,n){return n.subscribe(new lk(e,this.errorFactory))}}class lk extends he{constructor(e,n){super(e),this.errorFactory=n,this.hasValue=!1}_next(e){this.hasValue=!0,this.destination.next(e)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(n){e=n}this.destination.error(e)}}}function uk(){return new Nl}function AD(t=null){return e=>e.lift(new ck(t))}class ck{constructor(e){this.defaultValue=e}call(e,n){return n.subscribe(new dk(e,this.defaultValue))}}class dk extends he{constructor(e,n){super(e),this.defaultValue=n,this.isEmpty=!0}_next(e){this.isEmpty=!1,this.destination.next(e)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function Ko(t,e){const n=arguments.length>=2;return r=>r.pipe(t?Pr((o,i)=>t(o,i,r)):Ls,qf(1),n?AD(e):ID(()=>new Nl))}function ar(){}function Dt(t,e,n){return function(o){return o.lift(new hk(t,e,n))}}class hk{constructor(e,n,r){this.nextOrObserver=e,this.error=n,this.complete=r}call(e,n){return n.subscribe(new pk(e,this.nextOrObserver,this.error,this.complete))}}class pk extends he{constructor(e,n,r,o){super(e),this._tapNext=ar,this._tapError=ar,this._tapComplete=ar,this._tapError=r||ar,this._tapComplete=o||ar,wn(n)?(this._context=this,this._tapNext=n):n&&(this._context=n,this._tapNext=n.next||ar,this._tapError=n.error||ar,this._tapComplete=n.complete||ar)}_next(e){try{this._tapNext.call(this._context,e)}catch(n){return void this.destination.error(n)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(n){return void this.destination.error(n)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}class mk{constructor(e){this.callback=e}call(e,n){return n.subscribe(new yk(e,this.callback))}}class yk extends he{constructor(e,n){super(e),this.add(new me(n))}}class Un{constructor(e,n){this.id=e,this.url=n}}class Qf extends Un{constructor(e,n,r="imperative",o=null){super(e,n),this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class _s extends Un{constructor(e,n,r){super(e,n),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class SD extends Un{constructor(e,n,r){super(e,n),this.reason=r}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class _k extends Un{constructor(e,n,r){super(e,n),this.error=r}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Ck extends Un{constructor(e,n,r,o){super(e,n),this.urlAfterRedirects=r,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class vk extends Un{constructor(e,n,r,o){super(e,n),this.urlAfterRedirects=r,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Dk extends Un{constructor(e,n,r,o,i){super(e,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Ek extends Un{constructor(e,n,r,o){super(e,n),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class bk extends Un{constructor(e,n,r,o){super(e,n),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class TD{constructor(e){this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class xD{constructor(e){this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class wk{constructor(e){this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Mk{constructor(e){this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ik{constructor(e){this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ak{constructor(e){this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class RD{constructor(e,n,r){this.routerEvent=e,this.position=n,this.anchor=r}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const z="primary";class Sk{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){const n=this.params[e];return Array.isArray(n)?n[0]:n}return null}getAll(e){if(this.has(e)){const n=this.params[e];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}}function Jo(t){return new Sk(t)}const ND="ngNavigationCancelingError";function Kf(t){const e=Error("NavigationCancelingError: "+t);return e[ND]=!0,e}function xk(t,e,n){const r=n.path.split("/");if(r.length>t.length||"full"===n.pathMatch&&(e.hasChildren()||r.length<t.length))return null;const o={};for(let i=0;i<r.length;i++){const s=r[i],a=t[i];if(s.startsWith(":"))o[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:t.slice(0,r.length),posParams:o}}function Dn(t,e){const n=t?Object.keys(t):void 0,r=e?Object.keys(e):void 0;if(!n||!r||n.length!=r.length)return!1;let o;for(let i=0;i<n.length;i++)if(o=n[i],!OD(t[o],e[o]))return!1;return!0}function OD(t,e){if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;const n=[...t].sort(),r=[...e].sort();return n.every((o,i)=>r[i]===o)}return t===e}function PD(t){return Array.prototype.concat.apply([],t)}function FD(t){return t.length>0?t[t.length-1]:null}function Ue(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function En(t){return Na(t)?t:ji(t)?Be(Promise.resolve(t)):j(t)}const Ok={exact:function LD(t,e,n){if(!Vr(t.segments,e.segments)||!Ol(t.segments,e.segments,n)||t.numberOfChildren!==e.numberOfChildren)return!1;for(const r in e.children)if(!t.children[r]||!LD(t.children[r],e.children[r],n))return!1;return!0},subset:jD},kD={exact:function(t,e){return Dn(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>OD(t[n],e[n]))},ignored:()=>!0};function VD(t,e,n){return Ok[n.paths](t.root,e.root,n.matrixParams)&&kD[n.queryParams](t.queryParams,e.queryParams)&&!("exact"===n.fragment&&t.fragment!==e.fragment)}function jD(t,e,n){return BD(t,e,e.segments,n)}function BD(t,e,n,r){if(t.segments.length>n.length){const o=t.segments.slice(0,n.length);return!(!Vr(o,n)||e.hasChildren()||!Ol(o,n,r))}if(t.segments.length===n.length){if(!Vr(t.segments,n)||!Ol(t.segments,n,r))return!1;for(const o in e.children)if(!t.children[o]||!jD(t.children[o],e.children[o],r))return!1;return!0}{const o=n.slice(0,t.segments.length),i=n.slice(t.segments.length);return!!(Vr(t.segments,o)&&Ol(t.segments,o,r)&&t.children[z])&&BD(t.children[z],e,i,r)}}function Ol(t,e,n){return e.every((r,o)=>kD[n](t[o].parameters,r.parameters))}class kr{constructor(e,n,r){this.root=e,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Jo(this.queryParams)),this._queryParamMap}toString(){return Lk.serialize(this)}}class J{constructor(e,n){this.segments=e,this.children=n,this.parent=null,Ue(n,(r,o)=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Pl(this)}}class Cs{constructor(e,n){this.path=e,this.parameters=n}get parameterMap(){return this._parameterMap||(this._parameterMap=Jo(this.parameters)),this._parameterMap}toString(){return GD(this)}}function Vr(t,e){return t.length===e.length&&t.every((n,r)=>n.path===e[r].path)}class Jf{}class HD{parse(e){const n=new zk(e);return new kr(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(e){return`${`/${vs(e.root,!0)}`}${function(t){const e=Object.keys(t).map(n=>{const r=t[n];return Array.isArray(r)?r.map(o=>`${Fl(n)}=${Fl(o)}`).join("&"):`${Fl(n)}=${Fl(r)}`}).filter(n=>!!n);return e.length?`?${e.join("&")}`:""}(e.queryParams)}${"string"==typeof e.fragment?`#${function(t){return encodeURI(t)}(e.fragment)}`:""}`}}const Lk=new HD;function Pl(t){return t.segments.map(e=>GD(e)).join("/")}function vs(t,e){if(!t.hasChildren())return Pl(t);if(e){const n=t.children[z]?vs(t.children[z],!1):"",r=[];return Ue(t.children,(o,i)=>{i!==z&&r.push(`${i}:${vs(o,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=function(t,e){let n=[];return Ue(t.children,(r,o)=>{o===z&&(n=n.concat(e(r,o)))}),Ue(t.children,(r,o)=>{o!==z&&(n=n.concat(e(r,o)))}),n}(t,(r,o)=>o===z?[vs(t.children[z],!1)]:[`${o}:${vs(r,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[z]?`${Pl(t)}/${n[0]}`:`${Pl(t)}/(${n.join("//")})`}}function UD(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Fl(t){return UD(t).replace(/%3B/gi,";")}function Yf(t){return UD(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function kl(t){return decodeURIComponent(t)}function $D(t){return kl(t.replace(/\+/g,"%20"))}function GD(t){return`${Yf(t.path)}${function(t){return Object.keys(t).map(e=>`;${Yf(e)}=${Yf(t[e])}`).join("")}(t.parameters)}`}const Uk=/^[^\/()?;=#]+/;function Vl(t){const e=t.match(Uk);return e?e[0]:""}const $k=/^[^=?&#]+/,Wk=/^[^?&#]+/;class zk{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new J([],{}):new J([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(e.length>0||Object.keys(n).length>0)&&(r[z]=new J(e,n)),r}parseSegment(){const e=Vl(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(e),new Cs(kl(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const n=Vl(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const o=Vl(this.remaining);o&&(r=o,this.capture(r))}e[kl(n)]=kl(r)}parseQueryParam(e){const n=function(t){const e=t.match($k);return e?e[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const s=function(t){const e=t.match(Wk);return e?e[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const o=$D(n),i=$D(r);if(e.hasOwnProperty(o)){let s=e[o];Array.isArray(s)||(s=[s],e[o]=s),s.push(i)}else e[o]=i}parseParens(e){const n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=Vl(this.remaining),o=this.remaining[r.length];if("/"!==o&&")"!==o&&";"!==o)throw new Error(`Cannot parse url '${this.url}'`);let i;r.indexOf(":")>-1?(i=r.substr(0,r.indexOf(":")),this.capture(i),this.capture(":")):e&&(i=z);const s=this.parseChildren();n[i]=1===Object.keys(s).length?s[z]:new J([],s),this.consumeOptional("//")}return n}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new Error(`Expected "${e}".`)}}class WD{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const n=this.pathFromRoot(e);return n.length>1?n[n.length-2]:null}children(e){const n=Zf(e,this._root);return n?n.children.map(r=>r.value):[]}firstChild(e){const n=Zf(e,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(e){const n=Xf(e,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==e)}pathFromRoot(e){return Xf(e,this._root).map(n=>n.value)}}function Zf(t,e){if(t===e.value)return e;for(const n of e.children){const r=Zf(t,n);if(r)return r}return null}function Xf(t,e){if(t===e.value)return[e];for(const n of e.children){const r=Xf(t,n);if(r.length)return r.unshift(e),r}return[]}class $n{constructor(e,n){this.value=e,this.children=n}toString(){return`TreeNode(${this.value})`}}function Ds(t){const e={};return t&&t.children.forEach(n=>e[n.value.outlet]=n),e}class qD extends WD{constructor(e,n){super(e),this.snapshot=n,eh(this,e)}toString(){return this.snapshot.toString()}}function zD(t,e){const n=function(t,e){const s=new Ll([],{},{},"",{},z,e,null,t.root,-1,{});return new KD("",new $n(s,[]))}(t,e),r=new nn([new Cs("",{})]),o=new nn({}),i=new nn({}),s=new nn({}),a=new nn(""),l=new Yo(r,o,s,a,i,z,e,n.root);return l.snapshot=n.root,new qD(new $n(l,[]),n)}class Yo{constructor(e,n,r,o,i,s,a,l){this.url=e,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this._futureSnapshot=l}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(Y(e=>Jo(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Y(e=>Jo(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function QD(t,e="emptyOnly"){const n=t.pathFromRoot;let r=0;if("always"!==e)for(r=n.length-1;r>=1;){const o=n[r],i=n[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(i.component)break;r--}}return function(t){return t.reduce((e,n)=>({params:Object.assign(Object.assign({},e.params),n.params),data:Object.assign(Object.assign({},e.data),n.data),resolve:Object.assign(Object.assign({},e.resolve),n._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(r))}class Ll{constructor(e,n,r,o,i,s,a,l,u,c,d){this.url=e,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=l,this._urlSegment=u,this._lastPathIndex=c,this._resolve=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Jo(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Jo(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class KD extends WD{constructor(e,n){super(n),this.url=e,eh(this,n)}toString(){return JD(this._root)}}function eh(t,e){e.value._routerState=t,e.children.forEach(n=>eh(t,n))}function JD(t){const e=t.children.length>0?` { ${t.children.map(JD).join(", ")} } `:"";return`${t.value}${e}`}function th(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Dn(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Dn(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!Dn(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),Dn(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function nh(t,e){return Dn(t.params,e.params)&&function(t,e){return Vr(t,e)&&t.every((n,r)=>Dn(n.parameters,e[r].parameters))}(t.url,e.url)&&!(!t.parent!=!e.parent)&&(!t.parent||nh(t.parent,e.parent))}function jl(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=e.value;const o=function(t,e,n){return e.children.map(r=>{for(const o of n.children)if(t.shouldReuseRoute(r.value,o.value.snapshot))return jl(t,r,o);return jl(t,r)})}(t,e,n);return new $n(r,o)}{if(t.shouldAttach(e.value)){const i=t.retrieve(e.value);if(null!==i){const s=i.route;return YD(e,s),s}}const r=function(t){return new Yo(new nn(t.url),new nn(t.params),new nn(t.queryParams),new nn(t.fragment),new nn(t.data),t.outlet,t.component,t)}(e.value),o=e.children.map(i=>jl(t,i));return new $n(r,o)}}function YD(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let n=0;n<t.children.length;++n)YD(t.children[n],e.children[n])}function Bl(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Es(t){return"object"==typeof t&&null!=t&&t.outlets}function rh(t,e,n,r,o){let i={};return r&&Ue(r,(s,a)=>{i[a]=Array.isArray(s)?s.map(l=>`${l}`):`${s}`}),new kr(n.root===t?e:ZD(n.root,t,e),i,o)}function ZD(t,e,n){const r={};return Ue(t.children,(o,i)=>{r[i]=o===e?n:ZD(o,e,n)}),new J(t.segments,r)}class XD{constructor(e,n,r){if(this.isAbsolute=e,this.numberOfDoubleDots=n,this.commands=r,e&&r.length>0&&Bl(r[0]))throw new Error("Root segment cannot have matrix parameters");const o=r.find(Es);if(o&&o!==FD(r))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class oh{constructor(e,n,r){this.segmentGroup=e,this.processChildren=n,this.index=r}}function eE(t,e,n){if(t||(t=new J([],{})),0===t.segments.length&&t.hasChildren())return Hl(t,e,n);const r=function(t,e,n){let r=0,o=e;const i={match:!1,pathIndex:0,commandIndex:0};for(;o<t.segments.length;){if(r>=n.length)return i;const s=t.segments[o],a=n[r];if(Es(a))break;const l=`${a}`,u=r<n.length-1?n[r+1]:null;if(o>0&&void 0===l)break;if(l&&u&&"object"==typeof u&&void 0===u.outlets){if(!nE(l,u,s))return i;r+=2}else{if(!nE(l,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(t,e,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){const i=new J(t.segments.slice(0,r.pathIndex),{});return i.children[z]=new J(t.segments.slice(r.pathIndex),t.children),Hl(i,0,o)}return r.match&&0===o.length?new J(t.segments,{}):r.match&&!t.hasChildren()?ih(t,e,n):r.match?Hl(t,0,o):ih(t,e,n)}function Hl(t,e,n){if(0===n.length)return new J(t.segments,{});{const r=function(t){return Es(t[0])?t[0].outlets:{[z]:t}}(n),o={};return Ue(r,(i,s)=>{"string"==typeof i&&(i=[i]),null!==i&&(o[s]=eE(t.children[s],e,i))}),Ue(t.children,(i,s)=>{void 0===r[s]&&(o[s]=i)}),new J(t.segments,o)}}function ih(t,e,n){const r=t.segments.slice(0,e);let o=0;for(;o<n.length;){const i=n[o];if(Es(i)){const l=iV(i.outlets);return new J(r,l)}if(0===o&&Bl(n[0])){r.push(new Cs(t.segments[e].path,tE(n[0]))),o++;continue}const s=Es(i)?i.outlets[z]:`${i}`,a=o<n.length-1?n[o+1]:null;s&&a&&Bl(a)?(r.push(new Cs(s,tE(a))),o+=2):(r.push(new Cs(s,{})),o++)}return new J(r,{})}function iV(t){const e={};return Ue(t,(n,r)=>{"string"==typeof n&&(n=[n]),null!==n&&(e[r]=ih(new J([],{}),0,n))}),e}function tE(t){const e={};return Ue(t,(n,r)=>e[r]=`${n}`),e}function nE(t,e,n){return t==n.path&&Dn(e,n.parameters)}class aV{constructor(e,n,r,o){this.routeReuseStrategy=e,this.futureState=n,this.currState=r,this.forwardEvent=o}activate(e){const n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,e),th(this.futureState.root),this.activateChildRoutes(n,r,e)}deactivateChildRoutes(e,n,r){const o=Ds(n);e.children.forEach(i=>{const s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),Ue(o,(i,s)=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(e,n,r){const o=e.value,i=n?n.value:null;if(o===i)if(o.component){const s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(e,n,s.children)}else this.deactivateChildRoutes(e,n,r);else i&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(e,n){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,n):this.deactivateRouteAndOutlet(e,n)}detachAndStoreRouteSubtree(e,n){const r=n.getContext(e.value.outlet);if(r&&r.outlet){const o=r.outlet.detach(),i=r.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:o,route:e,contexts:i})}}deactivateRouteAndOutlet(e,n){const r=n.getContext(e.value.outlet),o=r&&e.value.component?r.children:n,i=Ds(e);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);r&&r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated(),r.attachRef=null,r.resolver=null,r.route=null)}activateChildRoutes(e,n,r){const o=Ds(n);e.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new Ak(i.value.snapshot))}),e.children.length&&this.forwardEvent(new Mk(e.value.snapshot))}activateRoutes(e,n,r){const o=e.value,i=n?n.value:null;if(th(o),o===i)if(o.component){const s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(e,n,s.children)}else this.activateChildRoutes(e,n,r);else if(o.component){const s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),rE(a.route)}else{const a=function(t){for(let e=t.parent;e;e=e.parent){const n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}(o.snapshot),l=a?a.module.componentFactoryResolver:null;s.attachRef=null,s.route=o,s.resolver=l,s.outlet&&s.outlet.activateWith(o,l),this.activateChildRoutes(e,null,s.children)}}else this.activateChildRoutes(e,null,r)}}function rE(t){th(t.value),t.children.forEach(rE)}class sh{constructor(e,n){this.routes=e,this.module=n}}function lr(t){return"function"==typeof t}function Lr(t){return t instanceof kr}const bs=Symbol("INITIAL_VALUE");function ws(){return sr(t=>function(...t){let e,n;return js(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&Fs(t[0])&&(t=t[0]),gu(t,n).lift(new qF(e))}(t.map(e=>e.pipe(qf(1),function(...t){const e=t[t.length-1];return js(e)?(t.pop(),n=>Gf(t,n,e)):n=>Gf(t,n)}(bs)))).pipe(MD((e,n)=>{let r=!1;return n.reduce((o,i,s)=>o!==bs?o:(i===bs&&(r=!0),r||!1!==i&&s!==n.length-1&&!Lr(i)?o:i),e)},bs),Pr(e=>e!==bs),Y(e=>Lr(e)?e:!0===e),qf(1)))}let oE=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=Tn({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(n,r){1&n&&pn(0,"router-outlet")},directives:function(){return[fh]},encapsulation:2}),t})();function iE(t,e=""){for(let n=0;n<t.length;n++){const r=t[n];pV(r,gV(e,r))}}function pV(t,e){t.children&&iE(t.children,e)}function gV(t,e){return e?t||e.path?t&&!e.path?`${t}/`:!t&&e.path?e.path:`${t}/${e.path}`:"":t}function ah(t){const e=t.children&&t.children.map(ah),n=e?Object.assign(Object.assign({},t),{children:e}):Object.assign({},t);return!n.component&&(e||n.loadChildren)&&n.outlet&&n.outlet!==z&&(n.component=oE),n}function kt(t){return t.outlet||z}function sE(t,e){const n=t.filter(r=>kt(r)===e);return n.push(...t.filter(r=>kt(r)!==e)),n}const aE={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Ul(t,e,n){var r;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?Object.assign({},aE):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const i=(e.matcher||xk)(n,t,e);if(!i)return Object.assign({},aE);const s={};Ue(i.posParams,(l,u)=>{s[u]=l.path});const a=i.consumed.length>0?Object.assign(Object.assign({},s),i.consumed[i.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:a,positionalParamSegments:null!==(r=i.posParams)&&void 0!==r?r:{}}}function $l(t,e,n,r,o="corrected"){if(n.length>0&&function(t,e,n){return n.some(r=>Gl(t,e,r)&&kt(r)!==z)}(t,n,r)){const s=new J(e,function(t,e,n,r){const o={};o[z]=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(const i of n)if(""===i.path&&kt(i)!==z){const s=new J([],{});s._sourceSegment=t,s._segmentIndexShift=e.length,o[kt(i)]=s}return o}(t,e,r,new J(n,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(r=>Gl(t,e,r))}(t,n,r)){const s=new J(t.segments,function(t,e,n,r,o,i){const s={};for(const a of r)if(Gl(t,n,a)&&!o[kt(a)]){const l=new J([],{});l._sourceSegment=t,l._segmentIndexShift="legacy"===i?t.segments.length:e.length,s[kt(a)]=l}return Object.assign(Object.assign({},o),s)}(t,e,n,r,t.children,o));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}const i=new J(t.segments,t.children);return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:n}}function Gl(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function lE(t,e,n,r){return!!(kt(t)===r||r!==z&&Gl(e,n,t))&&("**"===t.path||Ul(e,t,n).matched)}function uE(t,e,n){return 0===e.length&&!t.children[n]}class Ms{constructor(e){this.segmentGroup=e||null}}class cE{constructor(e){this.urlTree=e}}function Wl(t){return new le(e=>e.error(new Ms(t)))}function dE(t){return new le(e=>e.error(new cE(t)))}function vV(t){return new le(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class bV{constructor(e,n,r,o,i){this.configLoader=n,this.urlSerializer=r,this.urlTree=o,this.config=i,this.allowRedirects=!0,this.ngModule=e.get(yn)}apply(){const e=$l(this.urlTree.root,[],[],this.config).segmentGroup,n=new J(e.segments,e.children);return this.expandSegmentGroup(this.ngModule,this.config,n,z).pipe(Y(i=>this.createUrlTree(lh(i),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Fr(i=>{if(i instanceof cE)return this.allowRedirects=!1,this.match(i.urlTree);throw i instanceof Ms?this.noMatchError(i):i}))}match(e){return this.expandSegmentGroup(this.ngModule,this.config,e.root,z).pipe(Y(o=>this.createUrlTree(lh(o),e.queryParams,e.fragment))).pipe(Fr(o=>{throw o instanceof Ms?this.noMatchError(o):o}))}noMatchError(e){return new Error(`Cannot match any routes. URL Segment: '${e.segmentGroup}'`)}createUrlTree(e,n,r){const o=e.segments.length>0?new J([],{[z]:e}):e;return new kr(o,n,r)}expandSegmentGroup(e,n,r,o){return 0===r.segments.length&&r.hasChildren()?this.expandChildren(e,n,r).pipe(Y(i=>new J([],i))):this.expandSegment(e,r,n,r.segments,o,!0)}expandChildren(e,n,r){const o=[];for(const i of Object.keys(r.children))"primary"===i?o.unshift(i):o.push(i);return Be(o).pipe(zo(i=>{const s=r.children[i],a=sE(n,i);return this.expandSegmentGroup(e,a,s,i).pipe(Y(l=>({segment:l,outlet:i})))}),MD((i,s)=>(i[s.outlet]=s.segment,i),{}),function(t,e){const n=arguments.length>=2;return r=>r.pipe(t?Pr((o,i)=>t(o,i,r)):Ls,zf(1),n?AD(e):ID(()=>new Nl))}())}expandSegment(e,n,r,o,i,s){return Be(r).pipe(zo(a=>this.expandSegmentAgainstRoute(e,n,r,a,o,i,s).pipe(Fr(u=>{if(u instanceof Ms)return j(null);throw u}))),Ko(a=>!!a),Fr((a,l)=>{if(a instanceof Nl||"EmptyError"===a.name){if(uE(n,o,i))return j(new J([],{}));throw new Ms(n)}throw a}))}expandSegmentAgainstRoute(e,n,r,o,i,s,a){return lE(o,n,i,s)?void 0===o.redirectTo?this.matchSegmentAgainstRoute(e,n,o,i,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,n,r,o,i,s):Wl(n):Wl(n)}expandSegmentAgainstRouteUsingRedirect(e,n,r,o,i,s){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,r,o,s):this.expandRegularSegmentAgainstRouteUsingRedirect(e,n,r,o,i,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,o){const i=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?dE(i):this.lineralizeSegments(r,i).pipe(He(s=>{const a=new J(s,{});return this.expandSegment(e,a,n,s,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,n,r,o,i,s){const{matched:a,consumedSegments:l,lastChild:u,positionalParamSegments:c}=Ul(n,o,i);if(!a)return Wl(n);const d=this.applyRedirectCommands(l,o.redirectTo,c);return o.redirectTo.startsWith("/")?dE(d):this.lineralizeSegments(o,d).pipe(He(f=>this.expandSegment(e,n,r,f.concat(i.slice(u)),s,!1)))}matchSegmentAgainstRoute(e,n,r,o,i){if("**"===r.path)return r.loadChildren?(r._loadedConfig?j(r._loadedConfig):this.configLoader.load(e.injector,r)).pipe(Y(f=>(r._loadedConfig=f,new J(o,{})))):j(new J(o,{}));const{matched:s,consumedSegments:a,lastChild:l}=Ul(n,r,o);if(!s)return Wl(n);const u=o.slice(l);return this.getChildConfig(e,r,o).pipe(He(d=>{const f=d.module,h=d.routes,{segmentGroup:p,slicedSegments:m}=$l(n,a,u,h),g=new J(p.segments,p.children);if(0===m.length&&g.hasChildren())return this.expandChildren(f,h,g).pipe(Y(A=>new J(a,A)));if(0===h.length&&0===m.length)return j(new J(a,{}));const _=kt(r)===i;return this.expandSegment(f,g,h,m,_?z:i,!0).pipe(Y(M=>new J(a.concat(M.segments),M.children)))}))}getChildConfig(e,n,r){return n.children?j(new sh(n.children,e)):n.loadChildren?void 0!==n._loadedConfig?j(n._loadedConfig):this.runCanLoadGuards(e.injector,n,r).pipe(He(o=>o?this.configLoader.load(e.injector,n).pipe(Y(i=>(n._loadedConfig=i,i))):function(t){return new le(e=>e.error(Kf(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(n))):j(new sh([],e))}runCanLoadGuards(e,n,r){const o=n.canLoad;return o&&0!==o.length?j(o.map(s=>{const a=e.get(s);let l;if(function(t){return t&&lr(t.canLoad)}(a))l=a.canLoad(n,r);else{if(!lr(a))throw new Error("Invalid CanLoad guard");l=a(n,r)}return En(l)})).pipe(ws(),Dt(s=>{if(!Lr(s))return;const a=Kf(`Redirecting to "${this.urlSerializer.serialize(s)}"`);throw a.url=s,a}),Y(s=>!0===s)):j(!0)}lineralizeSegments(e,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),0===o.numberOfChildren)return j(r);if(o.numberOfChildren>1||!o.children[z])return vV(e.redirectTo);o=o.children[z]}}applyRedirectCommands(e,n,r){return this.applyRedirectCreatreUrlTree(n,this.urlSerializer.parse(n),e,r)}applyRedirectCreatreUrlTree(e,n,r,o){const i=this.createSegmentGroup(e,n.root,r,o);return new kr(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(e,n){const r={};return Ue(e,(o,i)=>{if("string"==typeof o&&o.startsWith(":")){const a=o.substring(1);r[i]=n[a]}else r[i]=o}),r}createSegmentGroup(e,n,r,o){const i=this.createSegments(e,n.segments,r,o);let s={};return Ue(n.children,(a,l)=>{s[l]=this.createSegmentGroup(e,a,r,o)}),new J(i,s)}createSegments(e,n,r,o){return n.map(i=>i.path.startsWith(":")?this.findPosParam(e,i,o):this.findOrReturn(i,r))}findPosParam(e,n,r){const o=r[n.path.substring(1)];if(!o)throw new Error(`Cannot redirect to '${e}'. Cannot find '${n.path}'.`);return o}findOrReturn(e,n){let r=0;for(const o of n){if(o.path===e.path)return n.splice(r),o;r++}return e}}function lh(t){const e={};for(const r of Object.keys(t.children)){const i=lh(t.children[r]);(i.segments.length>0||i.hasChildren())&&(e[r]=i)}return function(t){if(1===t.numberOfChildren&&t.children[z]){const e=t.children[z];return new J(t.segments.concat(e.segments),e.children)}return t}(new J(t.segments,e))}class fE{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class ql{constructor(e,n){this.component=e,this.route=n}}function IV(t,e,n){const r=t._root;return Is(r,e?e._root:null,n,[r.value])}function zl(t,e,n){const r=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(r?r.module.injector:n).get(t)}function Is(t,e,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=Ds(e);return t.children.forEach(s=>{(function(t,e,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=t.value,s=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){const l=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Vr(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Vr(t.url,e.url)||!Dn(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!nh(t,e)||!Dn(t.queryParams,e.queryParams);case"paramsChange":default:return!nh(t,e)}}(s,i,i.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new fE(r)):(i.data=s.data,i._resolvedData=s._resolvedData),Is(t,e,i.component?a?a.children:null:n,r,o),l&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new ql(a.outlet.component,s))}else s&&As(e,a,o),o.canActivateChecks.push(new fE(r)),Is(t,null,i.component?a?a.children:null:n,r,o)})(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Ue(i,(s,a)=>As(s,n.getContext(a),o)),o}function As(t,e,n){const r=Ds(t),o=t.value;Ue(r,(i,s)=>{As(i,o.component?e?e.children.getContext(s):null:e,n)}),n.canDeactivateChecks.push(new ql(o.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,o))}class jV{}function hE(t){return new le(e=>e.error(t))}class HV{constructor(e,n,r,o,i,s){this.rootComponentType=e,this.config=n,this.urlTree=r,this.url=o,this.paramsInheritanceStrategy=i,this.relativeLinkResolution=s}recognize(){const e=$l(this.urlTree.root,[],[],this.config.filter(s=>void 0===s.redirectTo),this.relativeLinkResolution).segmentGroup,n=this.processSegmentGroup(this.config,e,z);if(null===n)return null;const r=new Ll([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},z,this.rootComponentType,null,this.urlTree.root,-1,{}),o=new $n(r,n),i=new KD(this.url,o);return this.inheritParamsAndData(i._root),i}inheritParamsAndData(e){const n=e.value,r=QD(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),e.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(e,n,r){return 0===n.segments.length&&n.hasChildren()?this.processChildren(e,n):this.processSegment(e,n,n.segments,r)}processChildren(e,n){const r=[];for(const i of Object.keys(n.children)){const s=n.children[i],a=sE(e,i),l=this.processSegmentGroup(a,s,i);if(null===l)return null;r.push(...l)}const o=pE(r);return function(t){t.sort((e,n)=>e.value.outlet===z?-1:n.value.outlet===z?1:e.value.outlet.localeCompare(n.value.outlet))}(o),o}processSegment(e,n,r,o){for(const i of e){const s=this.processSegmentAgainstRoute(i,n,r,o);if(null!==s)return s}return uE(n,r,o)?[]:null}processSegmentAgainstRoute(e,n,r,o){if(e.redirectTo||!lE(e,n,r,o))return null;let i,s=[],a=[];if("**"===e.path){const h=r.length>0?FD(r).parameters:{};i=new Ll(r,h,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,yE(e),kt(e),e.component,e,gE(n),mE(n)+r.length,_E(e))}else{const h=Ul(n,e,r);if(!h.matched)return null;s=h.consumedSegments,a=r.slice(h.lastChild),i=new Ll(s,h.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,yE(e),kt(e),e.component,e,gE(n),mE(n)+s.length,_E(e))}const l=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(e),{segmentGroup:u,slicedSegments:c}=$l(n,s,a,l.filter(h=>void 0===h.redirectTo),this.relativeLinkResolution);if(0===c.length&&u.hasChildren()){const h=this.processChildren(l,u);return null===h?null:[new $n(i,h)]}if(0===l.length&&0===c.length)return[new $n(i,[])];const d=kt(e)===o,f=this.processSegment(l,u,c,d?z:o);return null===f?null:[new $n(i,f)]}}function GV(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function pE(t){const e=[],n=new Set;for(const r of t){if(!GV(r)){e.push(r);continue}const o=e.find(i=>r.value.routeConfig===i.value.routeConfig);void 0!==o?(o.children.push(...r.children),n.add(o)):e.push(r)}for(const r of n){const o=pE(r.children);e.push(new $n(r.value,o))}return e.filter(r=>!n.has(r))}function gE(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function mE(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function yE(t){return t.data||{}}function _E(t){return t.resolve||{}}function uh(t){return sr(e=>{const n=t(e);return n?Be(n).pipe(Y(()=>e)):j(e)})}class ZV extends class{shouldDetach(e){return!1}store(e,n){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,n){return e.routeConfig===n.routeConfig}}{}const ch=new G("ROUTES");class CE{constructor(e,n,r,o){this.loader=e,this.compiler=n,this.onLoadStartListener=r,this.onLoadEndListener=o}load(e,n){if(n._loader$)return n._loader$;this.onLoadStartListener&&this.onLoadStartListener(n);const o=this.loadModuleFactory(n.loadChildren).pipe(Y(i=>{this.onLoadEndListener&&this.onLoadEndListener(n);const s=i.create(e);return new sh(PD(s.injector.get(ch,void 0,T.Self|T.Optional)).map(ah),s)}),Fr(i=>{throw n._loader$=void 0,i}));return n._loader$=new Kh(o,()=>new Mn).pipe(mu()),n._loader$}loadModuleFactory(e){return"string"==typeof e?Be(this.loader.load(e)):En(e()).pipe(He(n=>n instanceof j_?j(n):Be(this.compiler.compileModuleAsync(n))))}}class XV{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Zo,this.attachRef=null}}class Zo{constructor(){this.contexts=new Map}onChildOutletCreated(e,n){const r=this.getOrCreateContext(e);r.outlet=n,this.contexts.set(e,r)}onChildOutletDestroyed(e){const n=this.getContext(e);n&&(n.outlet=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new XV,this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}}class tL{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}}function nL(t){throw t}function rL(t,e,n){return e.parse("/")}function vE(t,e){return j(null)}const oL={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},iL={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let $e=(()=>{class t{constructor(n,r,o,i,s,a,l,u){this.rootComponentType=n,this.urlSerializer=r,this.rootContexts=o,this.location=i,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Mn,this.errorHandler=nL,this.malformedUriErrorHandler=rL,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:vE,afterPreactivation:vE},this.urlHandlingStrategy=new tL,this.routeReuseStrategy=new ZV,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=s.get(yn),this.console=s.get(el);const f=s.get(be);this.isNgZoneEnabled=f instanceof be&&be.isInAngularZone(),this.resetConfig(u),this.currentUrlTree=new kr(new J([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new CE(a,l,h=>this.triggerEvent(new TD(h)),h=>this.triggerEvent(new xD(h))),this.routerState=zD(this.currentUrlTree,this.rootComponentType),this.transitions=new nn({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var n;return null===(n=this.location.getState())||void 0===n?void 0:n.\u0275routerPageId}setupNavigations(n){const r=this.events;return n.pipe(Pr(o=>0!==o.id),Y(o=>Object.assign(Object.assign({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),sr(o=>{let i=!1,s=!1;return j(o).pipe(Dt(a=>{this.currentNavigation={id:a.id,initialUrl:a.currentRawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),sr(a=>{const l=this.browserUrlTree.toString(),u=!this.navigated||a.extractedUrl.toString()!==l||l!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||u)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return Ql(a.source)&&(this.browserUrlTree=a.extractedUrl),j(a).pipe(sr(d=>{const f=this.transitions.getValue();return r.next(new Qf(d.id,this.serializeUrl(d.extractedUrl),d.source,d.restoredState)),f!==this.transitions.getValue()?Qo:Promise.resolve(d)}),function(t,e,n,r){return sr(o=>function(t,e,n,r,o){return new bV(t,e,n,r,o).apply()}(t,e,n,o.extractedUrl,r).pipe(Y(i=>Object.assign(Object.assign({},o),{urlAfterRedirects:i}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Dt(d=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:d.urlAfterRedirects})}),function(t,e,n,r,o){return He(i=>function(t,e,n,r,o="emptyOnly",i="legacy"){try{const s=new HV(t,e,n,r,o,i).recognize();return null===s?hE(new jV):j(s)}catch(s){return hE(s)}}(t,e,i.urlAfterRedirects,n(i.urlAfterRedirects),r,o).pipe(Y(s=>Object.assign(Object.assign({},i),{targetSnapshot:s}))))}(this.rootComponentType,this.config,d=>this.serializeUrl(d),this.paramsInheritanceStrategy,this.relativeLinkResolution),Dt(d=>{"eager"===this.urlUpdateStrategy&&(d.extras.skipLocationChange||this.setBrowserUrl(d.urlAfterRedirects,d),this.browserUrlTree=d.urlAfterRedirects);const f=new Ck(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);r.next(f)}));if(u&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:f,extractedUrl:h,source:p,restoredState:m,extras:g}=a,_=new Qf(f,this.serializeUrl(h),p,m);r.next(_);const y=zD(h,this.rootComponentType).snapshot;return j(Object.assign(Object.assign({},a),{targetSnapshot:y,urlAfterRedirects:h,extras:Object.assign(Object.assign({},g),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=a.rawUrl,this.browserUrlTree=a.urlAfterRedirects,a.resolve(null),Qo}),uh(a=>{const{targetSnapshot:l,id:u,extractedUrl:c,rawUrl:d,extras:{skipLocationChange:f,replaceUrl:h}}=a;return this.hooks.beforePreactivation(l,{navigationId:u,appliedUrlTree:c,rawUrlTree:d,skipLocationChange:!!f,replaceUrl:!!h})}),Dt(a=>{const l=new vk(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),Y(a=>Object.assign(Object.assign({},a),{guards:IV(a.targetSnapshot,a.currentSnapshot,this.rootContexts)})),function(t,e){return He(n=>{const{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return 0===s.length&&0===i.length?j(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,r){return Be(t).pipe(He(o=>function(t,e,n,r,o){const i=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return i&&0!==i.length?j(i.map(a=>{const l=zl(a,e,o);let u;if(function(t){return t&&lr(t.canDeactivate)}(l))u=En(l.canDeactivate(t,e,n,r));else{if(!lr(l))throw new Error("Invalid CanDeactivate guard");u=En(l(t,e,n,r))}return u.pipe(Ko())})).pipe(ws()):j(!0)}(o.component,o.route,n,e,r)),Ko(o=>!0!==o,!0))}(s,r,o,t).pipe(He(a=>a&&function(t){return"boolean"==typeof t}(a)?function(t,e,n,r){return Be(e).pipe(zo(o=>Gf(function(t,e){return null!==t&&e&&e(new wk(t)),j(!0)}(o.route.parent,r),function(t,e){return null!==t&&e&&e(new Ik(t)),j(!0)}(o.route,r),function(t,e,n){const r=e[e.length-1],i=e.slice(0,e.length-1).reverse().map(s=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(s)).filter(s=>null!==s).map(s=>bD(()=>j(s.guards.map(l=>{const u=zl(l,s.node,n);let c;if(function(t){return t&&lr(t.canActivateChild)}(u))c=En(u.canActivateChild(r,t));else{if(!lr(u))throw new Error("Invalid CanActivateChild guard");c=En(u(r,t))}return c.pipe(Ko())})).pipe(ws())));return j(i).pipe(ws())}(t,o.path,n),function(t,e,n){const r=e.routeConfig?e.routeConfig.canActivate:null;return r&&0!==r.length?j(r.map(i=>bD(()=>{const s=zl(i,e,n);let a;if(function(t){return t&&lr(t.canActivate)}(s))a=En(s.canActivate(e,t));else{if(!lr(s))throw new Error("Invalid CanActivate guard");a=En(s(e,t))}return a.pipe(Ko())}))).pipe(ws()):j(!0)}(t,o.route,n))),Ko(o=>!0!==o,!0))}(r,i,t,e):j(a)),Y(a=>Object.assign(Object.assign({},n),{guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),Dt(a=>{if(Lr(a.guardsResult)){const u=Kf(`Redirecting to "${this.serializeUrl(a.guardsResult)}"`);throw u.url=a.guardsResult,u}const l=new Dk(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(l)}),Pr(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,""),!1)),uh(a=>{if(a.guards.canActivateChecks.length)return j(a).pipe(Dt(l=>{const u=new Ek(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(u)}),sr(l=>{let u=!1;return j(l).pipe(function(t,e){return He(n=>{const{targetSnapshot:r,guards:{canActivateChecks:o}}=n;if(!o.length)return j(n);let i=0;return Be(o).pipe(zo(s=>function(t,e,n,r){return function(t,e,n,r){const o=Object.keys(t);if(0===o.length)return j({});const i={};return Be(o).pipe(He(s=>function(t,e,n,r){const o=zl(t,e,r);return En(o.resolve?o.resolve(e,n):o(e,n))}(t[s],e,n,r).pipe(Dt(a=>{i[s]=a}))),zf(1),He(()=>Object.keys(i).length===o.length?j(i):Qo))}(t._resolve,t,e,r).pipe(Y(i=>(t._resolvedData=i,t.data=Object.assign(Object.assign({},t.data),QD(t,n).resolve),null)))}(s.route,r,t,e)),Dt(()=>i++),zf(1),He(s=>i===o.length?j(n):Qo))})}(this.paramsInheritanceStrategy,this.ngModule.injector),Dt({next:()=>u=!0,complete:()=>{u||(this.restoreHistory(l),this.cancelNavigationTransition(l,"At least one route resolver didn't emit any value."))}}))}),Dt(l=>{const u=new bk(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(u)}))}),uh(a=>{const{targetSnapshot:l,id:u,extractedUrl:c,rawUrl:d,extras:{skipLocationChange:f,replaceUrl:h}}=a;return this.hooks.afterPreactivation(l,{navigationId:u,appliedUrlTree:c,rawUrlTree:d,skipLocationChange:!!f,replaceUrl:!!h})}),Y(a=>{const l=function(t,e,n){const r=jl(t,e._root,n?n._root:void 0);return new qD(r,e)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return Object.assign(Object.assign({},a),{targetRouterState:l})}),Dt(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((t,e,n)=>Y(r=>(new aV(e,r.targetRouterState,r.currentRouterState,n).activate(t),r)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),Dt({next(){i=!0},complete(){i=!0}}),function(t){return e=>e.lift(new mk(t))}(()=>{if(!i&&!s){const a=`Navigation ID ${o.id} is not equal to the current navigation id ${this.navigationId}`;"replace"===this.canceledNavigationResolution?(this.restoreHistory(o),this.cancelNavigationTransition(o,a)):this.cancelNavigationTransition(o,a)}this.currentNavigation=null}),Fr(a=>{if(s=!0,function(t){return t&&t[ND]}(a)){const l=Lr(a.url);l||(this.navigated=!0,this.restoreHistory(o,!0));const u=new SD(o.id,this.serializeUrl(o.extractedUrl),a.message);r.next(u),l?setTimeout(()=>{const c=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),d={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Ql(o.source)};this.scheduleNavigation(c,"imperative",null,d,{resolve:o.resolve,reject:o.reject,promise:o.promise})},0):o.resolve(!1)}else{this.restoreHistory(o,!0);const l=new _k(o.id,this.serializeUrl(o.extractedUrl),a);r.next(l);try{o.resolve(this.errorHandler(a))}catch(u){o.reject(u)}}return Qo}))}))}resetRootComponentType(n){this.rootComponentType=n,this.routerState.root.component=this.rootComponentType}getTransition(){const n=this.transitions.value;return n.urlAfterRedirects=this.browserUrlTree,n}setTransition(n){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),n))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(n=>{const r=this.extractLocationChangeInfoFromEvent(n);this.shouldScheduleNavigation(this.lastLocationChangeInfo,r)&&setTimeout(()=>{const{source:o,state:i,urlTree:s}=r,a={replaceUrl:!0};if(i){const l=Object.assign({},i);delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(a.state=l)}this.scheduleNavigation(s,o,i,a)},0),this.lastLocationChangeInfo=r}))}extractLocationChangeInfoFromEvent(n){var r;return{source:"popstate"===n.type?"popstate":"hashchange",urlTree:this.parseUrl(n.url),state:(null===(r=n.state)||void 0===r?void 0:r.navigationId)?n.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(n,r){if(!n)return!0;const o=r.urlTree.toString()===n.urlTree.toString();return r.transitionId!==n.transitionId||!o||!("hashchange"===r.source&&"popstate"===n.source||"popstate"===r.source&&"hashchange"===n.source)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(n){this.events.next(n)}resetConfig(n){iE(n),this.config=n.map(ah),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(n,r={}){const{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:l}=r,u=o||this.routerState.root,c=l?this.currentUrlTree.fragment:s;let d=null;switch(a){case"merge":d=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=i||null}return null!==d&&(d=this.removeEmptyProps(d)),function(t,e,n,r,o){if(0===n.length)return rh(e.root,e.root,e,r,o);const i=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new XD(!0,0,t);let e=0,n=!1;const r=t.reduce((o,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const a={};return Ue(i.outlets,(l,u)=>{a[u]="string"==typeof l?l.split("/"):l}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return"string"!=typeof i?[...o,i]:0===s?(i.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?n=!0:".."===a?e++:""!=a&&o.push(a))}),o):[...o,i]},[]);return new XD(n,e,r)}(n);if(i.toRoot())return rh(e.root,new J([],{}),e,r,o);const s=function(t,e,n){if(t.isAbsolute)return new oh(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const i=n.snapshot._urlSegment;return new oh(i,i===e.root,0)}const r=Bl(t.commands[0])?0:1;return function(t,e,n){let r=t,o=e,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new Error("Invalid number of '../'");o=r.segments.length}return new oh(r,!1,o-i)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,t.numberOfDoubleDots)}(i,e,t),a=s.processChildren?Hl(s.segmentGroup,s.index,i.commands):eE(s.segmentGroup,s.index,i.commands);return rh(s.segmentGroup,a,e,r,o)}(u,this.currentUrlTree,n,d,null!=c?c:null)}navigateByUrl(n,r={skipLocationChange:!1}){const o=Lr(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,r)}navigate(n,r={skipLocationChange:!1}){return function(t){for(let e=0;e<t.length;e++){const n=t[e];if(null==n)throw new Error(`The requested path contains ${n} segment at index ${e}`)}}(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){let r;try{r=this.urlSerializer.parse(n)}catch(o){r=this.malformedUriErrorHandler(o,this.urlSerializer,n)}return r}isActive(n,r){let o;if(o=!0===r?Object.assign({},oL):!1===r?Object.assign({},iL):r,Lr(n))return VD(this.currentUrlTree,n,o);const i=this.parseUrl(n);return VD(this.currentUrlTree,i,o)}removeEmptyProps(n){return Object.keys(n).reduce((r,o)=>{const i=n[o];return null!=i&&(r[o]=i),r},{})}processNavigations(){this.navigations.subscribe(n=>{this.navigated=!0,this.lastSuccessfulId=n.id,this.currentPageId=n.targetPageId,this.events.next(new _s(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,n.resolve(!0)},n=>{this.console.warn(`Unhandled Navigation Error: ${n}`)})}scheduleNavigation(n,r,o,i,s){var a,l;if(this.disposed)return Promise.resolve(!1);const u=this.getTransition(),c=Ql(r)&&u&&!Ql(u.source),h=(this.lastSuccessfulId===u.id||this.currentNavigation?u.rawUrl:u.urlAfterRedirects).toString()===n.toString();if(c&&h)return Promise.resolve(!0);let p,m,g;s?(p=s.resolve,m=s.reject,g=s.promise):g=new Promise((M,A)=>{p=M,m=A});const _=++this.navigationId;let y;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(o=this.location.getState()),y=o&&o.\u0275routerPageId?o.\u0275routerPageId:i.replaceUrl||i.skipLocationChange?null!==(a=this.browserPageId)&&void 0!==a?a:0:(null!==(l=this.browserPageId)&&void 0!==l?l:0)+1):y=0,this.setTransition({id:_,targetPageId:y,source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:n,extras:i,resolve:p,reject:m,promise:g,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),g.catch(M=>Promise.reject(M))}setBrowserUrl(n,r){const o=this.urlSerializer.serialize(n),i=Object.assign(Object.assign({},r.extras.state),this.generateNgRouterState(r.id,r.targetPageId));this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl?this.location.replaceState(o,"",i):this.location.go(o,"",i)}restoreHistory(n,r=!1){var o,i;if("computed"===this.canceledNavigationResolution){const s=this.currentPageId-n.targetPageId;"popstate"!==n.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(o=this.currentNavigation)||void 0===o?void 0:o.finalUrl)||0===s?this.currentUrlTree===(null===(i=this.currentNavigation)||void 0===i?void 0:i.finalUrl)&&0===s&&(this.resetState(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(s)}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=n.currentRouterState,this.currentUrlTree=n.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(n,r){const o=new SD(n.id,this.serializeUrl(n.extractedUrl),r);this.triggerEvent(o),n.resolve(!1)}generateNgRouterState(n,r){return"computed"===this.canceledNavigationResolution?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}}return t.\u0275fac=function(n){return new(n||t)(D(ua),D(Jf),D(Zo),D(hl),D(te),D(nl),D(xr),D(void 0))},t.\u0275prov=O({token:t,factory:t.\u0275fac}),t})();function Ql(t){return"imperative"!==t}let Ss=(()=>{class t{constructor(n,r,o){this.router=n,this.route=r,this.locationStrategy=o,this.commands=[],this.onChanges=new Mn,this.subscription=n.events.subscribe(i=>{i instanceof _s&&this.updateTargetUrlAndHref()})}set routerLink(n){this.commands=null!=n?Array.isArray(n)?n:[n]:[]}ngOnChanges(n){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(n,r,o,i,s){if(0!==n||r||o||i||s||"string"==typeof this.target&&"_self"!=this.target)return!0;const a={skipLocationChange:Xo(this.skipLocationChange),replaceUrl:Xo(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,a),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Xo(this.preserveFragment)})}}return t.\u0275fac=function(n){return new(n||t)(v($e),v(Yo),v(qo))},t.\u0275dir=R({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(n,r){1&n&&Fe("click",function(i){return r.onClick(i.button,i.ctrlKey,i.shiftKey,i.altKey,i.metaKey)}),2&n&&(od("href",r.href,lo),hn("target",r.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[We]}),t})();function Xo(t){return""===t||!!t}let fh=(()=>{class t{constructor(n,r,o,i,s){this.parentContexts=n,this.location=r,this.resolver=o,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new Re,this.deactivateEvents=new Re,this.name=i||z,n.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const n=this.parentContexts.getContext(this.name);n&&n.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const n=this.activated;return this.activated=null,this._activatedRoute=null,n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView)}deactivate(){if(this.activated){const n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=n;const s=(r=r||this.resolver).resolveComponentFactory(n._futureSnapshot.routeConfig.component),a=this.parentContexts.getOrCreateContext(this.name).children,l=new uL(n,a,this.location.injector);this.activated=this.location.createComponent(s,this.location.length,l),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(n){return new(n||t)(v(Zo),v(Qt),v(Ar),function(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const n=t.attrs;if(n){const r=n.length;let o=0;for(;o<r;){const i=n[o];if(Sp(i))break;if(0===i)o+=2;else if("number"==typeof i)for(o++;o<r&&"string"==typeof n[o];)o++;else{if(i===e)return n[o+1];o+=2}}}return null}(Se(),t)}("name"),v(pd))},t.\u0275dir=R({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class uL{constructor(e,n,r){this.route=e,this.childContexts=n,this.parent=r}get(e,n){return e===Yo?this.route:e===Zo?this.childContexts:this.parent.get(e,n)}}class DE{}class EE{preload(e,n){return j(null)}}let bE=(()=>{class t{constructor(n,r,o,i,s){this.router=n,this.injector=i,this.preloadingStrategy=s,this.loader=new CE(r,o,u=>n.triggerEvent(new TD(u)),u=>n.triggerEvent(new xD(u)))}setUpPreloading(){this.subscription=this.router.events.pipe(Pr(n=>n instanceof _s),zo(()=>this.preload())).subscribe(()=>{})}preload(){const n=this.injector.get(yn);return this.processRoutes(n,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){const o=[];for(const i of r)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const s=i._loadedConfig;o.push(this.processRoutes(s.module,s.routes))}else i.loadChildren&&!i.canLoad?o.push(this.preloadConfig(n,i)):i.children&&o.push(this.processRoutes(n,i.children));return Be(o).pipe(li(),Y(i=>{}))}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>(r._loadedConfig?j(r._loadedConfig):this.loader.load(n.injector,r)).pipe(He(i=>(r._loadedConfig=i,this.processRoutes(i.module,i.routes)))))}}return t.\u0275fac=function(n){return new(n||t)(D($e),D(nl),D(xr),D(te),D(DE))},t.\u0275prov=O({token:t,factory:t.\u0275fac}),t})(),hh=(()=>{class t{constructor(n,r,o={}){this.router=n,this.viewportScroller=r,this.options=o,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},o.scrollPositionRestoration=o.scrollPositionRestoration||"disabled",o.anchorScrolling=o.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(n=>{n instanceof Qf?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof _s&&(this.lastId=n.id,this.scheduleScrollEvent(n,this.router.parseUrl(n.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(n=>{n instanceof RD&&(n.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(n.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.router.triggerEvent(new RD(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(n){return new(n||t)(D($e),D(Qv),D(void 0))},t.\u0275prov=O({token:t,factory:t.\u0275fac}),t})();const jr=new G("ROUTER_CONFIGURATION"),wE=new G("ROUTER_FORROOT_GUARD"),dL=[hl,{provide:Jf,useClass:HD},{provide:$e,useFactory:function(t,e,n,r,o,i,s,a={},l,u){const c=new $e(null,t,e,n,r,o,i,PD(s));return l&&(c.urlHandlingStrategy=l),u&&(c.routeReuseStrategy=u),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(a,c),a.enableTracing&&c.events.subscribe(d=>{var f,h;null===(f=console.group)||void 0===f||f.call(console,`Router Event: ${d.constructor.name}`),console.log(d.toString()),console.log(d),null===(h=console.groupEnd)||void 0===h||h.call(console)}),c},deps:[Jf,Zo,hl,te,nl,xr,ch,jr,[class{},new ct],[class{},new ct]]},Zo,{provide:Yo,useFactory:function(t){return t.routerState.root},deps:[$e]},{provide:nl,useClass:qN},bE,EE,class{preload(e,n){return n().pipe(Fr(()=>j(null)))}},{provide:jr,useValue:{enableTracing:!1}}];function fL(){return new Jd("Router",$e)}let hL=(()=>{class t{constructor(n,r){}static forRoot(n,r){return{ngModule:t,providers:[dL,ME(n),{provide:wE,useFactory:mL,deps:[[$e,new ct,new Zn]]},{provide:jr,useValue:r||{}},{provide:qo,useFactory:gL,deps:[Or,[new io(pf),new ct],jr]},{provide:hh,useFactory:pL,deps:[$e,Qv,jr]},{provide:DE,useExisting:r&&r.preloadingStrategy?r.preloadingStrategy:EE},{provide:Jd,multi:!0,useFactory:fL},[ph,{provide:ss,multi:!0,useFactory:vL,deps:[ph]},{provide:IE,useFactory:DL,deps:[ph]},{provide:HC,multi:!0,useExisting:IE}]]}}static forChild(n){return{ngModule:t,providers:[ME(n)]}}}return t.\u0275fac=function(n){return new(n||t)(D(wE,8),D($e,8))},t.\u0275mod=bt({type:t}),t.\u0275inj=at({}),t})();function pL(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new hh(t,e,n)}function gL(t,e,n={}){return n.useHash?new fO(t,e):new Rv(t,e)}function mL(t){return"guarded"}function ME(t){return[{provide:p0,multi:!0,useValue:t},{provide:ch,multi:!0,useValue:t}]}let ph=(()=>{class t{constructor(n){this.injector=n,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new Mn}appInitializer(){return this.injector.get(uO,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let r=null;const o=new Promise(a=>r=a),i=this.injector.get($e),s=this.injector.get(jr);return"disabled"===s.initialNavigation?(i.setUpLocationChangeListener(),r(!0)):"enabled"===s.initialNavigation||"enabledBlocking"===s.initialNavigation?(i.hooks.afterPreactivation=()=>this.initNavigation?j(null):(this.initNavigation=!0,r(!0),this.resultOfPreactivationDone),i.initialNavigation()):r(!0),o})}bootstrapListener(n){const r=this.injector.get(jr),o=this.injector.get(bE),i=this.injector.get(hh),s=this.injector.get($e),a=this.injector.get($o);n===a.components[0]&&(("enabledNonBlocking"===r.initialNavigation||void 0===r.initialNavigation)&&s.initialNavigation(),o.setUpPreloading(),i.init(),s.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return t.\u0275fac=function(n){return new(n||t)(D(te))},t.\u0275prov=O({token:t,factory:t.\u0275fac}),t})();function vL(t){return t.appInitializer.bind(t)}function DL(t){return t.bootstrapListener.bind(t)}const IE=new G("Router Initializer");let bL=(()=>{class t{constructor(){this.title="Shop"}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=Tn({type:t,selectors:[["the-shop"]],decls:5,vars:1,consts:[[1,"row"],[1,"col-12"]],template:function(n,r){1&n&&(E(0,"div",0),E(1,"div",1),E(2,"h3"),B(3),b(),pn(4,"router-outlet"),b(),b()),2&n&&(Q(3),Qe(r.title))},directives:[fh],encapsulation:2}),t})();class wL{}class AE{constructor(){this.orderDate=new Date,this.orderNumber=Math.random().toString(36).substr(2,5),this.items=[]}get subtotal(){return this.items.reduce((n,r)=>n+r.unitPrice*r.quantity,0)}}let ei=(()=>{class t{constructor(n){this.http=n,this.products=[],this.order=new AE,this.token="",this.expiration=new Date}loadProducts(){return this.http.get("/api/products").pipe(Y(n=>{this.products=n}))}get loginRequired(){return 0===this.token.length||this.expiration>new Date}login(n){return this.http.post("/account/createtoken",n).pipe(Y(r=>{this.token=r.token,this.expiration=r.expiration}))}checkout(){const n=(new vn).set("Authorization",`Bearer ${this.token}`);return this.http.post("/api/orders",this.order,{headers:n}).pipe(Y(()=>{this.order=new AE}))}addToOrder(n){let r=this.order.items.find(o=>o.productId===n.id);r?r.quantity++:(r=new wL,r.productId=n.id,r.productTitle=n.title,r.productArtId=n.artId,r.productArtist=n.artist,r.productCategory=n.category,r.unitPrice=n.price,r.quantity=1,this.order.items.push(r))}}return t.\u0275fac=function(n){return new(n||t)(D(yD))},t.\u0275prov=O({token:t,factory:t.\u0275fac}),t})();function ML(t,e){if(1&t&&(E(0,"div",9),B(1),b()),2&t){const n=Oa();Q(1),Qe(n.errorMessage)}}function IL(t,e){if(1&t&&(E(0,"tr"),E(1,"td"),pn(2,"img",10),b(),E(3,"td"),B(4),b(),E(5,"td"),B(6),b(),E(7,"td"),B(8),_n(9,"currency"),b(),E(10,"td"),B(11),_n(12,"currency"),b(),b()),2&t){const n=e.$implicit;Q(2),To("src","/img/",n.productArtId,".jpg",lo),Q(2),rd("",n.productCategory,"(",n.productSize,") - ",n.productArtist,": ",n.productTitle,""),Q(2),Qe(n.quantity),Q(2),Qe(ns(9,8,n.unitPrice,"USD",!0)),Q(3),Qe(ns(12,12,n.unitPrice*n.quantity,"USD",!0))}}let AL=(()=>{class t{constructor(n,r){this.store=n,this.router=r,this.errorMessage=""}onCheckout(){this.errorMessage="",this.store.checkout().subscribe(()=>{this.router.navigate(["/"])},n=>{this.errorMessage=`Failed to checkout: ${n}`})}}return t.\u0275fac=function(n){return new(n||t)(v(ei),v($e))},t.\u0275cmp=Tn({type:t,selectors:[["checkout"]],decls:29,vars:12,consts:[[1,"row"],["class","alert alert-danger",4,"ngIf"],[1,"table","table-bordered","table-hover"],[4,"ngFor","ngForOf"],[1,"col-md-4","col-md-offset-8","text-right"],[1,"table","table-condensed"],[1,"text-right"],[1,"btn","btn-success",3,"click"],["routerLink","/",1,"btn","btn-info"],[1,"alert","alert-danger"],["alt","o.productTitle",1,"img-thumbnail","checkout-thumb",3,"src"]],template:function(n,r){1&n&&(E(0,"div",0),E(1,"h3"),B(2,"Confirm Order"),b(),Fn(3,ML,2,1,"div",1),E(4,"table",2),Fn(5,IL,13,16,"tr",3),b(),E(6,"div",4),E(7,"table",5),E(8,"tr"),E(9,"td",6),B(10,"Subtotal"),b(),E(11,"td",6),B(12),_n(13,"currency"),b(),b(),E(14,"tr"),E(15,"td",6),B(16,"Shipping"),b(),E(17,"td",6),B(18,"$ 0.00"),b(),b(),E(19,"tr"),E(20,"td",6),B(21,"Total:"),b(),E(22,"td",6),B(23),_n(24,"currency"),b(),b(),b(),E(25,"button",7),Fe("click",function(){return r.onCheckout()}),B(26,"Complete Purchase"),b(),E(27,"a",8),B(28,"Cancel"),b(),b(),b()),2&n&&(Q(3),vt("ngIf",r.errorMessage),Q(2),vt("ngForOf",r.store.order.items),Q(7),Qe(ns(13,4,r.store.order.subtotal,"USD",!0)),Q(11),Qe(ns(24,8,r.store.order.subtotal,"USD",!0)))},directives:[Ml,wl,Ss],pipes:[Il],styles:[".checkout-thumb[_ngcontent-%COMP%]{max-width:100px}"]}),t})();function Kl(t,e){return new le(n=>{const r=t.length;if(0===r)return void n.complete();const o=new Array(r);let i=0,s=0;for(let a=0;a<r;a++){const l=Be(t[a]);let u=!1;n.add(l.subscribe({next:c=>{u||(u=!0,s++),o[a]=c},error:c=>n.error(c),complete:()=>{i++,(i===r||!u)&&(s===r&&n.next(e?e.reduce((c,d,f)=>(c[d]=o[f],c),{}):o),n.complete())}}))}})}let SE=(()=>{class t{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}}return t.\u0275fac=function(n){return new(n||t)(v(Vn),v(ke))},t.\u0275dir=R({type:t}),t})(),Br=(()=>{class t extends SE{}return t.\u0275fac=function(){let e;return function(r){return(e||(e=St(t)))(r||t)}}(),t.\u0275dir=R({type:t,features:[ce]}),t})();const bn=new G("NgValueAccessor"),xL={provide:bn,useExisting:ie(()=>Jl),multi:!0},NL=new G("CompositionEventMode");let Jl=(()=>{class t extends SE{constructor(n,r,o){super(n,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Cn()?Cn().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(n){this.setProperty("value",null==n?"":n)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}}return t.\u0275fac=function(n){return new(n||t)(v(Vn),v(ke),v(NL,8))},t.\u0275dir=R({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,r){1&n&&Fe("input",function(i){return r._handleInput(i.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(i){return r._compositionEnd(i.target.value)})},features:[fe([xL]),ce]}),t})();const Ye=new G("NgValidators"),cr=new G("NgAsyncValidators");function jE(t){return null!=t}function BE(t){const e=ji(t)?Be(t):t;return Na(e),e}function HE(t){let e={};return t.forEach(n=>{e=null!=n?Object.assign(Object.assign({},e),n):e}),0===Object.keys(e).length?null:e}function UE(t,e){return e.map(n=>n(t))}function $E(t){return t.map(e=>function(t){return!t.validate}(e)?e:n=>e.validate(n))}function gh(t){return null!=t?function(t){if(!t)return null;const e=t.filter(jE);return 0==e.length?null:function(n){return HE(UE(n,e))}}($E(t)):null}function mh(t){return null!=t?function(t){if(!t)return null;const e=t.filter(jE);return 0==e.length?null:function(n){return function(...t){if(1===t.length){const e=t[0];if(Fs(e))return Kl(e,null);if(uu(e)&&Object.getPrototypeOf(e)===Object.prototype){const n=Object.keys(e);return Kl(n.map(r=>e[r]),n)}}if("function"==typeof t[t.length-1]){const e=t.pop();return Kl(t=1===t.length&&Fs(t[0])?t[0]:t,null).pipe(Y(n=>e(...n)))}return Kl(t,null)}(UE(n,e).map(BE)).pipe(Y(HE))}}($E(t)):null}function qE(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function yh(t){return t?Array.isArray(t)?t:[t]:[]}function Yl(t,e){return Array.isArray(t)?t.includes(e):t===e}function KE(t,e){const n=yh(e);return yh(t).forEach(o=>{Yl(n,o)||n.push(o)}),n}function JE(t,e){return yh(e).filter(n=>!Yl(t,n))}let YE=(()=>{class t{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=gh(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=mh(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n){this.control&&this.control.reset(n)}hasError(n,r){return!!this.control&&this.control.hasError(n,r)}getError(n,r){return this.control?this.control.getError(n,r):null}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=R({type:t}),t})(),st=(()=>{class t extends YE{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(){let e;return function(r){return(e||(e=St(t)))(r||t)}}(),t.\u0275dir=R({type:t,features:[ce]}),t})();class fr extends YE{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class ZE{constructor(e){this._cd=e}is(e){var n,r,o;return"submitted"===e?!!(null===(n=this._cd)||void 0===n?void 0:n.submitted):!!(null===(o=null===(r=this._cd)||void 0===r?void 0:r.control)||void 0===o?void 0:o[e])}}let XE=(()=>{class t extends ZE{constructor(n){super(n)}}return t.\u0275fac=function(n){return new(n||t)(v(fr,2))},t.\u0275dir=R({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){2&n&&Fa("ng-untouched",r.is("untouched"))("ng-touched",r.is("touched"))("ng-pristine",r.is("pristine"))("ng-dirty",r.is("dirty"))("ng-valid",r.is("valid"))("ng-invalid",r.is("invalid"))("ng-pending",r.is("pending"))},features:[ce]}),t})(),eb=(()=>{class t extends ZE{constructor(n){super(n)}}return t.\u0275fac=function(n){return new(n||t)(v(st,10))},t.\u0275dir=R({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,r){2&n&&Fa("ng-untouched",r.is("untouched"))("ng-touched",r.is("touched"))("ng-pristine",r.is("pristine"))("ng-dirty",r.is("dirty"))("ng-valid",r.is("valid"))("ng-invalid",r.is("invalid"))("ng-pending",r.is("pending"))("ng-submitted",r.is("submitted"))},features:[ce]}),t})();function Ts(t,e){vh(t,e),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&tb(t,e)})}(t,e),function(t,e){const n=(r,o)=>{e.valueAccessor.writeValue(r),o&&e.viewToModelUpdate(r)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&tb(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const n=r=>{e.valueAccessor.setDisabledState(r)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}(t,e)}function tu(t,e){t.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(e)})}function vh(t,e){const n=function(t){return t._rawValidators}(t);null!==e.validator?t.setValidators(qE(n,e.validator)):"function"==typeof n&&t.setValidators([n]);const r=function(t){return t._rawAsyncValidators}(t);null!==e.asyncValidator?t.setAsyncValidators(qE(r,e.asyncValidator)):"function"==typeof r&&t.setAsyncValidators([r]);const o=()=>t.updateValueAndValidity();tu(e._rawValidators,o),tu(e._rawAsyncValidators,o)}function tb(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function ru(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const xs="VALID",ou="INVALID",ti="PENDING",Rs="DISABLED";function bh(t){return(Mh(t)?t.validators:t)||null}function ob(t){return Array.isArray(t)?gh(t):t||null}function wh(t,e){return(Mh(e)?e.asyncValidators:t)||null}function ib(t){return Array.isArray(t)?mh(t):t||null}function Mh(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class Ih{constructor(e,n){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=n,this._composedValidatorFn=ob(this._rawValidators),this._composedAsyncValidatorFn=ib(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===xs}get invalid(){return this.status===ou}get pending(){return this.status==ti}get disabled(){return this.status===Rs}get enabled(){return this.status!==Rs}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._rawValidators=e,this._composedValidatorFn=ob(e)}setAsyncValidators(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=ib(e)}addValidators(e){this.setValidators(KE(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(KE(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(JE(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(JE(e,this._rawAsyncValidators))}hasValidator(e){return Yl(this._rawValidators,e)}hasAsyncValidator(e){return Yl(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(n=>{n.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=ti,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const n=this._parentMarkedDirty(e.onlySelf);this.status=Rs,this.errors=null,this._forEachChild(r=>{r.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:n})),this._onDisabledChange.forEach(r=>r(!0))}enable(e={}){const n=this._parentMarkedDirty(e.onlySelf);this.status=xs,this._forEachChild(r=>{r.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:n})),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===xs||this.status===ti)&&this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Rs:xs}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=ti,this._hasOwnPendingAsyncValidator=!0;const n=BE(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,n={}){this.errors=e,this._updateControlsErrors(!1!==n.emitEvent)}get(e){return function(t,e,n){if(null==e||(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length))return null;let r=t;return e.forEach(o=>{r=r instanceof Ah?r.controls.hasOwnProperty(o)?r.controls[o]:null:r instanceof qL&&r.at(o)||null}),r}(this,e)}getError(e,n){const r=n?this.get(n):this;return r&&r.errors?r.errors[e]:null}hasError(e,n){return!!this.getError(e,n)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new Re,this.statusChanges=new Re}_calculateStatus(){return this._allControlsDisabled()?Rs:this.errors?ou:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ti)?ti:this._anyControlsHaveStatus(ou)?ou:xs}_anyControlsHaveStatus(e){return this._anyControls(n=>n.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_isBoxedValue(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Mh(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class iu extends Ih{constructor(e=null,n,r){super(bh(n),wh(r,n)),this._onChange=[],this._applyFormState(e),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(e,n={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==n.emitViewToModelChange)),this.updateValueAndValidity(n)}patchValue(e,n={}){this.setValue(e,n)}reset(e=null,n={}){this._applyFormState(e),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){ru(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){ru(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}class Ah extends Ih{constructor(e,n,r){super(bh(n),wh(r,n)),this.controls=e,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,n){return this.controls[e]?this.controls[e]:(this.controls[e]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(e,n,r={}){this.registerControl(e,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(e,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(e,n,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],n&&this.registerControl(e,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,n={}){this._checkAllValuesPresent(e),Object.keys(e).forEach(r=>{this._throwIfControlMissing(r),this.controls[r].setValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(e,n={}){null!=e&&(Object.keys(e).forEach(r=>{this.controls[r]&&this.controls[r].patchValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(e={},n={}){this._forEachChild((r,o)=>{r.reset(e[o],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(e,n,r)=>(e[r]=n instanceof iu?n.value:n.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(n,r)=>!!r._syncPendingControls()||n);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error(`Cannot find form control with name: ${e}.`)}_forEachChild(e){Object.keys(this.controls).forEach(n=>{const r=this.controls[n];r&&e(r,n)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const n of Object.keys(this.controls)){const r=this.controls[n];if(this.contains(n)&&e(r))return!0}return!1}_reduceValue(){return this._reduceChildren({},(e,n,r)=>((n.enabled||this.disabled)&&(e[r]=n.value),e))}_reduceChildren(e,n){let r=e;return this._forEachChild((o,i)=>{r=n(r,o,i)}),r}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(e){this._forEachChild((n,r)=>{if(void 0===e[r])throw new Error(`Must supply a value for form control with name: '${r}'.`)})}}class qL extends Ih{constructor(e,n,r){super(bh(n),wh(r,n)),this.controls=e,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[e]}push(e,n={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}insert(e,n,r={}){this.controls.splice(e,0,n),this._registerControl(n),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(e,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity({emitEvent:n.emitEvent})}setControl(e,n,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),n&&(this.controls.splice(e,0,n),this._registerControl(n)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,n={}){this._checkAllValuesPresent(e),e.forEach((r,o)=>{this._throwIfControlMissing(o),this.at(o).setValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(e,n={}){null!=e&&(e.forEach((r,o)=>{this.at(o)&&this.at(o).patchValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(e=[],n={}){this._forEachChild((r,o)=>{r.reset(e[o],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this.controls.map(e=>e instanceof iu?e.value:e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(n=>n._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_syncPendingControls(){let e=this.controls.reduce((n,r)=>!!r._syncPendingControls()||n,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error(`Cannot find form control at index ${e}`)}_forEachChild(e){this.controls.forEach((n,r)=>{e(n,r)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(n=>n.enabled&&e(n))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_checkAllValuesPresent(e){this._forEachChild((n,r)=>{if(void 0===e[r])throw new Error(`Must supply a value for form control at index: ${r}.`)})}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}const zL={provide:st,useExisting:ie(()=>su)},Ns=(()=>Promise.resolve(null))();let su=(()=>{class t extends st{constructor(n,r){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new Re,this.form=new Ah({},gh(n),mh(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){Ns.then(()=>{const r=this._findContainer(n.path);n.control=r.registerControl(n.name,n.control),Ts(n.control,n),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){Ns.then(()=>{const r=this._findContainer(n.path);r&&r.removeControl(n.name),ru(this._directives,n)})}addFormGroup(n){Ns.then(()=>{const r=this._findContainer(n.path),o=new Ah({});(function(t,e){vh(t,e)})(o,n),r.registerControl(n.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){Ns.then(()=>{const r=this._findContainer(n.path);r&&r.removeControl(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,r){Ns.then(()=>{this.form.get(n.path).setValue(r)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submitted=!0,function(t,e){t._syncPendingControls(),e.forEach(n=>{const r=n.control;"submit"===r.updateOn&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(n),!1}onReset(){this.resetForm()}resetForm(n){this.form.reset(n),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(n){return n.pop(),n.length?this.form.get(n):this.form}}return t.\u0275fac=function(n){return new(n||t)(v(Ye,10),v(cr,10))},t.\u0275dir=R({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,r){1&n&&Fe("submit",function(i){return r.onSubmit(i)})("reset",function(){return r.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[fe([zL]),ce]}),t})();const KL={provide:fr,useExisting:ie(()=>Sh)},lb=(()=>Promise.resolve(null))();let Sh=(()=>{class t extends fr{constructor(n,r,o,i){super(),this.control=new iu,this._registered=!1,this.update=new Re,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=function(t,e){if(!e)return null;let n,r,o;return Array.isArray(e),e.forEach(i=>{i.constructor===Jl?n=i:function(t){return Object.getPrototypeOf(t.constructor)===Br}(i)?r=i:o=i}),o||r||n||null}(0,i)}ngOnChanges(n){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in n&&this._updateDisabled(n),function(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?function(t,e){return[...e.path,t]}(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Ts(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(n){lb.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1})})}_updateDisabled(n){const r=n.isDisabled.currentValue,o=""===r||r&&"false"!==r;lb.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(n){return new(n||t)(v(st,9),v(Ye,10),v(cr,10),v(bn,10))},t.\u0275dir=R({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[fe([KL]),ce,We]}),t})(),ub=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=R({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})(),db=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=bt({type:t}),t.\u0275inj=at({}),t})();const h2={provide:Ye,useExisting:ie(()=>au),multi:!0};let au=(()=>{class t{constructor(){this._required=!1}get required(){return this._required}set required(n){this._required=null!=n&&!1!==n&&"false"!=`${n}`,this._onChange&&this._onChange()}validate(n){return this.required?function(t){return function(t){return null==t||0===t.length}(t.value)?{required:!0}:null}(n):null}registerOnValidatorChange(n){this._onChange=n}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=R({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(n,r){2&n&&hn("required",r.required?"":null)},inputs:{required:"required"},features:[fe([h2])]}),t})(),Sb=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=bt({type:t}),t.\u0275inj=at({imports:[[db]]}),t})(),C2=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=bt({type:t}),t.\u0275inj=at({imports:[Sb]}),t})();function v2(t,e){if(1&t&&(E(0,"div",14),B(1),b()),2&t){const n=Oa();Q(1),Qe(n.errorMessage)}}function D2(t,e){1&t&&(E(0,"div",15),B(1,"Required"),b())}function E2(t,e){1&t&&(E(0,"div",15),B(1,"Password is required"),b())}let b2=(()=>{class t{constructor(n,r){this.store=n,this.router=r,this.creds={username:"",password:""},this.errorMessage=""}onLogin(){this.store.login(this.creds).subscribe(()=>{this.router.navigate(this.store.order.items.length>0?["checkout"]:[""])},n=>{console.log(n),this.errorMessage="Failed to login"})}}return t.\u0275fac=function(n){return new(n||t)(v(ei),v($e))},t.\u0275cmp=Tn({type:t,selectors:[["login-page"]],decls:22,vars:9,consts:[[1,"row"],[1,"col-md-4","col-md-offset-4"],["class","alert alert-danger",4,"ngIf"],[3,"submit"],[1,"form-group"],["for","username"],["type","text","name","username","required","",1,"form-control",3,"ngModel","ngModelChange"],["username","ngModel"],["class","text-danger",4,"ngIf"],["for","password"],["type","password","name","password","required","",1,"form-control",3,"ngModel","ngModelChange"],["password","ngModel"],["type","submit","value","Login",1,"btn","btn-success",3,"disabled"],["href","#",1,"btn","btn-default"],[1,"alert","alert-danger"],[1,"text-danger"]],template:function(n,r){if(1&n&&(E(0,"div",0),E(1,"div",1),Fn(2,v2,2,1,"div",2),E(3,"form",3),Fe("submit",function(){return r.onLogin()}),E(4,"div",4),E(5,"label",5),B(6,"Username"),b(),E(7,"input",6,7),Fe("ngModelChange",function(i){return r.creds.username=i}),b(),Fn(9,D2,2,0,"div",8),b(),E(10,"div",4),E(11,"label",9),B(12,"Password"),b(),E(13,"input",10,11),Fe("ngModelChange",function(i){return r.creds.password=i}),b(),Fn(15,E2,2,0,"div",8),b(),E(16,"div",4),pn(17,"input",12),E(18,"a",13),B(19,"Cancel"),b(),b(),b(),B(20),_n(21,"json"),b(),b()),2&n){const o=Qc(8),i=Qc(14);Q(2),vt("ngIf",r.errorMessage),Q(5),vt("ngModel",r.creds.username),Q(2),vt("ngIf",o.touched&&o.invalid),Q(4),vt("ngModel",r.creds.password),Q(2),vt("ngIf",i.touched&&i.invalid),Q(2),vt("disabled",o.invalid||i.invalid),Q(3),kn(" ",Bo(21,7,r.creds)," ")}},directives:[Ml,ub,eb,su,Jl,au,XE,Sh],pipes:[Wv],encapsulation:2}),t})();function w2(t,e){if(1&t){const n=C();E(0,"div",2),E(1,"div",3),pn(2,"img",4),E(3,"h5"),B(4),b(),E(5,"ul",5),E(6,"li"),B(7),_n(8,"currency"),b(),E(9,"li"),B(10),b(),E(11,"li"),B(12),b(),E(13,"li"),B(14),b(),b(),E(15,"button",6),Fe("click",function(){const i=function(t){return P.lFrame.contextLView=t,t[8]}(n).$implicit;return Oa().store.addToOrder(i)}),B(16,"Buy"),b(),b(),b()}if(2&t){const n=e.$implicit;Q(2),To("src","/img/",n.artId,".jpg",lo),Pa("alt",n.artist),Q(2),nd("",n.category," - ",n.size,""),Q(3),kn("Price: ",Bo(8,8,n.price),""),Q(3),kn("Artist: ",n.artist,""),Q(2),kn("Title: ",n.title,""),Q(2),Qe(n.artDescription)}}let M2=(()=>{class t{constructor(n){this.store=n}ngOnInit(){this.store.loadProducts().subscribe(()=>{},()=>{alert("error: loadProducts don't work!!!")},()=>{})}}return t.\u0275fac=function(n){return new(n||t)(v(ei))},t.\u0275cmp=Tn({type:t,selectors:[["product-list"]],decls:2,vars:1,consts:[[1,"row"],["class","col-md-4",4,"ngFor","ngForOf"],[1,"col-md-4"],[1,"border","bg-light","rounded","p-1"],[1,"img-fluid","product-image",3,"src","alt"],[1,"products-props"],["id","buyBtn",1,"btn","btn-success",3,"click"]],template:function(n,r){1&n&&(E(0,"div",0),Fn(1,w2,17,10,"div",1),b()),2&n&&(Q(1),vt("ngForOf",r.store.products))},directives:[wl],pipes:[Il],styles:[".product-image[_ngcontent-%COMP%]{border:1px #ddd solid;box-shadow:#0006 2px 2px;margin:2px;max-width:50%}.products-props[_ngcontent-%COMP%]{font-size:.9rem}"]}),t})();function I2(t,e){if(1&t&&(E(0,"tr"),E(1,"td"),pn(2,"img",4),b(),E(3,"td"),B(4),b(),E(5,"td"),B(6),b(),E(7,"td"),B(8),_n(9,"currency"),b(),E(10,"td"),B(11),_n(12,"currency"),b(),b()),2&t){const n=e.$implicit;Q(2),To("src","/img/",n.productArtId,".jpg",lo),Pa("alt",n.productArtist),Q(2),Qe(n.productCategory),Q(2),Qe(n.quantity),Q(2),Qe(Bo(9,6,n.unitPrice)),Q(3),Qe(Bo(12,8,n.unitPrice*n.quantity))}}function A2(t,e){1&t&&(E(0,"a",5),B(1,"Checkout"),b())}let S2=(()=>{class t{constructor(n){this.store=n}}return t.\u0275fac=function(n){return new(n||t)(v(ei))},t.\u0275cmp=Tn({type:t,selectors:[["cart"]],decls:25,vars:6,consts:[[1,"table","table-condensed","table-striped"],[4,"ngFor","ngForOf"],["colspan","5"],["class","btn btn-success","routerLink","checkout",4,"ngIf"],[1,"img-fluid","product-thumb",3,"src","alt"],["routerLink","checkout",1,"btn","btn-success"]],template:function(n,r){1&n&&(E(0,"h3"),B(1,"Cart"),b(),E(2,"div"),B(3),b(),E(4,"table",0),E(5,"thead"),E(6,"tr"),pn(7,"th"),E(8,"th"),B(9,"Product"),b(),E(10,"th"),B(11,"Quantity"),b(),E(12,"th"),B(13,"Price"),b(),E(14,"th"),B(15,"Total"),b(),b(),b(),E(16,"tbody"),Fn(17,I2,13,10,"tr",1),b(),E(18,"tfoot"),E(19,"tr"),E(20,"td",2),E(21,"strong"),B(22),_n(23,"currency"),b(),b(),b(),b(),b(),Fn(24,A2,2,0,"a",3)),2&n&&(Q(3),kn("Count: ",r.store.order.items.length,""),Q(14),vt("ngForOf",r.store.order.items),Q(5),kn("Subtotal: ",Bo(23,4,r.store.order.subtotal),""),Q(2),vt("ngIf",r.store.order.items.length>0))},directives:[wl,Ml,Ss],pipes:[Il],styles:[".product-thumb[_ngcontent-%COMP%]{max-width:50%}"]}),t})(),T2=(()=>{class t{constructor(){this.title="ShopPage"}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=Tn({type:t,selectors:[["shop-page"]],decls:7,vars:1,consts:[[1,"row"],[1,"col-9"],[1,"col-3"]],template:function(n,r){1&n&&(E(0,"div",0),E(1,"div",1),E(2,"h3"),B(3),b(),pn(4,"product-list"),b(),E(5,"div",2),pn(6,"cart"),b(),b()),2&n&&(Q(3),Qe(r.title))},directives:[M2,S2],encapsulation:2}),t})(),Tb=(()=>{class t{constructor(n,r){this.store=n,this.router=r}canActivate(n,r){return!this.store.loginRequired||(this.router.navigate(["login"]),!1)}}return t.\u0275fac=function(n){return new(n||t)(D(ei),D($e))},t.\u0275prov=O({token:t,factory:t.\u0275fac}),t})();const R2=hL.forRoot([{path:"",component:T2},{path:"checkout",component:AL,canActivate:[Tb]},{path:"login",component:b2},{path:"**",redirectTo:"/"}],{useHash:!1});let N2=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=bt({type:t,bootstrap:[bL]}),t.\u0275inj=at({providers:[ei,Tb],imports:[[_F,HF,R2,C2]]}),t})();(function(){if(QC)throw new Error("Cannot enable prod mode after platform setup.");zC=!1})(),mF().bootstrapModule(N2).catch(t=>console.error(t))}},ii=>{ii(ii.s=795)}]);
|