Source code

Revision control

Copy as Markdown

Other Tools

"use strict";(self.webpackChunkangular=self.webpackChunkangular||[]).push([[179],{243:()=>{function ee(e){return"function"==typeof e}function fo(e){const n=e(r=>{Error.call(r),r.stack=(new Error).stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}const Oi=fo(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((r,o)=>`${o+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n});function ho(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class pt{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(const i of n)i.remove(this);else n.remove(this);const{initialTeardown:r}=this;if(ee(r))try{r()}catch(i){t=i instanceof Oi?i.errors:[i]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const i of o)try{wf(i)}catch(s){t=t??[],s instanceof Oi?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Oi(t)}}add(t){var n;if(t&&t!==this)if(this.closed)wf(t);else{if(t instanceof pt){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}}_hasParent(t){const{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){const{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){const{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&ho(n,t)}remove(t){const{_finalizers:n}=this;n&&ho(n,t),t instanceof pt&&t._removeParent(this)}}pt.EMPTY=(()=>{const e=new pt;return e.closed=!0,e})();const Df=pt.EMPTY;function Cf(e){return e instanceof pt||e&&"closed"in e&&ee(e.remove)&&ee(e.add)&&ee(e.unsubscribe)}function wf(e){ee(e)?e():e.unsubscribe()}const Bn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Pi={setTimeout(e,t,...n){const{delegate:r}=Pi;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=Pi;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Ef(e){Pi.setTimeout(()=>{const{onUnhandledError:t}=Bn;if(!t)throw e;t(e)})}function bf(){}const WC=Ya("C",void 0,void 0);function Ya(e,t,n){return{kind:e,value:t,error:n}}let $n=null;function ki(e){if(Bn.useDeprecatedSynchronousErrorHandling){const t=!$n;if(t&&($n={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=$n;if($n=null,n)throw r}}else e()}class Ja extends pt{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Cf(t)&&t.add(this)):this.destination=XC}static create(t,n,r){return new po(t,n,r)}next(t){this.isStopped?eu(function ZC(e){return Ya("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?eu(function qC(e){return Ya("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?eu(WC,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const KC=Function.prototype.bind;function Xa(e,t){return KC.call(e,t)}class YC{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Li(r)}}error(t){const{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Li(r)}else Li(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Li(n)}}}class po extends Ja{constructor(t,n,r){let o;if(super(),ee(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Bn.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Xa(t.next,i),error:t.error&&Xa(t.error,i),complete:t.complete&&Xa(t.complete,i)}):o=t}this.destination=new YC(o)}}function Li(e){Bn.useDeprecatedSynchronousErrorHandling?function QC(e){Bn.useDeprecatedSynchronousErrorHandling&&$n&&($n.errorThrown=!0,$n.error=e)}(e):Ef(e)}function eu(e,t){const{onStoppedNotification:n}=Bn;n&&Pi.setTimeout(()=>n(e,t))}const XC={closed:!0,next:bf,error:function JC(e){throw e},complete:bf},tu="function"==typeof Symbol&&Symbol.observable||"@@observable";function Un(e){return e}function If(e){return 0===e.length?Un:1===e.length?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}let ve=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){const r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){const i=function nw(e){return e&&e instanceof Ja||function tw(e){return e&&ee(e.next)&&ee(e.error)&&ee(e.complete)}(e)&&Cf(e)}(n)?n:new po(n,r,o);return ki(()=>{const{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return new(r=Mf(r))((o,i)=>{const s=new po({next:a=>{try{n(a)}catch(u){i(u),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(n)}[tu](){return this}pipe(...n){return If(n)(this)}toPromise(n){return new(n=Mf(n))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function Mf(e){var t;return null!==(t=e??Bn.Promise)&&void 0!==t?t:Promise}const rw=fo(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let $t=(()=>{class e extends ve{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new Sf(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new rw}next(n){ki(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){ki(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;const{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){ki(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return(null===(n=this.observers)||void 0===n?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){const{hasError:r,isStopped:o,observers:i}=this;return r||o?Df:(this.currentObservers=null,i.push(n),new pt(()=>{this.currentObservers=null,ho(i,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){const n=new ve;return n.source=this,n}}return e.create=(t,n)=>new Sf(t,n),e})();class Sf extends $t{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===r||r.call(n,t)}error(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===r||r.call(n,t)}complete(){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===n||n.call(t)}_subscribe(t){var n,r;return null!==(r=null===(n=this.source)||void 0===n?void 0:n.subscribe(t))&&void 0!==r?r:Df}}function Af(e){return ee(e?.lift)}function Ne(e){return t=>{if(Af(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ie(e,t,n,r,o){return new ow(e,t,n,r,o)}class ow extends Ja{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(u){t.error(u)}}:super._next,this._error=o?function(a){try{o(a)}catch(u){t.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:n}=this;super.unsubscribe(),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function G(e,t){return Ne((n,r)=>{let o=0;n.subscribe(Ie(r,i=>{r.next(e.call(t,i,o++))}))})}function Hn(e){return this instanceof Hn?(this.v=e,this):new Hn(e)}function aw(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=n.apply(e,t||[]),i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(f){r[f]&&(o[f]=function(h){return new Promise(function(p,g){i.push([f,h,p,g])>1||a(f,h)})})}function a(f,h){try{!function u(f){f.value instanceof Hn?Promise.resolve(f.value.v).then(l,c):d(i[0][2],f)}(r[f](h))}catch(p){d(i[0][3],p)}}function l(f){a("next",f)}function c(f){a("throw",f)}function d(f,h){f(h),i.shift(),i.length&&a(i[0][0],i[0][1])}}function uw(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,t=e[Symbol.asyncIterator];return t?t.call(e):(e=function Nf(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,u){!function o(i,s,a,u){Promise.resolve(u).then(function(l){i({value:l,done:a})},s)}(a,u,(s=e[i](s)).done,s.value)})}}}const Rf=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function Ff(e){return ee(e?.then)}function Of(e){return ee(e[tu])}function Pf(e){return Symbol.asyncIterator&&ee(e?.[Symbol.asyncIterator])}function kf(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const Lf=function cw(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Vf(e){return ee(e?.[Lf])}function jf(e){return aw(this,arguments,function*(){const n=e.getReader();try{for(;;){const{value:r,done:o}=yield Hn(n.read());if(o)return yield Hn(void 0);yield yield Hn(r)}}finally{n.releaseLock()}})}function Bf(e){return ee(e?.getReader)}function bt(e){if(e instanceof ve)return e;if(null!=e){if(Of(e))return function dw(e){return new ve(t=>{const n=e[tu]();if(ee(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Rf(e))return function fw(e){return new ve(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}(e);if(Ff(e))return function hw(e){return new ve(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Ef)})}(e);if(Pf(e))return $f(e);if(Vf(e))return function pw(e){return new ve(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if(Bf(e))return function gw(e){return $f(jf(e))}(e)}throw kf(e)}function $f(e){return new ve(t=>{(function mw(e,t){var n,r,o,i;return function iw(e,t,n,r){return new(n||(n=Promise))(function(i,s){function a(c){try{l(r.next(c))}catch(d){s(d)}}function u(c){try{l(r.throw(c))}catch(d){s(d)}}function l(c){c.done?i(c.value):function o(i){return i instanceof n?i:new n(function(s){s(i)})}(c.value).then(a,u)}l((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){try{for(n=uw(e);!(r=yield n.next()).done;)if(t.next(r.value),t.closed)return}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})})(e,t).catch(n=>t.error(n))})}function tn(e,t,n,r=0,o=!1){const i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function Fe(e,t,n=1/0){return ee(t)?Fe((r,o)=>G((i,s)=>t(r,i,o,s))(bt(e(r,o))),n):("number"==typeof t&&(n=t),Ne((r,o)=>function yw(e,t,n,r,o,i,s,a){const u=[];let l=0,c=0,d=!1;const f=()=>{d&&!u.length&&!l&&t.complete()},h=g=>l<r?p(g):u.push(g),p=g=>{i&&t.next(g),l++;let m=!1;bt(n(g,c++)).subscribe(Ie(t,D=>{o?.(D),i?h(D):t.next(D)},()=>{m=!0},void 0,()=>{if(m)try{for(l--;u.length&&l<r;){const D=u.shift();s?tn(t,s,()=>p(D)):p(D)}f()}catch(D){t.error(D)}}))};return e.subscribe(Ie(t,h,()=>{d=!0,f()})),()=>{a?.()}}(r,o,e,n)))}function mr(e=1/0){return Fe(Un,e)}const nn=new ve(e=>e.complete());function ru(e){return e[e.length-1]}function Uf(e){return ee(ru(e))?e.pop():void 0}function go(e){return function _w(e){return e&&ee(e.schedule)}(ru(e))?e.pop():void 0}function Hf(e,t=0){return Ne((n,r)=>{n.subscribe(Ie(r,o=>tn(r,e,()=>r.next(o),t),()=>tn(r,e,()=>r.complete(),t),o=>tn(r,e,()=>r.error(o),t)))})}function Gf(e,t=0){return Ne((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function zf(e,t){if(!e)throw new Error("Iterable cannot be null");return new ve(n=>{tn(n,t,()=>{const r=e[Symbol.asyncIterator]();tn(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function _e(e,t){return t?function Mw(e,t){if(null!=e){if(Of(e))return function Cw(e,t){return bt(e).pipe(Gf(t),Hf(t))}(e,t);if(Rf(e))return function Ew(e,t){return new ve(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(Ff(e))return function ww(e,t){return bt(e).pipe(Gf(t),Hf(t))}(e,t);if(Pf(e))return zf(e,t);if(Vf(e))return function bw(e,t){return new ve(n=>{let r;return tn(n,t,()=>{r=e[Lf](),tn(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){return void n.error(s)}i?n.complete():n.next(o)},0,!0)}),()=>ee(r?.return)&&r.return()})}(e,t);if(Bf(e))return function Iw(e,t){return zf(jf(e),t)}(e,t)}throw kf(e)}(e,t):bt(e)}function ou(e,t,...n){if(!0===t)return void e();if(!1===t)return;const r=new po({next:()=>{r.unsubscribe(),e()}});return t(...n).subscribe(r)}function J(e){for(let t in e)if(e[t]===J)return t;throw Error("Could not find renamed property on target object.")}function iu(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function X(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(X).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function su(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Tw=J({__forward_ref__:J});function te(e){return e.__forward_ref__=te,e.toString=function(){return X(this())},e}function R(e){return au(e)?e():e}function au(e){return"function"==typeof e&&e.hasOwnProperty(Tw)&&e.__forward_ref__===te}class C extends Error{constructor(t,n){super(function Vi(e,t){return`NG0${Math.abs(e)}${t?": "+t.trim():""}`}(t,n)),this.code=t}}function P(e){return"string"==typeof e?e:null==e?"":String(e)}function ji(e,t){throw new C(-201,!1)}function ot(e,t){null==e&&function Q(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function L(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function It(e){return{providers:e.providers||[],imports:e.imports||[]}}function Bi(e){return Wf(e,$i)||Wf(e,Zf)}function Wf(e,t){return e.hasOwnProperty(t)?e[t]:null}function qf(e){return e&&(e.hasOwnProperty(uu)||e.hasOwnProperty(Vw))?e[uu]:null}const $i=J({\u0275prov:J}),uu=J({\u0275inj:J}),Zf=J({ngInjectableDef:J}),Vw=J({ngInjectorDef:J});var x=(()=>((x=x||{})[x.Default=0]="Default",x[x.Host=1]="Host",x[x.Self=2]="Self",x[x.SkipSelf=4]="SkipSelf",x[x.Optional=8]="Optional",x))();let lu;function gt(e){const t=lu;return lu=e,t}function Qf(e,t,n){const r=Bi(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&x.Optional?null:void 0!==t?t:void ji(X(e))}function wn(e){return{toString:e}.toString()}var Mt=(()=>((Mt=Mt||{})[Mt.OnPush=0]="OnPush",Mt[Mt.Default=1]="Default",Mt))(),Ut=(()=>{return(e=Ut||(Ut={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",Ut;var e})();const ne=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),yr={},Z=[],Ui=J({\u0275cmp:J}),cu=J({\u0275dir:J}),du=J({\u0275pipe:J}),Kf=J({\u0275mod:J}),on=J({\u0275fac:J}),mo=J({__NG_ELEMENT_ID__:J});let Bw=0;function En(e){return wn(()=>{const n=!0===e.standalone,r={},o={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Mt.OnPush,directiveDefs:null,pipeDefs:null,standalone:n,dependencies:n&&e.dependencies||null,getStandaloneInjector:null,selectors:e.selectors||Z,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Ut.Emulated,id:"c"+Bw++,styles:e.styles||Z,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.dependencies,s=e.features;return o.inputs=Xf(e.inputs,r),o.outputs=Xf(e.outputs),s&&s.forEach(a=>a(o)),o.directiveDefs=i?()=>("function"==typeof i?i():i).map(Yf).filter(Jf):null,o.pipeDefs=i?()=>("function"==typeof i?i():i).map(Ge).filter(Jf):null,o})}function Yf(e){return K(e)||He(e)}function Jf(e){return null!==e}function Ht(e){return wn(()=>({type:e.type,bootstrap:e.bootstrap||Z,declarations:e.declarations||Z,imports:e.imports||Z,exports:e.exports||Z,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Xf(e,t){if(null==e)return yr;const n={};for(const r in e)if(e.hasOwnProperty(r)){let o=e[r],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),n[o]=r,t&&(t[o]=i)}return n}const F=En;function K(e){return e[Ui]||null}function He(e){return e[cu]||null}function Ge(e){return e[du]||null}function it(e,t){const n=e[Kf]||null;if(!n&&!0===t)throw new Error(`Type ${X(e)} does not have '\u0275mod' property.`);return n}const j=11;function Je(e){return Array.isArray(e)&&"object"==typeof e[1]}function At(e){return Array.isArray(e)&&!0===e[1]}function pu(e){return 0!=(8&e.flags)}function Wi(e){return 2==(2&e.flags)}function qi(e){return 1==(1&e.flags)}function Tt(e){return null!==e.template}function Ww(e){return 0!=(256&e[2])}function Zn(e,t){return e.hasOwnProperty(on)?e[on]:null}class Qw{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function yt(){return nh}function nh(e){return e.type.prototype.ngOnChanges&&(e.setInput=Yw),Kw}function Kw(){const e=oh(this),t=e?.current;if(t){const n=e.previous;if(n===yr)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Yw(e,t,n,r){const o=oh(e)||function Jw(e,t){return e[rh]=t}(e,{previous:yr,current:null}),i=o.current||(o.current={}),s=o.previous,a=this.declaredInputs[n],u=s[a];i[a]=new Qw(u&&u.currentValue,t,s===yr),e[r]=t}yt.ngInherit=!0;const rh="__ngSimpleChanges__";function oh(e){return e[rh]||null}function De(e){for(;Array.isArray(e);)e=e[0];return e}function Zi(e,t){return De(t[e])}function at(e,t){return De(t[e.index])}function _u(e,t){return e.data[t]}function ut(e,t){const n=t[e];return Je(n)?n:n[0]}function Qi(e){return 64==(64&e[2])}function bn(e,t){return null==t?null:e[t]}function ih(e){e[18]=0}function Du(e,t){e[5]+=t;let n=e,r=e[3];for(;null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}const O={lFrame:gh(null),bindingsEnabled:!0};function ah(){return O.bindingsEnabled}function v(){return O.lFrame.lView}function z(){return O.lFrame.tView}function Qn(e){return O.lFrame.contextLView=e,e[8]}function Kn(e){return O.lFrame.contextLView=null,e}function Me(){let e=uh();for(;null!==e&&64===e.type;)e=e.parent;return e}function uh(){return O.lFrame.currentTNode}function Gt(e,t){const n=O.lFrame;n.currentTNode=e,n.isParent=t}function Cu(){return O.lFrame.isParent}function Er(){return O.lFrame.bindingIndex++}function hE(e,t){const n=O.lFrame;n.bindingIndex=n.bindingRootIndex=e,Eu(t)}function Eu(e){O.lFrame.currentDirectiveIndex=e}function fh(){return O.lFrame.currentQueryIndex}function Iu(e){O.lFrame.currentQueryIndex=e}function gE(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function hh(e,t,n){if(n&x.SkipSelf){let o=t,i=e;for(;!(o=o.parent,null!==o||n&x.Host||(o=gE(i),null===o||(i=i[15],10&o.type))););if(null===o)return!1;t=o,e=i}const r=O.lFrame=ph();return r.currentTNode=t,r.lView=e,!0}function Mu(e){const t=ph(),n=e[1];O.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function ph(){const e=O.lFrame,t=null===e?null:e.child;return null===t?gh(e):t}function gh(e){const t={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:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function mh(){const e=O.lFrame;return O.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const yh=mh;function Su(){const e=mh();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function We(){return O.lFrame.selectedIndex}function In(e){O.lFrame.selectedIndex=e}function ue(){const e=O.lFrame;return _u(e.tView,e.selectedIndex)}function Ki(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){const i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:u,ngAfterViewChecked:l,ngOnDestroy:c}=i;s&&(e.contentHooks||(e.contentHooks=[])).push(-n,s),a&&((e.contentHooks||(e.contentHooks=[])).push(n,a),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,a)),u&&(e.viewHooks||(e.viewHooks=[])).push(-n,u),l&&((e.viewHooks||(e.viewHooks=[])).push(n,l),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,l)),null!=c&&(e.destroyHooks||(e.destroyHooks=[])).push(n,c)}}function Yi(e,t,n){vh(e,t,3,n)}function Ji(e,t,n,r){(3&e[2])===n&&vh(e,t,n,r)}function Au(e,t){let n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function vh(e,t,n,r){const i=r??-1,s=t.length-1;let a=0;for(let u=void 0!==r?65535&e[18]:0;u<s;u++)if("number"==typeof t[u+1]){if(a=t[u],null!=r&&a>=r)break}else t[u]<0&&(e[18]+=65536),(a<i||-1==i)&&(bE(e,n,t,u),e[18]=(4294901760&e[18])+u+2),u++}function bE(e,t,n,r){const o=n[r]<0,i=n[r+1],a=e[o?-n[r]:n[r]];if(o){if(e[2]>>11<e[18]>>16&&(3&e[2])===t){e[2]+=2048;try{i.call(a)}finally{}}}else try{i.call(a)}finally{}}class wo{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Xi(e,t,n){let r=0;for(;r<n.length;){const o=n[r];if("number"==typeof o){if(0!==o)break;r++;const i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i)}else{const i=o,s=n[++r];Dh(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function _h(e){return 3===e||4===e||6===e}function Dh(e){return 64===e.charCodeAt(0)}function es(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){const o=t[r];"number"==typeof o?n=o:0===n||Ch(e,n,o,null,-1===n||2===n?t[++r]:null)}}return e}function Ch(e,t,n,r,o){let i=0,s=e.length;if(-1===t)s=-1;else for(;i<e.length;){const a=e[i++];if("number"==typeof a){if(a===t){s=-1;break}if(a>t){s=i-1;break}}}for(;i<e.length;){const a=e[i];if("number"==typeof a)break;if(a===n){if(null===r)return void(null!==o&&(e[i+1]=o));if(r===e[i+1])return void(e[i+2]=o)}i++,null!==r&&i++,null!==o&&i++}-1!==s&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),null!==r&&e.splice(i++,0,r),null!==o&&e.splice(i++,0,o)}function wh(e){return-1!==e}function br(e){return 32767&e}function Ir(e,t){let n=function TE(e){return e>>16}(e),r=t;for(;n>0;)r=r[15],n--;return r}let xu=!0;function ts(e){const t=xu;return xu=e,t}let xE=0;const zt={};function bo(e,t){const n=Ru(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,Nu(r.data,e),Nu(t,null),Nu(r.blueprint,null));const o=ns(e,t),i=e.injectorIndex;if(wh(o)){const s=br(o),a=Ir(o,t),u=a[1].data;for(let l=0;l<8;l++)t[i+l]=a[s+l]|u[s+l]}return t[i+8]=o,i}function Nu(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ru(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function ns(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;null!==o;){if(r=Nh(o),null===r)return-1;if(n++,o=o[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function rs(e,t,n){!function NE(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(mo)&&(r=n[mo]),null==r&&(r=n[mo]=xE++);const o=255&r;t.data[e+(o>>5)]|=1<<o}(e,t,n)}function Ih(e,t,n){if(n&x.Optional||void 0!==e)return e;ji()}function Mh(e,t,n,r){if(n&x.Optional&&void 0===r&&(r=null),0==(n&(x.Self|x.Host))){const o=e[9],i=gt(void 0);try{return o?o.get(t,r,n&x.Optional):Qf(t,r,n&x.Optional)}finally{gt(i)}}return Ih(r,0,n)}function Sh(e,t,n,r=x.Default,o){if(null!==e){if(1024&t[2]){const s=function kE(e,t,n,r,o){let i=e,s=t;for(;null!==i&&null!==s&&1024&s[2]&&!(256&s[2]);){const a=Ah(i,s,n,r|x.Self,zt);if(a!==zt)return a;let u=i.parent;if(!u){const l=s[21];if(l){const c=l.get(n,zt,r);if(c!==zt)return c}u=Nh(s),s=s[15]}i=u}return o}(e,t,n,r,zt);if(s!==zt)return s}const i=Ah(e,t,n,r,zt);if(i!==zt)return i}return Mh(t,n,r,o)}function Ah(e,t,n,r,o){const i=function OE(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(mo)?e[mo]:void 0;return"number"==typeof t?t>=0?255&t:PE:t}(n);if("function"==typeof i){if(!hh(t,e,r))return r&x.Host?Ih(o,0,r):Mh(t,n,r,o);try{const s=i(r);if(null!=s||r&x.Optional)return s;ji()}finally{yh()}}else if("number"==typeof i){let s=null,a=Ru(e,t),u=-1,l=r&x.Host?t[16][6]:null;for((-1===a||r&x.SkipSelf)&&(u=-1===a?ns(e,t):t[a+8],-1!==u&&xh(r,!1)?(s=t[1],a=br(u),t=Ir(u,t)):a=-1);-1!==a;){const c=t[1];if(Th(i,a,c.data)){const d=FE(a,t,n,s,r,l);if(d!==zt)return d}u=t[a+8],-1!==u&&xh(r,t[1].data[a+8]===l)&&Th(i,a,t)?(s=c,a=br(u),t=Ir(u,t)):a=-1}}return o}function FE(e,t,n,r,o,i){const s=t[1],a=s.data[e+8],c=os(a,s,n,null==r?Wi(a)&&xu:r!=s&&0!=(3&a.type),o&x.Host&&i===a);return null!==c?Io(t,s,c,a):zt}function os(e,t,n,r,o){const i=e.providerIndexes,s=t.data,a=1048575&i,u=e.directiveStart,c=i>>20,f=o?a+c:e.directiveEnd;for(let h=r?a:a+c;h<f;h++){const p=s[h];if(h<u&&n===p||h>=u&&p.type===n)return h}if(o){const h=s[u];if(h&&Tt(h)&&h.type===n)return u}return null}function Io(e,t,n,r){let o=e[n];const i=t.data;if(function IE(e){return e instanceof wo}(o)){const s=o;s.resolving&&function xw(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new C(-200,`Circular dependency in DI detected for ${e}${n}`)}(function q(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():P(e)}(i[n]));const a=ts(s.canSeeViewProviders);s.resolving=!0;const u=s.injectImpl?gt(s.injectImpl):null;hh(e,r,x.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&function EE(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){const s=nh(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,o),i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,i))}(n,i[n],t)}finally{null!==u&&gt(u),ts(a),s.resolving=!1,yh()}}return o}function Th(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function xh(e,t){return!(e&x.Self||e&x.Host&&t)}class Mr{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Sh(this._tNode,this._lView,t,r,n)}}function PE(){return new Mr(Me(),v())}function Fu(e){return au(e)?()=>{const t=Fu(R(e));return t&&t()}:Zn(e)}function Nh(e){const t=e[1],n=t.type;return 2===n?t.declTNode:1===n?e[6]:null}const Ar="__parameters__";function xr(e,t,n){return wn(()=>{const r=function Ou(e){return function(...n){if(e){const r=e(...n);for(const o in r)this[o]=r[o]}}}(t);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(u,l,c){const d=u.hasOwnProperty(Ar)?u[Ar]:Object.defineProperty(u,Ar,{value:[]})[Ar];for(;d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(s),u}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}class M{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=L({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function lt(e,t){void 0===t&&(t=e);for(let n=0;n<e.length;n++){let r=e[n];Array.isArray(r)?(t===e&&(t=e.slice(0,n)),lt(r,t)):t!==e&&t.push(r)}return t}function un(e,t){e.forEach(n=>Array.isArray(n)?un(n,t):t(n))}function Fh(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function is(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function ct(e,t,n){let r=Nr(e,t);return r>=0?e[1|r]=n:(r=~r,function BE(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(1===o)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function ku(e,t){const n=Nr(e,t);if(n>=0)return e[1|n]}function Nr(e,t){return function kh(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){const i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1}return~(o<<n)}(e,t,1)}const xo={},Vu="__NG_DI_FLAG__",as="ngTempTokenPath",ZE=/\n/gm,Lh="__source";let No;function Rr(e){const t=No;return No=e,t}function KE(e,t=x.Default){if(void 0===No)throw new C(-203,!1);return null===No?Qf(e,void 0,t):No.get(e,t&x.Optional?null:void 0,t)}function A(e,t=x.Default){return(function jw(){return lu}()||KE)(R(e),t)}function pe(e,t=x.Default){return"number"!=typeof t&&(t=0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)),A(e,t)}function ju(e){const t=[];for(let n=0;n<e.length;n++){const r=R(e[n]);if(Array.isArray(r)){if(0===r.length)throw new C(900,!1);let o,i=x.Default;for(let s=0;s<r.length;s++){const a=r[s],u=YE(a);"number"==typeof u?-1===u?o=a.token:i|=u:o=a}t.push(A(o,i))}else t.push(A(r))}return t}function Ro(e,t){return e[Vu]=t,e.prototype[Vu]=t,e}function YE(e){return e[Vu]}const Fo=Ro(xr("Optional"),8),Oo=Ro(xr("SkipSelf"),4);var Xe=(()=>((Xe=Xe||{})[Xe.Important=1]="Important",Xe[Xe.DashCase=2]="DashCase",Xe))();const Gu=new Map;let gb=0;const Wu="__ngContext__";function je(e,t){Je(t)?(e[Wu]=t[20],function yb(e){Gu.set(e[20],e)}(t)):e[Wu]=t}function Zu(e,t){return undefined(e,t)}function Vo(e){const t=e[3];return At(t)?t[3]:t}function Qu(e){return op(e[13])}function Ku(e){return op(e[4])}function op(e){for(;null!==e&&!At(e);)e=e[4];return e}function Or(e,t,n,r,o){if(null!=r){let i,s=!1;At(r)?i=r:Je(r)&&(s=!0,r=r[0]);const a=De(r);0===e&&null!==n?null==o?cp(t,n,a):Yn(t,n,a,o||null,!0):1===e&&null!==n?Yn(t,n,a,o||null,!0):2===e?function rl(e,t,n){const r=cs(e,t);r&&function jb(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=i&&function Ub(e,t,n,r,o){const i=n[7];i!==De(n)&&Or(t,e,r,i,o);for(let a=10;a<n.length;a++){const u=n[a];jo(u[1],u,e,t,r,i)}}(t,e,i,n,o)}}function Ju(e,t,n){return e.createElement(t,n)}function sp(e,t){const n=e[9],r=n.indexOf(t),o=t[3];512&t[2]&&(t[2]&=-513,Du(o,-1)),n.splice(r,1)}function Xu(e,t){if(e.length<=10)return;const n=10+t,r=e[n];if(r){const o=r[17];null!==o&&o!==e&&sp(o,r),t>0&&(e[n-1][4]=r[4]);const i=is(e,10+t);!function Nb(e,t){jo(e,t,t[j],2,null,null),t[0]=null,t[6]=null}(r[1],r);const s=i[19];null!==s&&s.detachView(i[1]),r[3]=null,r[4]=null,r[2]&=-65}return r}function ap(e,t){if(!(128&t[2])){const n=t[j];n.destroyNode&&jo(e,t,n,3,null,null),function Ob(e){let t=e[13];if(!t)return el(e[1],e);for(;t;){let n=null;if(Je(t))n=t[13];else{const r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)Je(t)&&el(t[1],t),t=t[3];null===t&&(t=e),Je(t)&&el(t[1],t),n=t&&t[4]}t=n}}(t)}}function el(e,t){if(!(128&t[2])){t[2]&=-65,t[2]|=128,function Vb(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r<n.length;r+=2){const o=t[n[r]];if(!(o instanceof wo)){const i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){const a=o[i[s]],u=i[s+1];try{u.call(a)}finally{}}else try{i.call(o)}finally{}}}}(e,t),function Lb(e,t){const n=e.cleanup,r=t[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(t):De(t[s]),u=r[o=n[i+2]],l=n[i+3];"boolean"==typeof l?a.removeEventListener(n[i],u,l):l>=0?r[o=l]():r[o=-l].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++)(0,r[i])();t[7]=null}}(e,t),1===t[1].type&&t[j].destroy();const n=t[17];if(null!==n&&At(t[3])){n!==t[3]&&sp(n,t);const r=t[19];null!==r&&r.detachView(e)}!function vb(e){Gu.delete(e[20])}(t)}}function up(e,t,n){return function lp(e,t,n){let r=t;for(;null!==r&&40&r.type;)r=(t=r).parent;if(null===r)return n[0];if(2&r.flags){const o=e.data[r.directiveStart].encapsulation;if(o===Ut.None||o===Ut.Emulated)return null}return at(r,n)}(e,t.parent,n)}function Yn(e,t,n,r,o){e.insertBefore(t,n,r,o)}function cp(e,t,n){e.appendChild(t,n)}function dp(e,t,n,r,o){null!==r?Yn(e,t,n,r,o):cp(e,t,n)}function cs(e,t){return e.parentNode(t)}let al,pp=function hp(e,t,n){return 40&e.type?at(e,n):null};function ds(e,t,n,r){const o=up(e,r,t),i=t[j],a=function fp(e,t,n){return pp(e,t,n)}(r.parent||t[6],r,t);if(null!=o)if(Array.isArray(n))for(let u=0;u<n.length;u++)dp(i,o,n[u],a,!1);else dp(i,o,n,a,!1)}function fs(e,t){if(null!==t){const n=t.type;if(3&n)return at(t,e);if(4&n)return nl(-1,e[t.index]);if(8&n){const r=t.child;if(null!==r)return fs(e,r);{const o=e[t.index];return At(o)?nl(-1,o):De(o)}}if(32&n)return Zu(t,e)()||De(e[t.index]);{const r=mp(e,t);return null!==r?Array.isArray(r)?r[0]:fs(Vo(e[16]),r):fs(e,t.next)}}return null}function mp(e,t){return null!==t?e[16][6].projection[t.projection]:null}function nl(e,t){const n=10+e+1;if(n<t.length){const r=t[n],o=r[1].firstChild;if(null!==o)return fs(r,o)}return t[7]}function ol(e,t,n,r,o,i,s){for(;null!=n;){const a=r[n.index],u=n.type;if(s&&0===t&&(a&&je(De(a),r),n.flags|=4),64!=(64&n.flags))if(8&u)ol(e,t,n.child,r,o,i,!1),Or(t,e,o,a,i);else if(32&u){const l=Zu(n,r);let c;for(;c=l();)Or(t,e,o,c,i);Or(t,e,o,a,i)}else 16&u?yp(e,t,r,n,o,i):Or(t,e,o,a,i);n=s?n.projectionNext:n.next}}function jo(e,t,n,r,o,i){ol(n,r,e.firstChild,t,o,i,!1)}function yp(e,t,n,r,o,i){const s=n[16],u=s[6].projection[r.projection];if(Array.isArray(u))for(let l=0;l<u.length;l++)Or(t,e,o,u[l],i);else ol(e,t,u,s[3],o,i,!0)}function vp(e,t,n){e.setAttribute(t,"style",n)}function il(e,t,n){""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}class Ep{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}function Sn(e){return e instanceof Ep?e.changingThisBreaksApplicationSecurity:e}const rI=/^(?:(?:https?|mailto|data|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;var Ce=(()=>((Ce=Ce||{})[Ce.NONE=0]="NONE",Ce[Ce.HTML=1]="HTML",Ce[Ce.STYLE=2]="STYLE",Ce[Ce.SCRIPT=3]="SCRIPT",Ce[Ce.URL=4]="URL",Ce[Ce.RESOURCE_URL=5]="RESOURCE_URL",Ce))();function hl(e){const t=function Uo(){const e=v();return e&&e[12]}();return t?t.sanitize(Ce.URL,e)||"":function Bo(e,t){const n=function Xb(e){return e instanceof Ep&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}(e,"URL")?Sn(e):function ll(e){return(e=String(e)).match(rI)?e:"unsafe:"+e}(P(e))}const pl=new M("ENVIRONMENT_INITIALIZER"),Np=new M("INJECTOR",-1),Rp=new M("INJECTOR_DEF_TYPES");class Fp{get(t,n=xo){if(n===xo){const r=new Error(`NullInjectorError: No provider for ${X(t)}!`);throw r.name="NullInjectorError",r}return n}}function yI(...e){return{\u0275providers:Op(0,e)}}function Op(e,...t){const n=[],r=new Set;let o;return un(t,i=>{const s=i;gl(s,n,[],r)&&(o||(o=[]),o.push(s))}),void 0!==o&&Pp(o,n),n}function Pp(e,t){for(let n=0;n<e.length;n++){const{providers:o}=e[n];un(o,i=>{t.push(i)})}}function gl(e,t,n,r){if(!(e=R(e)))return!1;let o=null,i=qf(e);const s=!i&&K(e);if(i||s){if(s&&!s.standalone)return!1;o=e}else{const u=e.ngModule;if(i=qf(u),!i)return!1;o=u}const a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){const u="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const l of u)gl(l,t,n,r)}}else{if(!i)return!1;{if(null!=i.imports&&!a){let l;r.add(o);try{un(i.imports,c=>{gl(c,t,n,r)&&(l||(l=[]),l.push(c))})}finally{}void 0!==l&&Pp(l,t)}if(!a){const l=Zn(o)||(()=>new o);t.push({provide:o,useFactory:l,deps:Z},{provide:Rp,useValue:o,multi:!0},{provide:pl,useValue:()=>A(o),multi:!0})}const u=i.providers;null==u||a||un(u,c=>{t.push(c)})}}return o!==e&&void 0!==e.providers}const vI=J({provide:String,useValue:J});function ml(e){return null!==e&&"object"==typeof e&&vI in e}function Xn(e){return"function"==typeof e}const yl=new M("Set Injector scope."),ms={},DI={};let vl;function ys(){return void 0===vl&&(vl=new Fp),vl}class An{}class Vp extends An{constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Dl(t,s=>this.processProvider(s)),this.records.set(Np,Pr(void 0,this)),o.has("environment")&&this.records.set(An,Pr(void 0,this));const i=this.records.get(yl);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Rp.multi,Z,x.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){this._onDestroyHooks.push(t)}runInContext(t){this.assertNotDestroyed();const n=Rr(this),r=gt(void 0);try{return t()}finally{Rr(n),gt(r)}}get(t,n=xo,r=x.Default){this.assertNotDestroyed();const o=Rr(this),i=gt(void 0);try{if(!(r&x.SkipSelf)){let a=this.records.get(t);if(void 0===a){const u=function II(e){return"function"==typeof e||"object"==typeof e&&e instanceof M}(t)&&Bi(t);a=u&&this.injectableDefInScope(u)?Pr(_l(t),ms):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&x.Self?ys():this.parent).get(t,n=r&x.Optional&&n===xo?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[as]=s[as]||[]).unshift(X(t)),o)throw s;return function JE(e,t,n,r){const o=e[as];throw t[Lh]&&o.unshift(t[Lh]),e.message=function XE(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=X(t);if(Array.isArray(t))o=t.map(X).join(" -> ");else if("object"==typeof t){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+("string"==typeof a?JSON.stringify(a):X(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(ZE,"\n ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e[as]=null,e}(s,t,"R3InjectorError",this.source)}throw s}finally{gt(i),Rr(o)}}resolveInjectorInitializers(){const t=Rr(this),n=gt(void 0);try{const r=this.get(pl.multi,Z,x.Self);for(const o of r)o()}finally{Rr(t),gt(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(X(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new C(205,!1)}processProvider(t){let n=Xn(t=R(t))?t:R(t&&t.provide);const r=function wI(e){return ml(e)?Pr(void 0,e.useValue):Pr(jp(e),ms)}(t);if(Xn(t)||!0!==t.multi)this.records.get(n);else{let o=this.records.get(n);o||(o=Pr(void 0,ms,!0),o.factory=()=>ju(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===ms&&(n.value=DI,n.value=n.factory()),"object"==typeof n.value&&n.value&&function bI(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=R(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}}function _l(e){const t=Bi(e),n=null!==t?t.factory:Zn(e);if(null!==n)return n;if(e instanceof M)throw new C(204,!1);if(e instanceof Function)return function CI(e){const t=e.length;if(t>0)throw function To(e,t){const n=[];for(let r=0;r<e;r++)n.push(t);return n}(t,"?"),new C(204,!1);const n=function kw(e){const t=e&&(e[$i]||e[Zf]);if(t){const n=function Lw(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);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.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new C(204,!1)}function jp(e,t,n){let r;if(Xn(e)){const o=R(e);return Zn(o)||_l(o)}if(ml(e))r=()=>R(e.useValue);else if(function Lp(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...ju(e.deps||[]));else if(function kp(e){return!(!e||!e.useExisting)}(e))r=()=>A(R(e.useExisting));else{const o=R(e&&(e.useClass||e.provide));if(!function EI(e){return!!e.deps}(e))return Zn(o)||_l(o);r=()=>new o(...ju(e.deps))}return r}function Pr(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function MI(e){return!!e.\u0275providers}function Dl(e,t){for(const n of e)Array.isArray(n)?Dl(n,t):MI(n)?Dl(n.\u0275providers,t):t(n)}class Bp{}class TI{resolveComponentFactory(t){throw function AI(e){const t=Error(`No component factory found for ${X(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let Ho=(()=>{class e{}return e.NULL=new TI,e})();function xI(){return kr(Me(),v())}function kr(e,t){return new dt(at(e,t))}let dt=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=xI,e})();function NI(e){return e instanceof dt?e.nativeElement:e}class Up{}let cn=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function RI(){const e=v(),n=ut(Me().index,e);return(Je(n)?n:e)[j]}(),e})(),FI=(()=>{class e{}return e.\u0275prov=L({token:e,providedIn:"root",factory:()=>null}),e})();class Go{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const OI=new Go("14.3.0"),Cl={};function El(e){return e.ngOriginalError}class Lr{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&El(t);for(;n&&El(n);)n=El(n);return n||null}}function dn(e){return e instanceof Function?e():e}function Gp(e,t,n){let r=e.length;for(;;){const o=e.indexOf(t,n);if(-1===o)return o;if(0===o||e.charCodeAt(o-1)<=32){const i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}const zp="ng-template";function zI(e,t,n){let r=0;for(;r<e.length;){let o=e[r++];if(n&&"class"===o){if(o=e[r],-1!==Gp(o.toLowerCase(),t,0))return!0}else if(1===o){for(;r<e.length&&"string"==typeof(o=e[r++]);)if(o.toLowerCase()===t)return!0;return!1}}return!1}function Wp(e){return 4===e.type&&e.value!==zp}function WI(e,t,n){return t===(4!==e.type||n?e.value:zp)}function qI(e,t,n){let r=4;const o=e.attrs||[],i=function KI(e){for(let t=0;t<e.length;t++)if(_h(e[t]))return t;return e.length}(o);let s=!1;for(let a=0;a<t.length;a++){const u=t[a];if("number"!=typeof u){if(!s)if(4&r){if(r=2|1&r,""!==u&&!WI(e,u,n)||""===u&&1===t.length){if(xt(r))return!1;s=!0}}else{const l=8&r?u:t[++a];if(8&r&&null!==e.attrs){if(!zI(e.attrs,l,n)){if(xt(r))return!1;s=!0}continue}const d=ZI(8&r?"class":u,o,Wp(e),n);if(-1===d){if(xt(r))return!1;s=!0;continue}if(""!==l){let f;f=d>i?"":o[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==Gp(h,l,0)||2&r&&l!==f){if(xt(r))return!1;s=!0}}}}else{if(!s&&!xt(r)&&!xt(u))return!1;if(s&&xt(u))continue;s=!1,r=u|1&r}}return xt(r)||s}function xt(e){return 0==(1&e)}function ZI(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){const s=t[o];if(s===e)return o;if(3===s||6===s)i=!0;else{if(1===s||2===s){let a=t[++o];for(;"string"==typeof a;)a=t[++o];continue}if(4===s)break;if(0===s){o+=4;continue}}o+=i?1:2}return-1}return function YI(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const r=e[n];if("number"==typeof r)return-1;if(r===t)return n;n++}return-1}(t,e)}function qp(e,t,n=!1){for(let r=0;r<t.length;r++)if(qI(e,t[r],n))return!0;return!1}function Zp(e,t){return e?":not("+t.trim()+")":t}function XI(e){let t=e[0],n=1,r=2,o="",i=!1;for(;n<e.length;){let s=e[n];if("string"==typeof s)if(2&r){const a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!xt(s)&&(t+=Zp(i,o),o=""),r=s,i=i||!xt(r);n++}return""!==o&&(t+=Zp(i,o)),t}const k={};function et(e){Qp(z(),v(),We()+e,!1)}function Qp(e,t,n,r){if(!r)if(3==(3&t[2])){const i=e.preOrderCheckHooks;null!==i&&Yi(t,i,n)}else{const i=e.preOrderHooks;null!==i&&Ji(t,i,0,n)}In(n)}function Xp(e,t=null,n=null,r){const o=eg(e,t,n,r);return o.resolveInjectorInitializers(),o}function eg(e,t=null,n=null,r,o=new Set){const i=[n||Z,yI(e)];return r=r||("object"==typeof e?void 0:X(e)),new Vp(i,t||ys(),r||null,o)}let _t=(()=>{class e{static create(n,r){if(Array.isArray(n))return Xp({name:""},r,n,"");{const o=n.name??"";return Xp({name:o},n.parent,n.providers,o)}}}return e.THROW_IF_NOT_FOUND=xo,e.NULL=new Fp,e.\u0275prov=L({token:e,providedIn:"any",factory:()=>A(Np)}),e.__NG_ELEMENT_ID__=-1,e})();function _(e,t=x.Default){const n=v();return null===n?A(e,t):Sh(Me(),n,R(e),t)}function Al(){throw new Error("invalid")}function _s(e,t){return e<<17|t<<2}function Nt(e){return e>>17&32767}function Tl(e){return 2|e}function fn(e){return(131068&e)>>2}function xl(e,t){return-131069&e|t<<2}function Nl(e){return 1|e}function yg(e,t){const n=e.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=e.data[i];Iu(o),s.contentQueries(2,t[i],i)}}}function ws(e,t,n,r,o,i,s,a,u,l,c){const d=t.blueprint.slice();return d[0]=o,d[2]=76|r,(null!==c||e&&1024&e[2])&&(d[2]|=1024),ih(d),d[3]=d[15]=e,d[8]=n,d[10]=s||e&&e[10],d[j]=a||e&&e[j],d[12]=u||e&&e[12]||null,d[9]=l||e&&e[9]||null,d[6]=i,d[20]=function mb(){return gb++}(),d[21]=c,d[16]=2==t.type?e[16]:d,d}function Br(e,t,n,r,o){let i=e.data[t];if(null===i)i=function jl(e,t,n,r,o){const i=uh(),s=Cu(),u=e.data[t]=function PM(e,t,n,r,o,i){return{type:n,index:r,insertBeforeIndex:null,injectorIndex:t?t.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:t,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,t,r,o);return null===e.firstChild&&(e.firstChild=u),null!==i&&(s?null==i.child&&null!==u.parent&&(i.child=u):null===i.next&&(i.next=u)),u}(e,t,n,r,o),function fE(){return O.lFrame.inI18n}()&&(i.flags|=64);else if(64&i.type){i.type=n,i.value=r,i.attrs=o;const s=function Co(){const e=O.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();i.injectorIndex=null===s?-1:s.injectorIndex}return Gt(i,!0),i}function $r(e,t,n,r){if(0===n)return-1;const o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function Bl(e,t,n){Mu(t);try{const r=e.viewQuery;null!==r&&Zl(1,r,n);const o=e.template;null!==o&&vg(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&yg(e,t),e.staticViewQueries&&Zl(2,e.viewQuery,n);const i=e.components;null!==i&&function RM(e,t){for(let n=0;n<t.length;n++)YM(e,t[n])}(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[2]&=-5,Su()}}function Es(e,t,n,r){const o=t[2];if(128!=(128&o)){Mu(t);try{ih(t),function ch(e){return O.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&vg(e,t,n,2,r);const s=3==(3&o);if(s){const l=e.preOrderCheckHooks;null!==l&&Yi(t,l,null)}else{const l=e.preOrderHooks;null!==l&&Ji(t,l,0,null),Au(t,0)}if(function QM(e){for(let t=Qu(e);null!==t;t=Ku(t)){if(!t[2])continue;const n=t[9];for(let r=0;r<n.length;r++){const o=n[r],i=o[3];0==(512&o[2])&&Du(i,1),o[2]|=512}}}(t),function ZM(e){for(let t=Qu(e);null!==t;t=Ku(t))for(let n=10;n<t.length;n++){const r=t[n],o=r[1];Qi(r)&&Es(o,r,o.template,r[8])}}(t),null!==e.contentQueries&&yg(e,t),s){const l=e.contentCheckHooks;null!==l&&Yi(t,l)}else{const l=e.contentHooks;null!==l&&Ji(t,l,1),Au(t,1)}!function xM(e,t){const n=e.hostBindingOpCodes;if(null!==n)try{for(let r=0;r<n.length;r++){const o=n[r];if(o<0)In(~o);else{const i=o,s=n[++r],a=n[++r];hE(s,i),a(2,t[i])}}}finally{In(-1)}}(e,t);const a=e.components;null!==a&&function NM(e,t){for(let n=0;n<t.length;n++)KM(e,t[n])}(t,a);const u=e.viewQuery;if(null!==u&&Zl(2,u,r),s){const l=e.viewCheckHooks;null!==l&&Yi(t,l)}else{const l=e.viewHooks;null!==l&&Ji(t,l,2),Au(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),t[2]&=-41,512&t[2]&&(t[2]&=-513,Du(t[3],-1))}finally{Su()}}}function vg(e,t,n,r,o){const i=We(),s=2&r;try{In(-1),s&&t.length>22&&Qp(e,t,22,!1),n(r,o)}finally{In(i)}}function $l(e,t,n){!ah()||(function BM(e,t,n,r){const o=n.directiveStart,i=n.directiveEnd;e.firstCreatePass||bo(n,t),je(r,t);const s=n.initialInputs;for(let a=o;a<i;a++){const u=e.data[a],l=Tt(u);l&&zM(t,n,u);const c=Io(t,e,a,n);je(c,t),null!==s&&WM(0,a-o,c,u,0,s),l&&(ut(n.index,t)[8]=c)}}(e,t,n,at(n,t)),128==(128&n.flags)&&function $M(e,t,n){const r=n.directiveStart,o=n.directiveEnd,i=n.index,s=function pE(){return O.lFrame.currentDirectiveIndex}();try{In(i);for(let a=r;a<o;a++){const u=e.data[a],l=t[a];Eu(a),(null!==u.hostBindings||0!==u.hostVars||null!==u.hostAttrs)&&Mg(u,l)}}finally{In(-1),Eu(s)}}(e,t,n))}function Ul(e,t,n=at){const r=t.localNames;if(null!==r){let o=t.index+1;for(let i=0;i<r.length;i+=2){const s=r[i+1],a=-1===s?n(t,e):e[s];e[o++]=a}}}function Dg(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Hl(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function Hl(e,t,n,r,o,i,s,a,u,l){const c=22+r,d=c+o,f=function FM(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:k);return n}(c,d),h="function"==typeof l?l():l;return f[1]={type:e,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:t,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:u,consts:h,incompleteFirstPass:!1}}function Cg(e,t,n,r){const o=Ng(t);null===n?o.push(r):(o.push(n),e.firstCreatePass&&Rg(e).push(r,o.length-1))}function wg(e,t,n){for(let r in e)if(e.hasOwnProperty(r)){const o=e[r];(n=null===n?{}:n).hasOwnProperty(r)?n[r].push(t,o):n[r]=[t,o]}return n}function Eg(e,t){const r=t.directiveEnd,o=e.data,i=t.attrs,s=[];let a=null,u=null;for(let l=t.directiveStart;l<r;l++){const c=o[l],d=c.inputs,f=null===i||Wp(t)?null:qM(d,i);s.push(f),a=wg(d,l,a),u=wg(c.outputs,l,u)}null!==a&&(a.hasOwnProperty("class")&&(t.flags|=16),a.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=s,t.inputs=a,t.outputs=u}function bg(e,t){const n=ut(t,e);16&n[2]||(n[2]|=32)}function Gl(e,t,n,r){let o=!1;if(ah()){const i=function UM(e,t,n){const r=e.directiveRegistry;let o=null;if(r)for(let i=0;i<r.length;i++){const s=r[i];qp(n,s.selectors,!1)&&(o||(o=[]),rs(bo(n,t),e,s.type),Tt(s)?(Sg(e,n),o.unshift(s)):o.push(s))}return o}(e,t,n),s=null===r?null:{"":-1};if(null!==i){o=!0,Ag(n,e.data.length,i.length);for(let c=0;c<i.length;c++){const d=i[c];d.providersResolver&&d.providersResolver(d)}let a=!1,u=!1,l=$r(e,t,i.length,null);for(let c=0;c<i.length;c++){const d=i[c];n.mergedAttrs=es(n.mergedAttrs,d.hostAttrs),Tg(e,n,t,l,d),GM(l,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)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),a=!0),!u&&(f.ngOnChanges||f.ngDoCheck)&&((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),u=!0),l++}Eg(e,n)}s&&function HM(e,t,n){if(t){const r=e.localNames=[];for(let o=0;o<t.length;o+=2){const i=n[t[o+1]];if(null==i)throw new C(-301,!1);r.push(t[o],i)}}}(n,r,s)}return n.mergedAttrs=es(n.mergedAttrs,n.attrs),o}function Ig(e,t,n,r,o,i){const s=i.hostBindings;if(s){let a=e.hostBindingOpCodes;null===a&&(a=e.hostBindingOpCodes=[]);const u=~t.index;(function jM(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(a)!=u&&a.push(u),a.push(r,o,s)}}function Mg(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Sg(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function GM(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Tt(t)&&(n[""]=e)}}function Ag(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Tg(e,t,n,r,o){e.data[r]=o;const i=o.factory||(o.factory=Zn(o.type)),s=new wo(i,Tt(o),_);e.blueprint[r]=s,n[r]=s,Ig(e,t,0,r,$r(e,n,o.hostVars,k),o)}function zM(e,t,n){const r=at(t,e),o=Dg(n),i=e[10],s=bs(e,ws(e,o,null,n.onPush?32:16,r,t,i,i.createRenderer(r,n),null,null,null));e[t.index]=s}function Wt(e,t,n,r,o,i){const s=at(e,t);!function zl(e,t,n,r,o,i,s){if(null==i)e.removeAttribute(t,o,n);else{const a=null==s?P(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}(t[j],s,i,e.value,n,r,o)}function WM(e,t,n,r,o,i){const s=i[t];if(null!==s){const a=r.setInput;for(let u=0;u<s.length;){const l=s[u++],c=s[u++],d=s[u++];null!==a?r.setInput(n,d,l,c):n[c]=d}}}function qM(e,t){let n=null,r=0;for(;r<t.length;){const o=t[r];if(0!==o)if(5!==o){if("number"==typeof o)break;e.hasOwnProperty(o)&&(null===n&&(n=[]),n.push(o,e[o],t[r+1])),r+=2}else r+=2;else r+=4}return n}function xg(e,t,n,r){return new Array(e,!0,!1,t,null,0,r,n,null,null)}function KM(e,t){const n=ut(t,e);if(Qi(n)){const r=n[1];48&n[2]?Es(r,n,r.template,n[8]):n[5]>0&&Wl(n)}}function Wl(e){for(let r=Qu(e);null!==r;r=Ku(r))for(let o=10;o<r.length;o++){const i=r[o];if(Qi(i))if(512&i[2]){const s=i[1];Es(s,i,s.template,i[8])}else i[5]>0&&Wl(i)}const n=e[1].components;if(null!==n)for(let r=0;r<n.length;r++){const o=ut(n[r],e);Qi(o)&&o[5]>0&&Wl(o)}}function YM(e,t){const n=ut(t,e),r=n[1];(function JM(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])})(r,n),Bl(r,n,n[8])}function bs(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function ql(e){for(;e;){e[2]|=32;const t=Vo(e);if(Ww(e)&&!t)return e;e=t}return null}function Is(e,t,n,r=!0){const o=t[10];o.begin&&o.begin();try{Es(e,t,e.template,n)}catch(s){throw r&&Og(t,s),s}finally{o.end&&o.end()}}function Zl(e,t,n){Iu(0),t(e,n)}function Ng(e){return e[7]||(e[7]=[])}function Rg(e){return e.cleanup||(e.cleanup=[])}function Og(e,t){const n=e[9],r=n?n.get(Lr,null):null;r&&r.handleError(t)}function Ql(e,t,n,r,o){for(let i=0;i<n.length;){const s=n[i++],a=n[i++],u=t[s],l=e.data[s];null!==l.setInput?l.setInput(u,o,r,a):u[a]=o}}function Ms(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(null!==t)for(let s=0;s<t.length;s++){const a=t[s];"number"==typeof a?i=a:1==i?o=su(o,a):2==i&&(r=su(r,a+": "+t[++s]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function Ss(e,t,n,r,o=!1){for(;null!==n;){const i=t[n.index];if(null!==i&&r.push(De(i)),At(i))for(let a=10;a<i.length;a++){const u=i[a],l=u[1].firstChild;null!==l&&Ss(u[1],u,l,r)}const s=n.type;if(8&s)Ss(e,t,n.child,r);else if(32&s){const a=Zu(n,t);let u;for(;u=a();)r.push(u)}else if(16&s){const a=mp(t,n);if(Array.isArray(a))r.push(...a);else{const u=Vo(t[16]);Ss(u[1],u,a,r,!0)}}n=o?n.projectionNext:n.next}return r}class zo{constructor(t,n){this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const t=this._lView,n=t[1];return Ss(n,t,n.firstChild,[])}get context(){return this._lView[8]}set context(t){this._lView[8]=t}get destroyed(){return 128==(128&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(At(t)){const n=t[8],r=n?n.indexOf(this):-1;r>-1&&(Xu(t,r),is(n,r))}this._attachedToViewContainer=!1}ap(this._lView[1],this._lView)}onDestroy(t){Cg(this._lView[1],this._lView,null,t)}markForCheck(){ql(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){Is(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new C(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Fb(e,t){jo(e,t,t[j],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new C(902,!1);this._appRef=t}}class XM extends zo{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;Is(t[1],t,t[8],!1)}checkNoChanges(){}get context(){return null}}class Kl extends Ho{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=K(t);return new Wo(n,this.ngModule)}}function Pg(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class tS{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){const o=this.injector.get(t,Cl,r);return o!==Cl||n===Cl?o:this.parentInjector.get(t,n,r)}}class Wo extends Bp{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function eM(e){return e.map(XI).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return Pg(this.componentDef.inputs)}get outputs(){return Pg(this.componentDef.outputs)}create(t,n,r,o){let i=(o=o||this.ngModule)instanceof An?o:o?.injector;i&&null!==this.componentDef.getStandaloneInjector&&(i=this.componentDef.getStandaloneInjector(i)||i);const s=i?new tS(t,i):t,a=s.get(Up,null);if(null===a)throw new C(407,!1);const u=s.get(FI,null),l=a.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",d=r?function OM(e,t,n){return e.selectRootElement(t,n===Ut.ShadowDom)}(l,r,this.componentDef.encapsulation):Ju(l,c,function eS(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(c)),f=this.componentDef.onPush?288:272,h=Hl(0,null,null,1,0,null,null,null,null,null),p=ws(null,h,null,f,null,null,a,l,u,s,null);let g,m;Mu(p);try{const D=function oS(e,t,n,r,o,i){const s=n[1];n[22]=e;const u=Br(s,22,2,"#host",null),l=u.mergedAttrs=t.hostAttrs;null!==l&&(Ms(u,l,!0),null!==e&&(Xi(o,e,l),null!==u.classes&&il(o,e,u.classes),null!==u.styles&&vp(o,e,u.styles)));const c=r.createRenderer(e,t),d=ws(n,Dg(t),null,t.onPush?32:16,n[22],u,r,c,i||null,null,null);return s.firstCreatePass&&(rs(bo(u,n),s,t.type),Sg(s,u),Ag(u,n.length,1)),bs(n,d),n[22]=d}(d,this.componentDef,p,a,l);if(d)if(r)Xi(l,d,["ng-version",OI.full]);else{const{attrs:w,classes:y}=function tM(e){const t=[],n=[];let r=1,o=2;for(;r<e.length;){let i=e[r];if("string"==typeof i)2===o?""!==i&&t.push(i,e[++r]):8===o&&n.push(i);else{if(!xt(o))break;o=i}r++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]);w&&Xi(l,d,w),y&&y.length>0&&il(l,d,y.join(" "))}if(m=_u(h,22),void 0!==n){const w=m.projection=[];for(let y=0;y<this.ngContentSelectors.length;y++){const I=n[y];w.push(null!=I?Array.from(I):null)}}g=function iS(e,t,n,r){const o=n[1],i=function VM(e,t,n){const r=Me();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Tg(e,r,t,$r(e,t,1,null),n),Eg(e,r));const o=Io(t,e,r.directiveStart,r);je(o,t);const i=at(r,t);return i&&je(i,t),o}(o,n,t);if(e[8]=n[8]=i,null!==r)for(const a of r)a(i,t);if(t.contentQueries){const a=Me();t.contentQueries(1,i,a.directiveStart)}const s=Me();return!o.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(In(s.index),Ig(n[1],s,0,s.directiveStart,s.directiveEnd,t),Mg(t,i)),i}(D,this.componentDef,p,[sS]),Bl(h,p,null)}finally{Su()}return new rS(this.componentType,g,kr(m,p),p,m)}}class rS extends class SI{}{constructor(t,n,r,o,i){super(),this.location=r,this._rootLView=o,this._tNode=i,this.instance=n,this.hostView=this.changeDetectorRef=new XM(o),this.componentType=t}setInput(t,n){const r=this._tNode.inputs;let o;if(null!==r&&(o=r[t])){const i=this._rootLView;Ql(i[1],i,o,t,n),bg(i,this._tNode.index)}}get injector(){return new Mr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function sS(){const e=Me();Ki(v()[1],e)}function Y(e){let t=function kg(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const r=[e];for(;t;){let o;if(Tt(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new C(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);const s=e;s.inputs=Yl(e.inputs),s.declaredInputs=Yl(e.declaredInputs),s.outputs=Yl(e.outputs);const a=o.hostBindings;a&&cS(e,a);const u=o.viewQuery,l=o.contentQueries;if(u&&uS(e,u),l&&lS(e,l),iu(e.inputs,o.inputs),iu(e.declaredInputs,o.declaredInputs),iu(e.outputs,o.outputs),Tt(o)&&o.data.animation){const c=e.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(e),a===Y&&(n=!1)}}t=Object.getPrototypeOf(t)}!function aS(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){const o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=es(o.hostAttrs,n=es(n,o.hostAttrs))}}(r)}function Yl(e){return e===yr?{}:e===Z?[]:e}function uS(e,t){const n=e.viewQuery;e.viewQuery=n?(r,o)=>{t(r,o),n(r,o)}:t}function lS(e,t){const n=e.contentQueries;e.contentQueries=n?(r,o,i)=>{t(r,o,i),n(r,o,i)}:t}function cS(e,t){const n=e.hostBindings;e.hostBindings=n?(r,o)=>{t(r,o),n(r,o)}:t}let As=null;function er(){if(!As){const e=ne.Symbol;if(e&&e.iterator)As=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let n=0;n<t.length;++n){const r=t[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(As=r)}}}return As}function qo(e){return!!Jl(e)&&(Array.isArray(e)||!(e instanceof Map)&&er()in e)}function Jl(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Be(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Rt(e,t,n,r){const o=v();return Be(o,Er(),t)&&(z(),Wt(ue(),o,e,t,n,r)),Rt}function Yr(e,t,n,r,o,i,s,a){const u=v(),l=z(),c=e+22,d=l.firstCreatePass?function vS(e,t,n,r,o,i,s,a,u){const l=t.consts,c=Br(t,e,4,s||null,bn(l,a));Gl(t,n,c,bn(l,u)),Ki(t,c);const d=c.tViews=Hl(2,c,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,l);return null!==t.queries&&(t.queries.template(t,c),d.queries=t.queries.embeddedTView(c)),c}(c,l,u,t,n,r,o,i,s):l.data[c];Gt(d,!1);const f=u[j].createComment("");ds(l,u,f,d),je(f,u),bs(u,u[c]=xg(f,u,f,d)),qi(d)&&$l(l,u,d),null!=s&&Ul(u,d,a)}function ht(e,t,n){const r=v();return Be(r,Er(),t)&&function ft(e,t,n,r,o,i,s,a){const u=at(t,n);let c,l=t.inputs;!a&&null!=l&&(c=l[r])?(Ql(e,n,c,r,o),Wi(t)&&bg(n,t.index)):3&t.type&&(r=function kM(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),o=null!=s?s(o,t.value||"",r):o,i.setProperty(u,r,o))}(z(),ue(),r,e,t,r[j],n,!1),ht}function Xl(e,t,n,r,o){const s=o?"class":"style";Ql(e,n,t.inputs[s],s,r)}function we(e,t,n,r){const o=v(),i=z(),s=22+e,a=o[j],u=o[s]=Ju(a,t,function wE(){return O.lFrame.currentNamespace}()),l=i.firstCreatePass?function CS(e,t,n,r,o,i,s){const a=t.consts,l=Br(t,e,2,o,bn(a,i));return Gl(t,n,l,bn(a,s)),null!==l.attrs&&Ms(l,l.attrs,!1),null!==l.mergedAttrs&&Ms(l,l.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,l),l}(s,i,o,0,t,n,r):i.data[s];Gt(l,!0);const c=l.mergedAttrs;null!==c&&Xi(a,u,c);const d=l.classes;null!==d&&il(a,u,d);const f=l.styles;return null!==f&&vp(a,u,f),64!=(64&l.flags)&&ds(i,o,u,l),0===function sE(){return O.lFrame.elementDepthCount}()&&je(u,o),function aE(){O.lFrame.elementDepthCount++}(),qi(l)&&($l(i,o,l),function _g(e,t,n){if(pu(t)){const o=t.directiveEnd;for(let i=t.directiveStart;i<o;i++){const s=e.data[i];s.contentQueries&&s.contentQueries(1,n[i],i)}}}(i,l,o)),null!==r&&Ul(o,l),we}function le(){let e=Me();Cu()?function wu(){O.lFrame.isParent=!1}():(e=e.parent,Gt(e,!1));const t=e;!function uE(){O.lFrame.elementDepthCount--}();const n=z();return n.firstCreatePass&&(Ki(n,e),pu(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function SE(e){return 0!=(16&e.flags)}(t)&&Xl(n,t,v(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function AE(e){return 0!=(32&e.flags)}(t)&&Xl(n,t,v(),t.stylesWithoutHost,!1),le}function xs(e,t,n,r){return we(e,t,n,r),le(),xs}function Qo(){return v()}function Ko(e){return!!e&&"function"==typeof e.then}const nc=function qg(e){return!!e&&"function"==typeof e.subscribe};function ge(e,t,n,r){const o=v(),i=z(),s=Me();return function Qg(e,t,n,r,o,i,s,a){const u=qi(r),c=e.firstCreatePass&&Rg(e),d=t[8],f=Ng(t);let h=!0;if(3&r.type||a){const m=at(r,t),D=a?a(m):m,w=f.length,y=a?W=>a(De(W[r.index])):r.index;let I=null;if(!a&&u&&(I=function ES(e,t,n,r){const o=e.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=t[7],u=o[i+2];return a.length>u?a[u]:null}"string"==typeof s&&(i+=2)}return null}(e,t,o,r.index)),null!==I)(I.__ngLastListenerFn__||I).__ngNextListenerFn__=i,I.__ngLastListenerFn__=i,h=!1;else{i=Yg(r,t,d,i,!1);const W=n.listen(D,o,i);f.push(i,W),c&&c.push(o,y,w,w+1)}}else i=Yg(r,t,d,i,!1);const p=r.outputs;let g;if(h&&null!==p&&(g=p[o])){const m=g.length;if(m)for(let D=0;D<m;D+=2){const ae=t[g[D]][g[D+1]].subscribe(i),gr=f.length;f.push(i,ae),c&&c.push(o,r.index,gr,-(gr+1))}}}(i,o,o[j],s,e,t,0,r),ge}function Kg(e,t,n,r){try{return!1!==n(r)}catch(o){return Og(e,o),!1}}function Yg(e,t,n,r,o){return function i(s){if(s===Function)return r;ql(2&e.flags?ut(e.index,t):t);let u=Kg(t,0,r,s),l=i.__ngNextListenerFn__;for(;l;)u=Kg(t,0,l,s)&&u,l=l.__ngNextListenerFn__;return o&&!1===u&&(s.preventDefault(),s.returnValue=!1),u}}function Zt(e=1){return function mE(e){return(O.lFrame.contextLView=function yE(e,t){for(;e>0;)t=t[15],e--;return t}(e,O.lFrame.contextLView))[8]}(e)}function am(e,t,n,r,o){const i=e[n+1],s=null===t;let a=r?Nt(i):fn(i),u=!1;for(;0!==a&&(!1===u||s);){const c=e[a+1];TS(e[a],t)&&(u=!0,e[a+1]=r?Nl(c):Tl(c)),a=r?Nt(c):fn(c)}u&&(e[n+1]=r?Tl(i):Nl(i))}function TS(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Nr(e,t)>=0}function nr(e,t){return function Ft(e,t,n,r){const o=v(),i=z(),s=function an(e){const t=O.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}(2);i.firstUpdatePass&&function mm(e,t,n,r){const o=e.data;if(null===o[n+1]){const i=o[We()],s=function gm(e,t){return t>=e.expandoStartIndex}(e,n);(function Dm(e,t){return 0!=(e.flags&(t?16:32))})(i,r)&&null===t&&!s&&(t=!1),t=function VS(e,t,n,r){const o=function bu(e){const t=O.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let i=r?t.residualClasses:t.residualStyles;if(null===o)0===(r?t.classBindings:t.styleBindings)&&(n=Yo(n=oc(null,e,t,n,r),t.attrs,r),i=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==o)if(n=oc(o,e,t,n,r),null===i){let u=function jS(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==fn(r))return e[Nt(r)]}(e,t,r);void 0!==u&&Array.isArray(u)&&(u=oc(null,e,t,u[1],r),u=Yo(u,t.attrs,r),function BS(e,t,n,r){e[Nt(n?t.classBindings:t.styleBindings)]=r}(e,t,r,u))}else i=function $S(e,t,n){let r;const o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++)r=Yo(r,e[i].hostAttrs,n);return Yo(r,t.attrs,n)}(e,t,r)}return void 0!==i&&(r?t.residualClasses=i:t.residualStyles=i),n}(o,i,t,r),function SS(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=Nt(s),u=fn(s);e[r]=n;let c,l=!1;if(Array.isArray(n)){const d=n;c=d[1],(null===c||Nr(d,c)>0)&&(l=!0)}else c=n;if(o)if(0!==u){const f=Nt(e[a+1]);e[r+1]=_s(f,a),0!==f&&(e[f+1]=xl(e[f+1],r)),e[a+1]=function DM(e,t){return 131071&e|t<<17}(e[a+1],r)}else e[r+1]=_s(a,0),0!==a&&(e[a+1]=xl(e[a+1],r)),a=r;else e[r+1]=_s(u,0),0===a?a=r:e[u+1]=xl(e[u+1],r),u=r;l&&(e[r+1]=Tl(e[r+1])),am(e,c,r,!0),am(e,c,r,!1),function AS(e,t,n,r,o){const i=o?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof t&&Nr(i,t)>=0&&(n[r+1]=Nl(n[r+1]))}(t,c,e,r,i),s=_s(a,u),i?t.classBindings=s:t.styleBindings=s}(o,i,t,n,s,r)}}(i,e,s,r),t!==k&&Be(o,s,t)&&function vm(e,t,n,r,o,i,s,a){if(!(3&t.type))return;const u=e.data,l=u[a+1];Ns(function lg(e){return 1==(1&e)}(l)?_m(u,t,n,o,fn(l),s):void 0)||(Ns(i)||function ug(e){return 2==(2&e)}(l)&&(i=_m(u,null,n,o,a,s)),function Hb(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=-1===r.indexOf("-")?void 0:Xe.DashCase;null==o?e.removeStyle(n,r,i):("string"==typeof o&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=Xe.Important),e.setStyle(n,r,o,i))}}(r,s,Zi(We(),n),o,i))}(i,i.data[We()],o,o[j],e,o[s+1]=function GS(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=X(Sn(e)))),e}(t,n),r,s)}(e,t,null,!0),nr}function oc(e,t,n,r,o){let i=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<s&&(i=t[a],r=Yo(r,i.hostAttrs,o),i!==e);)a++;return null!==e&&(n.directiveStylingLast=a),r}function Yo(e,t,n){const r=n?1:2;let o=-1;if(null!==t)for(let i=0;i<t.length;i++){const s=t[i];"number"==typeof s?o=s:o===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),ct(e,s,!!n||t[++i]))}return void 0===e?null:e}function _m(e,t,n,r,o,i){const s=null===t;let a;for(;o>0;){const u=e[o],l=Array.isArray(u),c=l?u[1]:u,d=null===c;let f=n[o+1];f===k&&(f=d?Z:void 0);let h=d?ku(f,r):c===r?f:void 0;if(l&&!Ns(h)&&(h=ku(u,r)),Ns(h)&&(a=h,s))return a;const p=e[o+1];o=s?Nt(p):fn(p)}if(null!==t){let u=i?t.residualClasses:t.residualStyles;null!=u&&(a=ku(u,r))}return a}function Ns(e){return void 0!==e}function Pt(e,t=""){const n=v(),r=z(),o=e+22,i=r.firstCreatePass?Br(r,o,1,t,null):r.data[o],s=n[o]=function Yu(e,t){return e.createText(t)}(n[j],t);ds(r,n,s,i),Gt(i,!1)}function Rs(e){return Fs("",e,""),Rs}function Fs(e,t,n){const r=v(),o=function Hr(e,t,n,r){return Be(e,Er(),n)?t+P(n)+r:k}(r,e,t,n);return o!==k&&function hn(e,t,n){const r=Zi(t,e);!function ip(e,t,n){e.setValue(t,n)}(e[j],r,n)}(r,We(),o),Fs}const eo="en-US";let Um=eo;function ac(e,t,n,r,o){if(e=R(e),Array.isArray(e))for(let i=0;i<e.length;i++)ac(e[i],t,n,r,o);else{const i=z(),s=v();let a=Xn(e)?e:R(e.provide),u=jp(e);const l=Me(),c=1048575&l.providerIndexes,d=l.directiveStart,f=l.providerIndexes>>20;if(Xn(e)||!e.multi){const h=new wo(u,o,_),p=lc(a,t,o?c:c+f,d);-1===p?(rs(bo(l,s),i,a),uc(i,e,t.length),t.push(a),l.directiveStart++,l.directiveEnd++,o&&(l.providerIndexes+=1048576),n.push(h),s.push(h)):(n[p]=h,s[p]=h)}else{const h=lc(a,t,c+f,d),p=lc(a,t,c,c+f),g=h>=0&&n[h],m=p>=0&&n[p];if(o&&!m||!o&&!g){rs(bo(l,s),i,a);const D=function lA(e,t,n,r,o){const i=new wo(e,n,_);return i.multi=[],i.index=t,i.componentProviders=0,hy(i,o,r&&!n),i}(o?uA:aA,n.length,o,r,u);!o&&m&&(n[p].providerFactory=D),uc(i,e,t.length,0),t.push(a),l.directiveStart++,l.directiveEnd++,o&&(l.providerIndexes+=1048576),n.push(D),s.push(D)}else uc(i,e,h>-1?h:p,hy(n[o?p:h],u,!o&&r));!o&&r&&m&&n[p].componentProviders++}}}function uc(e,t,n,r){const o=Xn(t),i=function _I(e){return!!e.useClass}(t);if(o||i){const u=(i?R(t.useClass):t).prototype.ngOnDestroy;if(u){const l=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const c=l.indexOf(n);-1===c?l.push(n,[r,u]):l[c+1].push(r,u)}else l.push(n,u)}}}function hy(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function lc(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function aA(e,t,n,r){return cc(this.multi,[])}function uA(e,t,n,r){const o=this.multi;let i;if(this.providerFactory){const s=this.providerFactory.componentProviders,a=Io(n,n[1],this.providerFactory.index,r);i=a.slice(0,s),cc(o,i);for(let u=s;u<a.length;u++)i.push(a[u])}else i=[],cc(o,i);return i}function cc(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function se(e,t=[]){return n=>{n.providersResolver=(r,o)=>function sA(e,t,n){const r=z();if(r.firstCreatePass){const o=Tt(e);ac(n,r.data,r.blueprint,o,!0),ac(t,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,t)}}class or{}class py{}class gy extends or{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Kl(this);const r=it(t);this._bootstrapComponents=dn(r.bootstrap),this._r3Injector=eg(t,n,[{provide:or,useValue:this},{provide:Ho,useValue:this.componentFactoryResolver}],X(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class dc extends py{constructor(t){super(),this.moduleType=t}create(t){return new gy(this.moduleType,t)}}class dA extends or{constructor(t,n,r){super(),this.componentFactoryResolver=new Kl(this),this.instance=null;const o=new Vp([...t,{provide:or,useValue:this},{provide:Ho,useValue:this.componentFactoryResolver}],n||ys(),r,new Set(["environment"]));this.injector=o,o.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function Vs(e,t,n=null){return new dA(e,t,n).injector}let fA=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n.id)){const r=Op(0,n.type),o=r.length>0?Vs([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n.id,o)}return this.cachedInjectors.get(n.id)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}}return e.\u0275prov=L({token:e,providedIn:"environment",factory:()=>new e(A(An))}),e})();function my(e){e.getStandaloneInjector=t=>t.get(fA).getOrCreateStandaloneInjector(e)}function Ey(e,t,n,r,o){return function Iy(e,t,n,r,o,i,s){const a=t+n;return function tr(e,t,n,r){const o=Be(e,t,n);return Be(e,t+1,r)||o}(e,a,o,i)?function qt(e,t,n){return e[t]=n}(e,a+2,s?r.call(s,o,i):r(o,i)):function ri(e,t){const n=e[t];return n===k?void 0:n}(e,a+2)}(v(),function ze(){const e=O.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}(),e,t,n,r,o)}function hc(e){return t=>{setTimeout(e,void 0,t)}}const ce=class LA extends $t{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&"object"==typeof t){const u=t;o=u.next?.bind(u),i=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(i=hc(i),o&&(o=hc(o)),s&&(s=hc(s)));const a=super.subscribe({next:o,error:i,complete:s});return t instanceof pt&&t.add(a),a}};function VA(){return this._results[er()]()}class pc{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=er(),r=pc.prototype;r[n]||(r[n]=VA)}get changes(){return this._changes||(this._changes=new ce)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const r=this;r.dirty=!1;const o=lt(t);(this._changesDetected=!function VE(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(n&&(o=n(o),i=n(i)),i!==o)return!1}return!0}(r._results,o,n))&&(r._results=o,r.length=o.length,r.last=o[this.length-1],r.first=o[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let pn=(()=>{class e{}return e.__NG_ELEMENT_ID__=$A,e})();const jA=pn,BA=class extends jA{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(t,n){const r=this._declarationTContainer.tViews,o=ws(this._declarationLView,r,t,16,null,r.declTNode,null,null,null,null,n||null);o[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(o[19]=s.createEmbeddedView(r)),Bl(r,o,t),new zo(o)}};function $A(){return js(Me(),v())}function js(e,t){return 4&e.type?new BA(t,e,kr(e,t)):null}let kt=(()=>{class e{}return e.__NG_ELEMENT_ID__=UA,e})();function UA(){return Ny(Me(),v())}const HA=kt,Ty=class extends HA{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return kr(this._hostTNode,this._hostLView)}get injector(){return new Mr(this._hostTNode,this._hostLView)}get parentInjector(){const t=ns(this._hostTNode,this._hostLView);if(wh(t)){const n=Ir(t,this._hostLView),r=br(t);return new Mr(n[1].data[r+8],n)}return new Mr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=xy(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,r){let o,i;"number"==typeof r?o=r:null!=r&&(o=r.index,i=r.injector);const s=t.createEmbeddedView(n||{},i);return this.insert(s,o),s}createComponent(t,n,r,o,i){const s=t&&!function Ao(e){return"function"==typeof e}(t);let a;if(s)a=n;else{const d=n||{};a=d.index,r=d.injector,o=d.projectableNodes,i=d.environmentInjector||d.ngModuleRef}const u=s?t:new Wo(K(t)),l=r||this.parentInjector;if(!i&&null==u.ngModule){const f=(s?l:this.parentInjector).get(An,null);f&&(i=f)}const c=u.create(l,o,void 0,i);return this.insert(c.hostView,a),c}insert(t,n){const r=t._lView,o=r[1];if(function iE(e){return At(e[3])}(r)){const c=this.indexOf(t);if(-1!==c)this.detach(c);else{const d=r[3],f=new Ty(d,d[6],d[3]);f.detach(f.indexOf(t))}}const i=this._adjustIndex(n),s=this._lContainer;!function Pb(e,t,n,r){const o=10+r,i=n.length;r>0&&(n[o-1][4]=t),r<i-10?(t[4]=n[o],Fh(n,10+r,t)):(n.push(t),t[4]=null),t[3]=n;const s=t[17];null!==s&&n!==s&&function kb(e,t){const n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(s,t);const a=t[19];null!==a&&a.insertView(e),t[2]|=64}(o,r,s,i);const a=nl(i,s),u=r[j],l=cs(u,s[7]);return null!==l&&function Rb(e,t,n,r,o,i){r[0]=o,r[6]=t,jo(e,r,n,1,o,i)}(o,s[6],u,r,l,a),t.attachToViewContainerRef(),Fh(gc(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=xy(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=Xu(this._lContainer,n);r&&(is(gc(this._lContainer),n),ap(r[1],r))}detach(t){const n=this._adjustIndex(t,-1),r=Xu(this._lContainer,n);return r&&null!=is(gc(this._lContainer),n)?new zo(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function xy(e){return e[8]}function gc(e){return e[8]||(e[8]=[])}function Ny(e,t){let n;const r=t[e.index];if(At(r))n=r;else{let o;if(8&e.type)o=De(r);else{const i=t[j];o=i.createComment("");const s=at(e,t);Yn(i,cs(i,s),o,function Bb(e,t){return e.nextSibling(t)}(i,s),!1)}t[e.index]=n=xg(r,t,o,e),bs(t,n)}return new Ty(n,e,t)}class mc{constructor(t){this.queryList=t,this.matches=null}clone(){return new mc(this.queryList)}setDirty(){this.queryList.setDirty()}}class yc{constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const r=null!==t.contentQueries?t.contentQueries[0]:n.length,o=[];for(let i=0;i<r;i++){const s=n.getByIndex(i);o.push(this.queries[s.indexInDeclarationView].clone())}return new yc(o)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)null!==Ly(t,n).matches&&this.queries[n].setDirty()}}class Ry{constructor(t,n,r=null){this.predicate=t,this.flags=n,this.read=r}}class vc{constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){const o=null!==n?n.length:0,i=this.getByIndex(r).embeddedTView(t,o);i&&(i.indexInDeclarationView=r,null!==n?n.push(i):n=[i])}return null!==n?new vc(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class _c{constructor(t,n=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new _c(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const n=this._declarationNodeIndex;let r=t.parent;for(;null!==r&&8&r.type&&r.index!==n;)r=r.parent;return n===(null!==r?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){const r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){const i=r[o];this.matchTNodeWithReadOption(t,n,WA(n,i)),this.matchTNodeWithReadOption(t,n,os(n,t,i,!1,!1))}else r===pn?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,os(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(null!==r){const o=this.metadata.read;if(null!==o)if(o===dt||o===kt||o===pn&&4&n.type)this.addMatch(n.index,-2);else{const i=os(n,t,o,!1,!1);null!==i&&this.addMatch(n.index,i)}else this.addMatch(n.index,r)}}addMatch(t,n){null===this.matches?this.matches=[t,n]:this.matches.push(t,n)}}function WA(e,t){const n=e.localNames;if(null!==n)for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1];return null}function ZA(e,t,n,r){return-1===n?function qA(e,t){return 11&e.type?kr(e,t):4&e.type?js(e,t):null}(t,e):-2===n?function QA(e,t,n){return n===dt?kr(t,e):n===pn?js(t,e):n===kt?Ny(t,e):void 0}(e,t,r):Io(e,e[1],n,t)}function Fy(e,t,n,r){const o=t[19].queries[r];if(null===o.matches){const i=e.data,s=n.matches,a=[];for(let u=0;u<s.length;u+=2){const l=s[u];a.push(l<0?null:ZA(t,i[l],s[u+1],n.metadata.read))}o.matches=a}return o.matches}function Dc(e,t,n,r){const o=e.queries.getByIndex(n),i=o.matches;if(null!==i){const s=Fy(e,t,o,n);for(let a=0;a<i.length;a+=2){const u=i[a];if(u>0)r.push(s[a/2]);else{const l=i[a+1],c=t[-u];for(let d=10;d<c.length;d++){const f=c[d];f[17]===f[3]&&Dc(f[1],f,l,r)}if(null!==c[9]){const d=c[9];for(let f=0;f<d.length;f++){const h=d[f];Dc(h[1],h,l,r)}}}}}return r}function Bs(e){const t=v(),n=z(),r=fh();Iu(r+1);const o=Ly(n,r);if(e.dirty&&function oE(e){return 4==(4&e[2])}(t)===(2==(2&o.metadata.flags))){if(null===o.matches)e.reset([]);else{const i=o.crossesNgTemplate?Dc(n,t,r,[]):Fy(n,t,o,r);e.reset(i,NI),e.notifyOnChanges()}return!0}return!1}function Oy(e,t,n){const r=z();r.firstCreatePass&&(function ky(e,t,n){null===e.queries&&(e.queries=new vc),e.queries.track(new _c(t,n))}(r,new Ry(e,t,n),-1),2==(2&t)&&(r.staticViewQueries=!0)),function Py(e,t,n){const r=new pc(4==(4&n));Cg(e,t,r,r.destroy),null===t[19]&&(t[19]=new yc),t[19].queries.push(new mc(r))}(r,v(),t)}function Ly(e,t){return e.queries.getByIndex(t)}function Hs(...e){}const Gs=new M("Application Initializer");let zs=(()=>{class e{constructor(n){this.appInits=n,this.resolve=Hs,this.reject=Hs,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(Ko(i))n.push(i);else if(nc(i)){const s=new Promise((a,u)=>{i.subscribe({complete:a,error:u})});n.push(s)}}Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(A(Gs,8))},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const si=new M("AppId",{providedIn:"root",factory:function nv(){return`${Mc()}${Mc()}${Mc()}`}});function Mc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const rv=new M("Platform Initializer"),ov=new M("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),iv=new M("appBootstrapListener");let vT=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const gn=new M("LocaleId",{providedIn:"root",factory:()=>pe(gn,x.Optional|x.SkipSelf)||function _T(){return typeof $localize<"u"&&$localize.locale||eo}()});class CT{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let Sc=(()=>{class e{compileModuleSync(n){return new dc(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),i=dn(it(n).declarations).reduce((s,a)=>{const u=K(a);return u&&s.push(new Wo(u)),s},[]);return new CT(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const bT=(()=>Promise.resolve(0))();function Ac(e){typeof Zone>"u"?bT.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Te{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ce(!1),this.onMicrotaskEmpty=new ce(!1),this.onStable=new ce(!1),this.onError=new ce(!1),typeof Zone>"u")throw new C(908,!1);Zone.assertZonePatched();const o=this;if(o._nesting=0,o._outer=o._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const i=Zone.AsyncStackTaggingZoneSpec;o._inner=o._inner.fork(new i("Angular"))}Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function IT(){let e=ne.requestAnimationFrame,t=ne.cancelAnimationFrame;if(typeof Zone<"u"&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function AT(e){const t=()=>{!function ST(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(ne,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,xc(e),e.isCheckStableRunning=!0,Tc(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),xc(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{try{return uv(e),n.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&t(),lv(e)}},onInvoke:(n,r,o,i,s,a,u)=>{try{return uv(e),n.invoke(o,i,s,a,u)}finally{e.shouldCoalesceRunChangeDetection&&t(),lv(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,xc(e),Tc(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Te.isInAngularZone())throw new C(909,!1)}static assertNotInAngularZone(){if(Te.isInAngularZone())throw new C(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,MT,Hs,Hs);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const MT={};function Tc(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function xc(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function uv(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function lv(e){e._nesting--,Tc(e)}class TT{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ce,this.onMicrotaskEmpty=new ce,this.onStable=new ce,this.onError=new ce}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}}const cv=new M(""),Ws=new M("");let Fc,Nc=(()=>{class e{constructor(n,r,o){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Fc||(function xT(e){Fc=e}(o),o.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?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:()=>{Te.assertNotInAngularZone(),Ac(()=>{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())Ac(()=>{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}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,o){return[]}}return e.\u0275fac=function(n){return new(n||e)(A(Te),A(Rc),A(Ws))},e.\u0275prov=L({token:e,factory:e.\u0275fac}),e})(),Rc=(()=>{class e{constructor(){this._applications=new Map}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 Fc?.findTestabilityInTree(this,n,r)??null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})(),Nn=null;const dv=new M("AllowMultipleToken"),Oc=new M("PlatformDestroyListeners");class fv{constructor(t,n){this.name=t,this.token=n}}function pv(e,t,n=[]){const r=`Platform: ${t}`,o=new M(r);return(i=[])=>{let s=Pc();if(!s||s.injector.get(dv,!1)){const a=[...n,...i,{provide:o,useValue:!0}];e?e(a):function FT(e){if(Nn&&!Nn.get(dv,!1))throw new C(400,!1);Nn=e;const t=e.get(mv);(function hv(e){const t=e.get(rv,null);t&&t.forEach(n=>n())})(e)}(function gv(e=[],t){return _t.create({name:t,providers:[{provide:yl,useValue:"platform"},{provide:Oc,useValue:new Set([()=>Nn=null])},...e]})}(a,r))}return function PT(e){const t=Pc();if(!t)throw new C(401,!1);return t}()}}function Pc(){return Nn?.get(mv)??null}let mv=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const o=function vv(e,t){let n;return n="noop"===e?new TT:("zone.js"===e?void 0:e)||new Te(t),n}(r?.ngZone,function yv(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!e||!e.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!e||!e.ngZoneRunCoalescing)||!1}}(r)),i=[{provide:Te,useValue:o}];return o.run(()=>{const s=_t.create({providers:i,parent:this.injector,name:n.moduleType.name}),a=n.create(s),u=a.injector.get(Lr,null);if(!u)throw new C(402,!1);return o.runOutsideAngular(()=>{const l=o.onError.subscribe({next:c=>{u.handleError(c)}});a.onDestroy(()=>{Zs(this._modules,a),l.unsubscribe()})}),function _v(e,t,n){try{const r=n();return Ko(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(u,o,()=>{const l=a.injector.get(zs);return l.runInitializers(),l.donePromise.then(()=>(function Hm(e){ot(e,"Expected localeId to be defined"),"string"==typeof e&&(Um=e.toLowerCase().replace(/_/g,"-"))}(a.injector.get(gn,eo)||eo),this._moduleDoBootstrap(a),a))})})}bootstrapModule(n,r=[]){const o=Dv({},r);return function NT(e,t,n){const r=new dc(n);return Promise.resolve(r)}(0,0,n).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(n){const r=n.injector.get(qs);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new C(403,!1);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 C(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(Oc,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(A(_t))},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function Dv(e,t){return Array.isArray(t)?t.reduce(Dv,e):{...e,...t}}let qs=(()=>{class e{constructor(n,r,o){this._zone=n,this._injector=r,this._exceptionHandler=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const i=new ve(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new ve(a=>{let u;this._zone.runOutsideAngular(()=>{u=this._zone.onStable.subscribe(()=>{Te.assertNotInAngularZone(),Ac(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const l=this._zone.onUnstable.subscribe(()=>{Te.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{u.unsubscribe(),l.unsubscribe()}});this.isStable=function Sw(...e){const t=go(e),n=function Dw(e,t){return"number"==typeof ru(e)?e.pop():t}(e,1/0),r=e;return r.length?1===r.length?bt(r[0]):mr(n)(_e(r,t)):nn}(i,s.pipe(function Aw(e={}){const{connector:t=(()=>new $t),resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,u,l=0,c=!1,d=!1;const f=()=>{a?.unsubscribe(),a=void 0},h=()=>{f(),s=u=void 0,c=d=!1},p=()=>{const g=s;h(),g?.unsubscribe()};return Ne((g,m)=>{l++,!d&&!c&&f();const D=u=u??t();m.add(()=>{l--,0===l&&!d&&!c&&(a=ou(p,o))}),D.subscribe(m),!s&&l>0&&(s=new po({next:w=>D.next(w),error:w=>{d=!0,f(),a=ou(h,n,w),D.error(w)},complete:()=>{c=!0,f(),a=ou(h,r),D.complete()}}),bt(g).subscribe(s))})(i)}}()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const o=n instanceof Bp;if(!this._injector.get(zs).done)throw!o&&function vr(e){const t=K(e)||He(e)||Ge(e);return null!==t&&t.standalone}(n),new C(405,false);let s;s=o?n:this._injector.get(Ho).resolveComponentFactory(n),this.componentTypes.push(s.componentType);const a=function RT(e){return e.isBoundToModule}(s)?void 0:this._injector.get(or),l=s.create(_t.NULL,[],r||s.selector,a),c=l.location.nativeElement,d=l.injector.get(cv,null);return d?.registerApplication(c),l.onDestroy(()=>{this.detachView(l.hostView),Zs(this.components,l),d?.unregisterApplication(c)}),this._loadComponent(l),l}tick(){if(this._runningTick)throw new C(101,!1);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;Zs(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(iv,[]).concat(this._bootstrapListeners).forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Zs(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new C(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return e.\u0275fac=function(n){return new(n||e)(A(Te),A(An),A(Lr))},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Zs(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let Qs=(()=>{class e{}return e.__NG_ELEMENT_ID__=LT,e})();function LT(e){return function VT(e,t,n){if(Wi(e)&&!n){const r=ut(e.index,t);return new zo(r,r)}return 47&e.type?new zo(t[16],t):null}(Me(),v(),16==(16&e))}class Sv{constructor(){}supports(t){return qo(t)}create(t){return new GT(t)}}const HT=(e,t)=>t;class GT{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||HT}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){const s=!r||n&&n.currentIndex<Tv(r,o,i)?n:r,a=Tv(s,o,i),u=s.currentIndex;if(s===r)o--,r=r._nextRemoved;else if(n=n._next,null==s.previousIndex)o++;else{i||(i=[]);const l=a-o,c=u-o;if(l!=c){for(let f=0;f<l;f++){const h=f<i.length?i[f]:i[f]=0,p=h+f;c<=p&&p<l&&(i[f]=h+1)}i[s.previousIndex]=c-l}}a!==u&&t(s,a,u)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;null!==n;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;null!==n;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;null!==n;n=n._nextIdentityChange)t(n)}diff(t){if(null==t&&(t=[]),!qo(t))throw new C(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let o,i,s,n=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)i=t[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 gS(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[er()]();let r;for(;!(r=n.next()).done;)t(r.value)}}(t,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=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new zT(n,r),i,o),t}_verifyReinsertion(t,n,r,o){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==i?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=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(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const o=t._prevRemoved,i=t._nextRemoved;return null===o?this._removalsHead=i:o._nextRemoved=i,null===i?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const o=null===n?this._itHead:n._next;return t._next=o,t._prev=n,null===o?this._itTail=t:o._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new Av),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Av),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class zT{constructor(t,n){this.item=t,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 WT{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class Av{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new WT,this.map.set(n,r)),r.add(t)}get(t,n){const o=this.map.get(t);return o?o.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Tv(e,t,n){const r=e.previousIndex;if(null===r)return r;let o=0;return n&&r<n.length&&(o=n[r]),r+t+o}class xv{constructor(){}supports(t){return t instanceof Map||Jl(t)}create(){return new qT}}class qT{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let n;for(n=this._mapHead;null!==n;n=n._next)t(n)}forEachPreviousItem(t){let n;for(n=this._previousMapHead;null!==n;n=n._nextPrevious)t(n)}forEachChangedItem(t){let n;for(n=this._changesHead;null!==n;n=n._nextChanged)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}diff(t){if(t){if(!(t instanceof Map||Jl(t)))throw new C(900,!1)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(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(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const o=this._records.get(t);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 ZT(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}}class ZT{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Nv(){return new Js([new Sv])}let Js=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(null!=r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Nv()),deps:[[e,new Oo,new Fo]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(null!=r)return r;throw new C(901,!1)}}return e.\u0275prov=L({token:e,providedIn:"root",factory:Nv}),e})();function Rv(){return new ai([new xv])}let ai=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Rv()),deps:[[e,new Oo,new Fo]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(r)return r;throw new C(901,!1)}}return e.\u0275prov=L({token:e,providedIn:"root",factory:Rv}),e})();const YT=pv(null,"core",[]);let JT=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(A(qs))},e.\u0275mod=Ht({type:e}),e.\u0275inj=It({}),e})();function yn(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}let Xs=null;function Yt(){return Xs}const tt=new M("DocumentToken");let Bc=(()=>{class e{historyGo(n){throw new Error("Not implemented")}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=L({token:e,factory:function(){return function nx(){return A(Fv)}()},providedIn:"platform"}),e})();const rx=new M("Location Initialized");let Fv=(()=>{class e extends Bc{constructor(n){super(),this._doc=n,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Yt().getBaseHref(this._doc)}onPopState(n){const r=Yt().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){const r=Yt().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){Ov()?this._history.pushState(n,r,o):this.location.hash=o}replaceState(n,r,o){Ov()?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 e.\u0275fac=function(n){return new(n||e)(A(tt))},e.\u0275prov=L({token:e,factory:function(){return function ox(){return new Fv(A(tt))}()},providedIn:"platform"}),e})();function Ov(){return!!window.history.pushState}function $c(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function Pv(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function vn(e){return e&&"?"!==e[0]?"?"+e:e}let sr=(()=>{class e{historyGo(n){throw new Error("Not implemented")}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=L({token:e,factory:function(){return pe(Lv)},providedIn:"root"}),e})();const kv=new M("appBaseHref");let Lv=(()=>{class e extends sr{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??pe(tt).location?.origin??""}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 $c(this._baseHref,n)}path(n=!1){const r=this._platformLocation.pathname+vn(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){const s=this.prepareExternalUrl(o+vn(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){const s=this.prepareExternalUrl(o+vn(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}}return e.\u0275fac=function(n){return new(n||e)(A(Bc),A(kv,8))},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),ix=(()=>{class e extends sr{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=$c(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+vn(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+vn(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}}return e.\u0275fac=function(n){return new(n||e)(A(Bc),A(kv,8))},e.\u0275prov=L({token:e,factory:e.\u0275fac}),e})(),ui=(()=>{class e{constructor(n){this._subject=new ce,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;const r=this._locationStrategy.getBaseHref();this._baseHref=Pv(Vv(r)),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+vn(r))}normalize(n){return e.stripTrailingSlash(function ax(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,Vv(n)))}prepareExternalUrl(n){return n&&"/"!==n[0]&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+vn(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+vn(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)})),()=>{const r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_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 e.normalizeQueryParams=vn,e.joinWithSlash=$c,e.stripTrailingSlash=Pv,e.\u0275fac=function(n){return new(n||e)(A(sr))},e.\u0275prov=L({token:e,factory:function(){return function sx(){return new ui(A(sr))}()},providedIn:"root"}),e})();function Vv(e){return e.replace(/\/index.html$/,"")}let qv=(()=>{class e{constructor(n,r,o,i){this._iterableDiffers=n,this._keyValueDiffers=r,this._ngEl=o,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(n){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof n?n.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(n){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof n?n.split(/\s+/):n,this._rawClass&&(qo(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const n=this._iterableDiffer.diff(this._rawClass);n&&this._applyIterableChanges(n)}else if(this._keyValueDiffer){const n=this._keyValueDiffer.diff(this._rawClass);n&&this._applyKeyValueChanges(n)}}_applyKeyValueChanges(n){n.forEachAddedItem(r=>this._toggleClass(r.key,r.currentValue)),n.forEachChangedItem(r=>this._toggleClass(r.key,r.currentValue)),n.forEachRemovedItem(r=>{r.previousValue&&this._toggleClass(r.key,!1)})}_applyIterableChanges(n){n.forEachAddedItem(r=>{if("string"!=typeof r.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${X(r.item)}`);this._toggleClass(r.item,!0)}),n.forEachRemovedItem(r=>this._toggleClass(r.item,!1))}_applyClasses(n){n&&(Array.isArray(n)||n instanceof Set?n.forEach(r=>this._toggleClass(r,!0)):Object.keys(n).forEach(r=>this._toggleClass(r,!!n[r])))}_removeClasses(n){n&&(Array.isArray(n)||n instanceof Set?n.forEach(r=>this._toggleClass(r,!1)):Object.keys(n).forEach(r=>this._toggleClass(r,!1)))}_toggleClass(n,r){(n=n.trim())&&n.split(/\s+/g).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}}return e.\u0275fac=function(n){return new(n||e)(_(Js),_(ai),_(dt),_(cn))},e.\u0275dir=F({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),e})();class Wx{constructor(t,n,r,o){this.$implicit=t,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 Kv=(()=>{class e{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;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){const n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){const r=this._viewContainer;n.forEachOperation((o,i,s)=>{if(null==o.previousIndex)r.createEmbeddedView(this._template,new Wx(o.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)r.remove(null===i?void 0:i);else if(null!==i){const a=r.get(i);r.move(a,s),Yv(a,o)}});for(let o=0,i=r.length;o<i;o++){const a=r.get(o).context;a.index=o,a.count=i,a.ngForOf=this._ngForOf}n.forEachIdentityChange(o=>{Yv(r.get(o.currentIndex),o)})}static ngTemplateContextGuard(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(_(kt),_(pn),_(Js))},e.\u0275dir=F({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),e})();function Yv(e,t){e.context.$implicit=t.item}let la=(()=>{class e{constructor(n,r){this._viewContainer=n,this._context=new Zx,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){Jv("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){Jv("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 e.\u0275fac=function(n){return new(n||e)(_(kt),_(pn))},e.\u0275dir=F({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),e})();class Zx{constructor(){this.$implicit=null,this.ngIf=null}}function Jv(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${X(t)}'.`)}let CN=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Ht({type:e}),e.\u0275inj=It({}),e})();let IN=(()=>{class e{}return e.\u0275prov=L({token:e,providedIn:"root",factory:()=>new MN(A(tt),window)}),e})();class MN{constructor(t,n){this.document=t,this.window=n,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const n=function SN(e,t){const n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if("function"==typeof e.createTreeWalker&&e.body&&(e.body.createShadowRoot||e.body.attachShadow)){const r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let o=r.currentNode;for(;o;){const i=o.shadowRoot;if(i){const s=i.getElementById(t)||i.querySelector(`[name="${t}"]`);if(s)return s}o=r.nextNode()}}return null}(this.document,t);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const n=this.window.history;n&&n.scrollRestoration&&(n.scrollRestoration=t)}}scrollToElement(t){const n=t.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])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=n_(this.window.history)||n_(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function n_(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}class rd extends class tR extends class tx{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function ex(e){Xs||(Xs=e)}(new rd)}onAndCancel(t,n,r){return t.addEventListener(n,r,!1),()=>{t.removeEventListener(n,r,!1)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,n){return(n=n||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return"window"===n?window:"document"===n?t:"body"===n?t.body:null}getBaseHref(t){const n=function nR(){return fi=fi||document.querySelector("base"),fi?fi.getAttribute("href"):null}();return null==n?null:function rR(e){fa=fa||document.createElement("a"),fa.setAttribute("href",e);const t=fa.pathname;return"/"===t.charAt(0)?t:`/${t}`}(n)}resetBaseElement(){fi=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return function Gx(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const r=n.indexOf("="),[o,i]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}(document.cookie,t)}}let fa,fi=null;const a_=new M("TRANSITION_ID"),iR=[{provide:Gs,useFactory:function oR(e,t,n){return()=>{n.get(zs).donePromise.then(()=>{const r=Yt(),o=t.querySelectorAll(`style[ng-transition="${e}"]`);for(let i=0;i<o.length;i++)r.remove(o[i])})}},deps:[a_,tt,_t],multi:!0}];let aR=(()=>{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac}),e})();const ha=new M("EventManagerPlugins");let pa=(()=>{class e{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 e.\u0275fac=function(n){return new(n||e)(A(ha),A(Te))},e.\u0275prov=L({token:e,factory:e.\u0275fac}),e})();class u_{constructor(t){this._doc=t}addGlobalEventListener(t,n,r){const o=Yt().getGlobalEventTarget(this._doc,t);if(!o)throw new Error(`Unsupported event target ${o} for event ${n}`);return this.addEventListener(o,n,r)}}let l_=(()=>{class e{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 e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac}),e})(),hi=(()=>{class e extends l_{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(c_),this._hostNodes.delete(n)}onStylesAdded(n){this._hostNodes.forEach((r,o)=>{this._addStylesToHost(n,o,r)})}ngOnDestroy(){this._hostNodes.forEach(n=>n.forEach(c_))}}return e.\u0275fac=function(n){return new(n||e)(A(tt))},e.\u0275prov=L({token:e,factory:e.\u0275fac}),e})();function c_(e){Yt().remove(e)}const od={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/",math:"http://www.w3.org/1998/MathML/"},id=/%COMP%/g;function ga(e,t,n){for(let r=0;r<t.length;r++){let o=t[r];Array.isArray(o)?ga(e,o,n):(o=o.replace(id,e),n.push(o))}return n}function h_(e){return t=>{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let sd=(()=>{class e{constructor(n,r,o){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.rendererByCompId=new Map,this.defaultRenderer=new ad(n)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;switch(r.encapsulation){case Ut.Emulated:{let o=this.rendererByCompId.get(r.id);return o||(o=new hR(this.eventManager,this.sharedStylesHost,r,this.appId),this.rendererByCompId.set(r.id,o)),o.applyToHost(n),o}case 1:case Ut.ShadowDom:return new pR(this.eventManager,this.sharedStylesHost,n,r);default:if(!this.rendererByCompId.has(r.id)){const o=ga(r.id,r.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(r.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.\u0275fac=function(n){return new(n||e)(A(pa),A(hi),A(si))},e.\u0275prov=L({token:e,factory:e.\u0275fac}),e})();class ad{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,n){return n?document.createElementNS(od[n]||n,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,n){(g_(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(g_(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){t&&t.removeChild(n)}selectRootElement(t,n){let r="string"==typeof t?document.querySelector(t):t;if(!r)throw new Error(`The selector "${t}" did not match any elements`);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;const i=od[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const o=od[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(Xe.DashCase|Xe.Important)?t.style.setProperty(n,r,o&Xe.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&Xe.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t[n]=r}setValue(t,n){t.nodeValue=n}listen(t,n,r){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,n,h_(r)):this.eventManager.addEventListener(t,n,h_(r))}}function g_(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class hR extends ad{constructor(t,n,r,o){super(t),this.component=r;const i=ga(o+"-"+r.id,r.styles,[]);n.addStyles(i),this.contentAttr=function cR(e){return"_ngcontent-%COMP%".replace(id,e)}(o+"-"+r.id),this.hostAttr=function dR(e){return"_nghost-%COMP%".replace(id,e)}(o+"-"+r.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,n){const r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}}class pR extends ad{constructor(t,n,r,o){super(t),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const i=ga(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(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(this.nodeOrShadowRoot(t),n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let gR=(()=>{class e extends u_{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 e.\u0275fac=function(n){return new(n||e)(A(tt))},e.\u0275prov=L({token:e,factory:e.\u0275fac}),e})();const m_=["alt","control","meta","shift"],mR={"\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"},yR={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let vR=(()=>{class e extends u_{constructor(n){super(n)}supports(n){return null!=e.parseEventName(n)}addEventListener(n,r,o){const i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Yt().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=e._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),m_.forEach(l=>{const c=r.indexOf(l);c>-1&&(r.splice(c,1),s+=l+".")}),s+=i,0!=r.length||0===i.length)return null;const u={};return u.domEventName=o,u.fullKey=s,u}static matchEventFullKeyCode(n,r){let o=mR[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),m_.forEach(s=>{s!==o&&(0,yR[s])(n)&&(i+=s+".")}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return e.\u0275fac=function(n){return new(n||e)(A(tt))},e.\u0275prov=L({token:e,factory:e.\u0275fac}),e})();const wR=pv(YT,"browser",[{provide:ov,useValue:"browser"},{provide:rv,useValue:function _R(){rd.makeCurrent()},multi:!0},{provide:tt,useFactory:function CR(){return function qb(e){al=e}(document),document},deps:[]}]),__=new M(""),D_=[{provide:Ws,useClass:class sR{addToWindow(t){ne.getAngularTestability=(r,o=!0)=>{const i=t.findTestabilityInTree(r,o);if(null==i)throw new Error("Could not find testability for element.");return i},ne.getAllAngularTestabilities=()=>t.getAllTestabilities(),ne.getAllAngularRootElements=()=>t.getAllRootElements(),ne.frameworkStabilizers||(ne.frameworkStabilizers=[]),ne.frameworkStabilizers.push(r=>{const o=ne.getAllAngularTestabilities();let i=o.length,s=!1;const a=function(u){s=s||u,i--,0==i&&r(s)};o.forEach(function(u){u.whenStable(a)})})}findTestabilityInTree(t,n,r){return null==n?null:t.getTestability(n)??(r?Yt().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},deps:[]},{provide:cv,useClass:Nc,deps:[Te,Rc,Ws]},{provide:Nc,useClass:Nc,deps:[Te,Rc,Ws]}],C_=[{provide:yl,useValue:"root"},{provide:Lr,useFactory:function DR(){return new Lr},deps:[]},{provide:ha,useClass:gR,multi:!0,deps:[tt,Te,ov]},{provide:ha,useClass:vR,multi:!0,deps:[tt]},{provide:sd,useClass:sd,deps:[pa,hi,si]},{provide:Up,useExisting:sd},{provide:l_,useExisting:hi},{provide:hi,useClass:hi,deps:[tt]},{provide:pa,useClass:pa,deps:[ha,Te]},{provide:class AN{},useClass:aR,deps:[]},[]];let ER=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:si,useValue:n.appId},{provide:a_,useExisting:si},iR]}}}return e.\u0275fac=function(n){return new(n||e)(A(__,12))},e.\u0275mod=Ht({type:e}),e.\u0275inj=It({providers:[...C_,...D_],imports:[CN,JT]}),e})(),w_=(()=>{class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}}return e.\u0275fac=function(n){return new(n||e)(A(tt))},e.\u0275prov=L({token:e,factory:function(n){let r=null;return r=n?new n:function IR(){return new w_(A(tt))}(),r},providedIn:"root"}),e})();typeof window<"u"&&window;const{isArray:FR}=Array,{getPrototypeOf:OR,prototype:PR,keys:kR}=Object;function I_(e){if(1===e.length){const t=e[0];if(FR(t))return{args:t,keys:null};if(function LR(e){return e&&"object"==typeof e&&OR(e)===PR}(t)){const n=kR(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}const{isArray:VR}=Array;function M_(e){return G(t=>function jR(e,t){return VR(t)?e(...t):e(t)}(e,t))}function S_(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}let A_=(()=>{class e{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 e.\u0275fac=function(n){return new(n||e)(_(cn),_(dt))},e.\u0275dir=F({type:e}),e})(),ar=(()=>{class e extends A_{}return e.\u0275fac=function(){let t;return function(r){return(t||(t=function Ve(e){return wn(()=>{const t=e.prototype.constructor,n=t[on]||Fu(t),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const i=o[on]||Fu(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}(e)))(r||e)}}(),e.\u0275dir=F({type:e,features:[Y]}),e})();const Jt=new M("NgValueAccessor"),UR={provide:Jt,useExisting:te(()=>pi),multi:!0},GR=new M("CompositionEventMode");let pi=(()=>{class e extends A_{constructor(n,r,o){super(n,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function HR(){const e=Yt()?Yt().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(n){this.setProperty("value",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 e.\u0275fac=function(n){return new(n||e)(_(cn),_(dt),_(GR,8))},e.\u0275dir=F({type:e,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&&ge("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:[se([UR]),Y]}),e})();const $e=new M("NgValidators"),On=new M("NgAsyncValidators");function j_(e){return null!=e}function B_(e){return Ko(e)?_e(e):e}function $_(e){let t={};return e.forEach(n=>{t=null!=n?{...t,...n}:t}),0===Object.keys(t).length?null:t}function U_(e,t){return t.map(n=>n(e))}function H_(e){return e.map(t=>function qR(e){return!e.validate}(t)?t:n=>t.validate(n))}function cd(e){return null!=e?function G_(e){if(!e)return null;const t=e.filter(j_);return 0==t.length?null:function(n){return $_(U_(n,t))}}(H_(e)):null}function dd(e){return null!=e?function z_(e){if(!e)return null;const t=e.filter(j_);return 0==t.length?null:function(n){return function BR(...e){const t=Uf(e),{args:n,keys:r}=I_(e),o=new ve(i=>{const{length:s}=n;if(!s)return void i.complete();const a=new Array(s);let u=s,l=s;for(let c=0;c<s;c++){let d=!1;bt(n[c]).subscribe(Ie(i,f=>{d||(d=!0,l--),a[c]=f},()=>u--,void 0,()=>{(!u||!d)&&(l||i.next(r?S_(r,a):a),i.complete())}))}});return t?o.pipe(M_(t)):o}(U_(n,t).map(B_)).pipe(G($_))}}(H_(e)):null}function W_(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function q_(e){return e._rawValidators}function Z_(e){return e._rawAsyncValidators}function fd(e){return e?Array.isArray(e)?e:[e]:[]}function ya(e,t){return Array.isArray(e)?e.includes(t):e===t}function Q_(e,t){const n=fd(t);return fd(e).forEach(o=>{ya(n,o)||n.push(o)}),n}function K_(e,t){return fd(t).filter(n=>!ya(e,n))}class Pn extends class Y_{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(t){this._rawValidators=t||[],this._composedValidatorFn=cd(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=dd(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,n){return!!this.control&&this.control.hasError(t,n)}getError(t,n){return this.control?this.control.getError(t,n):null}}{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}let hd=(()=>{class e extends class J_{constructor(t){this._cd=t}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}{constructor(n){super(n)}}return e.\u0275fac=function(n){return new(n||e)(_(Pn,2))},e.\u0275dir=F({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){2&n&&nr("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[Y]}),e})();const gi="VALID",_a="INVALID",ro="PENDING",mi="DISABLED";function eD(e){return Array.isArray(e)?cd(e):e||null}function tD(e){return Array.isArray(e)?dd(e):e||null}function Da(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function yi(e,t){(function Dd(e,t){const n=q_(e);null!==t.validator?e.setValidators(W_(n,t.validator)):"function"==typeof n&&e.setValidators([n]);const r=Z_(e);null!==t.asyncValidator?e.setAsyncValidators(W_(r,t.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const o=()=>e.updateValueAndValidity();Ea(t._rawValidators,o),Ea(t._rawAsyncValidators,o)})(e,t),t.valueAccessor.writeValue(e.value),e.disabled&&t.valueAccessor.setDisabledState?.(!0),function rF(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&iD(e,t)})}(e,t),function iF(e,t){const n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}(e,t),function oF(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&iD(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function nF(e,t){if(t.valueAccessor.setDisabledState){const n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}(e,t)}function wa(e,t,n=!0){const r=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(r),t.valueAccessor.registerOnTouched(r)),function ba(e,t){let n=!1;if(null!==e){if(null!==t.validator){const o=q_(e);if(Array.isArray(o)&&o.length>0){const i=o.filter(s=>s!==t.validator);i.length!==o.length&&(n=!0,e.setValidators(i))}}if(null!==t.asyncValidator){const o=Z_(e);if(Array.isArray(o)&&o.length>0){const i=o.filter(s=>s!==t.asyncValidator);i.length!==o.length&&(n=!0,e.setAsyncValidators(i))}}}const r=()=>{};return Ea(t._rawValidators,r),Ea(t._rawAsyncValidators,r),n}(e,t),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function Ea(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function iD(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function lD(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function cD(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const Ia=class extends class oD{constructor(t,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=n,this._composedValidatorFn=eD(this._rawValidators),this._composedAsyncValidatorFn=tD(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===gi}get invalid(){return this.status===_a}get pending(){return this.status==ro}get disabled(){return this.status===mi}get enabled(){return this.status!==mi}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=eD(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=tD(t)}addValidators(t){this.setValidators(Q_(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Q_(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(K_(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(K_(t,this._rawAsyncValidators))}hasValidator(t){return ya(this._rawValidators,t)}hasAsyncValidator(t){return ya(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(n=>{n.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=ro,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=mi,this.errors=null,this._forEachChild(r=>{r.disable({...t,onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:n}),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=gi,this._forEachChild(r=>{r.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:n}),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===gi||this.status===ro)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?mi:gi}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=ro,this._hasOwnPendingAsyncValidator=!0;const n=B_(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(!1!==n.emitEvent)}get(t){let n=t;return null==n||(Array.isArray(n)||(n=n.split(".")),0===n.length)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){const r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new ce,this.statusChanges=new ce}_calculateStatus(){return this._allControlsDisabled()?mi:this.errors?_a:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ro)?ro:this._anyControlsHaveStatus(_a)?_a:gi}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Da(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}}{constructor(t=null,n,r){super(function yd(e){return(Da(e)?e.validators:e)||null}(n),function vd(e,t){return(Da(t)?t.asyncValidators:e)||null}(r,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Da(n)&&(n.nonNullable||n.initialValueIsDefault)&&(this.defaultValue=cD(t)?t.value:t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==n.emitViewToModelChange)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){lD(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){lD(this._onDisabledChange,t)}_forEachChild(t){}_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(t){cD(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};let mD=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Ht({type:e}),e.\u0275inj=It({}),e})();const bd=new M("NgModelWithFormControlWarning"),_F={provide:Pn,useExisting:te(()=>Ma)};let Ma=(()=>{class e extends Pn{constructor(n,r,o,i){super(),this._ngModelWarningConfig=i,this.update=new ce,this._ngModelWarningSent=!1,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=function wd(e,t){if(!t)return null;let n,r,o;return Array.isArray(t),t.forEach(i=>{i.constructor===pi?n=i:function uF(e){return Object.getPrototypeOf(e.constructor)===ar}(i)?r=i:o=i}),o||r||n||null}(0,o)}set isDisabled(n){}ngOnChanges(n){if(this._isControlChanged(n)){const r=n.form.previousValue;r&&wa(r,this,!1),yi(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}(function Cd(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)})(n,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&wa(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_isControlChanged(n){return n.hasOwnProperty("form")}}return e._ngModelWarningSentOnce=!1,e.\u0275fac=function(n){return new(n||e)(_($e,10),_(On,10),_(Jt,10),_(bd,8))},e.\u0275dir=F({type:e,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[se([_F]),Y,yt]}),e})(),VF=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Ht({type:e}),e.\u0275inj=It({imports:[mD]}),e})(),jF=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:bd,useValue:n.warnOnNgModelWithFormControl}]}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Ht({type:e}),e.\u0275inj=It({imports:[VF]}),e})();function S(...e){return _e(e,go(e))}class Bt extends $t{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){const{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}}const Sa=fo(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function RD(...e){const t=go(e),n=Uf(e),{args:r,keys:o}=I_(e);if(0===r.length)return _e([],t);const i=new ve(function $F(e,t,n=Un){return r=>{FD(t,()=>{const{length:o}=e,i=new Array(o);let s=o,a=o;for(let u=0;u<o;u++)FD(t,()=>{const l=_e(e[u],t);let c=!1;l.subscribe(Ie(r,d=>{i[u]=d,c||(c=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,t,o?s=>S_(o,s):Un));return n?i.pipe(M_(n)):i}function FD(e,t,n){e?tn(n,e,t):t()}function Nd(...e){return function UF(){return mr(1)}()(_e(e,go(e)))}function OD(e){return new ve(t=>{bt(e()).subscribe(t)})}function _i(e,t){const n=ee(e)?e:()=>e,r=o=>o.error(n());return new ve(t?o=>t.schedule(r,0,o):r)}function Rd(){return Ne((e,t)=>{let n=null;e._refCount++;const r=Ie(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(n=null);const o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}class PD extends ve{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Af(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new pt;const n=this.getSubject();t.add(this.source.subscribe(Ie(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=pt.EMPTY)}return t}refCount(){return Rd()(this)}}function Xt(e,t){return Ne((n,r)=>{let o=null,i=0,s=!1;const a=()=>s&&!o&&r.complete();n.subscribe(Ie(r,u=>{o?.unsubscribe();let l=0;const c=i++;bt(e(u,c)).subscribe(o=Ie(r,d=>r.next(t?t(u,d,c,l++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Di(e){return e<=0?()=>nn:Ne((t,n)=>{let r=0;t.subscribe(Ie(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function kn(e,t){return Ne((n,r)=>{let o=0;n.subscribe(Ie(r,i=>e.call(t,i,o++)&&r.next(i)))})}function Aa(e){return Ne((t,n)=>{let r=!1;t.subscribe(Ie(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function kD(e=GF){return Ne((t,n)=>{let r=!1;t.subscribe(Ie(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function GF(){return new Sa}function Ln(e,t){const n=arguments.length>=2;return r=>r.pipe(e?kn((o,i)=>e(o,i,r)):Un,Di(1),n?Aa(t):kD(()=>new Sa))}function lr(e,t){return ee(t)?Fe(e,t,1):Fe(e,1)}function Ue(e,t,n){const r=ee(e)||t||n?{next:e,error:t,complete:n}:e;return r?Ne((o,i)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;o.subscribe(Ie(i,u=>{var l;null===(l=r.next)||void 0===l||l.call(r,u),i.next(u)},()=>{var u;a=!1,null===(u=r.complete)||void 0===u||u.call(r),i.complete()},u=>{var l;a=!1,null===(l=r.error)||void 0===l||l.call(r,u),i.error(u)},()=>{var u,l;a&&(null===(u=r.unsubscribe)||void 0===u||u.call(r)),null===(l=r.finalize)||void 0===l||l.call(r)}))}):Un}function Vn(e){return Ne((t,n)=>{let i,r=null,o=!1;r=t.subscribe(Ie(n,void 0,void 0,s=>{i=bt(e(s,Vn(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function zF(e,t,n,r,o){return(i,s)=>{let a=n,u=t,l=0;i.subscribe(Ie(s,c=>{const d=l++;u=a?e(u,c,d):(a=!0,c),r&&s.next(u)},o&&(()=>{a&&s.next(u),s.complete()})))}}function LD(e,t){return Ne(zF(e,t,arguments.length>=2,!0))}function Fd(e){return e<=0?()=>nn:Ne((t,n)=>{let r=[];t.subscribe(Ie(n,o=>{r.push(o),e<r.length&&r.shift()},()=>{for(const o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function VD(e,t){const n=arguments.length>=2;return r=>r.pipe(e?kn((o,i)=>e(o,i,r)):Un,Fd(1),n?Aa(t):kD(()=>new Sa))}function Od(e){return Ne((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}const $="primary",Ci=Symbol("RouteTitle");class ZF{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){const n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}}function oo(e){return new ZF(e)}function QF(e,t,n){const r=n.path.split("/");if(r.length>e.length||"full"===n.pathMatch&&(t.hasChildren()||r.length<e.length))return null;const o={};for(let i=0;i<r.length;i++){const s=r[i],a=e[i];if(s.startsWith(":"))o[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:e.slice(0,r.length),posParams:o}}function en(e,t){const n=e?Object.keys(e):void 0,r=t?Object.keys(t):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],!jD(e[o],t[o]))return!1;return!0}function jD(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;const n=[...e].sort(),r=[...t].sort();return n.every((o,i)=>r[i]===o)}return e===t}function BD(e){return Array.prototype.concat.apply([],e)}function $D(e){return e.length>0?e[e.length-1]:null}function Oe(e,t){for(const n in e)e.hasOwnProperty(n)&&t(e[n],n)}function jn(e){return nc(e)?e:Ko(e)?_e(Promise.resolve(e)):S(e)}const JF={exact:function GD(e,t,n){if(!dr(e.segments,t.segments)||!Ta(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(const r in t.children)if(!e.children[r]||!GD(e.children[r],t.children[r],n))return!1;return!0},subset:zD},UD={exact:function XF(e,t){return en(e,t)},subset:function eO(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>jD(e[n],t[n]))},ignored:()=>!0};function HD(e,t,n){return JF[n.paths](e.root,t.root,n.matrixParams)&&UD[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function zD(e,t,n){return WD(e,t,t.segments,n)}function WD(e,t,n,r){if(e.segments.length>n.length){const o=e.segments.slice(0,n.length);return!(!dr(o,n)||t.hasChildren()||!Ta(o,n,r))}if(e.segments.length===n.length){if(!dr(e.segments,n)||!Ta(e.segments,n,r))return!1;for(const o in t.children)if(!e.children[o]||!zD(e.children[o],t.children[o],r))return!1;return!0}{const o=n.slice(0,e.segments.length),i=n.slice(e.segments.length);return!!(dr(e.segments,o)&&Ta(e.segments,o,r)&&e.children[$])&&WD(e.children[$],t,i,r)}}function Ta(e,t,n){return t.every((r,o)=>UD[n](e[o].parameters,r.parameters))}class cr{constructor(t,n,r){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=oo(this.queryParams)),this._queryParamMap}toString(){return rO.serialize(this)}}class U{constructor(t,n){this.segments=t,this.children=n,this.parent=null,Oe(n,(r,o)=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return xa(this)}}class wi{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap||(this._parameterMap=oo(this.parameters)),this._parameterMap}toString(){return KD(this)}}function dr(e,t){return e.length===t.length&&e.every((n,r)=>n.path===t[r].path)}let qD=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=L({token:e,factory:function(){return new kd},providedIn:"root"}),e})();class kd{parse(t){const n=new fO(t);return new cr(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){const n=`/${Ei(t.root,!0)}`,r=function sO(e){const t=Object.keys(e).map(n=>{const r=e[n];return Array.isArray(r)?r.map(o=>`${Na(n)}=${Na(o)}`).join("&"):`${Na(n)}=${Na(r)}`}).filter(n=>!!n);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${n}${r}${"string"==typeof t.fragment?`#${function oO(e){return encodeURI(e)}(t.fragment)}`:""}`}}const rO=new kd;function xa(e){return e.segments.map(t=>KD(t)).join("/")}function Ei(e,t){if(!e.hasChildren())return xa(e);if(t){const n=e.children[$]?Ei(e.children[$],!1):"",r=[];return Oe(e.children,(o,i)=>{i!==$&&r.push(`${i}:${Ei(o,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=function nO(e,t){let n=[];return Oe(e.children,(r,o)=>{o===$&&(n=n.concat(t(r,o)))}),Oe(e.children,(r,o)=>{o!==$&&(n=n.concat(t(r,o)))}),n}(e,(r,o)=>o===$?[Ei(e.children[$],!1)]:[`${o}:${Ei(r,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[$]?`${xa(e)}/${n[0]}`:`${xa(e)}/(${n.join("//")})`}}function ZD(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Na(e){return ZD(e).replace(/%3B/gi,";")}function Ld(e){return ZD(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ra(e){return decodeURIComponent(e)}function QD(e){return Ra(e.replace(/\+/g,"%20"))}function KD(e){return`${Ld(e.path)}${function iO(e){return Object.keys(e).map(t=>`;${Ld(t)}=${Ld(e[t])}`).join("")}(e.parameters)}`}const aO=/^[^\/()?;=#]+/;function Fa(e){const t=e.match(aO);return t?t[0]:""}const uO=/^[^=?&#]+/,cO=/^[^&#]+/;class fO{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new U([],{}):new U([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[$]=new U(t,n)),r}parseSegment(){const t=Fa(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new C(4009,!1);return this.capture(t),new wi(Ra(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const n=Fa(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const o=Fa(this.remaining);o&&(r=o,this.capture(r))}t[Ra(n)]=Ra(r)}parseQueryParam(t){const n=function lO(e){const t=e.match(uO);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const s=function dO(e){const t=e.match(cO);return t?t[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const o=QD(n),i=QD(r);if(t.hasOwnProperty(o)){let s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(i)}else t[o]=i}parseParens(t){const n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=Fa(this.remaining),o=this.remaining[r.length];if("/"!==o&&")"!==o&&";"!==o)throw new C(4010,!1);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=$);const s=this.parseChildren();n[i]=1===Object.keys(s).length?s[$]:new U([],s),this.consumeOptional("//")}return n}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new C(4011,!1)}}function Vd(e){return e.segments.length>0?new U([],{[$]:e}):e}function Oa(e){const t={};for(const r of Object.keys(e.children)){const i=Oa(e.children[r]);(i.segments.length>0||i.hasChildren())&&(t[r]=i)}return function hO(e){if(1===e.numberOfChildren&&e.children[$]){const t=e.children[$];return new U(e.segments.concat(t.segments),t.children)}return e}(new U(e.segments,t))}function fr(e){return e instanceof cr}function mO(e,t,n,r,o){if(0===n.length)return io(t.root,t.root,t.root,r,o);const i=function XD(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new JD(!0,0,e);let t=0,n=!1;const r=e.reduce((o,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const a={};return Oe(i.outlets,(u,l)=>{a[l]="string"==typeof u?u.split("/"):u}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return"string"!=typeof i?[...o,i]:0===s?(i.split("/").forEach((a,u)=>{0==u&&"."===a||(0==u&&""===a?n=!0:".."===a?t++:""!=a&&o.push(a))}),o):[...o,i]},[]);return new JD(n,t,r)}(n);return i.toRoot()?io(t.root,t.root,new U([],{}),r,o):function s(u){const l=function vO(e,t,n,r){if(e.isAbsolute)return new so(t.root,!0,0);if(-1===r)return new so(n,n===t.root,0);return function eC(e,t,n){let r=e,o=t,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new C(4005,!1);o=r.segments.length}return new so(r,!1,o-i)}(n,r+(bi(e.commands[0])?0:1),e.numberOfDoubleDots)}(i,t,e.snapshot?._urlSegment,u),c=l.processChildren?Mi(l.segmentGroup,l.index,i.commands):Bd(l.segmentGroup,l.index,i.commands);return io(t.root,l.segmentGroup,c,r,o)}(e.snapshot?._lastPathIndex)}function bi(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function Ii(e){return"object"==typeof e&&null!=e&&e.outlets}function io(e,t,n,r,o){let s,i={};r&&Oe(r,(u,l)=>{i[l]=Array.isArray(u)?u.map(c=>`${c}`):`${u}`}),s=e===t?n:YD(e,t,n);const a=Vd(Oa(s));return new cr(a,i,o)}function YD(e,t,n){const r={};return Oe(e.children,(o,i)=>{r[i]=o===t?n:YD(o,t,n)}),new U(e.segments,r)}class JD{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&bi(r[0]))throw new C(4003,!1);const o=r.find(Ii);if(o&&o!==$D(r))throw new C(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class so{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}}function Bd(e,t,n){if(e||(e=new U([],{})),0===e.segments.length&&e.hasChildren())return Mi(e,t,n);const r=function DO(e,t,n){let r=0,o=t;const i={match:!1,pathIndex:0,commandIndex:0};for(;o<e.segments.length;){if(r>=n.length)return i;const s=e.segments[o],a=n[r];if(Ii(a))break;const u=`${a}`,l=r<n.length-1?n[r+1]:null;if(o>0&&void 0===u)break;if(u&&l&&"object"==typeof l&&void 0===l.outlets){if(!nC(u,l,s))return i;r+=2}else{if(!nC(u,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){const i=new U(e.segments.slice(0,r.pathIndex),{});return i.children[$]=new U(e.segments.slice(r.pathIndex),e.children),Mi(i,0,o)}return r.match&&0===o.length?new U(e.segments,{}):r.match&&!e.hasChildren()?$d(e,t,n):r.match?Mi(e,0,o):$d(e,t,n)}function Mi(e,t,n){if(0===n.length)return new U(e.segments,{});{const r=function _O(e){return Ii(e[0])?e[0].outlets:{[$]:e}}(n),o={};return Oe(r,(i,s)=>{"string"==typeof i&&(i=[i]),null!==i&&(o[s]=Bd(e.children[s],t,i))}),Oe(e.children,(i,s)=>{void 0===r[s]&&(o[s]=i)}),new U(e.segments,o)}}function $d(e,t,n){const r=e.segments.slice(0,t);let o=0;for(;o<n.length;){const i=n[o];if(Ii(i)){const u=CO(i.outlets);return new U(r,u)}if(0===o&&bi(n[0])){r.push(new wi(e.segments[t].path,tC(n[0]))),o++;continue}const s=Ii(i)?i.outlets[$]:`${i}`,a=o<n.length-1?n[o+1]:null;s&&a&&bi(a)?(r.push(new wi(s,tC(a))),o+=2):(r.push(new wi(s,{})),o++)}return new U(r,{})}function CO(e){const t={};return Oe(e,(n,r)=>{"string"==typeof n&&(n=[n]),null!==n&&(t[r]=$d(new U([],{}),0,n))}),t}function tC(e){const t={};return Oe(e,(n,r)=>t[r]=`${n}`),t}function nC(e,t,n){return e==n.path&&en(t,n.parameters)}class Dn{constructor(t,n){this.id=t,this.url=n}}class Ud extends Dn{constructor(t,n,r="imperative",o=null){super(t,n),this.type=0,this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class hr extends Dn{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Pa extends Dn{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class rC extends Dn{constructor(t,n,r,o){super(t,n),this.error=r,this.target=o,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class wO extends Dn{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class EO extends Dn{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class bO extends Dn{constructor(t,n,r,o,i){super(t,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class IO extends Dn{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class MO extends Dn{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class SO{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class AO{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class TO{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class xO{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class NO{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class RO{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class oC{constructor(t,n,r){this.routerEvent=t,this.position=n,this.anchor=r,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class iC{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){const n=Hd(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){const n=Hd(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){const n=Gd(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return Gd(t,this._root).map(n=>n.value)}}function Hd(e,t){if(e===t.value)return t;for(const n of t.children){const r=Hd(e,n);if(r)return r}return null}function Gd(e,t){if(e===t.value)return[t];for(const n of t.children){const r=Gd(e,n);if(r.length)return r.unshift(t),r}return[]}class Cn{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}}function ao(e){const t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}class sC extends iC{constructor(t,n){super(t),this.snapshot=n,zd(this,t)}toString(){return this.snapshot.toString()}}function aC(e,t){const n=function OO(e,t){const s=new ka([],{},{},"",{},$,t,null,e.root,-1,{});return new lC("",new Cn(s,[]))}(e,t),r=new Bt([new wi("",{})]),o=new Bt({}),i=new Bt({}),s=new Bt({}),a=new Bt(""),u=new pr(r,o,s,a,i,$,t,n.root);return u.snapshot=n.root,new sC(new Cn(u,[]),n)}class pr{constructor(t,n,r,o,i,s,a,u){this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.title=this.data?.pipe(G(l=>l[Ci]))??S(void 0),this._futureSnapshot=u}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(G(t=>oo(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(G(t=>oo(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function uC(e,t="emptyOnly"){const n=e.pathFromRoot;let r=0;if("always"!==t)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 PO(e){return e.reduce((t,n)=>({params:{...t.params,...n.params},data:{...t.data,...n.data},resolve:{...n.data,...t.resolve,...n.routeConfig?.data,...n._resolvedData}}),{params:{},data:{},resolve:{}})}(n.slice(r))}class ka{constructor(t,n,r,o,i,s,a,u,l,c,d,f){this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.title=this.data?.[Ci],this.routeConfig=u,this._urlSegment=l,this._lastPathIndex=c,this._correctedLastPathIndex=f??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=oo(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=oo(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class lC extends iC{constructor(t,n){super(n),this.url=t,zd(this,n)}toString(){return cC(this._root)}}function zd(e,t){t.value._routerState=e,t.children.forEach(n=>zd(e,n))}function cC(e){const t=e.children.length>0?` { ${e.children.map(cC).join(", ")} } `:"";return`${e.value}${t}`}function Wd(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,en(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),en(t.params,n.params)||e.params.next(n.params),function KF(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!en(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.url.next(n.url),en(t.data,n.data)||e.data.next(n.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function qd(e,t){const n=en(e.params,t.params)&&function tO(e,t){return dr(e,t)&&e.every((n,r)=>en(n.parameters,t[r].parameters))}(e.url,t.url);return n&&!(!e.parent!=!t.parent)&&(!e.parent||qd(e.parent,t.parent))}function Si(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=t.value;const o=function LO(e,t,n){return t.children.map(r=>{for(const o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return Si(e,r,o);return Si(e,r)})}(e,t,n);return new Cn(r,o)}{if(e.shouldAttach(t.value)){const i=e.retrieve(t.value);if(null!==i){const s=i.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>Si(e,a)),s}}const r=function VO(e){return new pr(new Bt(e.url),new Bt(e.params),new Bt(e.queryParams),new Bt(e.fragment),new Bt(e.data),e.outlet,e.component,e)}(t.value),o=t.children.map(i=>Si(e,i));return new Cn(r,o)}}const Zd="ngNavigationCancelingError";function dC(e,t){const{redirectTo:n,navigationBehaviorOptions:r}=fr(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=fC(!1,0,t);return o.url=n,o.navigationBehaviorOptions=r,o}function fC(e,t,n){const r=new Error("NavigationCancelingError: "+(e||""));return r[Zd]=!0,r.cancellationCode=t,n&&(r.url=n),r}function hC(e){return pC(e)&&fr(e.url)}function pC(e){return e&&e[Zd]}class jO{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Ai,this.attachRef=null}}let Ai=(()=>{class e{constructor(){this.contexts=new Map}onChildOutletCreated(n,r){const o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}onChildOutletDestroyed(n){const r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new jO,this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const La=!1;let gC=(()=>{class e{constructor(n,r,o,i,s){this.parentContexts=n,this.location=r,this.changeDetector=i,this.environmentInjector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new ce,this.deactivateEvents=new ce,this.attachEvents=new ce,this.detachEvents=new ce,this.name=o||$,n.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&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.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new C(4012,La);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new C(4012,La);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new C(4012,La);this.location.detach();const n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.attachEvents.emit(n.instance)}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 C(4013,La);this._activatedRoute=n;const o=this.location,s=n._futureSnapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,u=new BO(n,a,o.injector);if(r&&function $O(e){return!!e.resolveComponentFactory}(r)){const l=r.resolveComponentFactory(s);this.activated=o.createComponent(l,o.length,u)}else this.activated=o.createComponent(s,{index:o.length,injector:u,environmentInjector:r??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return e.\u0275fac=function(n){return new(n||e)(_(Ai),_(kt),function Mo(e){return function RE(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let o=0;for(;o<r;){const i=n[o];if(_h(i))break;if(0===i)o+=2;else if("number"==typeof i)for(o++;o<r&&"string"==typeof n[o];)o++;else{if(i===t)return n[o+1];o+=2}}}return null}(Me(),e)}("name"),_(Qs),_(An))},e.\u0275dir=F({type:e,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0}),e})();class BO{constructor(t,n,r){this.route=t,this.childContexts=n,this.parent=r}get(t,n){return t===pr?this.route:t===Ai?this.childContexts:this.parent.get(t,n)}}let Qd=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=En({type:e,selectors:[["ng-component"]],standalone:!0,features:[my],decls:1,vars:0,template:function(n,r){1&n&&xs(0,"router-outlet")},dependencies:[gC],encapsulation:2}),e})();function mC(e,t){return e.providers&&!e._injector&&(e._injector=Vs(e.providers,t,`Route: ${e.path}`)),e._injector??t}function Yd(e){const t=e.children&&e.children.map(Yd),n=t?{...e,children:t}:{...e};return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==$&&(n.component=Qd),n}function Et(e){return e.outlet||$}function yC(e,t){const n=e.filter(r=>Et(r)===t);return n.push(...e.filter(r=>Et(r)!==t)),n}function Ti(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){const n=t.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}class WO{constructor(t,n,r,o){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=o}activate(t){const n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),Wd(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){const o=ao(n);t.children.forEach(i=>{const s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),Oe(o,(i,s)=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(t,n,r){const o=t.value,i=n?n.value:null;if(o===i)if(o.component){const s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else i&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){const r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=ao(t);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);if(r&&r.outlet){const s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){const r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=ao(t);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(t,n,r){const o=ao(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new RO(i.value.snapshot))}),t.children.length&&this.forwardEvent(new xO(t.value.snapshot))}activateRoutes(t,n,r){const o=t.value,i=n?n.value:null;if(Wd(o),o===i)if(o.component){const s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,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),Wd(a.route.value),this.activateChildRoutes(t,null,s.children)}else{const a=Ti(o.snapshot),u=a?.get(Ho)??null;s.attachRef=null,s.route=o,s.resolver=u,s.injector=a,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,r)}}class vC{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Va{constructor(t,n){this.component=t,this.route=n}}function qO(e,t,n){const r=e._root;return xi(r,t?t._root:null,n,[r.value])}function uo(e,t){const n=Symbol(),r=t.get(e,n);return r===n?"function"!=typeof e||function Pw(e){return null!==Bi(e)}(e)?t.get(e):e:r}function xi(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=ao(t);return e.children.forEach(s=>{(function QO(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){const u=function KO(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!dr(e.url,t.url);case"pathParamsOrQueryParamsChange":return!dr(e.url,t.url)||!en(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!qd(e,t)||!en(e.queryParams,t.queryParams);default:return!qd(e,t)}}(s,i,i.routeConfig.runGuardsAndResolvers);u?o.canActivateChecks.push(new vC(r)):(i.data=s.data,i._resolvedData=s._resolvedData),xi(e,t,i.component?a?a.children:null:n,r,o),u&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new Va(a.outlet.component,s))}else s&&Ni(t,a,o),o.canActivateChecks.push(new vC(r)),xi(e,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]}),Oe(i,(s,a)=>Ni(s,n.getContext(a),o)),o}function Ni(e,t,n){const r=ao(e),o=e.value;Oe(r,(i,s)=>{Ni(i,o.component?t?t.children.getContext(s):null:t,n)}),n.canDeactivateChecks.push(new Va(o.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,o))}function Ri(e){return"function"==typeof e}function Jd(e){return e instanceof Sa||"EmptyError"===e?.name}const ja=Symbol("INITIAL_VALUE");function lo(){return Xt(e=>RD(e.map(t=>t.pipe(Di(1),function HF(...e){const t=go(e);return Ne((n,r)=>{(t?Nd(e,n,t):Nd(e,n)).subscribe(r)})}(ja)))).pipe(G(t=>{for(const n of t)if(!0!==n){if(n===ja)return ja;if(!1===n||n instanceof cr)return n}return!0}),kn(t=>t!==ja),Di(1)))}function _C(e){return function ew(...e){return If(e)}(Ue(t=>{if(fr(t))throw dC(0,t)}),G(t=>!0===t))}const Xd={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function DC(e,t,n,r,o){const i=ef(e,t,n);return i.matched?function hP(e,t,n,r){const o=t.canMatch;return o&&0!==o.length?S(o.map(s=>{const a=uo(s,e);return jn(function nP(e){return e&&Ri(e.canMatch)}(a)?a.canMatch(t,n):e.runInContext(()=>a(t,n)))})).pipe(lo(),_C()):S(!0)}(r=mC(t,r),t,n).pipe(G(s=>!0===s?i:{...Xd})):S(i)}function ef(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{...Xd}:{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};const o=(t.matcher||QF)(n,e,t);if(!o)return{...Xd};const i={};Oe(o.posParams,(a,u)=>{i[u]=a.path});const s=o.consumed.length>0?{...i,...o.consumed[o.consumed.length-1].parameters}:i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:n.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function Ba(e,t,n,r,o="corrected"){if(n.length>0&&function mP(e,t,n){return n.some(r=>$a(e,t,r)&&Et(r)!==$)}(e,n,r)){const s=new U(t,function gP(e,t,n,r){const o={};o[$]=r,r._sourceSegment=e,r._segmentIndexShift=t.length;for(const i of n)if(""===i.path&&Et(i)!==$){const s=new U([],{});s._sourceSegment=e,s._segmentIndexShift=t.length,o[Et(i)]=s}return o}(e,t,r,new U(n,e.children)));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function yP(e,t,n){return n.some(r=>$a(e,t,r))}(e,n,r)){const s=new U(e.segments,function pP(e,t,n,r,o,i){const s={};for(const a of r)if($a(e,n,a)&&!o[Et(a)]){const u=new U([],{});u._sourceSegment=e,u._segmentIndexShift="legacy"===i?e.segments.length:t.length,s[Et(a)]=u}return{...o,...s}}(e,t,n,r,e.children,o));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}const i=new U(e.segments,e.children);return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:n}}function $a(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function CC(e,t,n,r){return!!(Et(e)===r||r!==$&&$a(t,n,e))&&("**"===e.path||ef(t,e,n).matched)}function wC(e,t,n){return 0===t.length&&!e.children[n]}const Ua=!1;class Ha{constructor(t){this.segmentGroup=t||null}}class EC{constructor(t){this.urlTree=t}}function Fi(e){return _i(new Ha(e))}function bC(e){return _i(new EC(e))}class CP{constructor(t,n,r,o,i){this.injector=t,this.configLoader=n,this.urlSerializer=r,this.urlTree=o,this.config=i,this.allowRedirects=!0}apply(){const t=Ba(this.urlTree.root,[],[],this.config).segmentGroup,n=new U(t.segments,t.children);return this.expandSegmentGroup(this.injector,this.config,n,$).pipe(G(i=>this.createUrlTree(Oa(i),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Vn(i=>{if(i instanceof EC)return this.allowRedirects=!1,this.match(i.urlTree);throw i instanceof Ha?this.noMatchError(i):i}))}match(t){return this.expandSegmentGroup(this.injector,this.config,t.root,$).pipe(G(o=>this.createUrlTree(Oa(o),t.queryParams,t.fragment))).pipe(Vn(o=>{throw o instanceof Ha?this.noMatchError(o):o}))}noMatchError(t){return new C(4002,Ua)}createUrlTree(t,n,r){const o=Vd(t);return new cr(o,n,r)}expandSegmentGroup(t,n,r,o){return 0===r.segments.length&&r.hasChildren()?this.expandChildren(t,n,r).pipe(G(i=>new U([],i))):this.expandSegment(t,r,n,r.segments,o,!0)}expandChildren(t,n,r){const o=[];for(const i of Object.keys(r.children))"primary"===i?o.unshift(i):o.push(i);return _e(o).pipe(lr(i=>{const s=r.children[i],a=yC(n,i);return this.expandSegmentGroup(t,a,s,i).pipe(G(u=>({segment:u,outlet:i})))}),LD((i,s)=>(i[s.outlet]=s.segment,i),{}),VD())}expandSegment(t,n,r,o,i,s){return _e(r).pipe(lr(a=>this.expandSegmentAgainstRoute(t,n,r,a,o,i,s).pipe(Vn(l=>{if(l instanceof Ha)return S(null);throw l}))),Ln(a=>!!a),Vn((a,u)=>{if(Jd(a))return wC(n,o,i)?S(new U([],{})):Fi(n);throw a}))}expandSegmentAgainstRoute(t,n,r,o,i,s,a){return CC(o,n,i,s)?void 0===o.redirectTo?this.matchSegmentAgainstRoute(t,n,o,i,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s):Fi(n):Fi(n)}expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,r,o,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o){const i=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?bC(i):this.lineralizeSegments(r,i).pipe(Fe(s=>{const a=new U(s,{});return this.expandSegment(t,a,n,s,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s){const{matched:a,consumedSegments:u,remainingSegments:l,positionalParamSegments:c}=ef(n,o,i);if(!a)return Fi(n);const d=this.applyRedirectCommands(u,o.redirectTo,c);return o.redirectTo.startsWith("/")?bC(d):this.lineralizeSegments(o,d).pipe(Fe(f=>this.expandSegment(t,n,r,f.concat(l),s,!1)))}matchSegmentAgainstRoute(t,n,r,o,i){return"**"===r.path?(t=mC(r,t),r.loadChildren?(r._loadedRoutes?S({routes:r._loadedRoutes,injector:r._loadedInjector}):this.configLoader.loadChildren(t,r)).pipe(G(a=>(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,new U(o,{})))):S(new U(o,{}))):DC(n,r,o,t).pipe(Xt(({matched:s,consumedSegments:a,remainingSegments:u})=>s?this.getChildConfig(t=r._injector??t,r,o).pipe(Fe(c=>{const d=c.injector??t,f=c.routes,{segmentGroup:h,slicedSegments:p}=Ba(n,a,u,f),g=new U(h.segments,h.children);if(0===p.length&&g.hasChildren())return this.expandChildren(d,f,g).pipe(G(y=>new U(a,y)));if(0===f.length&&0===p.length)return S(new U(a,{}));const m=Et(r)===i;return this.expandSegment(d,g,f,p,m?$:i,!0).pipe(G(w=>new U(a.concat(w.segments),w.children)))})):Fi(n)))}getChildConfig(t,n,r){return n.children?S({routes:n.children,injector:t}):n.loadChildren?void 0!==n._loadedRoutes?S({routes:n._loadedRoutes,injector:n._loadedInjector}):function fP(e,t,n,r){const o=t.canLoad;return void 0===o||0===o.length?S(!0):S(o.map(s=>{const a=uo(s,e);return jn(function JO(e){return e&&Ri(e.canLoad)}(a)?a.canLoad(t,n):e.runInContext(()=>a(t,n)))})).pipe(lo(),_C())}(t,n,r).pipe(Fe(o=>o?this.configLoader.loadChildren(t,n).pipe(Ue(i=>{n._loadedRoutes=i.routes,n._loadedInjector=i.injector})):function _P(e){return _i(fC(Ua,3))}())):S({routes:[],injector:t})}lineralizeSegments(t,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),0===o.numberOfChildren)return S(r);if(o.numberOfChildren>1||!o.children[$])return _i(new C(4e3,Ua));o=o.children[$]}}applyRedirectCommands(t,n,r){return this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r)}applyRedirectCreateUrlTree(t,n,r,o){const i=this.createSegmentGroup(t,n.root,r,o);return new cr(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){const r={};return Oe(t,(o,i)=>{if("string"==typeof o&&o.startsWith(":")){const a=o.substring(1);r[i]=n[a]}else r[i]=o}),r}createSegmentGroup(t,n,r,o){const i=this.createSegments(t,n.segments,r,o);let s={};return Oe(n.children,(a,u)=>{s[u]=this.createSegmentGroup(t,a,r,o)}),new U(i,s)}createSegments(t,n,r,o){return n.map(i=>i.path.startsWith(":")?this.findPosParam(t,i,o):this.findOrReturn(i,r))}findPosParam(t,n,r){const o=r[n.path.substring(1)];if(!o)throw new C(4001,Ua);return o}findOrReturn(t,n){let r=0;for(const o of n){if(o.path===t.path)return n.splice(r),o;r++}return t}}class EP{}class MP{constructor(t,n,r,o,i,s,a,u){this.injector=t,this.rootComponentType=n,this.config=r,this.urlTree=o,this.url=i,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=a,this.urlSerializer=u}recognize(){const t=Ba(this.urlTree.root,[],[],this.config.filter(n=>void 0===n.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,$).pipe(G(n=>{if(null===n)return null;const r=new ka([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},$,this.rootComponentType,null,this.urlTree.root,-1,{}),o=new Cn(r,n),i=new lC(this.url,o);return this.inheritParamsAndData(i._root),i}))}inheritParamsAndData(t){const n=t.value,r=uC(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(t,n,r,o){return 0===r.segments.length&&r.hasChildren()?this.processChildren(t,n,r):this.processSegment(t,n,r,r.segments,o)}processChildren(t,n,r){return _e(Object.keys(r.children)).pipe(lr(o=>{const i=r.children[o],s=yC(n,o);return this.processSegmentGroup(t,s,i,o)}),LD((o,i)=>o&&i?(o.push(...i),o):null),function WF(e,t=!1){return Ne((n,r)=>{let o=0;n.subscribe(Ie(r,i=>{const s=e(i,o++);(s||t)&&r.next(i),!s&&r.complete()}))})}(o=>null!==o),Aa(null),VD(),G(o=>{if(null===o)return null;const i=IC(o);return function SP(e){e.sort((t,n)=>t.value.outlet===$?-1:n.value.outlet===$?1:t.value.outlet.localeCompare(n.value.outlet))}(i),i}))}processSegment(t,n,r,o,i){return _e(n).pipe(lr(s=>this.processSegmentAgainstRoute(s._injector??t,s,r,o,i)),Ln(s=>!!s),Vn(s=>{if(Jd(s))return wC(r,o,i)?S([]):S(null);throw s}))}processSegmentAgainstRoute(t,n,r,o,i){if(n.redirectTo||!CC(n,r,o,i))return S(null);let s;if("**"===n.path){const a=o.length>0?$D(o).parameters:{},u=SC(r)+o.length;s=S({snapshot:new ka(o,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,TC(n),Et(n),n.component??n._loadedComponent??null,n,MC(r),u,xC(n),u),consumedSegments:[],remainingSegments:[]})}else s=DC(r,n,o,t).pipe(G(({matched:a,consumedSegments:u,remainingSegments:l,parameters:c})=>{if(!a)return null;const d=SC(r)+u.length;return{snapshot:new ka(u,c,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,TC(n),Et(n),n.component??n._loadedComponent??null,n,MC(r),d,xC(n),d),consumedSegments:u,remainingSegments:l}}));return s.pipe(Xt(a=>{if(null===a)return S(null);const{snapshot:u,consumedSegments:l,remainingSegments:c}=a;t=n._injector??t;const d=n._loadedInjector??t,f=function AP(e){return e.children?e.children:e.loadChildren?e._loadedRoutes:[]}(n),{segmentGroup:h,slicedSegments:p}=Ba(r,l,c,f.filter(m=>void 0===m.redirectTo),this.relativeLinkResolution);if(0===p.length&&h.hasChildren())return this.processChildren(d,f,h).pipe(G(m=>null===m?null:[new Cn(u,m)]));if(0===f.length&&0===p.length)return S([new Cn(u,[])]);const g=Et(n)===i;return this.processSegment(d,f,h,p,g?$:i).pipe(G(m=>null===m?null:[new Cn(u,m)]))}))}}function TP(e){const t=e.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function IC(e){const t=[],n=new Set;for(const r of e){if(!TP(r)){t.push(r);continue}const o=t.find(i=>r.value.routeConfig===i.value.routeConfig);void 0!==o?(o.children.push(...r.children),n.add(o)):t.push(r)}for(const r of n){const o=IC(r.children);t.push(new Cn(r.value,o))}return t.filter(r=>!n.has(r))}function MC(e){let t=e;for(;t._sourceSegment;)t=t._sourceSegment;return t}function SC(e){let t=e,n=t._segmentIndexShift??0;for(;t._sourceSegment;)t=t._sourceSegment,n+=t._segmentIndexShift??0;return n-1}function TC(e){return e.data||{}}function xC(e){return e.resolve||{}}function NC(e){return"string"==typeof e.title||null===e.title}function tf(e){return Xt(t=>{const n=e(t);return n?_e(n).pipe(G(()=>t)):S(t)})}let RC=(()=>{class e{buildTitle(n){let r,o=n.root;for(;void 0!==o;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===$);return r}getResolvedTitleForRoute(n){return n.data[Ci]}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=L({token:e,factory:function(){return pe(FC)},providedIn:"root"}),e})(),FC=(()=>{class e extends RC{constructor(n){super(),this.title=n}updateTitle(n){const r=this.buildTitle(n);void 0!==r&&this.title.setTitle(r)}}return e.\u0275fac=function(n){return new(n||e)(A(w_))},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class LP{}class jP extends class VP{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}}{}const za=new M("",{providedIn:"root",factory:()=>({})}),nf=new M("ROUTES");let rf=(()=>{class e{constructor(n,r){this.injector=n,this.compiler=r,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return S(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);const r=jn(n.loadComponent()).pipe(Ue(i=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=i}),Od(()=>{this.componentLoaders.delete(n)})),o=new PD(r,()=>new $t).pipe(Rd());return this.componentLoaders.set(n,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return S({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const i=this.loadModuleFactoryOrRoutes(r.loadChildren).pipe(G(a=>{this.onLoadEndListener&&this.onLoadEndListener(r);let u,l,c=!1;Array.isArray(a)?l=a:(u=a.create(n).injector,l=BD(u.get(nf,[],x.Self|x.Optional)));return{routes:l.map(Yd),injector:u}}),Od(()=>{this.childrenLoaders.delete(r)})),s=new PD(i,()=>new $t).pipe(Rd());return this.childrenLoaders.set(r,s),s}loadModuleFactoryOrRoutes(n){return jn(n()).pipe(Fe(r=>r instanceof py||Array.isArray(r)?S(r):_e(this.compiler.compileModuleAsync(r))))}}return e.\u0275fac=function(n){return new(n||e)(A(_t),A(Sc))},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class $P{}class UP{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,n){return t}}function HP(e){throw e}function GP(e,t,n){return t.parse("/")}const zP={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},WP={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function PC(){const e=pe(qD),t=pe(Ai),n=pe(ui),r=pe(_t),o=pe(Sc),i=pe(nf,{optional:!0})??[],s=pe(za,{optional:!0})??{},a=pe(FC),u=pe(RC,{optional:!0}),l=pe($P,{optional:!0}),c=pe(LP,{optional:!0}),d=new Pe(null,e,t,n,r,o,BD(i));return l&&(d.urlHandlingStrategy=l),c&&(d.routeReuseStrategy=c),d.titleStrategy=u??a,function qP(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy),e.canceledNavigationResolution&&(t.canceledNavigationResolution=e.canceledNavigationResolution)}(s,d),d}let Pe=(()=>{class e{constructor(n,r,o,i,s,a,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.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new $t,this.errorHandler=HP,this.malformedUriErrorHandler=GP,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>S(void 0),this.urlHandlingStrategy=new UP,this.routeReuseStrategy=new jP,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=s.get(rf),this.configLoader.onLoadEndListener=f=>this.triggerEvent(new AO(f)),this.configLoader.onLoadStartListener=f=>this.triggerEvent(new SO(f)),this.ngModule=s.get(or),this.console=s.get(vT);const d=s.get(Te);this.isNgZoneEnabled=d instanceof Te&&Te.isInAngularZone(),this.resetConfig(u),this.currentUrlTree=function YF(){return new cr(new U([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=aC(this.currentUrlTree,this.rootComponentType),this.transitions=new Bt({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(){return this.location.getState()?.\u0275routerPageId}setupNavigations(n){const r=this.events;return n.pipe(kn(o=>0!==o.id),G(o=>({...o,extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),Xt(o=>{let i=!1,s=!1;return S(o).pipe(Ue(a=>{this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),Xt(a=>{const u=this.browserUrlTree.toString(),l=!this.navigated||a.extractedUrl.toString()!==u||u!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||l)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return kC(a.source)&&(this.browserUrlTree=a.extractedUrl),S(a).pipe(Xt(d=>{const f=this.transitions.getValue();return r.next(new Ud(d.id,this.serializeUrl(d.extractedUrl),d.source,d.restoredState)),f!==this.transitions.getValue()?nn:Promise.resolve(d)}),function wP(e,t,n,r){return Xt(o=>function DP(e,t,n,r,o){return new CP(e,t,n,r,o).apply()}(e,t,n,o.extractedUrl,r).pipe(G(i=>({...o,urlAfterRedirects:i}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Ue(d=>{this.currentNavigation={...this.currentNavigation,finalUrl:d.urlAfterRedirects},o.urlAfterRedirects=d.urlAfterRedirects}),function NP(e,t,n,r,o,i){return Fe(s=>function IP(e,t,n,r,o,i,s="emptyOnly",a="legacy"){return new MP(e,t,n,r,o,s,a,i).recognize().pipe(Xt(u=>null===u?function bP(e){return new ve(t=>t.error(e))}(new EP):S(u)))}(e,t,n,s.urlAfterRedirects,r.serialize(s.urlAfterRedirects),r,o,i).pipe(G(a=>({...s,targetSnapshot:a}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),Ue(d=>{if(o.targetSnapshot=d.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!d.extras.skipLocationChange){const h=this.urlHandlingStrategy.merge(d.urlAfterRedirects,d.rawUrl);this.setBrowserUrl(h,d)}this.browserUrlTree=d.urlAfterRedirects}const f=new wO(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);r.next(f)}));if(l&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:f,extractedUrl:h,source:p,restoredState:g,extras:m}=a,D=new Ud(f,this.serializeUrl(h),p,g);r.next(D);const w=aC(h,this.rootComponentType).snapshot;return S(o={...a,targetSnapshot:w,urlAfterRedirects:h,extras:{...m,skipLocationChange:!1,replaceUrl:!1}})}return this.rawUrlTree=a.rawUrl,a.resolve(null),nn}),Ue(a=>{const u=new EO(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(u)}),G(a=>o={...a,guards:qO(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),function oP(e,t){return Fe(n=>{const{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return 0===s.length&&0===i.length?S({...n,guardsResult:!0}):function iP(e,t,n,r){return _e(e).pipe(Fe(o=>function dP(e,t,n,r,o){const i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return i&&0!==i.length?S(i.map(a=>{const u=Ti(t)??o,l=uo(a,u);return jn(function tP(e){return e&&Ri(e.canDeactivate)}(l)?l.canDeactivate(e,t,n,r):u.runInContext(()=>l(e,t,n,r))).pipe(Ln())})).pipe(lo()):S(!0)}(o.component,o.route,n,t,r)),Ln(o=>!0!==o,!0))}(s,r,o,e).pipe(Fe(a=>a&&function YO(e){return"boolean"==typeof e}(a)?function sP(e,t,n,r){return _e(t).pipe(lr(o=>Nd(function uP(e,t){return null!==e&&t&&t(new TO(e)),S(!0)}(o.route.parent,r),function aP(e,t){return null!==e&&t&&t(new NO(e)),S(!0)}(o.route,r),function cP(e,t,n){const r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(s=>function ZO(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(s)).filter(s=>null!==s).map(s=>OD(()=>S(s.guards.map(u=>{const l=Ti(s.node)??n,c=uo(u,l);return jn(function eP(e){return e&&Ri(e.canActivateChild)}(c)?c.canActivateChild(r,e):l.runInContext(()=>c(r,e))).pipe(Ln())})).pipe(lo())));return S(i).pipe(lo())}(e,o.path,n),function lP(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||0===r.length)return S(!0);const o=r.map(i=>OD(()=>{const s=Ti(t)??n,a=uo(i,s);return jn(function XO(e){return e&&Ri(e.canActivate)}(a)?a.canActivate(t,e):s.runInContext(()=>a(t,e))).pipe(Ln())}));return S(o).pipe(lo())}(e,o.route,n))),Ln(o=>!0!==o,!0))}(r,i,e,t):S(a)),G(a=>({...n,guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),Ue(a=>{if(o.guardsResult=a.guardsResult,fr(a.guardsResult))throw dC(0,a.guardsResult);const u=new bO(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(u)}),kn(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,"",3),!1)),tf(a=>{if(a.guards.canActivateChecks.length)return S(a).pipe(Ue(u=>{const l=new IO(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);this.triggerEvent(l)}),Xt(u=>{let l=!1;return S(u).pipe(function RP(e,t){return Fe(n=>{const{targetSnapshot:r,guards:{canActivateChecks:o}}=n;if(!o.length)return S(n);let i=0;return _e(o).pipe(lr(s=>function FP(e,t,n,r){const o=e.routeConfig,i=e._resolve;return void 0!==o?.title&&!NC(o)&&(i[Ci]=o.title),function OP(e,t,n,r){const o=function PP(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===o.length)return S({});const i={};return _e(o).pipe(Fe(s=>function kP(e,t,n,r){const o=Ti(t)??r,i=uo(e,o);return jn(i.resolve?i.resolve(t,n):o.runInContext(()=>i(t,n)))}(e[s],t,n,r).pipe(Ln(),Ue(a=>{i[s]=a}))),Fd(1),function qF(e){return G(()=>e)}(i),Vn(s=>Jd(s)?nn:_i(s)))}(i,e,t,r).pipe(G(s=>(e._resolvedData=s,e.data=uC(e,n).resolve,o&&NC(o)&&(e.data[Ci]=o.title),null)))}(s.route,r,e,t)),Ue(()=>i++),Fd(1),Fe(s=>i===o.length?S(n):nn))})}(this.paramsInheritanceStrategy,this.ngModule.injector),Ue({next:()=>l=!0,complete:()=>{l||(this.restoreHistory(u),this.cancelNavigationTransition(u,"",2))}}))}),Ue(u=>{const l=new MO(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);this.triggerEvent(l)}))}),tf(a=>{const u=l=>{const c=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&c.push(this.configLoader.loadComponent(l.routeConfig).pipe(Ue(d=>{l.component=d}),G(()=>{})));for(const d of l.children)c.push(...u(d));return c};return RD(u(a.targetSnapshot.root)).pipe(Aa(),Di(1))}),tf(()=>this.afterPreactivation()),G(a=>{const u=function kO(e,t,n){const r=Si(e,t._root,n?n._root:void 0);return new sC(r,t)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return o={...a,targetRouterState:u}}),Ue(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)}),((e,t,n)=>G(r=>(new WO(t,r.targetRouterState,r.currentRouterState,n).activate(e),r)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),Ue({next(){i=!0},complete(){i=!0}}),Od(()=>{i||s||this.cancelNavigationTransition(o,"",1),this.currentNavigation?.id===o.id&&(this.currentNavigation=null)}),Vn(a=>{if(s=!0,pC(a)){hC(a)||(this.navigated=!0,this.restoreHistory(o,!0));const u=new Pa(o.id,this.serializeUrl(o.extractedUrl),a.message,a.cancellationCode);if(r.next(u),hC(a)){const l=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),c={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||kC(o.source)};this.scheduleNavigation(l,"imperative",null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}else o.resolve(!1)}else{this.restoreHistory(o,!0);const u=new rC(o.id,this.serializeUrl(o.extractedUrl),a,o.targetSnapshot??void 0);r.next(u);try{o.resolve(this.errorHandler(a))}catch(l){o.reject(l)}}return nn}))}))}resetRootComponentType(n){this.rootComponentType=n,this.routerState.root.component=this.rootComponentType}setTransition(n){this.transitions.next({...this.transitions.value,...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="popstate"===n.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{const o={replaceUrl:!0},i=n.state?.navigationId?n.state:null;if(i){const a={...i};delete a.navigationId,delete a.\u0275routerPageId,0!==Object.keys(a).length&&(o.state=a)}const s=this.parseUrl(n.url);this.scheduleNavigation(s,r,i,o)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(n){this.events.next(n)}resetConfig(n){this.config=n.map(Yd),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:u}=r,l=o||this.routerState.root,c=u?this.currentUrlTree.fragment:s;let d=null;switch(a){case"merge":d={...this.currentUrlTree.queryParams,...i};break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=i||null}return null!==d&&(d=this.removeEmptyProps(d)),mO(l,this.currentUrlTree,n,d,c??null)}navigateByUrl(n,r={skipLocationChange:!1}){const o=fr(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 ZP(e){for(let t=0;t<e.length;t++){if(null==e[t])throw new C(4008,false)}}(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?{...zP}:!1===r?{...WP}:r,fr(n))return HD(this.currentUrlTree,n,o);const i=this.parseUrl(n);return HD(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 hr(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),n.resolve(!0)},n=>{this.console.warn(`Unhandled Navigation Error: ${n}`)})}scheduleNavigation(n,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let a,u,l;s?(a=s.resolve,u=s.reject,l=s.promise):l=new Promise((f,h)=>{a=f,u=h});const c=++this.navigationId;let d;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(o=this.location.getState()),d=o&&o.\u0275routerPageId?o.\u0275routerPageId:i.replaceUrl||i.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):d=0,this.setTransition({id:c,targetPageId:d,source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:n,extras:i,resolve:a,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(f=>Promise.reject(f))}setBrowserUrl(n,r){const o=this.urlSerializer.serialize(n),i={...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){if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-n.targetPageId;"popstate"!==n.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===o?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===o&&(this.resetState(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(o)}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,o){const i=new Pa(n.id,this.serializeUrl(n.extractedUrl),r,o);this.triggerEvent(i),n.resolve(!1)}generateNgRouterState(n,r){return"computed"===this.canceledNavigationResolution?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}}return e.\u0275fac=function(n){Al()},e.\u0275prov=L({token:e,factory:function(){return PC()},providedIn:"root"}),e})();function kC(e){return"imperative"!==e}let qa=(()=>{class e{constructor(n,r,o){this.router=n,this.route=r,this.locationStrategy=o,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.href=null,this.onChanges=new $t,this.subscription=n.events.subscribe(i=>{i instanceof hr&&this.updateTargetUrlAndHref()})}set preserveFragment(n){this._preserveFragment=yn(n)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(n){this._skipLocationChange=yn(n)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(n){this._replaceUrl=yn(n)}get replaceUrl(){return this._replaceUrl}set routerLink(n){this.commands=null!=n?Array.isArray(n)?n:[n]:null}ngOnChanges(n){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(n,r,o,i,s){return!!(0!==n||r||o||i||s||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!1)}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return e.\u0275fac=function(n){return new(n||e)(_(Pe),_(pr),_(sr))},e.\u0275dir=F({type:e,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(n,r){1&n&&ge("click",function(i){return r.onClick(i.button,i.ctrlKey,i.shiftKey,i.altKey,i.metaKey)}),2&n&&Rt("target",r.target)("href",r.href,hl)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[yt]}),e})();class LC{}let YP=(()=>{class e{constructor(n,r,o,i,s){this.router=n,this.injector=o,this.preloadingStrategy=i,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(kn(n=>n instanceof hr),lr(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){const o=[];for(const i of r){i.providers&&!i._injector&&(i._injector=Vs(i.providers,n,`Route: ${i.path}`));const s=i._injector??n,a=i._loadedInjector??s;i.loadChildren&&!i._loadedRoutes&&void 0===i.canLoad||i.loadComponent&&!i._loadedComponent?o.push(this.preloadConfig(s,i)):(i.children||i._loadedRoutes)&&o.push(this.processRoutes(a,i.children??i._loadedRoutes))}return _e(o).pipe(mr())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let o;o=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(n,r):S(null);const i=o.pipe(Fe(s=>null===s?S(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??n,s.routes))));return r.loadComponent&&!r._loadedComponent?_e([i,this.loader.loadComponent(r)]).pipe(mr()):i})}}return e.\u0275fac=function(n){return new(n||e)(A(Pe),A(Sc),A(An),A(LC),A(rf))},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const af=new M("");let VC=(()=>{class e{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 Ud?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof hr&&(this.lastId=n.id,this.scheduleScrollEvent(n,this.router.parseUrl(n.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(n=>{n instanceof oC&&(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 oC(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return e.\u0275fac=function(n){Al()},e.\u0275prov=L({token:e,factory:e.\u0275fac}),e})();function co(e,t){return{\u0275kind:e,\u0275providers:t}}function uf(e){return[{provide:nf,multi:!0,useValue:e}]}function BC(){const e=pe(_t);return t=>{const n=e.get(qs);if(t!==n.components[0])return;const r=e.get(Pe),o=e.get($C);1===e.get(lf)&&r.initialNavigation(),e.get(UC,null,x.Optional)?.setUpPreloading(),e.get(af,null,x.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.unsubscribe())}}const $C=new M("",{factory:()=>new $t}),lf=new M("",{providedIn:"root",factory:()=>1});const UC=new M("");function t1(e){return co(0,[{provide:UC,useExisting:YP},{provide:LC,useExisting:e}])}const HC=new M("ROUTER_FORROOT_GUARD"),n1=[ui,{provide:qD,useClass:kd},{provide:Pe,useFactory:PC},Ai,{provide:pr,useFactory:function jC(e){return e.routerState.root},deps:[Pe]},rf];function r1(){return new fv("Router",Pe)}let GC=(()=>{class e{constructor(n){}static forRoot(n,r){return{ngModule:e,providers:[n1,[],uf(n),{provide:HC,useFactory:a1,deps:[[Pe,new Fo,new Oo]]},{provide:za,useValue:r||{}},r?.useHash?{provide:sr,useClass:ix}:{provide:sr,useClass:Lv},{provide:af,useFactory:()=>{const e=pe(Pe),t=pe(IN),n=pe(za);return n.scrollOffset&&t.setOffset(n.scrollOffset),new VC(e,t,n)}},r?.preloadingStrategy?t1(r.preloadingStrategy).\u0275providers:[],{provide:fv,multi:!0,useFactory:r1},r?.initialNavigation?u1(r):[],[{provide:zC,useFactory:BC},{provide:iv,multi:!0,useExisting:zC}]]}}static forChild(n){return{ngModule:e,providers:[uf(n)]}}}return e.\u0275fac=function(n){return new(n||e)(A(HC,8))},e.\u0275mod=Ht({type:e}),e.\u0275inj=It({imports:[Qd]}),e})();function a1(e){return"guarded"}function u1(e){return["disabled"===e.initialNavigation?co(3,[{provide:Gs,multi:!0,useFactory:()=>{const t=pe(Pe);return()=>{t.setUpLocationChangeListener()}}},{provide:lf,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?co(2,[{provide:lf,useValue:0},{provide:Gs,multi:!0,deps:[_t],useFactory:t=>{const n=t.get(rx,Promise.resolve());let r=!1;return()=>n.then(()=>new Promise(i=>{const s=t.get(Pe),a=t.get($C);(function o(i){t.get(Pe).events.pipe(kn(a=>a instanceof hr||a instanceof Pa||a instanceof rC),G(a=>a instanceof hr||a instanceof Pa&&(0===a.code||1===a.code)&&null),kn(a=>null!==a),Di(1)).subscribe(()=>{i()})})(()=>{i(!0),r=!0}),s.afterPreactivation=()=>(i(!0),r||a.closed?S(void 0):a),s.initialNavigation()}))}}]).\u0275providers:[]]}const zC=new M("");function c1(){let e="";for(let t=0;t<32;t++){const n=16*Math.random()|0;(8===t||12===t||16===t||20===t)&&(e+="-"),e+=(12===t?4:16===t?3&n|8:n).toString(16)}return e}let cf=(()=>{class e{constructor(){this.todos=[]}addItem(n){const r={id:c1(),title:n,completed:!1};this.todos.push(r)}removeItem(n){const r=this.todos.indexOf(n);this.todos.splice(r,1)}clearCompleted(){this.todos=this.todos.filter(n=>!n.completed)}toggleAll(n){this.todos=this.todos.map(r=>({...r,completed:n}))}getItems(n="all"){switch(n){case"active":return this.todos.filter(r=>!r.completed);case"completed":return this.todos.filter(r=>r.completed)}return this.todos}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),d1=(()=>{class e{constructor(n){this.todosService=n,this.titleFormControl=new Ia("")}addTodo(){const n=this.titleFormControl.getRawValue()?.trim();!n||(this.todosService.addItem(n),this.titleFormControl.setValue(""))}}return e.\u0275fac=function(n){return new(n||e)(_(cf))},e.\u0275cmp=En({type:e,selectors:[["app-todo-header"]],decls:4,vars:1,consts:[[1,"header"],["placeholder","What needs to be done?","autofocus","",1,"new-todo",3,"formControl","keyup.enter"]],template:function(n,r){1&n&&(we(0,"header",0)(1,"h1"),Pt(2,"todos"),le(),we(3,"input",1),ge("keyup.enter",function(){return r.addTodo()}),le()()),2&n&&(et(3),ht("formControl",r.titleFormControl))},dependencies:[pi,hd,Ma],encapsulation:2}),e})();const f1=["todoInputRef"];function h1(e,t){if(1&e){const n=Qo();we(0,"div",6)(1,"input",7,8),ge("focus",function(o){return Qn(n),Kn(Zt().handleFocus(o))})("blur",function(o){return Qn(n),Kn(Zt().handleBlur(o))})("keyup.enter",function(){return Qn(n),Kn(Zt().updateTodo())}),le(),we(3,"label",9),Pt(4," Edit Todo Input "),le()()}if(2&e){const n=Zt();et(1),ht("formControl",n.titleFormControl)}}const p1=function(e,t){return{completed:e,editing:t}};let g1=(()=>{class e{constructor(){this.todo={id:"",title:"",completed:!1},this.index=0,this.deleteEvent=new ce,this.titleFormControl=new Ia(""),this.isEditing=!1}toggleTodo(){this.todo.completed=!this.todo.completed}removeTodo(){this.deleteEvent.emit(this.todo)}startEdit(){this.isEditing=!0}handleBlur(n){this.isEditing=!1}handleFocus(n){this.titleFormControl.setValue(this.todo.title)}updateTodo(){const n=this.titleFormControl.getRawValue()?.trimEnd();n?this.todo.title=n:this.deleteEvent.emit(this.todo),this.isEditing=!1}ngAfterViewChecked(){this.isEditing&&this.inputRef?.nativeElement.focus()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=En({type:e,selectors:[["app-todo-item"]],viewQuery:function(n,r){if(1&n&&Oy(f1,5),2&n){let o;Bs(o=function $s(){return function KA(e,t){return e[19].queries[t].queryList}(v(),fh())}())&&(r.inputRef=o.first)}},inputs:{todo:"todo",index:"index"},outputs:{deleteEvent:"deleteEvent"},decls:7,vars:8,consts:[[3,"ngClass"],[1,"view"],["type","checkbox",1,"toggle",3,"checked","click"],[3,"dblclick"],[1,"destroy",3,"click"],["class","input-container",4,"ngIf"],[1,"input-container"],["id","edit-todo-input",1,"edit",3,"formControl","focus","blur","keyup.enter"],["todoInputRef",""],["htmlFor","edit-todo-input",1,"visually-hidden"]],template:function(n,r){1&n&&(we(0,"li",0)(1,"div",1)(2,"input",2),ge("click",function(){return r.toggleTodo()}),le(),we(3,"label",3),ge("dblclick",function(){return r.startEdit()}),Pt(4),le(),we(5,"button",4),ge("click",function(){return r.removeTodo()}),le()(),Yr(6,h1,5,1,"div",5),le()),2&n&&(ht("ngClass",Ey(5,p1,r.todo.completed,r.isEditing)),Rt("data-priority",4-r.index%5),et(2),ht("checked",r.todo.completed),et(2),Rs(r.todo.title),et(2),ht("ngIf",r.isEditing))},dependencies:[qv,la,pi,hd,Ma],encapsulation:2,changeDetection:0}),e})();function m1(e,t){if(1&e){const n=Qo();we(0,"app-todo-item",7),ge("deleteEvent",function(o){return Qn(n),Kn(Zt(2).removeTodo(o))}),le()}if(2&e){const r=t.index;ht("todo",t.$implicit)("index",r)}}function y1(e,t){if(1&e){const n=Qo();we(0,"main",1)(1,"div",2)(2,"input",3),ge("change",function(o){return Qn(n),Kn(Zt().toggleAll(o))}),le(),we(3,"label",4),Pt(4," Toggle All Input "),le()(),we(5,"ul",5),Yr(6,m1,1,2,"app-todo-item",6),le()()}if(2&e){const n=Zt();et(2),ht("checked",!n.activeTodos.length),et(4),ht("ngForOf",n.todos)("ngForTrackBy",n.trackByItem)}}let v1=(()=>{class e{constructor(n,r){this.todosService=n,this.location=r}get todos(){const n=this.location.path().split("/")[1]||"all";return this.todosService.getItems(n)}get activeTodos(){return this.todosService.getItems("active")}removeTodo(n){this.todosService.removeItem(n)}toggleAll(n){this.todosService.toggleAll(n.target.checked)}trackByItem(n,r){return r.id}}return e.\u0275fac=function(n){return new(n||e)(_(cf),_(ui))},e.\u0275cmp=En({type:e,selectors:[["app-todo-list"]],decls:1,vars:1,consts:[["class","main",4,"ngIf"],[1,"main"],[1,"toggle-all-container"],["type","checkbox",1,"toggle-all",3,"checked","change"],["htmlFor","toggle-all",1,"toggle-all-label"],[1,"todo-list","show-priority"],[3,"todo","index","deleteEvent",4,"ngFor","ngForOf","ngForTrackBy"],[3,"todo","index","deleteEvent"]],template:function(n,r){1&n&&Yr(0,y1,7,3,"main",0),2&n&&ht("ngIf",r.todos.length>0)},dependencies:[Kv,la,g1],encapsulation:2}),e})();function _1(e,t){if(1&e){const n=Qo();we(0,"button",8),ge("click",function(){return Qn(n),Kn(Zt(2).clearCompleted())}),Pt(1,"Clear Completed"),le()}}function D1(e,t){if(1&e&&(we(0,"footer",1)(1,"span",2)(2,"strong"),Pt(3),le(),Pt(4),le(),we(5,"ul",3)(6,"li")(7,"a",4),Pt(8," All "),le()(),we(9,"li")(10,"a",5),Pt(11," Active "),le()(),we(12,"li")(13,"a",6),Pt(14," Completed "),le()()(),Yr(15,_1,2,0,"button",7),le()),2&e){const n=Zt();et(3),Rs(n.activeTodos.length),et(1),Fs(" ",1==n.activeTodos.length?"item":"items"," left"),et(3),nr("selected","all"===n.filter),et(3),nr("selected","active"===n.filter),et(3),nr("selected","completed"===n.filter),et(2),ht("ngIf",n.completedTodos.length)}}let C1=(()=>{class e{constructor(n,r){this.todosService=n,this.location=r}get todos(){return this.todosService.getItems()}get activeTodos(){return this.todosService.getItems("active")}get completedTodos(){return this.todosService.getItems("completed")}get filter(){return this.location.path().split("/")[1]||"all"}clearCompleted(){this.todosService.clearCompleted()}}return e.\u0275fac=function(n){return new(n||e)(_(cf),_(ui))},e.\u0275cmp=En({type:e,selectors:[["app-todo-footer"]],decls:1,vars:1,consts:[["class","footer",4,"ngIf"],[1,"footer"],[1,"todo-count"],[1,"filters"],["routerLink","/"],["routerLink","/active"],["routerLink","/completed"],["type","button","class","clear-completed",3,"click",4,"ngIf"],["type","button",1,"clear-completed",3,"click"]],template:function(n,r){1&n&&Yr(0,D1,16,9,"footer",0),2&n&&ht("ngIf",r.todos.length>0)},dependencies:[la,qa],encapsulation:2}),e})(),Ka=(()=>{class e{constructor(){this.title="angular"}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=En({type:e,selectors:[["app-root"]],decls:4,vars:0,consts:[[1,"todoapp"]],template:function(n,r){1&n&&(we(0,"section",0),xs(1,"app-todo-header")(2,"app-todo-list")(3,"app-todo-footer"),le())},dependencies:[d1,v1,C1],encapsulation:2}),e})();const w1=[{path:"all",component:Ka},{path:"active",component:Ka},{path:"completed",component:Ka},{path:"",redirectTo:"/all",pathMatch:"full"}];let E1=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Ht({type:e}),e.\u0275inj=It({imports:[GC.forRoot(w1,{useHash:!0}),GC]}),e})(),b1=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Ht({type:e,bootstrap:[Ka]}),e.\u0275inj=It({imports:[ER,E1,jF]}),e})();wR().bootstrapModule(b1).catch(e=>console.error(e))}},ee=>{ee(ee.s=243)}]);
//# sourceMappingURL=main.db97198c6e808d8a.js.map