diff --git a/404.html b/404.html index a722a6d..7d81ecb 100644 --- a/404.html +++ b/404.html @@ -7,6 +7,6 @@ - + \ No newline at end of file diff --git a/assets/fonts/pragmaticac-bold.otf b/assets/fonts/pragmaticac-bold.otf new file mode 100644 index 0000000..dd738d2 Binary files /dev/null and b/assets/fonts/pragmaticac-bold.otf differ diff --git a/assets/fonts/pragmaticac.otf b/assets/fonts/pragmaticac.otf new file mode 100644 index 0000000..7a18689 Binary files /dev/null and b/assets/fonts/pragmaticac.otf differ diff --git a/assets/imgs/doublearrow (2).png b/assets/imgs/doublearrow (2).png new file mode 100644 index 0000000..9c8d9b8 Binary files /dev/null and b/assets/imgs/doublearrow (2).png differ diff --git a/assets/imgs/doublearrow.svg b/assets/imgs/doublearrow.svg new file mode 100644 index 0000000..6ecedea --- /dev/null +++ b/assets/imgs/doublearrow.svg @@ -0,0 +1,19 @@ + + + + + arrow_up [#344] + Created with Sketch. + + + + + + + + + + + + + \ No newline at end of file diff --git a/assets/imgs/doublearrowgray.svg b/assets/imgs/doublearrowgray.svg new file mode 100644 index 0000000..8909362 --- /dev/null +++ b/assets/imgs/doublearrowgray.svg @@ -0,0 +1,7 @@ + + + + + + arrow_up [#344] Created with Sketch. + \ No newline at end of file diff --git a/assets/mixins/mixin.scss b/assets/mixins/mixin.scss new file mode 100644 index 0000000..27b7760 --- /dev/null +++ b/assets/mixins/mixin.scss @@ -0,0 +1,5 @@ +@mixin for-phone { + @media (max-width: 767px) { + @content; + } +} diff --git a/index.html b/index.html index a722a6d..7d81ecb 100644 --- a/index.html +++ b/index.html @@ -7,6 +7,6 @@ - + \ No newline at end of file diff --git a/main.5426969f508c4258.js b/main.5426969f508c4258.js new file mode 100644 index 0000000..1123a87 --- /dev/null +++ b/main.5426969f508c4258.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkangular_exchange=self.webpackChunkangular_exchange||[]).push([[179],{988:()=>{function oe(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 Ri=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 gt{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(oe(r))try{r()}catch(i){t=i instanceof Ri?i.errors:[i]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const i of o)try{df(i)}catch(s){t=t??[],s instanceof Ri?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Ri(t)}}add(t){var n;if(t&&t!==this)if(this.closed)df(t);else{if(t instanceof gt){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 gt&&t._removeParent(this)}}gt.EMPTY=(()=>{const e=new gt;return e.closed=!0,e})();const lf=gt.EMPTY;function cf(e){return e instanceof gt||e&&"closed"in e&&oe(e.remove)&&oe(e.add)&&oe(e.unsubscribe)}function df(e){oe(e)?e():e.unsubscribe()}const Hn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Ni={setTimeout(e,t,...n){const{delegate:r}=Ni;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=Ni;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function ff(e){Ni.setTimeout(()=>{const{onUnhandledError:t}=Hn;if(!t)throw e;t(e)})}function hf(){}const XC=Ka("C",void 0,void 0);function Ka(e,t,n){return{kind:e,value:t,error:n}}let zn=null;function Oi(e){if(Hn.useDeprecatedSynchronousErrorHandling){const t=!zn;if(t&&(zn={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=zn;if(zn=null,n)throw r}}else e()}class Za extends gt{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,cf(t)&&t.add(this)):this.destination=iw}static create(t,n,r){return new po(t,n,r)}next(t){this.isStopped?Qa(function ew(e){return Ka("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?Qa(function JC(e){return Ka("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Qa(XC,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 nw=Function.prototype.bind;function Ya(e,t){return nw.call(e,t)}class rw{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Fi(r)}}error(t){const{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Fi(r)}else Fi(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Fi(n)}}}class po extends Za{constructor(t,n,r){let o;if(super(),oe(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Hn.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Ya(t.next,i),error:t.error&&Ya(t.error,i),complete:t.complete&&Ya(t.complete,i)}):o=t}this.destination=new rw(o)}}function Fi(e){Hn.useDeprecatedSynchronousErrorHandling?function tw(e){Hn.useDeprecatedSynchronousErrorHandling&&zn&&(zn.errorThrown=!0,zn.error=e)}(e):ff(e)}function Qa(e,t){const{onStoppedNotification:n}=Hn;n&&Ni.setTimeout(()=>n(e,t))}const iw={closed:!0,next:hf,error:function ow(e){throw e},complete:hf},Xa="function"==typeof Symbol&&Symbol.observable||"@@observable";function Gn(e){return e}function pf(e){return 0===e.length?Gn:1===e.length?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}let ye=(()=>{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 uw(e){return e&&e instanceof Za||function aw(e){return e&&oe(e.next)&&oe(e.error)&&oe(e.complete)}(e)&&cf(e)}(n)?n:new po(n,r,o);return Oi(()=>{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=gf(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)}[Xa](){return this}pipe(...n){return pf(n)(this)}toPromise(n){return new(n=gf(n))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function gf(e){var t;return null!==(t=e??Hn.Promise)&&void 0!==t?t:Promise}const lw=fo(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let nn=(()=>{class e extends ye{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new mf(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new lw}next(n){Oi(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){Oi(()=>{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(){Oi(()=>{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?lf:(this.currentObservers=null,i.push(n),new gt(()=>{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 ye;return n.source=this,n}}return e.create=(t,n)=>new mf(t,n),e})();class mf extends nn{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:lf}}function yf(e){return oe(e?.lift)}function Oe(e){return t=>{if(yf(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 Te(e,t,n,r,o){return new cw(e,t,n,r,o)}class cw extends Za{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 H(e,t){return Oe((n,r)=>{let o=0;n.subscribe(Te(r,i=>{r.next(e.call(t,i,o++))}))})}function Mn(e){return this instanceof Mn?(this.v=e,this):new Mn(e)}function Cf(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 nu(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)})}}}"function"==typeof SuppressedError&&SuppressedError;const wf=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function Ef(e){return oe(e?.then)}function bf(e){return oe(e[Xa])}function Sf(e){return Symbol.asyncIterator&&oe(e?.[Symbol.asyncIterator])}function Mf(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 If=function Nw(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Af(e){return oe(e?.[If])}function Tf(e){return function _f(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 Mn?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])}}(this,arguments,function*(){const n=e.getReader();try{for(;;){const{value:r,done:o}=yield Mn(n.read());if(o)return yield Mn(void 0);yield yield Mn(r)}}finally{n.releaseLock()}})}function xf(e){return oe(e?.getReader)}function mt(e){if(e instanceof ye)return e;if(null!=e){if(bf(e))return function Ow(e){return new ye(t=>{const n=e[Xa]();if(oe(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(wf(e))return function Fw(e){return new ye(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,ff)})}(e);if(Sf(e))return Rf(e);if(Af(e))return function kw(e){return new ye(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if(xf(e))return function Lw(e){return Rf(Tf(e))}(e)}throw Mf(e)}function Rf(e){return new ye(t=>{(function Vw(e,t){var n,r,o,i;return function vf(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=Cf(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 rn(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 oe(t)?Fe((r,o)=>H((i,s)=>t(r,i,o,s))(mt(e(r,o))),n):("number"==typeof t&&(n=t),Oe((r,o)=>function jw(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{i&&t.next(g),l++;let m=!1;mt(n(g,c++)).subscribe(Te(t,v=>{o?.(v),i?h(v):t.next(v)},()=>{m=!0},void 0,()=>{if(m)try{for(l--;u.length&&lp(v)):p(v)}f()}catch(v){t.error(v)}}))};return e.subscribe(Te(t,h,()=>{d=!0,f()})),()=>{a?.()}}(r,o,e,n)))}function lr(e=1/0){return Fe(Gn,e)}const jt=new ye(e=>e.complete());function ru(e){return e[e.length-1]}function Nf(e){return oe(ru(e))?e.pop():void 0}function go(e){return function $w(e){return e&&oe(e.schedule)}(ru(e))?e.pop():void 0}function Of(e,t=0){return Oe((n,r)=>{n.subscribe(Te(r,o=>rn(r,e,()=>r.next(o),t),()=>rn(r,e,()=>r.complete(),t),o=>rn(r,e,()=>r.error(o),t)))})}function Ff(e,t=0){return Oe((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Pf(e,t){if(!e)throw new Error("Iterable cannot be null");return new ye(n=>{rn(n,t,()=>{const r=e[Symbol.asyncIterator]();rn(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function be(e,t){return t?function Kw(e,t){if(null!=e){if(bf(e))return function Hw(e,t){return mt(e).pipe(Ff(t),Of(t))}(e,t);if(wf(e))return function Gw(e,t){return new ye(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(Ef(e))return function zw(e,t){return mt(e).pipe(Ff(t),Of(t))}(e,t);if(Sf(e))return Pf(e,t);if(Af(e))return function Ww(e,t){return new ye(n=>{let r;return rn(n,t,()=>{r=e[If](),rn(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)}),()=>oe(r?.return)&&r.return()})}(e,t);if(xf(e))return function qw(e,t){return Pf(Tf(e),t)}(e,t)}throw Mf(e)}(e,t):mt(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 mt(t(...n)).subscribe(r)}function re(e){for(let t in e)if(e[t]===re)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 ie(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(ie).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 Qw=re({__forward_ref__:re});function se(e){return e.__forward_ref__=se,e.toString=function(){return ie(this())},e}function R(e){return au(e)?e():e}function au(e){return"function"==typeof e&&e.hasOwnProperty(Qw)&&e.__forward_ref__===se}function uu(e){return e&&!!e.\u0275providers}class C extends Error{constructor(t,n){super(Pi(t,n)),this.code=t}}function Pi(e,t){return`NG0${Math.abs(e)}${t?": "+t.trim():""}`}function P(e){return"string"==typeof e?e:null==e?"":String(e)}function ki(e,t){throw new C(-201,!1)}function yt(e,t){null==e&&function J(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function A(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function vt(e){return{providers:e.providers||[],imports:e.imports||[]}}function Li(e){return Lf(e,Vi)||Lf(e,jf)}function Lf(e,t){return e.hasOwnProperty(t)?e[t]:null}function Vf(e){return e&&(e.hasOwnProperty(lu)||e.hasOwnProperty(iE))?e[lu]:null}const Vi=re({\u0275prov:re}),lu=re({\u0275inj:re}),jf=re({ngInjectableDef:re}),iE=re({ngInjectorDef:re});var N=(()=>((N=N||{})[N.Default=0]="Default",N[N.Host=1]="Host",N[N.Self=2]="Self",N[N.SkipSelf=4]="SkipSelf",N[N.Optional=8]="Optional",N))();let cu;function Dt(e){const t=cu;return cu=e,t}function Bf(e,t,n){const r=Li(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&N.Optional?null:void 0!==t?t:void ki(ie(e))}const ue=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),mo={},du="__NG_DI_FLAG__",ji="ngTempTokenPath",aE="ngTokenPath",uE=/\n/gm,lE="\u0275",$f="__source";let yo;function cr(e){const t=yo;return yo=e,t}function cE(e,t=N.Default){if(void 0===yo)throw new C(-203,!1);return null===yo?Bf(e,void 0,t):yo.get(e,t&N.Optional?null:void 0,t)}function M(e,t=N.Default){return(function sE(){return cu}()||cE)(R(e),t)}function z(e,t=N.Default){return M(e,Bi(t))}function Bi(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function fu(e){const t=[];for(let n=0;n((Bt=Bt||{})[Bt.OnPush=0]="OnPush",Bt[Bt.Default=1]="Default",Bt))(),$t=(()=>{return(e=$t||($t={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",$t;var e})();const sn={},Y=[],$i=re({\u0275cmp:re}),hu=re({\u0275dir:re}),pu=re({\u0275pipe:re}),Hf=re({\u0275mod:re}),an=re({\u0275fac:re}),Do=re({__NG_ELEMENT_ID__:re});let pE=0;function dr(e){return on(()=>{const t=Gf(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Bt.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,data:e.data||{},encapsulation:e.encapsulation||$t.Emulated,id:"c"+pE++,styles:e.styles||Y,_:null,schemas:e.schemas||null,tView:null};Wf(n);const r=e.dependencies;return n.directiveDefs=Ui(r,!1),n.pipeDefs=Ui(r,!0),n})}function mE(e){return ee(e)||Be(e)}function yE(e){return null!==e}function It(e){return on(()=>({type:e.type,bootstrap:e.bootstrap||Y,declarations:e.declarations||Y,imports:e.imports||Y,exports:e.exports||Y,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function zf(e,t){if(null==e)return sn;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}function F(e){return on(()=>{const t=Gf(e);return Wf(t),t})}function ee(e){return e[$i]||null}function Be(e){return e[hu]||null}function tt(e){return e[pu]||null}function at(e,t){const n=e[Hf]||null;if(!n&&!0===t)throw new Error(`Type ${ie(e)} does not have '\u0275mod' property.`);return n}function Gf(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,exportAs:e.exportAs||null,standalone:!0===e.standalone,selectors:e.selectors||Y,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:zf(e.inputs,t),outputs:zf(e.outputs)}}function Wf(e){e.features?.forEach(t=>t(e))}function Ui(e,t){if(!e)return null;const n=t?tt:mE;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(yE)}const un=0,b=1,$=2,pe=3,At=4,Wn=5,$e=6,hr=7,ve=8,Hi=9,zi=10,G=11,gu=12,_o=13,qf=14,pr=15,Ue=16,Co=17,gr=18,Ut=19,wo=20,Kf=21,le=22,mu=1,Zf=2,Gi=7,Wi=8,mr=9,qe=10;function ut(e){return Array.isArray(e)&&"object"==typeof e[mu]}function Tt(e){return Array.isArray(e)&&!0===e[mu]}function yu(e){return 0!=(4&e.flags)}function Eo(e){return e.componentOffset>-1}function qi(e){return 1==(1&e.flags)}function xt(e){return!!e.template}function DE(e){return 0!=(256&e[$])}function qn(e,t){return e.hasOwnProperty(an)?e[an]:null}class wE{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function _t(){return Xf}function Xf(e){return e.type.prototype.ngOnChanges&&(e.setInput=bE),EE}function EE(){const e=eh(this),t=e?.current;if(t){const n=e.previous;if(n===sn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function bE(e,t,n,r){const o=this.declaredInputs[n],i=eh(e)||function SE(e,t){return e[Jf]=t}(e,{previous:sn,current:null}),s=i.current||(i.current={}),a=i.previous,u=a[o];s[o]=new wE(u&&u.currentValue,t,a===sn),e[r]=t}_t.ngInherit=!0;const Jf="__ngSimpleChanges__";function eh(e){return e[Jf]||null}const Ct=function(e,t,n){};function Pe(e){for(;Array.isArray(e);)e=e[un];return e}function Ki(e,t){return Pe(t[e])}function lt(e,t){return Pe(t[e.index])}function rh(e,t){return e.data[t]}function nt(e,t){const n=t[e];return ut(n)?n:n[un]}function Zi(e){return 64==(64&e[$])}function An(e,t){return null==t?null:e[t]}function oh(e){e[gr]=0}function Du(e,t){e[Wn]+=t;let n=e,r=e[pe];for(;null!==r&&(1===t&&1===n[Wn]||-1===t&&0===n[Wn]);)r[Wn]+=t,n=r,r=r[pe]}const k={lFrame:ph(null),bindingsEnabled:!0};function sh(){return k.bindingsEnabled}function D(){return k.lFrame.lView}function K(){return k.lFrame.tView}function ke(){let e=ah();for(;null!==e&&64===e.type;)e=e.parent;return e}function ah(){return k.lFrame.currentTNode}function Ht(e,t){const n=k.lFrame;n.currentTNode=e,n.isParent=t}function _u(){return k.lFrame.isParent}function Cu(){k.lFrame.isParent=!1}function vr(){return k.lFrame.bindingIndex++}function BE(e,t){const n=k.lFrame;n.bindingIndex=n.bindingRootIndex=e,wu(t)}function wu(e){k.lFrame.currentDirectiveIndex=e}function bu(e){k.lFrame.currentQueryIndex=e}function UE(e){const t=e[b];return 2===t.type?t.declTNode:1===t.type?e[$e]:null}function fh(e,t,n){if(n&N.SkipSelf){let o=t,i=e;for(;!(o=o.parent,null!==o||n&N.Host||(o=UE(i),null===o||(i=i[pr],10&o.type))););if(null===o)return!1;t=o,e=i}const r=k.lFrame=hh();return r.currentTNode=t,r.lView=e,!0}function Su(e){const t=hh(),n=e[b];k.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function hh(){const e=k.lFrame,t=null===e?null:e.child;return null===t?ph(e):t}function ph(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 gh(){const e=k.lFrame;return k.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const mh=gh;function Mu(){const e=gh();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 Ze(){return k.lFrame.selectedIndex}function Kn(e){k.lFrame.selectedIndex=e}function Yi(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[u]<0&&(e[gr]+=65536),(a>11>16&&(3&e[$])===t){e[$]+=2048,Ct(4,a,i);try{i.call(a)}finally{Ct(5,a,i)}}}else{Ct(4,a,i);try{i.call(a)}finally{Ct(5,a,i)}}}const Dr=-1;class So{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Tu(e,t,n){let r=0;for(;rt){s=i-1;break}}}for(;i>16}(e),r=t;for(;n>0;)r=r[pr],n--;return r}let xu=!0;function ts(e){const t=xu;return xu=e,t}const wh=255,Eh=5;let n0=0;const zt={};function ns(e,t){const n=bh(e,t);if(-1!==n)return n;const r=t[b];r.firstCreatePass&&(e.injectorIndex=t.length,Ru(r.data,e),Ru(t,null),Ru(r.blueprint,null));const o=Nu(e,t),i=e.injectorIndex;if(Ch(o)){const s=Ji(o),a=es(o,t),u=a[b].data;for(let l=0;l<8;l++)t[i+l]=a[s+l]|u[s+l]}return t[i+8]=o,i}function Ru(e,t){e.push(0,0,0,0,0,0,0,0,t)}function bh(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Nu(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=Rh(o),null===r)return Dr;if(n++,o=o[pr],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return Dr}function Ou(e,t,n){!function r0(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Do)&&(r=n[Do]),null==r&&(r=n[Do]=n0++);const o=r&wh;t.data[e+(o>>Eh)]|=1<=0?t&wh:u0:t}(n);if("function"==typeof i){if(!fh(t,e,r))return r&N.Host?Sh(o,0,r):Mh(t,n,r,o);try{const s=i(r);if(null!=s||r&N.Optional)return s;ki()}finally{mh()}}else if("number"==typeof i){let s=null,a=bh(e,t),u=Dr,l=r&N.Host?t[Ue][$e]:null;for((-1===a||r&N.SkipSelf)&&(u=-1===a?Nu(e,t):t[a+8],u!==Dr&&xh(r,!1)?(s=t[b],a=Ji(u),t=es(u,t)):a=-1);-1!==a;){const c=t[b];if(Th(i,a,c.data)){const d=s0(a,t,n,s,r,l);if(d!==zt)return d}u=t[a+8],u!==Dr&&xh(r,t[b].data[a+8]===l)&&Th(i,a,t)?(s=c,a=Ji(u),t=es(u,t)):a=-1}}return o}function s0(e,t,n,r,o,i){const s=t[b],a=s.data[e+8],c=function rs(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=u&&p.type===n)return h}if(o){const h=s[u];if(h&&xt(h)&&h.type===n)return u}return null}(a,s,n,null==r?Eo(a)&&xu:r!=s&&0!=(3&a.type),o&N.Host&&i===a);return null!==c?Zn(t,s,c,a):zt}function Zn(e,t,n,r){let o=e[n];const i=t.data;if(function XE(e){return e instanceof So}(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 X(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?Dt(s.injectImpl):null;fh(e,r,N.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&function YE(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){const s=Xf(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&&Dt(u),ts(a),s.resolving=!1,mh()}}return o}function Th(e,t,n){return!!(n[t+(e>>Eh)]&1<{const t=e.prototype.constructor,n=t[an]||Fu(t),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const i=o[an]||Fu(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Fu(e){return au(e)?()=>{const t=Fu(R(e));return t&&t()}:qn(e)}function Rh(e){const t=e[b],n=t.type;return 2===n?t.declTNode:1===n?e[$e]:null}const wr="__parameters__";function br(e,t,n){return on(()=>{const r=function Pu(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(wr)?u[wr]:Object.defineProperty(u,wr,{value:[]})[wr];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 S{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=A({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Yn(e,t){e.forEach(n=>Array.isArray(n)?Yn(n,t):t(n))}function Oh(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=Sr(e,t);return r>=0?e[1|r]=n:(r=~r,function h0(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 Lu(e,t){const n=Sr(e,t);if(n>=0)return e[1|n]}function Sr(e,t){return function Fh(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){const i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<((rt=rt||{})[rt.Important=1]="Important",rt[rt.DashCase=2]="DashCase",rt))();const Hu=new Map;let P0=0;const Gu="__ngContext__";function He(e,t){ut(t)?(e[Gu]=t[wo],function L0(e){Hu.set(e[wo],e)}(t)):e[Gu]=t}let Wu;function qu(e,t){return Wu(e,t)}function Po(e){const t=e[pe];return Tt(t)?t[pe]:t}function Ku(e){return ep(e[_o])}function Zu(e){return ep(e[At])}function ep(e){for(;null!==e&&!Tt(e);)e=e[At];return e}function Ir(e,t,n,r,o){if(null!=r){let i,s=!1;Tt(r)?i=r:ut(r)&&(s=!0,r=r[un]);const a=Pe(r);0===e&&null!==n?null==o?sp(t,n,a):Qn(t,n,a,o||null,!0):1===e&&null!==n?Qn(t,n,a,o||null,!0):2===e?function nl(e,t,n){const r=ls(e,t);r&&function rb(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=i&&function sb(e,t,n,r,o){const i=n[Gi];i!==Pe(n)&&Ir(t,e,r,i,o);for(let a=qe;a0&&(e[n-1][At]=r[At]);const i=is(e,qe+t);!function Z0(e,t){ko(e,t,t[G],2,null,null),t[un]=null,t[$e]=null}(r[b],r);const s=i[Ut];null!==s&&s.detachView(i[b]),r[pe]=null,r[At]=null,r[$]&=-65}return r}function rp(e,t){if(!(128&t[$])){const n=t[G];n.destroyNode&&ko(e,t,n,3,null,null),function X0(e){let t=e[_o];if(!t)return Ju(e[b],e);for(;t;){let n=null;if(ut(t))n=t[_o];else{const r=t[qe];r&&(n=r)}if(!n){for(;t&&!t[At]&&t!==e;)ut(t)&&Ju(t[b],t),t=t[pe];null===t&&(t=e),ut(t)&&Ju(t[b],t),n=t&&t[At]}t=n}}(t)}}function Ju(e,t){if(!(128&t[$])){t[$]&=-65,t[$]|=128,function nb(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?r[o=s]():r[o=-s].unsubscribe(),i+=2}else{const s=r[o=n[i+1]];n[i].call(s)}if(null!==r){for(let i=o+1;i-1){const{encapsulation:i}=e.data[r.directiveStart+o];if(i===$t.None||i===$t.Emulated)return null}return lt(r,n)}}(e,t.parent,n)}function Qn(e,t,n,r,o){e.insertBefore(t,n,r,o)}function sp(e,t,n){e.appendChild(t,n)}function ap(e,t,n,r,o){null!==r?Qn(e,t,n,r,o):sp(e,t,n)}function ls(e,t){return e.parentNode(t)}let el,il,cp=function lp(e,t,n){return 40&e.type?lt(e,n):null};function cs(e,t,n,r){const o=op(e,r,t),i=t[G],a=function up(e,t,n){return cp(e,t,n)}(r.parent||t[$e],r,t);if(null!=o)if(Array.isArray(n))for(let u=0;u{const s=i;dl(s,n,[],r)&&(o||(o=[]),o.push(s))}),void 0!==o&&Fp(o,n),n}function Fp(e,t){for(let n=0;n{t.push(i)})}}function dl(e,t,n,r){if(!(e=R(e)))return!1;let o=null,i=Vf(e);const s=!i&&ee(e);if(i||s){if(s&&!s.standalone)return!1;o=e}else{const u=e.ngModule;if(i=Vf(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)dl(l,t,n,r)}}else{if(!i)return!1;{if(null!=i.imports&&!a){let l;r.add(o);try{Yn(i.imports,c=>{dl(c,t,n,r)&&(l||(l=[]),l.push(c))})}finally{}void 0!==l&&Fp(l,t)}if(!a){const l=qn(o)||(()=>new o);t.push({provide:o,useFactory:l,deps:Y},{provide:Rp,useValue:o,multi:!0},{provide:gs,useValue:()=>M(o),multi:!0})}const u=i.providers;null==u||a||fl(u,c=>{t.push(c)})}}return o!==e&&void 0!==e.providers}function fl(e,t){for(let n of e)uu(n)&&(n=n.\u0275providers),Array.isArray(n)?fl(n,t):t(n)}const Lb=re({provide:String,useValue:re});function hl(e){return null!==e&&"object"==typeof e&&Lb in e}function Xn(e){return"function"==typeof e}const pl=new S("Set Injector scope."),ms={},jb={};let gl;function ys(){return void 0===gl&&(gl=new Np),gl}class Gt{}class Lp extends Gt{get destroyed(){return this._destroyed}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,yl(t,s=>this.processProvider(s)),this.records.set(xp,Tr(void 0,this)),o.has("environment")&&this.records.set(Gt,Tr(void 0,this));const i=this.records.get(pl);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Rp.multi,Y,N.Self))}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=cr(this),r=Dt(void 0);try{return t()}finally{cr(n),Dt(r)}}get(t,n=mo,r=N.Default){this.assertNotDestroyed(),r=Bi(r);const o=cr(this),i=Dt(void 0);try{if(!(r&N.SkipSelf)){let a=this.records.get(t);if(void 0===a){const u=function zb(e){return"function"==typeof e||"object"==typeof e&&e instanceof S}(t)&&Li(t);a=u&&this.injectableDefInScope(u)?Tr(ml(t),ms):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&N.Self?ys():this.parent).get(t,n=r&N.Optional&&n===mo?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[ji]=s[ji]||[]).unshift(ie(t)),o)throw s;return function fE(e,t,n,r){const o=e[ji];throw t[$f]&&o.unshift(t[$f]),e.message=function hE(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&e.charAt(1)==lE?e.slice(2):e;let o=ie(t);if(Array.isArray(t))o=t.map(ie).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):ie(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(uE,"\n ")}`}("\n"+e.message,o,n,r),e[aE]=o,e[ji]=null,e}(s,t,"R3InjectorError",this.source)}throw s}finally{Dt(i),cr(o)}}resolveInjectorInitializers(){const t=cr(this),n=Dt(void 0);try{const r=this.get(gs.multi,Y,N.Self);for(const o of r)o()}finally{cr(t),Dt(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(ie(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 $b(e){return hl(e)?Tr(void 0,e.useValue):Tr(Vp(e),ms)}(t);if(Xn(t)||!0!==t.multi)this.records.get(n);else{let o=this.records.get(n);o||(o=Tr(void 0,ms,!0),o.factory=()=>fu(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=jb,n.value=n.factory()),"object"==typeof n.value&&n.value&&function Hb(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 ml(e){const t=Li(e),n=null!==t?t.factory:qn(e);if(null!==n)return n;if(e instanceof S)throw new C(204,!1);if(e instanceof Function)return function Bb(e){const t=e.length;if(t>0)throw function To(e,t){const n=[];for(let r=0;rn.factory(e):()=>new e}(e);throw new C(204,!1)}function Vp(e,t,n){let r;if(Xn(e)){const o=R(e);return qn(o)||ml(o)}if(hl(e))r=()=>R(e.useValue);else if(function kp(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...fu(e.deps||[]));else if(function Pp(e){return!(!e||!e.useExisting)}(e))r=()=>M(R(e.useExisting));else{const o=R(e&&(e.useClass||e.provide));if(!function Ub(e){return!!e.deps}(e))return qn(o)||ml(o);r=()=>new o(...fu(e.deps))}return r}function Tr(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function yl(e,t){for(const n of e)Array.isArray(n)?yl(n,t):n&&uu(n)?yl(n.\u0275providers,t):t(n)}class Gb{}class jp{}class qb{resolveComponentFactory(t){throw function Wb(e){const t=Error(`No component factory found for ${ie(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let Bo=(()=>{class e{}return e.NULL=new qb,e})();function Kb(){return xr(ke(),D())}function xr(e,t){return new dt(lt(e,t))}let dt=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=Kb,e})();class $p{}let fn=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function Yb(){const e=D(),n=nt(ke().index,e);return(ut(n)?n:e)[G]}(),e})(),Qb=(()=>{class e{}return e.\u0275prov=A({token:e,providedIn:"root",factory:()=>null}),e})();class $o{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Xb=new $o("15.2.10"),vl={},Dl="ngOriginalError";function _l(e){return e[Dl]}class Rr{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&&_l(t);for(;n&&_l(n);)n=_l(n);return n||null}}function hn(e){return e instanceof Function?e():e}function Hp(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 lS(e,t,n){let r=0,o=!0;for(;ri?"":o[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==Hp(h,l,0)||2&r&&l!==f){if(Rt(r))return!1;s=!0}}}}else{if(!s&&!Rt(r)&&!Rt(u))return!1;if(s&&Rt(u))continue;s=!1,r=u|1&r}}return Rt(r)||s}function Rt(e){return 0==(1&e)}function fS(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!Rt(s)&&(t+=qp(i,o),o=""),r=s,i=i||!Rt(r);n++}return""!==o&&(t+=qp(i,o)),t}const L={};function te(e){Kp(K(),D(),Ze()+e,!1)}function Kp(e,t,n,r){if(!r)if(3==(3&t[$])){const i=e.preOrderCheckHooks;null!==i&&Qi(t,i,n)}else{const i=e.preOrderHooks;null!==i&&Xi(t,i,0,n)}Kn(n)}function Xp(e,t=null,n=null,r){const o=Jp(e,t,n,r);return o.resolveInjectorInitializers(),o}function Jp(e,t=null,n=null,r,o=new Set){const i=[n||Y,kb(e)];return r=r||("object"==typeof e?void 0:ie(e)),new Lp(i,t||ys(),r||null,o)}let Wt=(()=>{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=mo,e.NULL=new Np,e.\u0275prov=A({token:e,providedIn:"any",factory:()=>M(xp)}),e.__NG_ELEMENT_ID__=-1,e})();function _(e,t=N.Default){const n=D();return null===n?M(e,t):Ih(ke(),n,R(e),t)}function ag(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;rle&&Kp(e,t,le,!1),Ct(s?2:0,o),n(r,o)}finally{Kn(i),Ct(s?3:1,o)}}function Il(e,t,n){if(yu(t)){const o=t.directiveEnd;for(let i=t.directiveStart;i0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=a&&s.push(a),s.push(n,r,i)}}(e,t,r,Uo(e,n,o.hostVars,L),o)}function oM(e,t,n,r,o,i){const s=i[t];if(null!==s){const a=r.setInput;for(let u=0;u0&&Fl(n)}}function Fl(e){for(let r=Ku(e);null!==r;r=Zu(r))for(let o=qe;o0&&Fl(i)}const n=e[b].components;if(null!==n)for(let r=0;r0&&Fl(o)}}function lM(e,t){const n=nt(t,e),r=n[b];(function cM(e,t){for(let n=t.length;n-1&&(Xu(t,r),is(n,r))}this._attachedToViewContainer=!1}rp(this._lView[b],this._lView)}onDestroy(t){!function cg(e,t,n,r){const o=mg(t);null===n?o.push(r):(o.push(n),e.firstCreatePass&&yg(e).push(r,o.length-1))}(this._lView[b],this._lView,null,t)}markForCheck(){ws(this._cdRefInjectingView||this._lView)}detach(){this._lView[$]&=-65}reattach(){this._lView[$]|=64}detectChanges(){Es(this._lView[b],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new C(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Q0(e,t){ko(e,t,t[G],2,null,null)}(this._lView[b],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new C(902,!1);this._appRef=t}}class dM extends Ho{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;Es(t[b],t,t[ve],!1)}checkNoChanges(){}get context(){return null}}class _g extends Bo{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=ee(t);return new zo(n,this.ngModule)}}function Cg(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class hM{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=Bi(r);const o=this.injector.get(t,vl,r);return o!==vl||n===vl?o:this.parentInjector.get(t,n,r)}}class zo extends jp{get inputs(){return Cg(this.componentDef.inputs)}get outputs(){return Cg(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function vS(e){return e.map(yS).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,o){let i=(o=o||this.ngModule)instanceof Gt?o:o?.injector;i&&null!==this.componentDef.getStandaloneInjector&&(i=this.componentDef.getStandaloneInjector(i)||i);const s=i?new hM(t,i):t,a=s.get($p,null);if(null===a)throw new C(407,!1);const u=s.get(Qb,null),l=a.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",d=r?function US(e,t,n){return e.selectRootElement(t,n===$t.ShadowDom)}(l,r,this.componentDef.encapsulation):Qu(l,c,function fM(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(c)),f=this.componentDef.onPush?288:272,h=xl(0,null,null,1,0,null,null,null,null,null),p=Ds(null,h,null,f,null,null,a,l,u,s,null);let g,m;Su(p);try{const v=this.componentDef;let w,y=null;v.findHostDirectiveDefs?(w=[],y=new Map,v.findHostDirectiveDefs(v,w,y),w.push(v)):w=[v];const I=function gM(e,t){const n=e[b],r=le;return e[r]=t,Fr(n,r,2,"#host",null)}(p,d),Q=function mM(e,t,n,r,o,i,s,a){const u=o[b];!function yM(e,t,n,r){for(const o of e)t.mergedAttrs=Mo(t.mergedAttrs,o.hostAttrs);null!==t.mergedAttrs&&(bs(t,t.mergedAttrs,!0),null!==n&&gp(r,n,t))}(r,e,t,s);const l=i.createRenderer(t,n),c=Ds(o,lg(n),null,n.onPush?32:16,o[e.index],e,i,l,a||null,null,null);return u.firstCreatePass&&Nl(u,e,r.length-1),Cs(o,c),o[e.index]=c}(I,d,v,w,p,a,l);m=rh(h,le),d&&function DM(e,t,n,r){if(r)Tu(e,n,["ng-version",Xb.full]);else{const{attrs:o,classes:i}=function DS(e){const t=[],n=[];let r=1,o=2;for(;r0&&pp(e,n,i.join(" "))}}(l,v,d,r),void 0!==n&&function _M(e,t,n){const r=e.projection=[];for(let o=0;o=0;r--){const o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Mo(o.hostAttrs,n=Mo(n,o.hostAttrs))}}(r)}function Ll(e){return e===sn?{}:e===Y?[]:e}function EM(e,t){const n=e.viewQuery;e.viewQuery=n?(r,o)=>{t(r,o),n(r,o)}:t}function bM(e,t){const n=e.contentQueries;e.contentQueries=n?(r,o,i)=>{t(r,o,i),n(r,o,i)}:t}function SM(e,t){const n=e.hostBindings;e.hostBindings=n?(r,o)=>{t(r,o),n(r,o)}:t}function ze(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function As(e,t,n,r,o,i,s,a){const u=D(),l=K(),c=e+le,d=l.firstCreatePass?function PM(e,t,n,r,o,i,s,a,u){const l=t.consts,c=Fr(t,e,4,s||null,An(l,a));Rl(t,n,c,An(l,u)),Yi(t,c);const d=c.tView=xl(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];Ht(d,!1);const f=u[G].createComment("");cs(l,u,f,d),He(f,u),Cs(u,u[c]=gg(f,u,f,d)),qi(d)&&Al(l,u,d),null!=s&&Tl(u,d,a)}function ce(e,t,n){const r=D();return ze(r,vr(),t)&&function ft(e,t,n,r,o,i,s,a){const u=lt(t,n);let c,l=t.inputs;!a&&null!=l&&(c=l[r])?(kl(e,n,c,r,o),Eo(t)&&function WS(e,t){const n=nt(t,e);16&n[$]||(n[$]|=32)}(n,t.index)):3&t.type&&(r=function GS(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))}(K(),function fe(){const e=k.lFrame;return rh(e.tView,e.selectedIndex)}(),r,e,t,r[G],n,!1),ce}function jl(e,t,n,r,o){const s=o?"class":"style";kl(e,n,t.inputs[s],s,r)}function V(e,t,n,r){const o=D(),i=K(),s=le+e,a=o[G],u=i.firstCreatePass?function LM(e,t,n,r,o,i){const s=t.consts,u=Fr(t,e,2,r,An(s,o));return Rl(t,n,u,An(s,i)),null!==u.attrs&&bs(u,u.attrs,!1),null!==u.mergedAttrs&&bs(u,u.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,u),u}(s,i,o,t,n,r):i.data[s],l=o[s]=Qu(a,t,function ZE(){return k.lFrame.currentNamespace}()),c=qi(u);return Ht(u,!0),gp(a,l,u),32!=(32&u.flags)&&cs(i,o,l,u),0===function RE(){return k.lFrame.elementDepthCount}()&&He(l,o),function NE(){k.lFrame.elementDepthCount++}(),c&&(Al(i,o,u),Il(i,u,o)),null!==r&&Tl(o,u),V}function B(){let e=ke();_u()?Cu():(e=e.parent,Ht(e,!1));const t=e;!function OE(){k.lFrame.elementDepthCount--}();const n=K();return n.firstCreatePass&&(Yi(n,e),yu(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function JE(e){return 0!=(8&e.flags)}(t)&&jl(n,t,D(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function e0(e){return 0!=(16&e.flags)}(t)&&jl(n,t,D(),t.stylesWithoutHost,!1),B}function gn(e,t,n,r){return V(e,t,n,r),B(),gn}function Ts(e,t,n){const r=D(),o=K(),i=e+le,s=o.firstCreatePass?function VM(e,t,n,r,o){const i=t.consts,s=An(i,r),a=Fr(t,e,8,"ng-container",s);return null!==s&&bs(a,s,!0),Rl(t,n,a,An(i,o)),null!==t.queries&&t.queries.elementStart(t,a),a}(i,o,r,t,n):o.data[i];Ht(s,!0);const a=r[i]=r[G].createComment("");return cs(o,r,a,s),He(a,r),qi(s)&&(Al(o,r,s),Il(o,s,r)),null!=n&&Tl(r,s),Ts}function xs(){let e=ke();const t=K();return _u()?Cu():(e=e.parent,Ht(e,!1)),t.firstCreatePass&&(Yi(t,e),yu(e)&&t.queries.elementEnd(e)),xs}function Wo(e){return!!e&&"function"==typeof e.then}const Bl=function Lg(e){return!!e&&"function"==typeof e.subscribe};function Ve(e,t,n,r){const o=D(),i=K(),s=ke();return function jg(e,t,n,r,o,i,s){const a=qi(r),l=e.firstCreatePass&&yg(e),c=t[ve],d=mg(t);let f=!0;if(3&r.type||s){const g=lt(r,t),m=s?s(g):g,v=d.length,w=s?I=>s(Pe(I[r.index])):r.index;let y=null;if(!s&&a&&(y=function BM(e,t,n,r){const o=e.cleanup;if(null!=o)for(let i=0;iu?a[u]:null}"string"==typeof s&&(i+=2)}return null}(e,t,o,r.index)),null!==y)(y.__ngLastListenerFn__||y).__ngNextListenerFn__=i,y.__ngLastListenerFn__=i,f=!1;else{i=$g(r,t,c,i,!1);const I=n.listen(m,o,i);d.push(i,I),l&&l.push(o,w,v,v+1)}}else i=$g(r,t,c,i,!1);const h=r.outputs;let p;if(f&&null!==h&&(p=h[o])){const g=p.length;if(g)for(let m=0;m-1?nt(e.index,t):t);let u=Bg(t,n,r,s),l=i.__ngNextListenerFn__;for(;l;)u=Bg(t,n,l,s)&&u,l=l.__ngNextListenerFn__;return o&&!1===u&&(s.preventDefault(),s.returnValue=!1),u}}function $l(e=1){return function HE(e){return(k.lFrame.contextLView=function zE(e,t){for(;e>0;)t=t[pr],e--;return t}(e,k.lFrame.contextLView))[ve]}(e)}function Rs(e,t){return e<<17|t<<2}function xn(e){return e>>17&32767}function Hl(e){return 2|e}function er(e){return(131068&e)>>2}function zl(e,t){return-131069&e|t<<2}function Gl(e){return 1|e}function Qg(e,t,n,r,o){const i=e[n+1],s=null===t;let a=r?xn(i):er(i),u=!1;for(;0!==a&&(!1===u||s);){const c=e[a+1];ZM(e[a],t)&&(u=!0,e[a+1]=r?Gl(c):Hl(c)),a=r?xn(c):er(c)}u&&(e[n+1]=r?Hl(i):Gl(i))}function ZM(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Sr(e,t)>=0}function Ns(e,t){return function Nt(e,t,n,r){const o=D(),i=K(),s=function cn(e){const t=k.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}(2);i.firstUpdatePass&&function sm(e,t,n,r){const o=e.data;if(null===o[n+1]){const i=o[Ze()],s=function im(e,t){return t>=e.expandoStartIndex}(e,n);(function cm(e,t){return 0!=(e.flags&(t?8:16))})(i,r)&&null===t&&!s&&(t=!1),t=function oI(e,t,n,r){const o=function Eu(e){const t=k.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=qo(n=Wl(null,e,t,n,r),t.attrs,r),i=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==o)if(n=Wl(o,e,t,n,r),null===i){let u=function iI(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==er(r))return e[xn(r)]}(e,t,r);void 0!==u&&Array.isArray(u)&&(u=Wl(null,e,t,u[1],r),u=qo(u,t.attrs,r),function sI(e,t,n,r){e[xn(n?t.classBindings:t.styleBindings)]=r}(e,t,r,u))}else i=function aI(e,t,n){let r;const o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0)&&(l=!0)):c=n,o)if(0!==u){const f=xn(e[a+1]);e[r+1]=Rs(f,a),0!==f&&(e[f+1]=zl(e[f+1],r)),e[a+1]=function GM(e,t){return 131071&e|t<<17}(e[a+1],r)}else e[r+1]=Rs(a,0),0!==a&&(e[a+1]=zl(e[a+1],r)),a=r;else e[r+1]=Rs(u,0),0===a?a=r:e[u+1]=zl(e[u+1],r),u=r;l&&(e[r+1]=Hl(e[r+1])),Qg(e,c,r,!0),Qg(e,c,r,!1),function KM(e,t,n,r,o){const i=o?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof t&&Sr(i,t)>=0&&(n[r+1]=Gl(n[r+1]))}(t,c,e,r,i),s=Rs(a,u),i?t.classBindings=s:t.styleBindings=s}(o,i,t,n,s,r)}}(i,e,s,r),t!==L&&ze(o,s,t)&&function um(e,t,n,r,o,i,s,a){if(!(3&t.type))return;const u=e.data,l=u[a+1],c=function WM(e){return 1==(1&e)}(l)?lm(u,t,n,o,er(l),s):void 0;Os(c)||(Os(i)||function zM(e){return 2==(2&e)}(l)&&(i=lm(u,null,n,o,a,s)),function ab(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=-1===r.indexOf("-")?void 0:rt.DashCase;null==o?e.removeStyle(n,r,i):("string"==typeof o&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=rt.Important),e.setStyle(n,r,o,i))}}(r,s,Ki(Ze(),n),o,i))}(i,i.data[Ze()],o,o[G],e,o[s+1]=function dI(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=ie(function Tn(e){return e instanceof _p?e.changingThisBreaksApplicationSecurity:e}(e)))),e}(t,n),r,s)}(e,t,null,!0),Ns}function Wl(e,t,n,r,o){let i=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const u=e[o],l=Array.isArray(u),c=l?u[1]:u,d=null===c;let f=n[o+1];f===L&&(f=d?Y:void 0);let h=d?Lu(f,r):c===r?f:void 0;if(l&&!Os(h)&&(h=Lu(u,r)),Os(h)&&(a=h,s))return a;const p=e[o+1];o=s?xn(p):er(p)}if(null!==t){let u=i?t.residualClasses:t.residualStyles;null!=u&&(a=Lu(u,r))}return a}function Os(e){return void 0!==e}function Z(e,t=""){const n=D(),r=K(),o=e+le,i=r.firstCreatePass?Fr(r,o,1,t,null):r.data[o],s=n[o]=function Yu(e,t){return e.createText(t)}(n[G],t);cs(r,n,s,i),Ht(i,!1)}function mn(e){return ql("",e,""),mn}function ql(e,t,n){const r=D(),o=function kr(e,t,n,r){return ze(e,vr(),n)?t+P(n)+r:L}(r,e,t,n);return o!==L&&function pn(e,t,n){const r=Ki(t,e);!function tp(e,t,n){e.setValue(t,n)}(e[G],r,n)}(r,Ze(),o),ql}const Wr="en-US";let Nm=Wr;function Yl(e,t,n,r,o){if(e=R(e),Array.isArray(e))for(let i=0;i>20;if(Xn(e)||!e.multi){const h=new So(u,o,_),p=Xl(a,t,o?c:c+f,d);-1===p?(Ou(ns(l,s),i,a),Ql(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=Xl(a,t,c+f,d),p=Xl(a,t,c,c+f),m=p>=0&&n[p];if(o&&!m||!o&&!(h>=0&&n[h])){Ou(ns(l,s),i,a);const v=function TA(e,t,n,r,o){const i=new So(e,n,_);return i.multi=[],i.index=t,i.componentProviders=0,ry(i,o,r&&!n),i}(o?AA:IA,n.length,o,r,u);!o&&m&&(n[p].providerFactory=v),Ql(i,e,t.length,0),t.push(a),l.directiveStart++,l.directiveEnd++,o&&(l.providerIndexes+=1048576),n.push(v),s.push(v)}else Ql(i,e,h>-1?h:p,ry(n[o?p:h],u,!o&&r));!o&&r&&m&&n[p].componentProviders++}}}function Ql(e,t,n,r){const o=Xn(t),i=function Vb(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 ry(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Xl(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>function MA(e,t,n){const r=K();if(r.firstCreatePass){const o=xt(e);Yl(n,r.data,r.blueprint,o,!0),Yl(t,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,t)}}class qr{}class oy{}class iy extends qr{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new _g(this);const r=at(t);this._bootstrapComponents=hn(r.bootstrap),this._r3Injector=Jp(t,n,[{provide:qr,useValue:this},{provide:Bo,useValue:this.componentFactoryResolver}],ie(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 ec extends oy{constructor(t){super(),this.moduleType=t}create(t){return new iy(this.moduleType,t)}}class RA extends qr{constructor(t,n,r){super(),this.componentFactoryResolver=new _g(this),this.instance=null;const o=new Lp([...t,{provide:qr,useValue:this},{provide:Bo,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 RA(e,t,n).injector}let NA=(()=>{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=A({token:e,providedIn:"environment",factory:()=>new e(M(Gt))}),e})();function sy(e){e.getStandaloneInjector=t=>t.get(NA).getOrCreateStandaloneInjector(e)}function nc(e){return t=>{setTimeout(e,void 0,t)}}const me=class oT extends nn{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=nc(i),o&&(o=nc(o)),s&&(s=nc(s)));const a=super.subscribe({next:o,error:i,complete:s});return t instanceof gt&&t.add(a),a}};let yn=(()=>{class e{}return e.__NG_ELEMENT_ID__=uT,e})();const sT=yn,aT=class extends sT{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(t,n){const r=this._declarationTContainer.tView,o=Ds(this._declarationLView,r,t,16,null,r.declTNode,null,null,null,null,n||null);o[Co]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[Ut];return null!==s&&(o[Ut]=s.createEmbeddedView(r)),Ml(r,o,t),new Ho(o)}};function uT(){return js(ke(),D())}function js(e,t){return 4&e.type?new aT(t,e,xr(e,t)):null}let Ft=(()=>{class e{}return e.__NG_ELEMENT_ID__=lT,e})();function lT(){return function _y(e,t){let n;const r=t[e.index];if(Tt(r))n=r;else{let o;if(8&e.type)o=Pe(r);else{const i=t[G];o=i.createComment("");const s=lt(e,t);Qn(i,ls(i,s),o,function ob(e,t){return e.nextSibling(t)}(i,s),!1)}t[e.index]=n=gg(r,t,o,e),Cs(t,n)}return new vy(n,e,t)}(ke(),D())}const cT=Ft,vy=class extends cT{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return xr(this._hostTNode,this._hostLView)}get injector(){return new _r(this._hostTNode,this._hostLView)}get parentInjector(){const t=Nu(this._hostTNode,this._hostLView);if(Ch(t)){const n=es(t,this._hostLView),r=Ji(t);return new _r(n[b].data[r+8],n)}return new _r(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Dy(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-qe}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 zo(ee(t)),l=r||this.parentInjector;if(!i&&null==u.ngModule){const f=(s?l:this.parentInjector).get(Gt,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[b];if(function xE(e){return Tt(e[pe])}(r)){const c=this.indexOf(t);if(-1!==c)this.detach(c);else{const d=r[pe],f=new vy(d,d[$e],d[pe]);f.detach(f.indexOf(t))}}const i=this._adjustIndex(n),s=this._lContainer;!function J0(e,t,n,r){const o=qe+r,i=n.length;r>0&&(n[o-1][At]=t),r{class e{constructor(n){this.appInits=n,this.resolve=$s,this.reject=$s,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{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)(M(Us,8))},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const ni=new S("AppId",{providedIn:"root",factory:function qy(){return`${gc()}${gc()}${gc()}`}});function gc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Ky=new S("Platform Initializer"),mc=new S("Platform ID",{providedIn:"platform",factory:()=>"unknown"});let LT=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const vn=new S("LocaleId",{providedIn:"root",factory:()=>z(vn,N.Optional|N.SkipSelf)||function VT(){return typeof $localize<"u"&&$localize.locale||Wr}()});class BT{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let Zy=(()=>{class e{compileModuleSync(n){return new ec(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),i=hn(at(n).declarations).reduce((s,a)=>{const u=ee(a);return u&&s.push(new zo(u)),s},[]);return new BT(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=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const HT=(()=>Promise.resolve(0))();function yc(e){typeof Zone>"u"?HT.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class De{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new me(!1),this.onMicrotaskEmpty=new me(!1),this.onStable=new me(!1),this.onError=new me(!1),typeof Zone>"u")throw new C(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,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 zT(){let e=ue.requestAnimationFrame,t=ue.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 qT(e){const t=()=>{!function WT(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(ue,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Dc(e),e.isCheckStableRunning=!0,vc(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Dc(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{try{return Xy(e),n.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&t(),Jy(e)}},onInvoke:(n,r,o,i,s,a,u)=>{try{return Xy(e),n.invoke(o,i,s,a,u)}finally{e.shouldCoalesceRunChangeDetection&&t(),Jy(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,Dc(e),vc(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(!De.isInAngularZone())throw new C(909,!1)}static assertNotInAngularZone(){if(De.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,GT,$s,$s);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 GT={};function vc(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 Dc(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Xy(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Jy(e){e._nesting--,vc(e)}class KT{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new me,this.onMicrotaskEmpty=new me,this.onStable=new me,this.onError=new me}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 ev=new S(""),zs=new S("");let wc,_c=(()=>{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,wc||(function ZT(e){wc=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:()=>{De.assertNotInAngularZone(),yc(()=>{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())yc(()=>{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)(M(De),M(Cc),M(zs))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})(),Cc=(()=>{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 wc?.findTestabilityInTree(this,n,r)??null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const Dn=!1;let Rn=null;const tv=new S("AllowMultipleToken"),Ec=new S("PlatformDestroyListeners"),nv=new S("appBootstrapListener");class rv{constructor(t,n){this.name=t,this.token=n}}function iv(e,t,n=[]){const r=`Platform: ${t}`,o=new S(r);return(i=[])=>{let s=bc();if(!s||s.injector.get(tv,!1)){const a=[...n,...i,{provide:o,useValue:!0}];e?e(a):function XT(e){if(Rn&&!Rn.get(tv,!1))throw new C(400,!1);Rn=e;const t=e.get(av);(function ov(e){const t=e.get(Ky,null);t&&t.forEach(n=>n())})(e)}(function sv(e=[],t){return Wt.create({name:t,providers:[{provide:pl,useValue:"platform"},{provide:Ec,useValue:new Set([()=>Rn=null])},...e]})}(a,r))}return function ex(e){const t=bc();if(!t)throw new C(401,!1);return t}()}}function bc(){return Rn?.get(av)??null}let av=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const o=function lv(e,t){let n;return n="noop"===e?new KT:("zone.js"===e?void 0:e)||new De(t),n}(r?.ngZone,function uv(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!e||!e.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!e||!e.ngZoneRunCoalescing)||!1}}(r)),i=[{provide:De,useValue:o}];return o.run(()=>{const s=Wt.create({providers:i,parent:this.injector,name:n.moduleType.name}),a=n.create(s),u=a.injector.get(Rr,null);if(!u)throw new C(402,!1);return o.runOutsideAngular(()=>{const l=o.onError.subscribe({next:c=>{u.handleError(c)}});a.onDestroy(()=>{Ws(this._modules,a),l.unsubscribe()})}),function cv(e,t,n){try{const r=n();return Wo(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(Hs);return l.runInitializers(),l.donePromise.then(()=>(function Om(e){yt(e,"Expected localeId to be defined"),"string"==typeof e&&(Nm=e.toLowerCase().replace(/_/g,"-"))}(a.injector.get(vn,Wr)||Wr),this._moduleDoBootstrap(a),a))})})}bootstrapModule(n,r=[]){const o=dv({},r);return function YT(e,t,n){const r=new ec(n);return Promise.resolve(r)}(0,0,n).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(n){const r=n.injector.get(Gs);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(Ec,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)(M(Wt))},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function dv(e,t){return Array.isArray(t)?t.reduce(dv,e):{...e,...t}}let Gs=(()=>{class e{get destroyed(){return this._destroyed}get injector(){return this._injector}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 ye(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new ye(a=>{let u;this._zone.runOutsideAngular(()=>{u=this._zone.onStable.subscribe(()=>{De.assertNotInAngularZone(),yc(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const l=this._zone.onUnstable.subscribe(()=>{De.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{u.unsubscribe(),l.unsubscribe()}});this.isStable=function Zw(...e){const t=go(e),n=function Uw(e,t){return"number"==typeof ru(e)?e.pop():t}(e,1/0),r=e;return r.length?1===r.length?mt(r[0]):lr(n)(be(r,t)):jt}(i,s.pipe(function Yw(e={}){const{connector:t=(()=>new nn),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 Oe((g,m)=>{l++,!d&&!c&&f();const v=u=u??t();m.add(()=>{l--,0===l&&!d&&!c&&(a=ou(p,o))}),v.subscribe(m),!s&&l>0&&(s=new po({next:w=>v.next(w),error:w=>{d=!0,f(),a=ou(h,n,w),v.error(w)},complete:()=>{c=!0,f(),a=ou(h,r),v.complete()}}),mt(g).subscribe(s))})(i)}}()))}bootstrap(n,r){const o=n instanceof jp;if(!this._injector.get(Hs).done){!o&&function fr(e){const t=ee(e)||Be(e)||tt(e);return null!==t&&t.standalone}(n);throw new C(405,Dn)}let s;s=o?n:this._injector.get(Bo).resolveComponentFactory(n),this.componentTypes.push(s.componentType);const a=function QT(e){return e.isBoundToModule}(s)?void 0:this._injector.get(qr),l=s.create(Wt.NULL,[],r||s.selector,a),c=l.location.nativeElement,d=l.injector.get(ev,null);return d?.registerApplication(c),l.onDestroy(()=>{this.detachView(l.hostView),Ws(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;Ws(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(nv,[]);r.push(...this._bootstrapListeners),r.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),()=>Ws(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)(M(De),M(Gt),M(Rr))},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Ws(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let qs=(()=>{class e{}return e.__NG_ELEMENT_ID__=nx,e})();function nx(e){return function rx(e,t,n){if(Eo(e)&&!n){const r=nt(e.index,t);return new Ho(r,r)}return 47&e.type?new Ho(t[Ue],t):null}(ke(),D(),16==(16&e))}const mx=iv(null,"core",[]);let yx=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(M(Gs))},e.\u0275mod=It({type:e}),e.\u0275inj=vt({}),e})();let Tc=null;function _n(){return Tc}class _x{}const Xe=new S("DocumentToken");let xc=(()=>{class e{historyGo(n){throw new Error("Not implemented")}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:function(){return function Cx(){return M(wv)}()},providedIn:"platform"}),e})();const wx=new S("Location Initialized");let wv=(()=>{class e extends xc{constructor(n){super(),this._doc=n,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return _n().getBaseHref(this._doc)}onPopState(n){const r=_n().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){const r=_n().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){Ev()?this._history.pushState(n,r,o):this._location.hash=o}replaceState(n,r,o){Ev()?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)(M(Xe))},e.\u0275prov=A({token:e,factory:function(){return function Ex(){return new wv(M(Xe))}()},providedIn:"platform"}),e})();function Ev(){return!!window.history.pushState}function Rc(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 bv(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 Cn(e){return e&&"?"!==e[0]?"?"+e:e}let rr=(()=>{class e{historyGo(n){throw new Error("Not implemented")}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:function(){return z(Mv)},providedIn:"root"}),e})();const Sv=new S("appBaseHref");let Mv=(()=>{class e extends rr{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??z(Xe).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 Rc(this._baseHref,n)}path(n=!1){const r=this._platformLocation.pathname+Cn(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){const s=this.prepareExternalUrl(o+Cn(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){const s=this.prepareExternalUrl(o+Cn(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)(M(xc),M(Sv,8))},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),bx=(()=>{class e extends rr{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=Rc(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+Cn(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+Cn(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)(M(xc),M(Sv,8))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})(),Nc=(()=>{class e{constructor(n){this._subject=new me,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;const r=this._locationStrategy.getBaseHref();this._basePath=function Ix(e){if(new RegExp("^(https?:)?//").test(e)){const[,n]=e.split(/\/\/[^\/]+/);return n}return e}(bv(Iv(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+Cn(r))}normalize(n){return e.stripTrailingSlash(function Mx(e,t){if(!e||!t.startsWith(e))return t;const n=t.substring(e.length);return""===n||["/",";","?","#"].includes(n[0])?n:t}(this._basePath,Iv(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+Cn(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Cn(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=Cn,e.joinWithSlash=Rc,e.stripTrailingSlash=bv,e.\u0275fac=function(n){return new(n||e)(M(rr))},e.\u0275prov=A({token:e,factory:function(){return function Sx(){return new Nc(M(rr))}()},providedIn:"root"}),e})();function Iv(e){return e.replace(/\/index.html$/,"")}function kv(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}let Hc=(()=>{class e{constructor(n,r){this._viewContainer=n,this._context=new gR,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){$v("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){$v("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(_(Ft),_(yn))},e.\u0275dir=F({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),e})();class gR{constructor(){this.$implicit=null,this.ngIf=null}}function $v(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${ie(t)}'.`)}let BR=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=It({type:e}),e.\u0275inj=vt({}),e})();let zR=(()=>{class e{}return e.\u0275prov=A({token:e,providedIn:"root",factory:()=>new GR(M(Xe),window)}),e})();class GR{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 WR(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=Gv(this.window.history)||Gv(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 Gv(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}class Wv{}class DN extends _x{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Yc extends DN{static makeCurrent(){!function Dx(e){Tc||(Tc=e)}(new Yc)}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 _N(){return ai=ai||document.querySelector("base"),ai?ai.getAttribute("href"):null}();return null==n?null:function CN(e){ua=ua||document.createElement("a"),ua.setAttribute("href",e);const t=ua.pathname;return"/"===t.charAt(0)?t:`/${t}`}(n)}resetBaseElement(){ai=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return kv(document.cookie,t)}}let ua,ai=null;const Qv=new S("TRANSITION_ID"),EN=[{provide:Us,useFactory:function wN(e,t,n){return()=>{n.get(Hs).donePromise.then(()=>{const r=_n(),o=t.querySelectorAll(`style[ng-transition="${e}"]`);for(let i=0;i{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();const la=new S("EventManagerPlugins");let ca=(()=>{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{class e{constructor(){this.usageCount=new Map}addStyles(n){for(const r of n)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(n){for(const r of n)0===this.changeUsageCount(r,-1)&&this.onStyleRemoved(r)}onStyleRemoved(n){}onStyleAdded(n){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(n,r){const o=this.usageCount;let i=o.get(n)??0;return i+=r,i>0?o.set(n,i):o.delete(n),i}ngOnDestroy(){for(const n of this.getAllStyles())this.onStyleRemoved(n);this.usageCount.clear()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})(),ui=(()=>{class e extends Jv{constructor(n){super(),this.doc=n,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(n){for(const r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){const r=this.styleRef;r.get(n)?.forEach(i=>i.remove()),r.delete(n)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(const r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}addStyleToHost(n,r){const o=this.doc.createElement("style");o.textContent=r,n.appendChild(o);const i=this.styleRef.get(r);i?i.push(o):this.styleRef.set(r,[o])}resetHostNodes(){const n=this.hostNodes;n.clear(),n.add(this.doc.head)}}return e.\u0275fac=function(n){return new(n||e)(M(Xe))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();const Qc={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/"},Xc=/%COMP%/g,nD=new S("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function rD(e,t){return t.flat(100).map(n=>n.replace(Xc,e))}function oD(e){return t=>{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let Jc=(()=>{class e{constructor(n,r,o,i){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestory=i,this.rendererByCompId=new Map,this.defaultRenderer=new ed(n)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;const o=this.getOrCreateRenderer(n,r);return o instanceof aD?o.applyToHost(n):o instanceof td&&o.applyStyles(),o}getOrCreateRenderer(n,r){const o=this.rendererByCompId;let i=o.get(r.id);if(!i){const s=this.eventManager,a=this.sharedStylesHost,u=this.removeStylesOnCompDestory;switch(r.encapsulation){case $t.Emulated:i=new aD(s,a,r,this.appId,u);break;case $t.ShadowDom:return new NN(s,a,n,r);default:i=new td(s,a,r,u)}i.onDestroy=()=>o.delete(r.id),o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return e.\u0275fac=function(n){return new(n||e)(M(ca),M(ui),M(ni),M(nD))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();class ed{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,n){return n?document.createElementNS(Qc[n]||n,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,n){(sD(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(sD(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=Qc[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const o=Qc[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&(rt.DashCase|rt.Important)?t.style.setProperty(n,r,o&rt.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&rt.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,oD(r)):this.eventManager.addEventListener(t,n,oD(r))}}function sD(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class NN extends ed{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=rD(o.id,o.styles);for(const s of i){const a=document.createElement("style");a.textContent=s,this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}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)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class td extends ed{constructor(t,n,r,o,i=r.id){super(t),this.sharedStylesHost=n,this.removeStylesOnCompDestory=o,this.rendererUsageCount=0,this.styles=rD(i,r.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class aD extends td{constructor(t,n,r,o,i){const s=o+"-"+r.id;super(t,n,r,i,s),this.contentAttr=function TN(e){return"_ngcontent-%COMP%".replace(Xc,e)}(s),this.hostAttr=function xN(e){return"_nghost-%COMP%".replace(Xc,e)}(s)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){const r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}}let ON=(()=>{class e extends Xv{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)(M(Xe))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();const uD=["alt","control","meta","shift"],FN={"\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"},PN={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let kN=(()=>{class e extends Xv{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(()=>_n().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."),uD.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=FN[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"),uD.forEach(s=>{s!==o&&(0,PN[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)(M(Xe))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();const BN=iv(mx,"browser",[{provide:mc,useValue:"browser"},{provide:Ky,useValue:function LN(){Yc.makeCurrent()},multi:!0},{provide:Xe,useFactory:function jN(){return function fb(e){il=e}(document),document},deps:[]}]),dD=new S(""),fD=[{provide:zs,useClass:class bN{addToWindow(t){ue.getAngularTestability=(r,o=!0)=>{const i=t.findTestabilityInTree(r,o);if(null==i)throw new Error("Could not find testability for element.");return i},ue.getAllAngularTestabilities=()=>t.getAllTestabilities(),ue.getAllAngularRootElements=()=>t.getAllRootElements(),ue.frameworkStabilizers||(ue.frameworkStabilizers=[]),ue.frameworkStabilizers.push(r=>{const o=ue.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?_n().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},deps:[]},{provide:ev,useClass:_c,deps:[De,Cc,zs]},{provide:_c,useClass:_c,deps:[De,Cc,zs]}],hD=[{provide:pl,useValue:"root"},{provide:Rr,useFactory:function VN(){return new Rr},deps:[]},{provide:la,useClass:ON,multi:!0,deps:[Xe,De,mc]},{provide:la,useClass:kN,multi:!0,deps:[Xe]},{provide:Jc,useClass:Jc,deps:[ca,ui,ni,nD]},{provide:$p,useExisting:Jc},{provide:Jv,useExisting:ui},{provide:ui,useClass:ui,deps:[Xe]},{provide:ca,useClass:ca,deps:[la,De]},{provide:Wv,useClass:SN,deps:[]},[]];let $N=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:ni,useValue:n.appId},{provide:Qv,useExisting:ni},EN]}}}return e.\u0275fac=function(n){return new(n||e)(M(dD,12))},e.\u0275mod=It({type:e}),e.\u0275inj=vt({providers:[...hD,...fD],imports:[BR,yx]}),e})(),pD=(()=>{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)(M(Xe))},e.\u0275prov=A({token:e,factory:function(n){let r=null;return r=n?new n:function HN(){return new pD(M(Xe))}(),r},providedIn:"root"}),e})();function T(...e){return be(e,go(e))}typeof window<"u"&&window;class Vt extends nn{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 da=fo(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}),{isArray:ZN}=Array,{getPrototypeOf:YN,prototype:QN,keys:XN}=Object;function yD(e){if(1===e.length){const t=e[0];if(ZN(t))return{args:t,keys:null};if(function JN(e){return e&&"object"==typeof e&&YN(e)===QN}(t)){const n=XN(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}const{isArray:eO}=Array;function vD(e){return H(t=>function tO(e,t){return eO(t)?e(...t):e(t)}(e,t))}function DD(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function _D(...e){const t=go(e),n=Nf(e),{args:r,keys:o}=yD(e);if(0===r.length)return be([],t);const i=new ye(function nO(e,t,n=Gn){return r=>{CD(t,()=>{const{length:o}=e,i=new Array(o);let s=o,a=o;for(let u=0;u{const l=be(e[u],t);let c=!1;l.subscribe(Te(r,d=>{i[u]=d,c||(c=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,t,o?s=>DD(o,s):Gn));return n?i.pipe(vD(n)):i}function CD(e,t,n){e?rn(n,e,t):t()}function od(...e){return function rO(){return lr(1)}()(be(e,go(e)))}function wD(e){return new ye(t=>{mt(e()).subscribe(t)})}function li(e,t){const n=oe(e)?e:()=>e,r=o=>o.error(n());return new ye(t?o=>t.schedule(r,0,o):r)}function id(){return Oe((e,t)=>{let n=null;e._refCount++;const r=Te(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 ED extends ye{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,yf(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 gt;const n=this.getSubject();t.add(this.source.subscribe(Te(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=gt.EMPTY)}return t}refCount(){return id()(this)}}function Xt(e,t){return Oe((n,r)=>{let o=null,i=0,s=!1;const a=()=>s&&!o&&r.complete();n.subscribe(Te(r,u=>{o?.unsubscribe();let l=0;const c=i++;mt(e(u,c)).subscribe(o=Te(r,d=>r.next(t?t(u,d,c,l++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Qr(e){return e<=0?()=>jt:Oe((t,n)=>{let r=0;t.subscribe(Te(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function En(e,t){return Oe((n,r)=>{let o=0;n.subscribe(Te(r,i=>e.call(t,i,o++)&&r.next(i)))})}function fa(e){return Oe((t,n)=>{let r=!1;t.subscribe(Te(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function bD(e=iO){return Oe((t,n)=>{let r=!1;t.subscribe(Te(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function iO(){return new da}function On(e,t){const n=arguments.length>=2;return r=>r.pipe(e?En((o,i)=>e(o,i,r)):Gn,Qr(1),n?fa(t):bD(()=>new da))}function Fn(e,t){return oe(t)?Fe(e,t,1):Fe(e,1)}function Ge(e,t,n){const r=oe(e)||t||n?{next:e,error:t,complete:n}:e;return r?Oe((o,i)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;o.subscribe(Te(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)}))}):Gn}function Pn(e){return Oe((t,n)=>{let i,r=null,o=!1;r=t.subscribe(Te(n,void 0,void 0,s=>{i=mt(e(s,Pn(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function SD(e,t){return Oe(function sO(e,t,n,r,o){return(i,s)=>{let a=n,u=t,l=0;i.subscribe(Te(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()})))}}(e,t,arguments.length>=2,!0))}function sd(e){return e<=0?()=>jt:Oe((t,n)=>{let r=[];t.subscribe(Te(n,o=>{r.push(o),e{for(const o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function MD(e,t){const n=arguments.length>=2;return r=>r.pipe(e?En((o,i)=>e(o,i,r)):Gn,sd(1),n?fa(t):bD(()=>new da))}function ad(e){return Oe((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}const j="primary",ci=Symbol("RouteTitle");class lO{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 Xr(e){return new lO(e)}function cO(e,t,n){const r=n.path.split("/");if(r.length>e.length||"full"===n.pathMatch&&(t.hasChildren()||r.lengthr[i]===o)}return e===t}function AD(e){return Array.prototype.concat.apply([],e)}function TD(e){return e.length>0?e[e.length-1]:null}function je(e,t){for(const n in e)e.hasOwnProperty(n)&&t(e[n],n)}function kn(e){return Bl(e)?e:Wo(e)?be(Promise.resolve(e)):T(e)}const ha=!1,fO={exact:function ND(e,t,n){if(!or(e.segments,t.segments)||!pa(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(const r in t.children)if(!e.children[r]||!ND(e.children[r],t.children[r],n))return!1;return!0},subset:OD},xD={exact:function hO(e,t){return Jt(e,t)},subset:function pO(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>ID(e[n],t[n]))},ignored:()=>!0};function RD(e,t,n){return fO[n.paths](e.root,t.root,n.matrixParams)&&xD[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function OD(e,t,n){return FD(e,t,t.segments,n)}function FD(e,t,n,r){if(e.segments.length>n.length){const o=e.segments.slice(0,n.length);return!(!or(o,n)||t.hasChildren()||!pa(o,n,r))}if(e.segments.length===n.length){if(!or(e.segments,n)||!pa(e.segments,n,r))return!1;for(const o in t.children)if(!e.children[o]||!OD(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!!(or(e.segments,o)&&pa(e.segments,o,r)&&e.children[j])&&FD(e.children[j],t,i,r)}}function pa(e,t,n){return t.every((r,o)=>xD[n](e[o].parameters,r.parameters))}class Ln{constructor(t=new W([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Xr(this.queryParams)),this._queryParamMap}toString(){return yO.serialize(this)}}class W{constructor(t,n){this.segments=t,this.children=n,this.parent=null,je(n,(r,o)=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ga(this)}}class di{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap||(this._parameterMap=Xr(this.parameters)),this._parameterMap}toString(){return LD(this)}}function or(e,t){return e.length===t.length&&e.every((n,r)=>n.path===t[r].path)}let fi=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:function(){return new ud},providedIn:"root"}),e})();class ud{parse(t){const n=new MO(t);return new Ln(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){const n=`/${hi(t.root,!0)}`,r=function _O(e){const t=Object.keys(e).map(n=>{const r=e[n];return Array.isArray(r)?r.map(o=>`${ma(n)}=${ma(o)}`).join("&"):`${ma(n)}=${ma(r)}`}).filter(n=>!!n);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${n}${r}${"string"==typeof t.fragment?`#${function vO(e){return encodeURI(e)}(t.fragment)}`:""}`}}const yO=new ud;function ga(e){return e.segments.map(t=>LD(t)).join("/")}function hi(e,t){if(!e.hasChildren())return ga(e);if(t){const n=e.children[j]?hi(e.children[j],!1):"",r=[];return je(e.children,(o,i)=>{i!==j&&r.push(`${i}:${hi(o,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=function mO(e,t){let n=[];return je(e.children,(r,o)=>{o===j&&(n=n.concat(t(r,o)))}),je(e.children,(r,o)=>{o!==j&&(n=n.concat(t(r,o)))}),n}(e,(r,o)=>o===j?[hi(e.children[j],!1)]:[`${o}:${hi(r,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[j]?`${ga(e)}/${n[0]}`:`${ga(e)}/(${n.join("//")})`}}function PD(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ma(e){return PD(e).replace(/%3B/gi,";")}function ld(e){return PD(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ya(e){return decodeURIComponent(e)}function kD(e){return ya(e.replace(/\+/g,"%20"))}function LD(e){return`${ld(e.path)}${function DO(e){return Object.keys(e).map(t=>`;${ld(t)}=${ld(e[t])}`).join("")}(e.parameters)}`}const CO=/^[^\/()?;=#]+/;function va(e){const t=e.match(CO);return t?t[0]:""}const wO=/^[^=?&#]+/,bO=/^[^&#]+/;class MO{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new W([],{}):new W([],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[j]=new W(t,n)),r}parseSegment(){const t=va(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new C(4009,ha);return this.capture(t),new di(ya(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const n=va(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const o=va(this.remaining);o&&(r=o,this.capture(r))}t[ya(n)]=ya(r)}parseQueryParam(t){const n=function EO(e){const t=e.match(wO);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const s=function SO(e){const t=e.match(bO);return t?t[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const o=kD(n),i=kD(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=va(this.remaining),o=this.remaining[r.length];if("/"!==o&&")"!==o&&";"!==o)throw new C(4010,ha);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=j);const s=this.parseChildren();n[i]=1===Object.keys(s).length?s[j]:new W([],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,ha)}}function cd(e){return e.segments.length>0?new W([],{[j]:e}):e}function Da(e){const t={};for(const r of Object.keys(e.children)){const i=Da(e.children[r]);(i.segments.length>0||i.hasChildren())&&(t[r]=i)}return function IO(e){if(1===e.numberOfChildren&&e.children[j]){const t=e.children[j];return new W(e.segments.concat(t.segments),t.children)}return e}(new W(e.segments,t))}function ir(e){return e instanceof Ln}const dd=!1;function AO(e,t,n,r,o){if(0===n.length)return Jr(t.root,t.root,t.root,r,o);const i=function UD(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new $D(!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 je(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 $D(n,t,r)}(n);return i.toRoot()?Jr(t.root,t.root,new W([],{}),r,o):function s(u){const l=function xO(e,t,n,r){if(e.isAbsolute)return new eo(t.root,!0,0);if(-1===r)return new eo(n,n===t.root,0);return function HD(e,t,n){let r=e,o=t,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new C(4005,dd&&"Invalid number of '../'");o=r.segments.length}return new eo(r,!1,o-i)}(n,r+(pi(e.commands[0])?0:1),e.numberOfDoubleDots)}(i,t,e.snapshot?._urlSegment,u),c=l.processChildren?to(l.segmentGroup,l.index,i.commands):fd(l.segmentGroup,l.index,i.commands);return Jr(t.root,l.segmentGroup,c,r,o)}(e.snapshot?._lastPathIndex)}function pi(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function gi(e){return"object"==typeof e&&null!=e&&e.outlets}function Jr(e,t,n,r,o){let s,i={};r&&je(r,(u,l)=>{i[l]=Array.isArray(u)?u.map(c=>`${c}`):`${u}`}),s=e===t?n:BD(e,t,n);const a=cd(Da(s));return new Ln(a,i,o)}function BD(e,t,n){const r={};return je(e.children,(o,i)=>{r[i]=o===t?n:BD(o,t,n)}),new W(e.segments,r)}class $D{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&pi(r[0]))throw new C(4003,dd&&"Root segment cannot have matrix parameters");const o=r.find(gi);if(o&&o!==TD(r))throw new C(4004,dd&&"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class eo{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}}function fd(e,t,n){if(e||(e=new W([],{})),0===e.segments.length&&e.hasChildren())return to(e,t,n);const r=function NO(e,t,n){let r=0,o=t;const i={match:!1,pathIndex:0,commandIndex:0};for(;o=n.length)return i;const s=e.segments[o],a=n[r];if(gi(a))break;const u=`${a}`,l=r0&&void 0===u)break;if(u&&l&&"object"==typeof l&&void 0===l.outlets){if(!GD(u,l,s))return i;r+=2}else{if(!GD(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{"string"==typeof i&&(i=[i]),null!==i&&(o[s]=fd(e.children[s],t,i))}),je(e.children,(i,s)=>{void 0===r[s]&&(o[s]=i)}),new W(e.segments,o)}}function hd(e,t,n){const r=e.segments.slice(0,t);let o=0;for(;o{"string"==typeof n&&(n=[n]),null!==n&&(t[r]=hd(new W([],{}),0,n))}),t}function zD(e){const t={};return je(e,(n,r)=>t[r]=`${n}`),t}function GD(e,t,n){return e==n.path&&Jt(t,n.parameters)}const mi="imperative";class en{constructor(t,n){this.id=t,this.url=n}}class pd extends en{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 sr extends en{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 _a extends en{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 Ca extends en{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=16}}class gd extends en{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 FO extends en{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 PO extends en{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 kO extends en{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 LO extends en{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 VO extends en{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 jO{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class BO{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class $O{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class UO{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class HO{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class zO{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class WD{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}')`}}let qO=(()=>{class e{createUrlTree(n,r,o,i,s,a){return AO(n||r.root,o,i,s,a)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})(),ZO=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:function(t){return qO.\u0275fac(t)},providedIn:"root"}),e})();class qD{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=md(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){const n=md(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){const n=yd(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return yd(t,this._root).map(n=>n.value)}}function md(e,t){if(e===t.value)return t;for(const n of t.children){const r=md(e,n);if(r)return r}return null}function yd(e,t){if(e===t.value)return[t];for(const n of t.children){const r=yd(e,n);if(r.length)return r.unshift(t),r}return[]}class bn{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}}function no(e){const t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}class KD extends qD{constructor(t,n){super(t),this.snapshot=n,vd(this,t)}toString(){return this.snapshot.toString()}}function ZD(e,t){const n=function YO(e,t){const s=new wa([],{},{},"",{},j,t,null,e.root,-1,{});return new QD("",new bn(s,[]))}(e,t),r=new Vt([new di("",{})]),o=new Vt({}),i=new Vt({}),s=new Vt({}),a=new Vt(""),u=new ro(r,o,s,a,i,j,t,n.root);return u.snapshot=n.root,new KD(new bn(u,[]),n)}class ro{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(H(l=>l[ci]))??T(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(H(t=>Xr(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(H(t=>Xr(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function YD(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 QO(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 wa{get title(){return this.data?.[ci]}constructor(t,n,r,o,i,s,a,u,l,c,d){this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=u,this._urlSegment=l,this._lastPathIndex=c,this._resolve=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Xr(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Xr(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class QD extends qD{constructor(t,n){super(n),this.url=t,vd(this,n)}toString(){return XD(this._root)}}function vd(e,t){t.value._routerState=e,t.children.forEach(n=>vd(e,n))}function XD(e){const t=e.children.length>0?` { ${e.children.map(XD).join(", ")} } `:"";return`${e.value}${t}`}function Dd(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Jt(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),Jt(t.params,n.params)||e.params.next(n.params),function dO(e,t){if(e.length!==t.length)return!1;for(let n=0;nJt(n.parameters,t[r].parameters))}(e.url,t.url);return n&&!(!e.parent!=!t.parent)&&(!e.parent||_d(e.parent,t.parent))}function yi(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=t.value;const o=function JO(e,t,n){return t.children.map(r=>{for(const o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return yi(e,r,o);return yi(e,r)})}(e,t,n);return new bn(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=>yi(e,a)),s}}const r=function eF(e){return new ro(new Vt(e.url),new Vt(e.params),new Vt(e.queryParams),new Vt(e.fragment),new Vt(e.data),e.outlet,e.component,e)}(t.value),o=t.children.map(i=>yi(e,i));return new bn(r,o)}}const Cd="ngNavigationCancelingError";function JD(e,t){const{redirectTo:n,navigationBehaviorOptions:r}=ir(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=e_(!1,0,t);return o.url=n,o.navigationBehaviorOptions=r,o}function e_(e,t,n){const r=new Error("NavigationCancelingError: "+(e||""));return r[Cd]=!0,r.cancellationCode=t,n&&(r.url=n),r}function t_(e){return n_(e)&&ir(e.url)}function n_(e){return e&&e[Cd]}class tF{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new vi,this.attachRef=null}}let vi=(()=>{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 tF,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=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Ea=!1;let r_=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=j,this.activateEvents=new me,this.deactivateEvents=new me,this.attachEvents=new me,this.detachEvents=new me,this.parentContexts=z(vi),this.location=z(Ft),this.changeDetector=z(qs),this.environmentInjector=z(Gt)}ngOnChanges(n){if(n.name){const{firstChange:r,previousValue:o}=n.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const n=this.parentContexts.getContext(this.name);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,Ea);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new C(4012,Ea);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new C(4012,Ea);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,Ea);this._activatedRoute=n;const o=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,u=new nF(n,a,o.injector);if(r&&function rF(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)},e.\u0275dir=F({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[_t]}),e})();class nF{constructor(t,n,r){this.route=t,this.childContexts=n,this.parent=r}get(t,n){return t===ro?this.route:t===vi?this.childContexts:this.parent.get(t,n)}}let wd=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=dr({type:e,selectors:[["ng-component"]],standalone:!0,features:[sy],decls:1,vars:0,template:function(n,r){1&n&&gn(0,"router-outlet")},dependencies:[r_],encapsulation:2}),e})();function o_(e,t){return e.providers&&!e._injector&&(e._injector=Vs(e.providers,t,`Route: ${e.path}`)),e._injector??t}function bd(e){const t=e.children&&e.children.map(bd),n=t?{...e,children:t}:{...e};return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==j&&(n.component=wd),n}function Mt(e){return e.outlet||j}function i_(e,t){const n=e.filter(r=>Mt(r)===t);return n.push(...e.filter(r=>Mt(r)!==t)),n}function Di(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 uF{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),Dd(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){const o=no(n);t.children.forEach(i=>{const s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),je(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=no(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=no(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=no(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new zO(i.value.snapshot))}),t.children.length&&this.forwardEvent(new UO(t.value.snapshot))}activateRoutes(t,n,r){const o=t.value,i=n?n.value:null;if(Dd(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),Dd(a.route.value),this.activateChildRoutes(t,null,s.children)}else{const a=Di(o.snapshot),u=a?.get(Bo)??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 s_{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class ba{constructor(t,n){this.component=t,this.route=n}}function lF(e,t,n){const r=e._root;return _i(r,t?t._root:null,n,[r.value])}function oo(e,t){const n=Symbol(),r=t.get(e,n);return r===n?"function"!=typeof e||function rE(e){return null!==Li(e)}(e)?t.get(e):e:r}function _i(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=no(t);return e.children.forEach(s=>{(function dF(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 fF(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!or(e.url,t.url);case"pathParamsOrQueryParamsChange":return!or(e.url,t.url)||!Jt(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!_d(e,t)||!Jt(e.queryParams,t.queryParams);default:return!_d(e,t)}}(s,i,i.routeConfig.runGuardsAndResolvers);u?o.canActivateChecks.push(new s_(r)):(i.data=s.data,i._resolvedData=s._resolvedData),_i(e,t,i.component?a?a.children:null:n,r,o),u&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new ba(a.outlet.component,s))}else s&&Ci(t,a,o),o.canActivateChecks.push(new s_(r)),_i(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]}),je(i,(s,a)=>Ci(s,n.getContext(a),o)),o}function Ci(e,t,n){const r=no(e),o=e.value;je(r,(i,s)=>{Ci(i,o.component?t?t.children.getContext(s):null:t,n)}),n.canDeactivateChecks.push(new ba(o.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,o))}function wi(e){return"function"==typeof e}function Sd(e){return e instanceof da||"EmptyError"===e?.name}const Sa=Symbol("INITIAL_VALUE");function io(){return Xt(e=>_D(e.map(t=>t.pipe(Qr(1),function oO(...e){const t=go(e);return Oe((n,r)=>{(t?od(e,n,t):od(e,n)).subscribe(r)})}(Sa)))).pipe(H(t=>{for(const n of t)if(!0!==n){if(n===Sa)return Sa;if(!1===n||n instanceof Ln)return n}return!0}),En(t=>t!==Sa),Qr(1)))}function a_(e){return function sw(...e){return pf(e)}(Ge(t=>{if(ir(t))throw JD(0,t)}),H(t=>!0===t))}const Md={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function u_(e,t,n,r,o){const i=Id(e,t,n);return i.matched?function TF(e,t,n,r){const o=t.canMatch;return o&&0!==o.length?T(o.map(s=>{const a=oo(s,e);return kn(function vF(e){return e&&wi(e.canMatch)}(a)?a.canMatch(t,n):e.runInContext(()=>a(t,n)))})).pipe(io(),a_()):T(!0)}(r=o_(t,r),t,n).pipe(H(s=>!0===s?i:{...Md})):T(i)}function Id(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{...Md}:{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};const o=(t.matcher||cO)(n,e,t);if(!o)return{...Md};const i={};je(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 Ma(e,t,n,r){if(n.length>0&&function NF(e,t,n){return n.some(r=>Ia(e,t,r)&&Mt(r)!==j)}(e,n,r)){const i=new W(t,function RF(e,t,n,r){const o={};o[j]=r,r._sourceSegment=e,r._segmentIndexShift=t.length;for(const i of n)if(""===i.path&&Mt(i)!==j){const s=new W([],{});s._sourceSegment=e,s._segmentIndexShift=t.length,o[Mt(i)]=s}return o}(e,t,r,new W(n,e.children)));return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:[]}}if(0===n.length&&function OF(e,t,n){return n.some(r=>Ia(e,t,r))}(e,n,r)){const i=new W(e.segments,function xF(e,t,n,r,o){const i={};for(const s of r)if(Ia(e,n,s)&&!o[Mt(s)]){const a=new W([],{});a._sourceSegment=e,a._segmentIndexShift=t.length,i[Mt(s)]=a}return{...o,...i}}(e,t,n,r,e.children));return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:n}}const o=new W(e.segments,e.children);return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:n}}function Ia(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function l_(e,t,n,r){return!!(Mt(e)===r||r!==j&&Ia(t,n,e))&&("**"===e.path||Id(t,e,n).matched)}function c_(e,t,n){return 0===t.length&&!e.children[n]}const Aa=!1;class Ta{constructor(t){this.segmentGroup=t||null}}class d_{constructor(t){this.urlTree=t}}function Ei(e){return li(new Ta(e))}function f_(e){return li(new d_(e))}class LF{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=Ma(this.urlTree.root,[],[],this.config).segmentGroup,n=new W(t.segments,t.children);return this.expandSegmentGroup(this.injector,this.config,n,j).pipe(H(i=>this.createUrlTree(Da(i),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Pn(i=>{if(i instanceof d_)return this.allowRedirects=!1,this.match(i.urlTree);throw i instanceof Ta?this.noMatchError(i):i}))}match(t){return this.expandSegmentGroup(this.injector,this.config,t.root,j).pipe(H(o=>this.createUrlTree(Da(o),t.queryParams,t.fragment))).pipe(Pn(o=>{throw o instanceof Ta?this.noMatchError(o):o}))}noMatchError(t){return new C(4002,Aa)}createUrlTree(t,n,r){const o=cd(t);return new Ln(o,n,r)}expandSegmentGroup(t,n,r,o){return 0===r.segments.length&&r.hasChildren()?this.expandChildren(t,n,r).pipe(H(i=>new W([],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 be(o).pipe(Fn(i=>{const s=r.children[i],a=i_(n,i);return this.expandSegmentGroup(t,a,s,i).pipe(H(u=>({segment:u,outlet:i})))}),SD((i,s)=>(i[s.outlet]=s.segment,i),{}),MD())}expandSegment(t,n,r,o,i,s){return be(r).pipe(Fn(a=>this.expandSegmentAgainstRoute(t,n,r,a,o,i,s).pipe(Pn(l=>{if(l instanceof Ta)return T(null);throw l}))),On(a=>!!a),Pn((a,u)=>{if(Sd(a))return c_(n,o,i)?T(new W([],{})):Ei(n);throw a}))}expandSegmentAgainstRoute(t,n,r,o,i,s,a){return l_(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):Ei(n):Ei(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("/")?f_(i):this.lineralizeSegments(r,i).pipe(Fe(s=>{const a=new W(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}=Id(n,o,i);if(!a)return Ei(n);const d=this.applyRedirectCommands(u,o.redirectTo,c);return o.redirectTo.startsWith("/")?f_(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=o_(r,t),r.loadChildren?(r._loadedRoutes?T({routes:r._loadedRoutes,injector:r._loadedInjector}):this.configLoader.loadChildren(t,r)).pipe(H(a=>(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,new W(o,{})))):T(new W(o,{}))):u_(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}=Ma(n,a,u,f),g=new W(h.segments,h.children);if(0===p.length&&g.hasChildren())return this.expandChildren(d,f,g).pipe(H(y=>new W(a,y)));if(0===f.length&&0===p.length)return T(new W(a,{}));const m=Mt(r)===i;return this.expandSegment(d,g,f,p,m?j:i,!0).pipe(H(w=>new W(a.concat(w.segments),w.children)))})):Ei(n)))}getChildConfig(t,n,r){return n.children?T({routes:n.children,injector:t}):n.loadChildren?void 0!==n._loadedRoutes?T({routes:n._loadedRoutes,injector:n._loadedInjector}):function AF(e,t,n,r){const o=t.canLoad;return void 0===o||0===o.length?T(!0):T(o.map(s=>{const a=oo(s,e);return kn(function pF(e){return e&&wi(e.canLoad)}(a)?a.canLoad(t,n):e.runInContext(()=>a(t,n)))})).pipe(io(),a_())}(t,n,r).pipe(Fe(o=>o?this.configLoader.loadChildren(t,n).pipe(Ge(i=>{n._loadedRoutes=i.routes,n._loadedInjector=i.injector})):function PF(e){return li(e_(Aa,3))}())):T({routes:[],injector:t})}lineralizeSegments(t,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),0===o.numberOfChildren)return T(r);if(o.numberOfChildren>1||!o.children[j])return t.redirectTo,li(new C(4e3,Aa));o=o.children[j]}}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 Ln(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){const r={};return je(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 je(n.children,(a,u)=>{s[u]=this.createSegmentGroup(t,a,r,o)}),new W(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,Aa);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 jF{}class UF{constructor(t,n,r,o,i,s,a){this.injector=t,this.rootComponentType=n,this.config=r,this.urlTree=o,this.url=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a}recognize(){const t=Ma(this.urlTree.root,[],[],this.config.filter(n=>void 0===n.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,j).pipe(H(n=>{if(null===n)return null;const r=new wa([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},j,this.rootComponentType,null,this.urlTree.root,-1,{}),o=new bn(r,n),i=new QD(this.url,o);return this.inheritParamsAndData(i._root),i}))}inheritParamsAndData(t){const n=t.value,r=YD(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 be(Object.keys(r.children)).pipe(Fn(o=>{const i=r.children[o],s=i_(n,o);return this.processSegmentGroup(t,s,i,o)}),SD((o,i)=>o&&i?(o.push(...i),o):null),function aO(e,t=!1){return Oe((n,r)=>{let o=0;n.subscribe(Te(r,i=>{const s=e(i,o++);(s||t)&&r.next(i),!s&&r.complete()}))})}(o=>null!==o),fa(null),MD(),H(o=>{if(null===o)return null;const i=p_(o);return function HF(e){e.sort((t,n)=>t.value.outlet===j?-1:n.value.outlet===j?1:t.value.outlet.localeCompare(n.value.outlet))}(i),i}))}processSegment(t,n,r,o,i){return be(n).pipe(Fn(s=>this.processSegmentAgainstRoute(s._injector??t,s,r,o,i)),On(s=>!!s),Pn(s=>{if(Sd(s))return c_(r,o,i)?T([]):T(null);throw s}))}processSegmentAgainstRoute(t,n,r,o,i){if(n.redirectTo||!l_(n,r,o,i))return T(null);let s;if("**"===n.path){const a=o.length>0?TD(o).parameters:{},u=m_(r)+o.length;s=T({snapshot:new wa(o,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,y_(n),Mt(n),n.component??n._loadedComponent??null,n,g_(r),u,v_(n)),consumedSegments:[],remainingSegments:[]})}else s=u_(r,n,o,t).pipe(H(({matched:a,consumedSegments:u,remainingSegments:l,parameters:c})=>{if(!a)return null;const d=m_(r)+u.length;return{snapshot:new wa(u,c,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,y_(n),Mt(n),n.component??n._loadedComponent??null,n,g_(r),d,v_(n)),consumedSegments:u,remainingSegments:l}}));return s.pipe(Xt(a=>{if(null===a)return T(null);const{snapshot:u,consumedSegments:l,remainingSegments:c}=a;t=n._injector??t;const d=n._loadedInjector??t,f=function zF(e){return e.children?e.children:e.loadChildren?e._loadedRoutes:[]}(n),{segmentGroup:h,slicedSegments:p}=Ma(r,l,c,f.filter(m=>void 0===m.redirectTo));if(0===p.length&&h.hasChildren())return this.processChildren(d,f,h).pipe(H(m=>null===m?null:[new bn(u,m)]));if(0===f.length&&0===p.length)return T([new bn(u,[])]);const g=Mt(n)===i;return this.processSegment(d,f,h,p,g?j:i).pipe(H(m=>null===m?null:[new bn(u,m)]))}))}}function GF(e){const t=e.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function p_(e){const t=[],n=new Set;for(const r of e){if(!GF(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=p_(r.children);t.push(new bn(r.value,o))}return t.filter(r=>!n.has(r))}function g_(e){let t=e;for(;t._sourceSegment;)t=t._sourceSegment;return t}function m_(e){let t=e,n=t._segmentIndexShift??0;for(;t._sourceSegment;)t=t._sourceSegment,n+=t._segmentIndexShift??0;return n-1}function y_(e){return e.data||{}}function v_(e){return e.resolve||{}}function D_(e){return"string"==typeof e.title||null===e.title}function Ad(e){return Xt(t=>{const n=e(t);return n?be(n).pipe(H(()=>t)):T(t)})}const so=new S("ROUTES");let Td=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=z(Zy)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return T(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);const r=kn(n.loadComponent()).pipe(H(C_),Ge(i=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=i}),ad(()=>{this.componentLoaders.delete(n)})),o=new ED(r,()=>new nn).pipe(id());return this.componentLoaders.set(n,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return T({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const i=this.loadModuleFactoryOrRoutes(r.loadChildren).pipe(H(a=>{this.onLoadEndListener&&this.onLoadEndListener(r);let u,l,c=!1;Array.isArray(a)?l=a:(u=a.create(n).injector,l=AD(u.get(so,[],N.Self|N.Optional)));return{routes:l.map(bd),injector:u}}),ad(()=>{this.childrenLoaders.delete(r)})),s=new ED(i,()=>new nn).pipe(id());return this.childrenLoaders.set(r,s),s}loadModuleFactoryOrRoutes(n){return kn(n()).pipe(H(C_),Fe(r=>r instanceof oy||Array.isArray(r)?T(r):be(this.compiler.compileModuleAsync(r))))}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function C_(e){return function JF(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let Ra=(()=>{class e{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new nn,this.configLoader=z(Td),this.environmentInjector=z(Gt),this.urlSerializer=z(fi),this.rootContexts=z(vi),this.navigationId=0,this.afterPreactivation=()=>T(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new BO(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new jO(o))}complete(){this.transitions?.complete()}handleNavigationRequest(n){const r=++this.navigationId;this.transitions?.next({...this.transitions.value,...n,id:r})}setupNavigations(n){return this.transitions=new Vt({id:0,targetPageId:0,currentUrlTree:n.currentUrlTree,currentRawUrl:n.currentUrlTree,extractedUrl:n.urlHandlingStrategy.extract(n.currentUrlTree),urlAfterRedirects:n.urlHandlingStrategy.extract(n.currentUrlTree),rawUrl:n.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:mi,restoredState:null,currentSnapshot:n.routerState.snapshot,targetSnapshot:null,currentRouterState:n.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(En(r=>0!==r.id),H(r=>({...r,extractedUrl:n.urlHandlingStrategy.extract(r.rawUrl)})),Xt(r=>{let o=!1,i=!1;return T(r).pipe(Ge(s=>{this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),Xt(s=>{const a=n.browserUrlTree.toString(),u=!n.navigated||s.extractedUrl.toString()!==a||a!==n.currentUrlTree.toString();if(!u&&"reload"!==(s.extras.onSameUrlNavigation??n.onSameUrlNavigation)){const c="";return this.events.next(new Ca(s.id,n.serializeUrl(r.rawUrl),c,0)),n.rawUrlTree=s.rawUrl,s.resolve(null),jt}if(n.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return w_(s.source)&&(n.browserUrlTree=s.extractedUrl),T(s).pipe(Xt(c=>{const d=this.transitions?.getValue();return this.events.next(new pd(c.id,this.urlSerializer.serialize(c.extractedUrl),c.source,c.restoredState)),d!==this.transitions?.getValue()?jt:Promise.resolve(c)}),function VF(e,t,n,r){return Xt(o=>function kF(e,t,n,r,o){return new LF(e,t,n,r,o).apply()}(e,t,n,o.extractedUrl,r).pipe(H(i=>({...o,urlAfterRedirects:i}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,n.config),Ge(c=>{this.currentNavigation={...this.currentNavigation,finalUrl:c.urlAfterRedirects},r.urlAfterRedirects=c.urlAfterRedirects}),function qF(e,t,n,r,o){return Fe(i=>function $F(e,t,n,r,o,i,s="emptyOnly"){return new UF(e,t,n,r,o,s,i).recognize().pipe(Xt(a=>null===a?function BF(e){return new ye(t=>t.error(e))}(new jF):T(a)))}(e,t,n,i.urlAfterRedirects,r.serialize(i.urlAfterRedirects),r,o).pipe(H(s=>({...i,targetSnapshot:s}))))}(this.environmentInjector,this.rootComponentType,n.config,this.urlSerializer,n.paramsInheritanceStrategy),Ge(c=>{if(r.targetSnapshot=c.targetSnapshot,"eager"===n.urlUpdateStrategy){if(!c.extras.skipLocationChange){const f=n.urlHandlingStrategy.merge(c.urlAfterRedirects,c.rawUrl);n.setBrowserUrl(f,c)}n.browserUrlTree=c.urlAfterRedirects}const d=new FO(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}));if(u&&n.urlHandlingStrategy.shouldProcessUrl(n.rawUrlTree)){const{id:c,extractedUrl:d,source:f,restoredState:h,extras:p}=s,g=new pd(c,this.urlSerializer.serialize(d),f,h);this.events.next(g);const m=ZD(d,this.rootComponentType).snapshot;return T(r={...s,targetSnapshot:m,urlAfterRedirects:d,extras:{...p,skipLocationChange:!1,replaceUrl:!1}})}{const c="";return this.events.next(new Ca(s.id,n.serializeUrl(r.extractedUrl),c,1)),n.rawUrlTree=s.rawUrl,s.resolve(null),jt}}),Ge(s=>{const a=new PO(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),H(s=>r={...s,guards:lF(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function _F(e,t){return Fe(n=>{const{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return 0===s.length&&0===i.length?T({...n,guardsResult:!0}):function CF(e,t,n,r){return be(e).pipe(Fe(o=>function IF(e,t,n,r,o){const i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return i&&0!==i.length?T(i.map(a=>{const u=Di(t)??o,l=oo(a,u);return kn(function yF(e){return e&&wi(e.canDeactivate)}(l)?l.canDeactivate(e,t,n,r):u.runInContext(()=>l(e,t,n,r))).pipe(On())})).pipe(io()):T(!0)}(o.component,o.route,n,t,r)),On(o=>!0!==o,!0))}(s,r,o,e).pipe(Fe(a=>a&&function hF(e){return"boolean"==typeof e}(a)?function wF(e,t,n,r){return be(t).pipe(Fn(o=>od(function bF(e,t){return null!==e&&t&&t(new $O(e)),T(!0)}(o.route.parent,r),function EF(e,t){return null!==e&&t&&t(new HO(e)),T(!0)}(o.route,r),function MF(e,t,n){const r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(s=>function cF(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=>wD(()=>T(s.guards.map(u=>{const l=Di(s.node)??n,c=oo(u,l);return kn(function mF(e){return e&&wi(e.canActivateChild)}(c)?c.canActivateChild(r,e):l.runInContext(()=>c(r,e))).pipe(On())})).pipe(io())));return T(i).pipe(io())}(e,o.path,n),function SF(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||0===r.length)return T(!0);const o=r.map(i=>wD(()=>{const s=Di(t)??n,a=oo(i,s);return kn(function gF(e){return e&&wi(e.canActivate)}(a)?a.canActivate(t,e):s.runInContext(()=>a(t,e))).pipe(On())}));return T(o).pipe(io())}(e,o.route,n))),On(o=>!0!==o,!0))}(r,i,e,t):T(a)),H(a=>({...n,guardsResult:a})))})}(this.environmentInjector,s=>this.events.next(s)),Ge(s=>{if(r.guardsResult=s.guardsResult,ir(s.guardsResult))throw JD(0,s.guardsResult);const a=new kO(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),En(s=>!!s.guardsResult||(n.restoreHistory(s),this.cancelNavigationTransition(s,"",3),!1)),Ad(s=>{if(s.guards.canActivateChecks.length)return T(s).pipe(Ge(a=>{const u=new LO(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(u)}),Xt(a=>{let u=!1;return T(a).pipe(function KF(e,t){return Fe(n=>{const{targetSnapshot:r,guards:{canActivateChecks:o}}=n;if(!o.length)return T(n);let i=0;return be(o).pipe(Fn(s=>function ZF(e,t,n,r){const o=e.routeConfig,i=e._resolve;return void 0!==o?.title&&!D_(o)&&(i[ci]=o.title),function YF(e,t,n,r){const o=function QF(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===o.length)return T({});const i={};return be(o).pipe(Fe(s=>function XF(e,t,n,r){const o=Di(t)??r,i=oo(e,o);return kn(i.resolve?i.resolve(t,n):o.runInContext(()=>i(t,n)))}(e[s],t,n,r).pipe(On(),Ge(a=>{i[s]=a}))),sd(1),function uO(e){return H(()=>e)}(i),Pn(s=>Sd(s)?jt:li(s)))}(i,e,t,r).pipe(H(s=>(e._resolvedData=s,e.data=YD(e,n).resolve,o&&D_(o)&&(e.data[ci]=o.title),null)))}(s.route,r,e,t)),Ge(()=>i++),sd(1),Fe(s=>i===o.length?T(n):jt))})}(n.paramsInheritanceStrategy,this.environmentInjector),Ge({next:()=>u=!0,complete:()=>{u||(n.restoreHistory(a),this.cancelNavigationTransition(a,"",2))}}))}),Ge(a=>{const u=new VO(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(u)}))}),Ad(s=>{const a=u=>{const l=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&l.push(this.configLoader.loadComponent(u.routeConfig).pipe(Ge(c=>{u.component=c}),H(()=>{})));for(const c of u.children)l.push(...a(c));return l};return _D(a(s.targetSnapshot.root)).pipe(fa(),Qr(1))}),Ad(()=>this.afterPreactivation()),H(s=>{const a=function XO(e,t,n){const r=yi(e,t._root,n?n._root:void 0);return new KD(r,t)}(n.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return r={...s,targetRouterState:a}}),Ge(s=>{n.currentUrlTree=s.urlAfterRedirects,n.rawUrlTree=n.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),n.routerState=s.targetRouterState,"deferred"===n.urlUpdateStrategy&&(s.extras.skipLocationChange||n.setBrowserUrl(n.rawUrlTree,s),n.browserUrlTree=s.urlAfterRedirects)}),((e,t,n)=>H(r=>(new uF(t,r.targetRouterState,r.currentRouterState,n).activate(e),r)))(this.rootContexts,n.routeReuseStrategy,s=>this.events.next(s)),Qr(1),Ge({next:s=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,n.navigated=!0,this.events.next(new sr(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(n.currentUrlTree))),n.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{o=!0}}),ad(()=>{o||i||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),Pn(s=>{if(i=!0,n_(s)){t_(s)||(n.navigated=!0,n.restoreHistory(r,!0));const a=new _a(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode);if(this.events.next(a),t_(s)){const u=n.urlHandlingStrategy.merge(s.url,n.rawUrlTree),l={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===n.urlUpdateStrategy||w_(r.source)};n.scheduleNavigation(u,mi,null,l,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{n.restoreHistory(r,!0);const a=new gd(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);this.events.next(a);try{r.resolve(n.errorHandler(s))}catch(u){r.reject(u)}}return jt}))}))}cancelNavigationTransition(n,r,o){const i=new _a(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(i),n.resolve(!1)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function w_(e){return e!==mi}let E_=(()=>{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===j);return r}getResolvedTitleForRoute(n){return n.data[ci]}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:function(){return z(eP)},providedIn:"root"}),e})(),eP=(()=>{class e extends E_{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)(M(pD))},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),tP=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:function(){return z(rP)},providedIn:"root"}),e})();class nP{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}}let rP=(()=>{class e extends nP{}return e.\u0275fac=function(){let t;return function(r){return(t||(t=Le(e)))(r||e)}}(),e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Na=new S("",{providedIn:"root",factory:()=>({})});let iP=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:function(){return z(sP)},providedIn:"root"}),e})(),sP=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function aP(e){throw e}function uP(e,t,n){return t.parse("/")}const lP={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},cP={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ht=(()=>{class e{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){if("computed"===this.canceledNavigationResolution)return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=z(LT),this.isNgZoneEnabled=!1,this.options=z(Na,{optional:!0})||{},this.errorHandler=this.options.errorHandler||aP,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||uP,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=z(iP),this.routeReuseStrategy=z(tP),this.urlCreationStrategy=z(ZO),this.titleStrategy=z(E_),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=AD(z(so,{optional:!0})??[]),this.navigationTransitions=z(Ra),this.urlSerializer=z(fi),this.location=z(Nc),this.isNgZoneEnabled=z(De)instanceof De&&De.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Ln,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=ZD(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(n=>{this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId??0},n=>{this.console.warn(`Unhandled Navigation Error: ${n}`)})}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const n=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),mi,n)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(n=>{const r="popstate"===n.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{this.navigateToSyncWithBrowser(n.url,r,n.state)},0)}))}navigateToSyncWithBrowser(n,r,o){const i={replaceUrl:!0},s=o?.navigationId?o:null;if(o){const u={...o};delete u.navigationId,delete u.\u0275routerPageId,0!==Object.keys(u).length&&(i.state=u)}const a=this.parseUrl(n);this.scheduleNavigation(a,r,s,i)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(n){this.config=n.map(bd),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.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=u?this.currentUrlTree.fragment:s;let c=null;switch(a){case"merge":c={...this.currentUrlTree.queryParams,...i};break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}return null!==c&&(c=this.removeEmptyProps(c)),this.urlCreationStrategy.createUrlTree(o,this.routerState,this.currentUrlTree,n,c,l??null)}navigateByUrl(n,r={skipLocationChange:!1}){const o=ir(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,mi,null,r)}navigate(n,r={skipLocationChange:!1}){return function dP(e){for(let t=0;t{const i=n[o];return null!=i&&(r[o]=i),r},{})}scheduleNavigation(n,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let a,u,l,c;return s?(a=s.resolve,u=s.reject,l=s.promise):l=new Promise((d,f)=>{a=d,u=f}),c="computed"===this.canceledNavigationResolution?o&&o.\u0275routerPageId?o.\u0275routerPageId:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:c,source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:i,resolve:a,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(d=>Promise.reject(d))}setBrowserUrl(n,r){const o=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){const s={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId)};this.location.replaceState(o,"",s)}else{const i={...r.extras.state,...this.generateNgRouterState(r.id,r.targetPageId)};this.location.go(o,"",i)}}restoreHistory(n,r=!1){if("computed"===this.canceledNavigationResolution){const i=this.currentPageId-(this.browserPageId??this.currentPageId);0!==i?this.location.historyGo(i):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===i&&(this.resetState(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree())}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))}generateNgRouterState(n,r){return"computed"===this.canceledNavigationResolution?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class b_{}let pP=(()=>{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(En(n=>n instanceof sr),Fn(()=>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 be(o).pipe(lr())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let o;o=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(n,r):T(null);const i=o.pipe(Fe(s=>null===s?T(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??n,s.routes))));return r.loadComponent&&!r._loadedComponent?be([i,this.loader.loadComponent(r)]).pipe(lr()):i})}}return e.\u0275fac=function(n){return new(n||e)(M(ht),M(Zy),M(Gt),M(b_),M(Td))},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Nd=new S("");let S_=(()=>{class e{constructor(n,r,o,i,s={}){this.urlSerializer=n,this.transitions=r,this.viewportScroller=o,this.zone=i,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof pd?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof sr&&(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof WD&&(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.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new WD(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return e.\u0275fac=function(n){!function sg(){throw new Error("invalid")}()},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();var pt=(()=>((pt=pt||{})[pt.COMPLETE=0]="COMPLETE",pt[pt.FAILED=1]="FAILED",pt[pt.REDIRECTING=2]="REDIRECTING",pt))();const ao=!1;function Vn(e,t){return{\u0275kind:e,\u0275providers:t}}const Od=new S("",{providedIn:"root",factory:()=>!1});function I_(){const e=z(Wt);return t=>{const n=e.get(Gs);if(t!==n.components[0])return;const r=e.get(ht),o=e.get(A_);1===e.get(Fd)&&r.initialNavigation(),e.get(T_,null,N.Optional)?.setUpPreloading(),e.get(Nd,null,N.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}const A_=new S(ao?"bootstrap done indicator":"",{factory:()=>new nn}),Fd=new S(ao?"initial navigation":"",{providedIn:"root",factory:()=>1});function DP(){let e=[];return e=ao?[{provide:gs,multi:!0,useFactory:()=>{const t=z(ht);return()=>t.events.subscribe(n=>{console.group?.(`Router Event: ${n.constructor.name}`),console.log(function GO(e){if(!("type"in e))return`Unknown Router Event: ${e.constructor.name}`;switch(e.type){case 14:return`ActivationEnd(path: '${e.snapshot.routeConfig?.path||""}')`;case 13:return`ActivationStart(path: '${e.snapshot.routeConfig?.path||""}')`;case 12:return`ChildActivationEnd(path: '${e.snapshot.routeConfig?.path||""}')`;case 11:return`ChildActivationStart(path: '${e.snapshot.routeConfig?.path||""}')`;case 8:return`GuardsCheckEnd(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}', state: ${e.state}, shouldActivate: ${e.shouldActivate})`;case 7:return`GuardsCheckStart(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}', state: ${e.state})`;case 2:return`NavigationCancel(id: ${e.id}, url: '${e.url}')`;case 16:return`NavigationSkipped(id: ${e.id}, url: '${e.url}')`;case 1:return`NavigationEnd(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}')`;case 3:return`NavigationError(id: ${e.id}, url: '${e.url}', error: ${e.error})`;case 0:return`NavigationStart(id: ${e.id}, url: '${e.url}')`;case 6:return`ResolveEnd(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}', state: ${e.state})`;case 5:return`ResolveStart(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}', state: ${e.state})`;case 10:return`RouteConfigLoadEnd(path: ${e.route.path})`;case 9:return`RouteConfigLoadStart(path: ${e.route.path})`;case 4:return`RoutesRecognized(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}', state: ${e.state})`;case 15:return`Scroll(anchor: '${e.anchor}', position: '${e.position?`${e.position[0]}, ${e.position[1]}`:null}')`}}(n)),console.log(n),console.groupEnd?.()})}}]:[],Vn(1,e)}const T_=new S(ao?"router preloader":"");function _P(e){return Vn(0,[{provide:T_,useExisting:pP},{provide:b_,useExisting:e}])}const bi=!1,x_=new S(bi?"router duplicate forRoot guard":"ROUTER_FORROOT_GUARD"),CP=[Nc,{provide:fi,useClass:ud},ht,vi,{provide:ro,useFactory:function M_(e){return e.routerState.root},deps:[ht]},Td,bi?{provide:Od,useValue:!0}:[]];function wP(){return new rv("Router",ht)}let R_=(()=>{class e{constructor(n){}static forRoot(n,r){return{ngModule:e,providers:[CP,bi&&r?.enableTracing?DP().\u0275providers:[],{provide:so,multi:!0,useValue:n},{provide:x_,useFactory:MP,deps:[[ht,new xo,new Ro]]},{provide:Na,useValue:r||{}},r?.useHash?{provide:rr,useClass:bx}:{provide:rr,useClass:Mv},{provide:Nd,useFactory:()=>{const e=z(zR),t=z(De),n=z(Na),r=z(Ra),o=z(fi);return n.scrollOffset&&e.setOffset(n.scrollOffset),new S_(o,r,e,t,n)}},r?.preloadingStrategy?_P(r.preloadingStrategy).\u0275providers:[],{provide:rv,multi:!0,useFactory:wP},r?.initialNavigation?IP(r):[],[{provide:N_,useFactory:I_},{provide:nv,multi:!0,useExisting:N_}]]}}static forChild(n){return{ngModule:e,providers:[{provide:so,multi:!0,useValue:n}]}}}return e.\u0275fac=function(n){return new(n||e)(M(x_,8))},e.\u0275mod=It({type:e}),e.\u0275inj=vt({imports:[wd]}),e})();function MP(e){if(bi&&e)throw new C(4007,"The Router was provided more than once. This can happen if 'forRoot' is used outside of the root injector. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function IP(e){return["disabled"===e.initialNavigation?Vn(3,[{provide:Us,multi:!0,useFactory:()=>{const t=z(ht);return()=>{t.setUpLocationChangeListener()}}},{provide:Fd,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?Vn(2,[{provide:Fd,useValue:0},{provide:Us,multi:!0,deps:[Wt],useFactory:t=>{const n=t.get(wx,Promise.resolve());return()=>n.then(()=>new Promise(r=>{const o=t.get(ht),i=t.get(A_);(function gP(e,t){e.events.pipe(En(n=>n instanceof sr||n instanceof _a||n instanceof gd||n instanceof Ca),H(n=>n instanceof sr||n instanceof Ca?pt.COMPLETE:n instanceof _a&&(0===n.code||1===n.code)?pt.REDIRECTING:pt.FAILED),En(n=>n!==pt.REDIRECTING),Qr(1)).subscribe(()=>{t()})})(o,()=>{r(!0)}),t.get(Ra).afterPreactivation=()=>(r(!0),i.closed?T(void 0):i),o.initialNavigation()}))}}]).\u0275providers:[]]}const N_=new S(bi?"Router Initializer":""),TP=[];let xP=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=It({type:e});static#n=this.\u0275inj=vt({imports:[R_.forRoot(TP),R_]})}return e})();class Oa{}class Pd{}class Sn{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(n=>{const r=n.indexOf(":");if(r>0){const o=n.slice(0,r),i=o.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{let o;if(o="string"==typeof r?[r]:"number"==typeof r?[r.toString()]:r.map(i=>i.toString()),o.length>0){const i=n.toLowerCase();this.headers.set(i,o),this.maybeSetNormalizedName(n,i)}})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof Sn?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){const n=new Sn;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof Sn?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){const n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(t.name,n);const o=("a"===t.op?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":const i=t.value;if(i){let s=this.headers.get(n);if(!s)return;s=s.filter(a=>-1===i.indexOf(a)),0===s.length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}else this.headers.delete(n),this.normalizedNames.delete(n)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}}class RP{encodeKey(t){return O_(t)}encodeValue(t){return O_(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const OP=/%(\d[a-f0-9])/gi,FP={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function O_(e){return encodeURIComponent(e).replace(OP,(t,n)=>FP[n]??t)}function Fa(e){return`${e}`}class jn{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new RP,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function NP(e,t){const n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{const i=o.indexOf("="),[s,a]=-1==i?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],u=n.get(s)||[];u.push(a),n.set(s,u)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{const r=t.fromObject[n],o=Array.isArray(r)?r.map(Fa):[Fa(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){const n=[];return Object.keys(t).forEach(r=>{const o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const n=new jn({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const n=("a"===t.op?this.map.get(t.param):void 0)||[];n.push(Fa(t.value)),this.map.set(t.param,n);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let r=this.map.get(t.param)||[];const o=r.indexOf(Fa(t.value));-1!==o&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class PP{constructor(){this.map=new Map}set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function F_(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function P_(e){return typeof Blob<"u"&&e instanceof Blob}function k_(e){return typeof FormData<"u"&&e instanceof FormData}class Si{constructor(t,n,r,o){let i;if(this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function kP(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==r?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params)),this.headers||(this.headers=new Sn),this.context||(this.context=new PP),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=n;else{const a=n.indexOf("?");this.urlWithParams=n+(-1===a?"?":ad.set(f,t.setHeaders[f]),u)),t.setParams&&(l=Object.keys(t.setParams).reduce((d,f)=>d.set(f,t.setParams[f]),l)),new Si(n,r,i,{params:l,headers:u,context:c,reportProgress:a,responseType:o,withCredentials:s})}}var Ae=(()=>((Ae=Ae||{})[Ae.Sent=0]="Sent",Ae[Ae.UploadProgress=1]="UploadProgress",Ae[Ae.ResponseHeader=2]="ResponseHeader",Ae[Ae.DownloadProgress=3]="DownloadProgress",Ae[Ae.Response=4]="Response",Ae[Ae.User=5]="User",Ae))();class kd{constructor(t,n=200,r="OK"){this.headers=t.headers||new Sn,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Ld extends kd{constructor(t={}){super(t),this.type=Ae.ResponseHeader}clone(t={}){return new Ld({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Pa extends kd{constructor(t={}){super(t),this.type=Ae.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Pa({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class L_ extends kd{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function Vd(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let V_=(()=>{class e{constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof Si)i=n;else{let u,l;u=o.headers instanceof Sn?o.headers:new Sn(o.headers),o.params&&(l=o.params instanceof jn?o.params:new jn({fromObject:o.params})),i=new Si(n,r,void 0!==o.body?o.body:null,{headers:u,context:o.context,params:l,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const s=T(i).pipe(Fn(u=>this.handler.handle(u)));if(n instanceof Si||"events"===o.observe)return s;const a=s.pipe(En(u=>u instanceof Pa));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(H(u=>{if(null!==u.body&&!(u.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return u.body}));case"blob":return a.pipe(H(u=>{if(null!==u.body&&!(u.body instanceof Blob))throw new Error("Response is not a Blob.");return u.body}));case"text":return a.pipe(H(u=>{if(null!==u.body&&"string"!=typeof u.body)throw new Error("Response is not a string.");return u.body}));default:return a.pipe(H(u=>u.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:(new jn).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,Vd(o,r))}post(n,r,o={}){return this.request("POST",n,Vd(o,r))}put(n,r,o={}){return this.request("PUT",n,Vd(o,r))}}return e.\u0275fac=function(n){return new(n||e)(M(Oa))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();function j_(e,t){return t(e)}function VP(e,t){return(n,r)=>t.intercept(n,{handle:o=>e(o,r)})}const BP=new S("HTTP_INTERCEPTORS"),Mi=new S("HTTP_INTERCEPTOR_FNS");function $P(){let e=null;return(t,n)=>(null===e&&(e=(z(BP,{optional:!0})??[]).reduceRight(VP,j_)),e(t,n))}let B_=(()=>{class e extends Oa{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null}handle(n){if(null===this.chain){const r=Array.from(new Set(this.injector.get(Mi)));this.chain=r.reduceRight((o,i)=>function jP(e,t,n){return(r,o)=>n.runInContext(()=>t(r,i=>e(i,o)))}(o,i,this.injector),j_)}return this.chain(n,r=>this.backend.handle(r))}}return e.\u0275fac=function(n){return new(n||e)(M(Pd),M(Gt))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();const GP=/^\)\]\}',?\n/;let U_=(()=>{class e{constructor(n){this.xhrFactory=n}handle(n){if("JSONP"===n.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new ye(r=>{const o=this.xhrFactory.build();if(o.open(n.method,n.urlWithParams),n.withCredentials&&(o.withCredentials=!0),n.headers.forEach((h,p)=>o.setRequestHeader(h,p.join(","))),n.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){const h=n.detectContentTypeHeader();null!==h&&o.setRequestHeader("Content-Type",h)}if(n.responseType){const h=n.responseType.toLowerCase();o.responseType="json"!==h?h:"text"}const i=n.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const h=o.statusText||"OK",p=new Sn(o.getAllResponseHeaders()),g=function WP(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(o)||n.url;return s=new Ld({headers:p,status:o.status,statusText:h,url:g}),s},u=()=>{let{headers:h,status:p,statusText:g,url:m}=a(),v=null;204!==p&&(v=typeof o.response>"u"?o.responseText:o.response),0===p&&(p=v?200:0);let w=p>=200&&p<300;if("json"===n.responseType&&"string"==typeof v){const y=v;v=v.replace(GP,"");try{v=""!==v?JSON.parse(v):null}catch(I){v=y,w&&(w=!1,v={error:I,text:v})}}w?(r.next(new Pa({body:v,headers:h,status:p,statusText:g,url:m||void 0})),r.complete()):r.error(new L_({error:v,headers:h,status:p,statusText:g,url:m||void 0}))},l=h=>{const{url:p}=a(),g=new L_({error:h,status:o.status||0,statusText:o.statusText||"Unknown Error",url:p||void 0});r.error(g)};let c=!1;const d=h=>{c||(r.next(a()),c=!0);let p={type:Ae.DownloadProgress,loaded:h.loaded};h.lengthComputable&&(p.total=h.total),"text"===n.responseType&&o.responseText&&(p.partialText=o.responseText),r.next(p)},f=h=>{let p={type:Ae.UploadProgress,loaded:h.loaded};h.lengthComputable&&(p.total=h.total),r.next(p)};return o.addEventListener("load",u),o.addEventListener("error",l),o.addEventListener("timeout",l),o.addEventListener("abort",l),n.reportProgress&&(o.addEventListener("progress",d),null!==i&&o.upload&&o.upload.addEventListener("progress",f)),o.send(i),r.next({type:Ae.Sent}),()=>{o.removeEventListener("error",l),o.removeEventListener("abort",l),o.removeEventListener("load",u),o.removeEventListener("timeout",l),n.reportProgress&&(o.removeEventListener("progress",d),null!==i&&o.upload&&o.upload.removeEventListener("progress",f)),o.readyState!==o.DONE&&o.abort()}})}}return e.\u0275fac=function(n){return new(n||e)(M(Wv))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();const jd=new S("XSRF_ENABLED"),H_=new S("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),z_=new S("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class G_{}let ZP=(()=>{class e{constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=kv(n,this.cookieName),this.lastCookieString=n),this.lastToken}}return e.\u0275fac=function(n){return new(n||e)(M(Xe),M(mc),M(H_))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();function YP(e,t){const n=e.url.toLowerCase();if(!z(jd)||"GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t(e);const r=z(G_).getToken(),o=z(z_);return null!=r&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),t(e)}var we=(()=>((we=we||{})[we.Interceptors=0]="Interceptors",we[we.LegacyInterceptors=1]="LegacyInterceptors",we[we.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",we[we.NoXsrfProtection=3]="NoXsrfProtection",we[we.JsonpSupport=4]="JsonpSupport",we[we.RequestsMadeViaParent=5]="RequestsMadeViaParent",we))();function uo(e,t){return{\u0275kind:e,\u0275providers:t}}function QP(...e){const t=[V_,U_,B_,{provide:Oa,useExisting:B_},{provide:Pd,useExisting:U_},{provide:Mi,useValue:YP,multi:!0},{provide:jd,useValue:!0},{provide:G_,useClass:ZP}];for(const n of e)t.push(...n.\u0275providers);return function Pb(e){return{\u0275providers:e}}(t)}const W_=new S("LEGACY_INTERCEPTOR_FN");let JP=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=It({type:e}),e.\u0275inj=vt({providers:[QP(uo(we.LegacyInterceptors,[{provide:W_,useFactory:$P},{provide:Mi,useExisting:W_,multi:!0}]))]}),e})(),e1=(()=>{class e{constructor(n){this.http=n,this.apiUrl="https://api.privatbank.ua/p24api/exchange_rates?json&date=",this.corsProxyUrl="https://api.allorigins.win/raw?url="}getCurrencyData(){const n=new Date,r=`${n.getDate()}.${n.getMonth()+1}.${n.getFullYear()}`,o=this.corsProxyUrl+encodeURIComponent(this.apiUrl+r);return this.http.get(o)}static#e=this.\u0275fac=function(r){return new(r||e)(M(V_))};static#t=this.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),t1=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=dr({type:e,selectors:[["app-exchange-rates"]],inputs:{currencies:"currencies"},decls:38,vars:6,consts:[[1,"rates"],[1,"rates-names"],[1,"rates-names-value"],[1,"rates-names-buys"],[1,"rates-names-sells"],[1,"rates-eurmoney"],[1,"rates-eurmoney-value"],[1,"rates-eurmoney-uah"],[1,"rates-eurmoney-buys"],[1,"rates-eurmoney-sells"],[1,"line"],[1,"rates-usdmoney"],[1,"rates-usdmoney-value"],[1,"rates-usdmoney-uah"],[1,"rates-usdmoney-buys"],[1,"rates-usdmoney-sells"]],template:function(r,o){1&r&&(V(0,"div",0)(1,"div",1)(2,"h2",2),Z(3,"\u0412\u0430\u043b\u044e\u0442\u0430"),B(),V(4,"h2",3),Z(5,"\u041a\u0443\u043f\u0456\u0432\u043b\u044f"),B(),V(6,"h2",4),Z(7,"\u041f\u0440\u043e\u0434\u0430\u0436"),B()(),V(8,"div",5)(9,"h2",6),Z(10,"EUR"),B(),V(11,"h2",7),Z(12,"UAH"),B(),V(13,"h2",8),Z(14),B(),V(15,"h2",9),Z(16),B()(),gn(17,"div",10),V(18,"div",11)(19,"h2",12),Z(20,"USD"),B(),V(21,"h2",13),Z(22,"UAH"),B(),V(23,"h2",14),Z(24),B(),V(25,"h2",15),Z(26),B()(),gn(27,"div",10),V(28,"div",11)(29,"h2",12),Z(30,"PLN"),B(),V(31,"h2",13),Z(32,"UAH"),B(),V(33,"h2",14),Z(34),B(),V(35,"h2",15),Z(36),B()(),gn(37,"div",10),B()),2&r&&(te(14),mn(o.currencies.eur.buys),te(2),mn(o.currencies.eur.sells),te(8),mn(o.currencies.usd.buys),te(2),mn(o.currencies.usd.sells),te(8),mn(o.currencies.pln.buys),te(2),mn(o.currencies.pln.sells))},styles:['@font-face{font-family:PragmaticaC-Bold;src:url(pragmaticac-bold.3a7e4c297e1cd897.otf) format("woff2"),url(pragmaticac.b6e388cd0aebf0fc.otf) format("woff");font-weight:700;font-style:normal}@font-face{font-family:PragmaticaC;src:url(pragmaticac.b6e388cd0aebf0fc.otf) format("woff2"),url(pragmaticac.b6e388cd0aebf0fc.otf) format("woff");font-weight:700;font-style:normal}.rates[_ngcontent-%COMP%]{font-family:PragmaticaC-Bold,sans-serif;box-sizing:border-box;display:flex;flex-direction:column;justify-content:flex-end;width:450px}@media (max-width: 767px){.rates[_ngcontent-%COMP%]{width:100%}}.rates-names[_ngcontent-%COMP%]{display:flex;flex-direction:row;font-family:PragmaticaC,sans-serif;color:gray}.rates-names-value[_ngcontent-%COMP%]{margin-right:auto}.rates-names-buys[_ngcontent-%COMP%]{margin-left:100px;margin-right:50px}@media (max-width: 767px){.rates-names-buys[_ngcontent-%COMP%]{margin-left:30px;margin-right:30px}}.rates-names-sells[_ngcontent-%COMP%]{margin-left:auto}.rates-usdmoney[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between}.rates-usdmoney-uah[_ngcontent-%COMP%]{margin-left:10px;color:gray;font-family:PragmaticaC,sans-serif;margin-right:auto}.rates-usdmoney-buys[_ngcontent-%COMP%]{margin-left:100px;margin-right:50px}@media (max-width: 767px){.rates-usdmoney-buys[_ngcontent-%COMP%]{margin-left:30px;margin-right:30px}}.rates-usdmoney-sells[_ngcontent-%COMP%]{margin-left:auto}.rates-eurmoney[_ngcontent-%COMP%]{display:flex;flex-direction:row}.rates-eurmoney-uah[_ngcontent-%COMP%]{margin-left:10px;color:gray;font-family:PragmaticaC,sans-serif;margin-right:auto}.rates-eurmoney-buys[_ngcontent-%COMP%]{margin-left:100px;margin-right:50px}@media (max-width: 767px){.rates-eurmoney-buys[_ngcontent-%COMP%]{margin-left:30px;margin-right:30px}}.rates-eurmoney-sells[_ngcontent-%COMP%]{margin-left:auto}.line[_ngcontent-%COMP%]{border:1px solid #E2E6E9;width:100%}']})}return e})(),q_=(()=>{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)(_(fn),_(dt))},e.\u0275dir=F({type:e}),e})(),ar=(()=>{class e extends q_{}return e.\u0275fac=function(){let t;return function(r){return(t||(t=Le(e)))(r||e)}}(),e.\u0275dir=F({type:e,features:[ne]}),e})();const tn=new S("NgValueAccessor"),o1={provide:tn,useExisting:se(()=>ka),multi:!0},s1=new S("CompositionEventMode");let ka=(()=>{class e extends q_{constructor(n,r,o){super(n,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function i1(){const e=_n()?_n().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)(_(fn),_(dt),_(s1,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&&Ve("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:[de([o1]),ne]}),e})();const a1=!1,We=new S("NgValidators"),$n=new S("NgAsyncValidators");function oC(e){return null!=e}function iC(e){const t=Wo(e)?be(e):e;if(a1&&!Bl(t)){let n="Expected async validator to return Promise or Observable.";throw"object"==typeof e&&(n+=" Are you using a synchronous validator where an async validator is expected?"),new C(-1101,n)}return t}function sC(e){let t={};return e.forEach(n=>{t=null!=n?{...t,...n}:t}),0===Object.keys(t).length?null:t}function aC(e,t){return t.map(n=>n(e))}function uC(e){return e.map(t=>function l1(e){return!e.validate}(t)?t:n=>t.validate(n))}function Bd(e){return null!=e?function lC(e){if(!e)return null;const t=e.filter(oC);return 0==t.length?null:function(n){return sC(aC(n,t))}}(uC(e)):null}function $d(e){return null!=e?function cC(e){if(!e)return null;const t=e.filter(oC);return 0==t.length?null:function(n){return function n1(...e){const t=Nf(e),{args:n,keys:r}=yD(e),o=new ye(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{d||(d=!0,l--),a[c]=f},()=>u--,void 0,()=>{(!u||!d)&&(l||i.next(r?DD(r,a):a),i.complete())}))}});return t?o.pipe(vD(t)):o}(aC(n,t).map(iC)).pipe(H(sC))}}(uC(e)):null}function dC(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function Ud(e){return e?Array.isArray(e)?e:[e]:[]}function Va(e,t){return Array.isArray(e)?e.includes(t):e===t}function pC(e,t){const n=Ud(t);return Ud(e).forEach(o=>{Va(n,o)||n.push(o)}),n}function gC(e,t){return Ud(t).filter(n=>!Va(e,n))}class mC{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=Bd(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=$d(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}}class Je extends mC{get formDirective(){return null}get path(){return null}}class Un extends mC{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class yC{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}}let vC=(()=>{class e extends yC{constructor(n){super(n)}}return e.\u0275fac=function(n){return new(n||e)(_(Un,2))},e.\u0275dir=F({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){2&n&&Ns("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:[ne]}),e})();const Ii="VALID",Ba="INVALID",lo="PENDING",Ai="DISABLED";function $a(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class wC{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._assignValidators(t),this._assignAsyncValidators(n)}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===Ii}get invalid(){return this.status===Ba}get pending(){return this.status==lo}get disabled(){return this.status===Ai}get enabled(){return this.status!==Ai}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._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(pC(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(pC(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(gC(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(gC(t,this._rawAsyncValidators))}hasValidator(t){return Va(this._rawValidators,t)}hasAsyncValidator(t){return Va(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=lo,!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=Ai,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=Ii,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===Ii||this.status===lo)&&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()?Ai:Ii}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=lo,this._hasOwnPendingAsyncValidator=!0;const n=iC(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 me,this.statusChanges=new me}_calculateStatus(){return this._allControlsDisabled()?Ai:this.errors?Ba:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(lo)?lo:this._anyControlsHaveStatus(Ba)?Ba:Ii}_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){$a(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=function y1(e){return Array.isArray(e)?Bd(e):e||null}(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=function v1(e){return Array.isArray(e)?$d(e):e||null}(this._rawAsyncValidators)}}const co=new S("CallSetDisabledState",{providedIn:"root",factory:()=>Ua}),Ua="always";function Ti(e,t,n=Ua){(function Zd(e,t){const n=function fC(e){return e._rawValidators}(e);null!==t.validator?e.setValidators(dC(n,t.validator)):"function"==typeof n&&e.setValidators([n]);const r=function hC(e){return e._rawAsyncValidators}(e);null!==t.asyncValidator?e.setAsyncValidators(dC(r,t.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const o=()=>e.updateValueAndValidity();Ga(t._rawValidators,o),Ga(t._rawAsyncValidators,o)})(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||"always"===n)&&t.valueAccessor.setDisabledState?.(e.disabled),function C1(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&EC(e,t)})}(e,t),function E1(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 w1(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&EC(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function _1(e,t){if(t.valueAccessor.setDisabledState){const n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}(e,t)}function Ga(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function EC(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function MC(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function IC(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const AC=class extends wC{constructor(t=null,n,r){super(function Wd(e){return($a(e)?e.validators:e)||null}(n),function qd(e,t){return($a(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}),$a(n)&&(n.nonNullable||n.initialValueIsDefault)&&(this.defaultValue=IC(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){MC(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){MC(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){IC(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}},R1={provide:Un,useExisting:se(()=>ef)},RC=(()=>Promise.resolve())();let ef=(()=>{class e extends Un{constructor(n,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new AC,this._registered=!1,this.update=new me,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=function Xd(e,t){if(!t)return null;let n,r,o;return Array.isArray(t),t.forEach(i=>{i.constructor===ka?n=i:function M1(e){return Object.getPrototypeOf(e.constructor)===ar}(i)?r=i:o=i}),o||r||n||null}(0,i)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){const r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),function Qd(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Ti(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(n){RC.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){const r=n.isDisabled.currentValue,o=0!==r&&function Yr(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}(r);RC.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?function Ha(e,t){return[...t.path,e]}(n,this._parent):[n]}}return e.\u0275fac=function(n){return new(n||e)(_(Je,9),_(We,10),_($n,10),_(tn,10),_(qs,8),_(co,8))},e.\u0275dir=F({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[de([R1]),ne,_t]}),e})();const O1={provide:tn,useExisting:se(()=>tf),multi:!0};let tf=(()=>{class e extends ar{writeValue(n){this.setProperty("value",n??"")}registerOnChange(n){this.onChange=r=>{n(""==r?null:parseFloat(r))}}}return e.\u0275fac=function(){let t;return function(r){return(t||(t=Le(e)))(r||e)}}(),e.\u0275dir=F({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,r){1&n&&Ve("input",function(i){return r.onChange(i.target.value)})("blur",function(){return r.onTouched()})},features:[de([O1]),ne]}),e})(),NC=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=It({type:e}),e.\u0275inj=vt({}),e})();const U1={provide:tn,useExisting:se(()=>qa),multi:!0};function jC(e,t){return null==e?`${t}`:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let qa=(()=>{class e extends ar{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){this.value=n;const o=jC(this._getOptionId(n),n);this.setProperty("value",o)}registerOnChange(n){this.onChange=r=>{this.value=this._getOptionValue(r),n(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(n){for(const r of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(r),n))return r;return null}_getOptionValue(n){const r=function H1(e){return e.split(":")[0]}(n);return this._optionMap.has(r)?this._optionMap.get(r):n}}return e.\u0275fac=function(){let t;return function(r){return(t||(t=Le(e)))(r||e)}}(),e.\u0275dir=F({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(n,r){1&n&&Ve("change",function(i){return r.onChange(i.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[de([U1]),ne]}),e})(),BC=(()=>{class e{constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(n){null!=this._select&&(this._select._optionMap.set(this.id,n),this._setElementValue(jC(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._setElementValue(n),this._select&&this._select.writeValue(this._select.value)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return e.\u0275fac=function(n){return new(n||e)(_(dt),_(fn),_(qa,9))},e.\u0275dir=F({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})();const z1={provide:tn,useExisting:se(()=>af),multi:!0};function $C(e,t){return null==e?`${t}`:("string"==typeof t&&(t=`'${t}'`),t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let af=(()=>{class e extends ar{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){let r;if(this.value=n,Array.isArray(n)){const o=n.map(i=>this._getOptionId(i));r=(i,s)=>{i._setSelected(o.indexOf(s.toString())>-1)}}else r=(o,i)=>{o._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(n){this.onChange=r=>{const o=[],i=r.selectedOptions;if(void 0!==i){const s=i;for(let a=0;a{class e{constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(n){null!=this._select&&(this._value=n,this._setElementValue($C(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue($C(this.id,n)),this._select.writeValue(this._select.value)):this._setElementValue(n)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}_setSelected(n){this._renderer.setProperty(this._element.nativeElement,"selected",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return e.\u0275fac=function(n){return new(n||e)(_(dt),_(fn),_(af,9))},e.\u0275dir=F({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})(),ek=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=It({type:e}),e.\u0275inj=vt({imports:[NC]}),e})(),nk=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:co,useValue:n.callSetDisabledState??Ua}]}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=It({type:e}),e.\u0275inj=vt({imports:[ek]}),e})(),rk=(()=>{class e{constructor(){this.currencies={},this.selectedValues={c1:1,c2:1},this.inputValues={c1:0,c2:0},this.secondCombinationValue=1}ngOnInit(){this.selectedValues.c1=1,this.selectedValues.c2=this.currencies.usd.sells,this.updateSecondCombinationValue()}convertCurrency(n,r){const o=+this.selectedValues[n],i=+this.selectedValues[r],s=+this.inputValues[n];!isNaN(s)&&!isNaN(o)&&!isNaN(i)&&(this.inputValues[r]=+(s*o/i).toFixed(2))}switchAndRecountInputs(){const n=this.selectedValues.c1,r=this.selectedValues.c2,o=Object.values(this.currencies),i=o.find(a=>a.buys===n),s=o.find(a=>a.sells===r);this.selectedValues.c2=i?i.sells:1,this.selectedValues.c1=s?s.buys:1,[this.inputValues.c1,this.inputValues.c2]=[this.inputValues.c2,this.inputValues.c1],this.convertCurrency("c1","c2"),this.updateSecondCombinationValue()}updateSecondCombinationValue(){this.secondCombinationValue=1===this.selectedValues.c2?this.selectedValues.c1:this.selectedValues.c2}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=dr({type:e,selectors:[["app-currency-converter"]],inputs:{currencies:"currencies"},decls:42,vars:19,consts:[[1,"converter-container"],[1,"converter-name"],[1,"converter"],[1,"converter-first"],["name","country1","id","country1",1,"converter-first-selection",3,"ngModel","ngModelChange","change"],[3,"ngValue"],["type","number",1,"converter-first-input",3,"ngModel","ngModelChange","input"],[1,"converter-division",3,"click"],[1,"converter-second"],[1,"converter-second-combination"],["name","country2","id","country2",1,"converter-second-selection",3,"ngModel","ngModelChange","change"],[1,"converter-second-combination-value"],["type","number",1,"converter-second-input",3,"ngModel","ngModelChange","input"]],template:function(r,o){1&r&&(V(0,"div",0)(1,"h2",1),Z(2,"\u041a\u043e\u043d\u0432\u0435\u0440\u0442\u0435\u0440 \u0432\u0430\u043b\u044e\u0442"),B(),V(3,"div",2)(4,"div",3)(5,"select",4),Ve("ngModelChange",function(s){return o.selectedValues.c1=s})("change",function(){return o.convertCurrency("c1","c2"),o.updateSecondCombinationValue()}),V(6,"option",5),Z(7,"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430 \u0433\u0440\u0438\u0432\u043d\u044f"),B(),V(8,"option",5),Z(9,"\u041f\u043e\u043b\u044c\u0441\u044c\u043a\u0438\u0439 \u0437\u043b\u043e\u0442\u0438\u0439"),B(),V(10,"option",5),Z(11,"\u0404\u0432\u0440\u043e"),B(),V(12,"option",5),Z(13,"\u0414\u043e\u043b\u043b\u0430\u0440 \u0421\u0428\u0410"),B(),V(14,"option",5),Z(15,"\u0410\u043d\u0433\u043b\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0444\u0443\u043d\u0442 \u0441\u0442\u0435\u0440\u043b\u0456\u043d\u0433\u0456\u0432"),B(),V(16,"option",5),Z(17,"\u0427\u0435\u0441\u044c\u043a\u0430 \u043a\u0440\u043e\u043d\u0430"),B(),V(18,"option",5),Z(19,"\u0428\u0432\u0435\u0439\u0446\u0430\u0440\u0441\u044c\u043a\u0438\u0439 \u0444\u0440\u0430\u043d\u043a"),B()(),V(20,"input",6),Ve("ngModelChange",function(s){return o.inputValues.c1=s})("input",function(){return o.convertCurrency("c1","c2")}),B()(),V(21,"button",7),Ve("click",function(){return o.switchAndRecountInputs()}),B(),V(22,"div",8)(23,"div",9)(24,"select",10),Ve("ngModelChange",function(s){return o.selectedValues.c2=s})("change",function(){return o.convertCurrency("c1","c2"),o.updateSecondCombinationValue()}),V(25,"option",5),Z(26,"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430 \u0433\u0440\u0438\u0432\u043d\u044f"),B(),V(27,"option",5),Z(28,"\u041f\u043e\u043b\u044c\u0441\u044c\u043a\u0438\u0439 \u0437\u043b\u043e\u0442\u0438\u0439"),B(),V(29,"option",5),Z(30,"\u0404\u0432\u0440\u043e"),B(),V(31,"option",5),Z(32,"\u0414\u043e\u043b\u043b\u0430\u0440 \u0421\u0428\u0410"),B(),V(33,"option",5),Z(34,"\u0410\u043d\u0433\u043b\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0444\u0443\u043d\u0442 \u0441\u0442\u0435\u0440\u043b\u0456\u043d\u0433\u0456\u0432"),B(),V(35,"option",5),Z(36,"\u0427\u0435\u0441\u044c\u043a\u0430 \u043a\u0440\u043e\u043d\u0430"),B(),V(37,"option",5),Z(38,"\u0428\u0432\u0435\u0439\u0446\u0430\u0440\u0441\u044c\u043a\u0438\u0439 \u0444\u0440\u0430\u043d\u043a"),B()(),V(39,"div",11),Z(40),B()(),V(41,"input",12),Ve("ngModelChange",function(s){return o.inputValues.c2=s})("input",function(){return o.convertCurrency("c2","c1")}),B()()()()),2&r&&(te(5),ce("ngModel",o.selectedValues.c1),te(1),ce("ngValue",1),te(2),ce("ngValue",o.currencies.pln.buys),te(2),ce("ngValue",o.currencies.eur.buys),te(2),ce("ngValue",o.currencies.usd.buys),te(2),ce("ngValue",o.currencies.gbp.buys),te(2),ce("ngValue",o.currencies.czk.buys),te(2),ce("ngValue",o.currencies.chf.buys),te(2),ce("ngModel",o.inputValues.c1),te(4),ce("ngModel",o.selectedValues.c2),te(1),ce("ngValue",1),te(2),ce("ngValue",o.currencies.pln.sells),te(2),ce("ngValue",o.currencies.eur.sells),te(2),ce("ngValue",o.currencies.usd.sells),te(2),ce("ngValue",o.currencies.gbp.sells),te(2),ce("ngValue",o.currencies.czk.sells),te(2),ce("ngValue",o.currencies.chf.sells),te(3),mn(o.secondCombinationValue),te(1),ce("ngModel",o.inputValues.c2))},dependencies:[BC,UC,ka,tf,qa,vC,ef],styles:['@font-face{font-family:PragmaticaC-Bold;src:url(pragmaticac-bold.3a7e4c297e1cd897.otf) format("woff2"),url(pragmaticac.b6e388cd0aebf0fc.otf) format("woff");font-weight:700;font-style:normal}@font-face{font-family:PragmaticaC;src:url(pragmaticac.b6e388cd0aebf0fc.otf) format("woff2"),url(pragmaticac.b6e388cd0aebf0fc.otf) format("woff");font-weight:700;font-style:normal}.converter[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;width:100%}.converter-name[_ngcontent-%COMP%]{font-family:PragmaticaC,sans-serif;color:gray;margin-top:40px}.converter-division[_ngcontent-%COMP%]{display:flex;background-color:#fff;margin-top:10px;width:20px;height:20px;margin-left:25px;margin-right:25px;background-repeat:no-repeat;background-image:url(doublearrowgray.b3389ba399cb4e10.svg);transform:rotate(90deg);background-size:20px;background-position:center;border:none;cursor:pointer}.converter-first[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.converter-first-selection[_ngcontent-%COMP%]{height:40px;width:100%;margin-bottom:20px;border:#B4BDC3 1px solid;padding-left:24px;font-family:PragmaticaC,sans-serif;font-size:16px;cursor:pointer}@media (max-width: 767px){.converter-first-selection[_ngcontent-%COMP%]{width:100%;padding:0}}.converter-first-input[_ngcontent-%COMP%]{box-sizing:border-box;height:40px;width:100%;appearance:textfield;border:#B4BDC3 1px solid;padding-left:24px;font-family:PragmaticaC,sans-serif;font-size:16px;margin-top:auto}@media (max-width: 767px){.converter-first-input[_ngcontent-%COMP%]{margin-top:auto;width:100%}}.converter-first-input[_ngcontent-%COMP%]::-webkit-inner-spin-button, .converter-first-input[_ngcontent-%COMP%]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.converter-second[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.converter-second-combination[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}@media (max-width: 767px){.converter-second-combination[_ngcontent-%COMP%]{flex-direction:column}}.converter-second-combination-value[_ngcontent-%COMP%]{display:flex;height:40px;align-items:center;justify-content:center;width:50px;margin-left:20px;padding:auto;cursor:default;margin-bottom:20px;border:1px solid #B4BDC3}@media (max-width: 767px){.converter-second-combination-value[_ngcontent-%COMP%]{margin-left:auto;margin-bottom:10px;height:30px}}.converter-second-selection[_ngcontent-%COMP%]{height:40px;width:100%;margin-bottom:20px;border:#B4BDC3 1px solid;padding-left:24px;font-family:PragmaticaC,sans-serif;font-size:16px;cursor:pointer}@media (max-width: 767px){.converter-second-selection[_ngcontent-%COMP%]{width:100%;padding:0;margin-bottom:10px}}.converter-second-input[_ngcontent-%COMP%]{box-sizing:border-box;height:40px;width:100%;appearance:textfield;border:#B4BDC3 1px solid;padding-left:24px;font-family:PragmaticaC,sans-serif;font-size:16px}@media (max-width: 767px){.converter-second-input[_ngcontent-%COMP%]{width:100%}}.converter-second-input[_ngcontent-%COMP%]::-webkit-inner-spin-button, .converter-second-input[_ngcontent-%COMP%]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}']})}return e})();function ok(e,t){1&e&&(Ts(0),V(1,"p",3),Z(2,"Sorry, too many requests from one user, please try again in one minute"),B(),xs())}let ik=(()=>{class e{constructor(){this.showLoadingMessage=!0}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=dr({type:e,selectors:[["app-loading-template"]],inputs:{showLoadingMessage:"showLoadingMessage"},decls:3,vars:1,consts:[[1,"loader-container"],[1,"loader"],[4,"ngIf"],[1,"loader-message"]],template:function(r,o){1&r&&(V(0,"div",0),gn(1,"div",1),As(2,ok,3,0,"ng-container",2),B()),2&r&&(te(2),ce("ngIf",o.showLoadingMessage))},dependencies:[Hc],styles:[".loader-container[_ngcontent-%COMP%]{margin-left:100px;justify-content:center;align-items:center;width:800px;height:500px;display:flex;flex-direction:column;border-radius:10px}@media (max-width: 767px){.loader-container[_ngcontent-%COMP%]{margin-left:0;width:100%;height:100%}}.loader[_ngcontent-%COMP%]{border:8px solid #f3f3f3;border-top:8px solid #3498db;border-radius:50%;width:150px;height:150px;animation:_ngcontent-%COMP%_spin 1s linear infinite}.loader-message[_ngcontent-%COMP%]{font-family:PragmaticaC,sans-serif;font-size:20px}@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]})}return e})();function sk(e,t){if(1&e&&(V(0,"div",3),gn(1,"app-exchange-rates",4)(2,"app-currency-converter",4),B()),2&e){const n=$l();te(1),ce("currencies",n.currencies),te(1),ce("currencies",n.currencies)}}function ak(e,t){1&e&&gn(0,"app-loading-template",5),2&e&&ce("showLoadingMessage",$l().showLoadingMessage)}let uk=(()=>{class e{constructor(n){this.currency=n,this.title="angular-exchange",this.currjson={bank:"",baseCurrency:0,baseCurrencyLit:"",date:"",exchangeRate:[]},this.showLoadingMessage=!1,this.currencies={uah:{buys:1,sells:1},eur:{buys:1,sells:1},usd:{buys:1,sells:1},pln:{buys:1,sells:1},gbp:{buys:1,sells:1},czk:{buys:1,sells:1},chf:{buys:1,sells:1}},this.selectedValues={c1:1,c2:1},this.inputValues={c1:0,c2:0},this.secondCombinationValue=1}ngOnInit(){setTimeout(()=>this.showLoadingMessage=!0,3e3),this.fetchCurrencyData()}filterCurrencyByCode(n){return this.currjson.exchangeRate.find(r=>r.currency===n)}fetchCurrencyData(){this.currency.getCurrencyData().subscribe(n=>{this.currjson=n,Object.keys(this.currencies).map(r=>{const o=r.toUpperCase(),i=this.filterCurrencyByCode(o);i&&(this.currencies[r].buys=i.purchaseRate??1,this.currencies[r].sells=i.saleRate??1)}),this.showLoadingMessage=!1})}static#e=this.\u0275fac=function(r){return new(r||e)(_(e1))};static#t=this.\u0275cmp=dr({type:e,selectors:[["app-root"]],decls:5,vars:2,consts:[[1,"accountantapp-name"],["class","accountantapp",4,"ngIf","ngIfElse"],["loading",""],[1,"accountantapp"],[3,"currencies"],[3,"showLoadingMessage"]],template:function(r,o){if(1&r&&(V(0,"h1",0),Z(1,"\u041a\u0443\u0440\u0441\u0438 \u0432\u0430\u043b\u044e\u0442 \u0442\u0430 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u043e\u0440"),B(),As(2,sk,3,2,"div",1),As(3,ak,1,1,"ng-template",null,2,Ty)),2&r){const i=function Pg(e){return function yr(e,t){return e[t]}(function VE(){return k.lFrame.contextLView}(),le+e)}(4);te(2),ce("ngIf",o.currjson&&o.currjson.exchangeRate.length>8)("ngIfElse",i)}},dependencies:[Hc,t1,rk,ik],styles:['@font-face{font-family:PragmaticaC-Bold;src:url(pragmaticac-bold.3a7e4c297e1cd897.otf) format("woff2"),url(pragmaticac.b6e388cd0aebf0fc.otf) format("woff");font-weight:700;font-style:normal}@font-face{font-family:PragmaticaC;src:url(pragmaticac.b6e388cd0aebf0fc.otf) format("woff2"),url(pragmaticac.b6e388cd0aebf0fc.otf) format("woff");font-weight:700;font-style:normal}.accountantapp[_ngcontent-%COMP%]{box-sizing:border-box;font-family:PragmaticaC-Bold,sans-serif;margin-left:100px;width:550px;display:flex;flex-direction:column;border-radius:10px}@media (max-width: 767px){.accountantapp[_ngcontent-%COMP%]{width:90%;margin:0;padding-left:25px}}.accountantapp-name[_ngcontent-%COMP%]{font-family:PragmaticaC-Bold,sans-serif;margin-top:100px;margin-left:100px;font-size:60px}@media (max-width: 767px){.accountantapp-name[_ngcontent-%COMP%]{font-size:40px;margin:20px}}']})}return e})(),lk=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=It({type:e,bootstrap:[uk]});static#n=this.\u0275inj=vt({imports:[nk,$N,xP,JP]})}return e})();BN().bootstrapModule(lk).catch(e=>console.error(e))}},oe=>{oe(oe.s=988)}]); \ No newline at end of file diff --git a/main.bc59d15e4a656139.js b/main.bc59d15e4a656139.js deleted file mode 100644 index c05a472..0000000 --- a/main.bc59d15e4a656139.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkangular_exchange=self.webpackChunkangular_exchange||[]).push([[179],{277:()=>{function oe(e){return"function"==typeof e}function po(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=po(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 go(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class gt{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(oe(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{ff(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)ff(t);else{if(t instanceof gt){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)&&go(n,t)}remove(t){const{_finalizers:n}=this;n&&go(n,t),t instanceof gt&&t._removeParent(this)}}gt.EMPTY=(()=>{const e=new gt;return e.closed=!0,e})();const cf=gt.EMPTY;function df(e){return e instanceof gt||e&&"closed"in e&&oe(e.remove)&&oe(e.add)&&oe(e.unsubscribe)}function ff(e){oe(e)?e():e.unsubscribe()}const Gn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Fi={setTimeout(e,t,...n){const{delegate:r}=Fi;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=Fi;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function hf(e){Fi.setTimeout(()=>{const{onUnhandledError:t}=Gn;if(!t)throw e;t(e)})}function pf(){}const tw=Ya("C",void 0,void 0);function Ya(e,t,n){return{kind:e,value:t,error:n}}let Wn=null;function Pi(e){if(Gn.useDeprecatedSynchronousErrorHandling){const t=!Wn;if(t&&(Wn={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=Wn;if(Wn=null,n)throw r}}else e()}class Qa extends gt{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,df(t)&&t.add(this)):this.destination=uw}static create(t,n,r){return new mo(t,n,r)}next(t){this.isStopped?Ja(function rw(e){return Ya("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?Ja(function nw(e){return Ya("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Ja(tw,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 iw=Function.prototype.bind;function Xa(e,t){return iw.call(e,t)}class sw{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){ki(r)}}error(t){const{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){ki(r)}else ki(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){ki(n)}}}class mo extends Qa{constructor(t,n,r){let o;if(super(),oe(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Gn.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 sw(o)}}function ki(e){Gn.useDeprecatedSynchronousErrorHandling?function ow(e){Gn.useDeprecatedSynchronousErrorHandling&&Wn&&(Wn.errorThrown=!0,Wn.error=e)}(e):hf(e)}function Ja(e,t){const{onStoppedNotification:n}=Gn;n&&Fi.setTimeout(()=>n(e,t))}const uw={closed:!0,next:pf,error:function aw(e){throw e},complete:pf},eu="function"==typeof Symbol&&Symbol.observable||"@@observable";function qn(e){return e}function gf(e){return 0===e.length?qn:1===e.length?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}let ye=(()=>{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 dw(e){return e&&e instanceof Qa||function cw(e){return e&&oe(e.next)&&oe(e.error)&&oe(e.complete)}(e)&&df(e)}(n)?n:new mo(n,r,o);return Pi(()=>{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 mo({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)}[eu](){return this}pipe(...n){return gf(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??Gn.Promise)&&void 0!==t?t:Promise}const fw=po(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let sn=(()=>{class e extends ye{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new yf(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new fw}next(n){Pi(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){Pi(()=>{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(){Pi(()=>{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?cf:(this.currentObservers=null,i.push(n),new gt(()=>{this.currentObservers=null,go(i,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){const n=new ye;return n.source=this,n}}return e.create=(t,n)=>new yf(t,n),e})();class yf extends sn{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:cf}}function vf(e){return oe(e?.lift)}function Oe(e){return t=>{if(vf(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 Te(e,t,n,r,o){return new hw(e,t,n,r,o)}class hw extends Qa{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 U(e,t){return Oe((n,r)=>{let o=0;n.subscribe(Te(r,i=>{r.next(e.call(t,i,o++))}))})}function An(e){return this instanceof An?(this.v=e,this):new An(e)}function wf(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 ou(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)})}}}"function"==typeof SuppressedError&&SuppressedError;const Ef=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function bf(e){return oe(e?.then)}function Sf(e){return oe(e[eu])}function Mf(e){return Symbol.asyncIterator&&oe(e?.[Symbol.asyncIterator])}function If(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 Af=function Pw(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Tf(e){return oe(e?.[Af])}function xf(e){return function Cf(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 An?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])}}(this,arguments,function*(){const n=e.getReader();try{for(;;){const{value:r,done:o}=yield An(n.read());if(o)return yield An(void 0);yield yield An(r)}}finally{n.releaseLock()}})}function Rf(e){return oe(e?.getReader)}function mt(e){if(e instanceof ye)return e;if(null!=e){if(Sf(e))return function kw(e){return new ye(t=>{const n=e[eu]();if(oe(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Ef(e))return function Lw(e){return new ye(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,hf)})}(e);if(Mf(e))return Nf(e);if(Tf(e))return function jw(e){return new ye(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if(Rf(e))return function Bw(e){return Nf(xf(e))}(e)}throw If(e)}function Nf(e){return new ye(t=>{(function $w(e,t){var n,r,o,i;return function Df(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=wf(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 an(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 oe(t)?Fe((r,o)=>U((i,s)=>t(r,i,o,s))(mt(e(r,o))),n):("number"==typeof t&&(n=t),Oe((r,o)=>function Uw(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{i&&t.next(g),l++;let m=!1;mt(n(g,c++)).subscribe(Te(t,v=>{o?.(v),i?h(v):t.next(v)},()=>{m=!0},void 0,()=>{if(m)try{for(l--;u.length&&lp(v)):p(v)}f()}catch(v){t.error(v)}}))};return e.subscribe(Te(t,h,()=>{d=!0,f()})),()=>{a?.()}}(r,o,e,n)))}function fr(e=1/0){return Fe(qn,e)}const Bt=new ye(e=>e.complete());function iu(e){return e[e.length-1]}function Of(e){return oe(iu(e))?e.pop():void 0}function yo(e){return function zw(e){return e&&oe(e.schedule)}(iu(e))?e.pop():void 0}function Ff(e,t=0){return Oe((n,r)=>{n.subscribe(Te(r,o=>an(r,e,()=>r.next(o),t),()=>an(r,e,()=>r.complete(),t),o=>an(r,e,()=>r.error(o),t)))})}function Pf(e,t=0){return Oe((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function kf(e,t){if(!e)throw new Error("Iterable cannot be null");return new ye(n=>{an(n,t,()=>{const r=e[Symbol.asyncIterator]();an(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function be(e,t){return t?function Qw(e,t){if(null!=e){if(Sf(e))return function Ww(e,t){return mt(e).pipe(Pf(t),Ff(t))}(e,t);if(Ef(e))return function Kw(e,t){return new ye(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(bf(e))return function qw(e,t){return mt(e).pipe(Pf(t),Ff(t))}(e,t);if(Mf(e))return kf(e,t);if(Tf(e))return function Zw(e,t){return new ye(n=>{let r;return an(n,t,()=>{r=e[Af](),an(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)}),()=>oe(r?.return)&&r.return()})}(e,t);if(Rf(e))return function Yw(e,t){return kf(xf(e),t)}(e,t)}throw If(e)}(e,t):mt(e)}function su(e,t,...n){if(!0===t)return void e();if(!1===t)return;const r=new mo({next:()=>{r.unsubscribe(),e()}});return mt(t(...n)).subscribe(r)}function re(e){for(let t in e)if(e[t]===re)return t;throw Error("Could not find renamed property on target object.")}function au(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function ie(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(ie).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 uu(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const eE=re({__forward_ref__:re});function se(e){return e.__forward_ref__=se,e.toString=function(){return ie(this())},e}function R(e){return lu(e)?e():e}function lu(e){return"function"==typeof e&&e.hasOwnProperty(eE)&&e.__forward_ref__===se}function cu(e){return e&&!!e.\u0275providers}class C extends Error{constructor(t,n){super(Li(t,n)),this.code=t}}function Li(e,t){return`NG0${Math.abs(e)}${t?": "+t.trim():""}`}function P(e){return"string"==typeof e?e:null==e?"":String(e)}function Vi(e,t){throw new C(-201,!1)}function yt(e,t){null==e&&function J(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function A(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function vt(e){return{providers:e.providers||[],imports:e.imports||[]}}function ji(e){return Vf(e,Bi)||Vf(e,Bf)}function Vf(e,t){return e.hasOwnProperty(t)?e[t]:null}function jf(e){return e&&(e.hasOwnProperty(du)||e.hasOwnProperty(uE))?e[du]:null}const Bi=re({\u0275prov:re}),du=re({\u0275inj:re}),Bf=re({ngInjectableDef:re}),uE=re({ngInjectorDef:re});var N=(()=>((N=N||{})[N.Default=0]="Default",N[N.Host=1]="Host",N[N.Self=2]="Self",N[N.SkipSelf=4]="SkipSelf",N[N.Optional=8]="Optional",N))();let fu;function Dt(e){const t=fu;return fu=e,t}function $f(e,t,n){const r=ji(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&N.Optional?null:void 0!==t?t:void Vi(ie(e))}const ue=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),vo={},hu="__NG_DI_FLAG__",$i="ngTempTokenPath",cE="ngTokenPath",dE=/\n/gm,fE="\u0275",Uf="__source";let Do;function hr(e){const t=Do;return Do=e,t}function hE(e,t=N.Default){if(void 0===Do)throw new C(-203,!1);return null===Do?$f(e,void 0,t):Do.get(e,t&N.Optional?null:void 0,t)}function M(e,t=N.Default){return(function lE(){return fu}()||hE)(R(e),t)}function H(e,t=N.Default){return M(e,Ui(t))}function Ui(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function pu(e){const t=[];for(let n=0;n(($t=$t||{})[$t.OnPush=0]="OnPush",$t[$t.Default=1]="Default",$t))(),Ut=(()=>{return(e=Ut||(Ut={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",Ut;var e})();const ln={},Y=[],Hi=re({\u0275cmp:re}),gu=re({\u0275dir:re}),mu=re({\u0275pipe:re}),zf=re({\u0275mod:re}),cn=re({\u0275fac:re}),Co=re({__NG_ELEMENT_ID__:re});let yE=0;function yu(e){return un(()=>{const t=Wf(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===$t.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,data:e.data||{},encapsulation:e.encapsulation||Ut.Emulated,id:"c"+yE++,styles:e.styles||Y,_:null,schemas:e.schemas||null,tView:null};qf(n);const r=e.dependencies;return n.directiveDefs=zi(r,!1),n.pipeDefs=zi(r,!0),n})}function DE(e){return ee(e)||Be(e)}function _E(e){return null!==e}function At(e){return un(()=>({type:e.type,bootstrap:e.bootstrap||Y,declarations:e.declarations||Y,imports:e.imports||Y,exports:e.exports||Y,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Gf(e,t){if(null==e)return ln;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}function F(e){return un(()=>{const t=Wf(e);return qf(t),t})}function ee(e){return e[Hi]||null}function Be(e){return e[gu]||null}function tt(e){return e[mu]||null}function at(e,t){const n=e[zf]||null;if(!n&&!0===t)throw new Error(`Type ${ie(e)} does not have '\u0275mod' property.`);return n}function Wf(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,exportAs:e.exportAs||null,standalone:!0===e.standalone,selectors:e.selectors||Y,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Gf(e.inputs,t),outputs:Gf(e.outputs)}}function qf(e){e.features?.forEach(t=>t(e))}function zi(e,t){if(!e)return null;const n=t?tt:DE;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(_E)}const dn=0,b=1,B=2,he=3,Tt=4,Kn=5,$e=6,gr=7,ve=8,Gi=9,Wi=10,z=11,vu=12,wo=13,Kf=14,mr=15,Ue=16,Eo=17,yr=18,Ht=19,bo=20,Zf=21,le=22,Du=1,Yf=2,qi=7,Ki=8,vr=9,qe=10;function ut(e){return Array.isArray(e)&&"object"==typeof e[Du]}function xt(e){return Array.isArray(e)&&!0===e[Du]}function _u(e){return 0!=(4&e.flags)}function So(e){return e.componentOffset>-1}function Zi(e){return 1==(1&e.flags)}function Rt(e){return!!e.template}function wE(e){return 0!=(256&e[B])}function Zn(e,t){return e.hasOwnProperty(cn)?e[cn]:null}class SE{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function _t(){return Jf}function Jf(e){return e.type.prototype.ngOnChanges&&(e.setInput=IE),ME}function ME(){const e=th(this),t=e?.current;if(t){const n=e.previous;if(n===ln)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function IE(e,t,n,r){const o=this.declaredInputs[n],i=th(e)||function AE(e,t){return e[eh]=t}(e,{previous:ln,current:null}),s=i.current||(i.current={}),a=i.previous,u=a[o];s[o]=new SE(u&&u.currentValue,t,a===ln),e[r]=t}_t.ngInherit=!0;const eh="__ngSimpleChanges__";function th(e){return e[eh]||null}const Ct=function(e,t,n){};function Pe(e){for(;Array.isArray(e);)e=e[dn];return e}function Yi(e,t){return Pe(t[e])}function lt(e,t){return Pe(t[e.index])}function oh(e,t){return e.data[t]}function nt(e,t){const n=t[e];return ut(n)?n:n[dn]}function Qi(e){return 64==(64&e[B])}function xn(e,t){return null==t?null:e[t]}function ih(e){e[yr]=0}function wu(e,t){e[Kn]+=t;let n=e,r=e[he];for(;null!==r&&(1===t&&1===n[Kn]||-1===t&&0===n[Kn]);)r[Kn]+=t,n=r,r=r[he]}const k={lFrame:gh(null),bindingsEnabled:!0};function ah(){return k.bindingsEnabled}function D(){return k.lFrame.lView}function K(){return k.lFrame.tView}function zt(e){return k.lFrame.contextLView=e,e[ve]}function Gt(e){return k.lFrame.contextLView=null,e}function ke(){let e=uh();for(;null!==e&&64===e.type;)e=e.parent;return e}function uh(){return k.lFrame.currentTNode}function Wt(e,t){const n=k.lFrame;n.currentTNode=e,n.isParent=t}function Eu(){return k.lFrame.isParent}function bu(){k.lFrame.isParent=!1}function _r(){return k.lFrame.bindingIndex++}function $E(e,t){const n=k.lFrame;n.bindingIndex=n.bindingRootIndex=e,Su(t)}function Su(e){k.lFrame.currentDirectiveIndex=e}function Iu(e){k.lFrame.currentQueryIndex=e}function HE(e){const t=e[b];return 2===t.type?t.declTNode:1===t.type?e[$e]:null}function hh(e,t,n){if(n&N.SkipSelf){let o=t,i=e;for(;!(o=o.parent,null!==o||n&N.Host||(o=HE(i),null===o||(i=i[mr],10&o.type))););if(null===o)return!1;t=o,e=i}const r=k.lFrame=ph();return r.currentTNode=t,r.lView=e,!0}function Au(e){const t=ph(),n=e[b];k.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=k.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=k.lFrame;return k.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const yh=mh;function Tu(){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 Ze(){return k.lFrame.selectedIndex}function Yn(e){k.lFrame.selectedIndex=e}function Xi(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[u]<0&&(e[yr]+=65536),(a>11>16&&(3&e[B])===t){e[B]+=2048,Ct(4,a,i);try{i.call(a)}finally{Ct(5,a,i)}}}else{Ct(4,a,i);try{i.call(a)}finally{Ct(5,a,i)}}}const Cr=-1;class Io{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Nu(e,t,n){let r=0;for(;rt){s=i-1;break}}}for(;i>16}(e),r=t;for(;n>0;)r=r[mr],n--;return r}let Ou=!0;function rs(e){const t=Ou;return Ou=e,t}const Eh=255,bh=5;let r0=0;const qt={};function os(e,t){const n=Sh(e,t);if(-1!==n)return n;const r=t[b];r.firstCreatePass&&(e.injectorIndex=t.length,Fu(r.data,e),Fu(t,null),Fu(r.blueprint,null));const o=Pu(e,t),i=e.injectorIndex;if(wh(o)){const s=ts(o),a=ns(o,t),u=a[b].data;for(let l=0;l<8;l++)t[i+l]=a[s+l]|u[s+l]}return t[i+8]=o,i}function Fu(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Sh(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Pu(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 Cr;if(n++,o=o[mr],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return Cr}function ku(e,t,n){!function o0(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Co)&&(r=n[Co]),null==r&&(r=n[Co]=r0++);const o=r&Eh;t.data[e+(o>>bh)]|=1<=0?t&Eh:l0:t}(n);if("function"==typeof i){if(!hh(t,e,r))return r&N.Host?Mh(o,0,r):Ih(t,n,r,o);try{const s=i(r);if(null!=s||r&N.Optional)return s;Vi()}finally{yh()}}else if("number"==typeof i){let s=null,a=Sh(e,t),u=Cr,l=r&N.Host?t[Ue][$e]:null;for((-1===a||r&N.SkipSelf)&&(u=-1===a?Pu(e,t):t[a+8],u!==Cr&&Rh(r,!1)?(s=t[b],a=ts(u),t=ns(u,t)):a=-1);-1!==a;){const c=t[b];if(xh(i,a,c.data)){const d=a0(a,t,n,s,r,l);if(d!==qt)return d}u=t[a+8],u!==Cr&&Rh(r,t[b].data[a+8]===l)&&xh(i,a,t)?(s=c,a=ts(u),t=ns(u,t)):a=-1}}return o}function a0(e,t,n,r,o,i){const s=t[b],a=s.data[e+8],c=function is(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=u&&p.type===n)return h}if(o){const h=s[u];if(h&&Rt(h)&&h.type===n)return u}return null}(a,s,n,null==r?So(a)&&Ou:r!=s&&0!=(3&a.type),o&N.Host&&i===a);return null!==c?Qn(t,s,c,a):qt}function Qn(e,t,n,r){let o=e[n];const i=t.data;if(function JE(e){return e instanceof Io}(o)){const s=o;s.resolving&&function tE(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new C(-200,`Circular dependency in DI detected for ${e}${n}`)}(function X(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=rs(s.canSeeViewProviders);s.resolving=!0;const u=s.injectImpl?Dt(s.injectImpl):null;hh(e,r,N.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&function QE(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){const s=Jf(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&&Dt(u),rs(a),s.resolving=!1,yh()}}return o}function xh(e,t,n){return!!(n[t+(e>>bh)]&1<{const t=e.prototype.constructor,n=t[cn]||Lu(t),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const i=o[cn]||Lu(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Lu(e){return lu(e)?()=>{const t=Lu(R(e));return t&&t()}:Zn(e)}function Nh(e){const t=e[b],n=t.type;return 2===n?t.declTNode:1===n?e[$e]:null}const br="__parameters__";function Mr(e,t,n){return un(()=>{const r=function Vu(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(br)?u[br]:Object.defineProperty(u,br,{value:[]})[br];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 S{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=A({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Xn(e,t){e.forEach(n=>Array.isArray(n)?Xn(n,t):t(n))}function Fh(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function as(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function ct(e,t,n){let r=Ir(e,t);return r>=0?e[1|r]=n:(r=~r,function p0(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 Bu(e,t){const n=Ir(e,t);if(n>=0)return e[1|n]}function Ir(e,t){return function Ph(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){const i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<((rt=rt||{})[rt.Important=1]="Important",rt[rt.DashCase=2]="DashCase",rt))();const Wu=new Map;let k0=0;const Ku="__ngContext__";function He(e,t){ut(t)?(e[Ku]=t[bo],function V0(e){Wu.set(e[bo],e)}(t)):e[Ku]=t}let Zu;function Yu(e,t){return Zu(e,t)}function Lo(e){const t=e[he];return xt(t)?t[he]:t}function Qu(e){return tp(e[wo])}function Xu(e){return tp(e[Tt])}function tp(e){for(;null!==e&&!xt(e);)e=e[Tt];return e}function Tr(e,t,n,r,o){if(null!=r){let i,s=!1;xt(r)?i=r:ut(r)&&(s=!0,r=r[dn]);const a=Pe(r);0===e&&null!==n?null==o?ap(t,n,a):Jn(t,n,a,o||null,!0):1===e&&null!==n?Jn(t,n,a,o||null,!0):2===e?function il(e,t,n){const r=ds(e,t);r&&function ob(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=i&&function ab(e,t,n,r,o){const i=n[qi];i!==Pe(n)&&Tr(t,e,r,i,o);for(let a=qe;a0&&(e[n-1][Tt]=r[Tt]);const i=as(e,qe+t);!function Y0(e,t){Vo(e,t,t[z],2,null,null),t[dn]=null,t[$e]=null}(r[b],r);const s=i[Ht];null!==s&&s.detachView(i[b]),r[he]=null,r[Tt]=null,r[B]&=-65}return r}function op(e,t){if(!(128&t[B])){const n=t[z];n.destroyNode&&Vo(e,t,n,3,null,null),function J0(e){let t=e[wo];if(!t)return nl(e[b],e);for(;t;){let n=null;if(ut(t))n=t[wo];else{const r=t[qe];r&&(n=r)}if(!n){for(;t&&!t[Tt]&&t!==e;)ut(t)&&nl(t[b],t),t=t[he];null===t&&(t=e),ut(t)&&nl(t[b],t),n=t&&t[Tt]}t=n}}(t)}}function nl(e,t){if(!(128&t[B])){t[B]&=-65,t[B]|=128,function rb(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?r[o=s]():r[o=-s].unsubscribe(),i+=2}else{const s=r[o=n[i+1]];n[i].call(s)}if(null!==r){for(let i=o+1;i-1){const{encapsulation:i}=e.data[r.directiveStart+o];if(i===Ut.None||i===Ut.Emulated)return null}return lt(r,n)}}(e,t.parent,n)}function Jn(e,t,n,r,o){e.insertBefore(t,n,r,o)}function ap(e,t,n){e.appendChild(t,n)}function up(e,t,n,r,o){null!==r?Jn(e,t,n,r,o):ap(e,t,n)}function ds(e,t){return e.parentNode(t)}let rl,ul,dp=function cp(e,t,n){return 40&e.type?lt(e,n):null};function fs(e,t,n,r){const o=ip(e,r,t),i=t[z],a=function lp(e,t,n){return dp(e,t,n)}(r.parent||t[$e],r,t);if(null!=o)if(Array.isArray(n))for(let u=0;u{const s=i;pl(s,n,[],r)&&(o||(o=[]),o.push(s))}),void 0!==o&&Pp(o,n),n}function Pp(e,t){for(let n=0;n{t.push(i)})}}function pl(e,t,n,r){if(!(e=R(e)))return!1;let o=null,i=jf(e);const s=!i&&ee(e);if(i||s){if(s&&!s.standalone)return!1;o=e}else{const u=e.ngModule;if(i=jf(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)pl(l,t,n,r)}}else{if(!i)return!1;{if(null!=i.imports&&!a){let l;r.add(o);try{Xn(i.imports,c=>{pl(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:Y},{provide:Np,useValue:o,multi:!0},{provide:ys,useValue:()=>M(o),multi:!0})}const u=i.providers;null==u||a||gl(u,c=>{t.push(c)})}}return o!==e&&void 0!==e.providers}function gl(e,t){for(let n of e)cu(n)&&(n=n.\u0275providers),Array.isArray(n)?gl(n,t):t(n)}const Vb=re({provide:String,useValue:re});function ml(e){return null!==e&&"object"==typeof e&&Vb in e}function er(e){return"function"==typeof e}const yl=new S("Set Injector scope."),vs={},Bb={};let vl;function Ds(){return void 0===vl&&(vl=new Op),vl}class Kt{}class Vp extends Kt{get destroyed(){return this._destroyed}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,_l(t,s=>this.processProvider(s)),this.records.set(Rp,Rr(void 0,this)),o.has("environment")&&this.records.set(Kt,Rr(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(Np.multi,Y,N.Self))}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=hr(this),r=Dt(void 0);try{return t()}finally{hr(n),Dt(r)}}get(t,n=vo,r=N.Default){this.assertNotDestroyed(),r=Ui(r);const o=hr(this),i=Dt(void 0);try{if(!(r&N.SkipSelf)){let a=this.records.get(t);if(void 0===a){const u=function Gb(e){return"function"==typeof e||"object"==typeof e&&e instanceof S}(t)&&ji(t);a=u&&this.injectableDefInScope(u)?Rr(Dl(t),vs):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&N.Self?Ds():this.parent).get(t,n=r&N.Optional&&n===vo?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[$i]=s[$i]||[]).unshift(ie(t)),o)throw s;return function gE(e,t,n,r){const o=e[$i];throw t[Uf]&&o.unshift(t[Uf]),e.message=function mE(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&e.charAt(1)==fE?e.slice(2):e;let o=ie(t);if(Array.isArray(t))o=t.map(ie).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):ie(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(dE,"\n ")}`}("\n"+e.message,o,n,r),e[cE]=o,e[$i]=null,e}(s,t,"R3InjectorError",this.source)}throw s}finally{Dt(i),hr(o)}}resolveInjectorInitializers(){const t=hr(this),n=Dt(void 0);try{const r=this.get(ys.multi,Y,N.Self);for(const o of r)o()}finally{hr(t),Dt(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(ie(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new C(205,!1)}processProvider(t){let n=er(t=R(t))?t:R(t&&t.provide);const r=function Ub(e){return ml(e)?Rr(void 0,e.useValue):Rr(jp(e),vs)}(t);if(er(t)||!0!==t.multi)this.records.get(n);else{let o=this.records.get(n);o||(o=Rr(void 0,vs,!0),o.factory=()=>pu(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===vs&&(n.value=Bb,n.value=n.factory()),"object"==typeof n.value&&n.value&&function zb(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 Dl(e){const t=ji(e),n=null!==t?t.factory:Zn(e);if(null!==n)return n;if(e instanceof S)throw new C(204,!1);if(e instanceof Function)return function $b(e){const t=e.length;if(t>0)throw function Ro(e,t){const n=[];for(let r=0;rn.factory(e):()=>new e}(e);throw new C(204,!1)}function jp(e,t,n){let r;if(er(e)){const o=R(e);return Zn(o)||Dl(o)}if(ml(e))r=()=>R(e.useValue);else if(function Lp(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...pu(e.deps||[]));else if(function kp(e){return!(!e||!e.useExisting)}(e))r=()=>M(R(e.useExisting));else{const o=R(e&&(e.useClass||e.provide));if(!function Hb(e){return!!e.deps}(e))return Zn(o)||Dl(o);r=()=>new o(...pu(e.deps))}return r}function Rr(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function _l(e,t){for(const n of e)Array.isArray(n)?_l(n,t):n&&cu(n)?_l(n.\u0275providers,t):t(n)}class Wb{}class Bp{}class Kb{resolveComponentFactory(t){throw function qb(e){const t=Error(`No component factory found for ${ie(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let Uo=(()=>{class e{}return e.NULL=new Kb,e})();function Zb(){return Nr(ke(),D())}function Nr(e,t){return new dt(lt(e,t))}let dt=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=Zb,e})();class Up{}let gn=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function Qb(){const e=D(),n=nt(ke().index,e);return(ut(n)?n:e)[z]}(),e})(),Xb=(()=>{class e{}return e.\u0275prov=A({token:e,providedIn:"root",factory:()=>null}),e})();class Ho{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Jb=new Ho("15.2.10"),Cl={},wl="ngOriginalError";function El(e){return e[wl]}class Or{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 mn(e){return e instanceof Function?e():e}function zp(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 Gp="ng-template";function cS(e,t,n){let r=0,o=!0;for(;ri?"":o[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==zp(h,l,0)||2&r&&l!==f){if(Nt(r))return!1;s=!0}}}}else{if(!s&&!Nt(r)&&!Nt(u))return!1;if(s&&Nt(u))continue;s=!1,r=u|1&r}}return Nt(r)||s}function Nt(e){return 0==(1&e)}function hS(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!Nt(s)&&(t+=Kp(i,o),o=""),r=s,i=i||!Nt(r);n++}return""!==o&&(t+=Kp(i,o)),t}const L={};function ne(e){Zp(K(),D(),Ze()+e,!1)}function Zp(e,t,n,r){if(!r)if(3==(3&t[B])){const i=e.preOrderCheckHooks;null!==i&&Ji(t,i,n)}else{const i=e.preOrderHooks;null!==i&&es(t,i,0,n)}Yn(n)}function Jp(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||Y,Lb(e)];return r=r||("object"==typeof e?void 0:ie(e)),new Vp(i,t||Ds(),r||null,o)}let Zt=(()=>{class e{static create(n,r){if(Array.isArray(n))return Jp({name:""},r,n,"");{const o=n.name??"";return Jp({name:o},n.parent,n.providers,o)}}}return e.THROW_IF_NOT_FOUND=vo,e.NULL=new Op,e.\u0275prov=A({token:e,providedIn:"any",factory:()=>M(Rp)}),e.__NG_ELEMENT_ID__=-1,e})();function _(e,t=N.Default){const n=D();return null===n?M(e,t):Ah(ke(),n,R(e),t)}function ug(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;rle&&Zp(e,t,le,!1),Ct(s?2:0,o),n(r,o)}finally{Yn(i),Ct(s?3:1,o)}}function xl(e,t,n){if(_u(t)){const o=t.directiveEnd;for(let i=t.directiveStart;i0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=a&&s.push(a),s.push(n,r,i)}}(e,t,r,zo(e,n,o.hostVars,L),o)}function iM(e,t,n,r,o,i){const s=i[t];if(null!==s){const a=r.setInput;for(let u=0;u0&&Ll(n)}}function Ll(e){for(let r=Qu(e);null!==r;r=Xu(r))for(let o=qe;o0&&Ll(i)}const n=e[b].components;if(null!==n)for(let r=0;r0&&Ll(o)}}function cM(e,t){const n=nt(t,e),r=n[b];(function dM(e,t){for(let n=t.length;n-1&&(tl(t,r),as(n,r))}this._attachedToViewContainer=!1}op(this._lView[b],this._lView)}onDestroy(t){!function dg(e,t,n,r){const o=yg(t);null===n?o.push(r):(o.push(n),e.firstCreatePass&&vg(e).push(r,o.length-1))}(this._lView[b],this._lView,null,t)}markForCheck(){bs(this._cdRefInjectingView||this._lView)}detach(){this._lView[B]&=-65}reattach(){this._lView[B]|=64}detectChanges(){Ss(this._lView[b],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new C(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function X0(e,t){Vo(e,t,t[z],2,null,null)}(this._lView[b],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new C(902,!1);this._appRef=t}}class fM extends Go{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;Ss(t[b],t,t[ve],!1)}checkNoChanges(){}get context(){return null}}class Cg extends Uo{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=ee(t);return new Wo(n,this.ngModule)}}function wg(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class pM{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=Ui(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{get inputs(){return wg(this.componentDef.inputs)}get outputs(){return wg(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function DS(e){return e.map(vS).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,o){let i=(o=o||this.ngModule)instanceof Kt?o:o?.injector;i&&null!==this.componentDef.getStandaloneInjector&&(i=this.componentDef.getStandaloneInjector(i)||i);const s=i?new pM(t,i):t,a=s.get(Up,null);if(null===a)throw new C(407,!1);const u=s.get(Xb,null),l=a.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",d=r?function HS(e,t,n){return e.selectRootElement(t,n===Ut.ShadowDom)}(l,r,this.componentDef.encapsulation):el(l,c,function hM(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(c)),f=this.componentDef.onPush?288:272,h=Ol(0,null,null,1,0,null,null,null,null,null),p=Cs(null,h,null,f,null,null,a,l,u,s,null);let g,m;Au(p);try{const v=this.componentDef;let w,y=null;v.findHostDirectiveDefs?(w=[],y=new Map,v.findHostDirectiveDefs(v,w,y),w.push(v)):w=[v];const I=function mM(e,t){const n=e[b],r=le;return e[r]=t,kr(n,r,2,"#host",null)}(p,d),Q=function yM(e,t,n,r,o,i,s,a){const u=o[b];!function vM(e,t,n,r){for(const o of e)t.mergedAttrs=Ao(t.mergedAttrs,o.hostAttrs);null!==t.mergedAttrs&&(Ms(t,t.mergedAttrs,!0),null!==n&&mp(r,n,t))}(r,e,t,s);const l=i.createRenderer(t,n),c=Cs(o,cg(n),null,n.onPush?32:16,o[e.index],e,i,l,a||null,null,null);return u.firstCreatePass&&Pl(u,e,r.length-1),Es(o,c),o[e.index]=c}(I,d,v,w,p,a,l);m=oh(h,le),d&&function _M(e,t,n,r){if(r)Nu(e,n,["ng-version",Jb.full]);else{const{attrs:o,classes:i}=function _S(e){const t=[],n=[];let r=1,o=2;for(;r0&&gp(e,n,i.join(" "))}}(l,v,d,r),void 0!==n&&function CM(e,t,n){const r=e.projection=[];for(let o=0;o=0;r--){const o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Ao(o.hostAttrs,n=Ao(n,o.hostAttrs))}}(r)}function Bl(e){return e===ln?{}:e===Y?[]:e}function bM(e,t){const n=e.viewQuery;e.viewQuery=n?(r,o)=>{t(r,o),n(r,o)}:t}function SM(e,t){const n=e.contentQueries;e.contentQueries=n?(r,o,i)=>{t(r,o,i),n(r,o,i)}:t}function MM(e,t){const n=e.hostBindings;e.hostBindings=n?(r,o)=>{t(r,o),n(r,o)}:t}function ze(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function xs(e,t,n,r,o,i,s,a){const u=D(),l=K(),c=e+le,d=l.firstCreatePass?function kM(e,t,n,r,o,i,s,a,u){const l=t.consts,c=kr(t,e,4,s||null,xn(l,a));Fl(t,n,c,xn(l,u)),Xi(t,c);const d=c.tView=Ol(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];Wt(d,!1);const f=u[z].createComment("");fs(l,u,f,d),He(f,u),Es(u,u[c]=mg(f,u,f,d)),Zi(d)&&Rl(l,u,d),null!=s&&Nl(u,d,a)}function pe(e,t,n){const r=D();return ze(r,_r(),t)&&function ft(e,t,n,r,o,i,s,a){const u=lt(t,n);let c,l=t.inputs;!a&&null!=l&&(c=l[r])?(jl(e,n,c,r,o),So(t)&&function qS(e,t){const n=nt(t,e);16&n[B]||(n[B]|=32)}(n,t.index)):3&t.type&&(r=function WS(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))}(K(),function de(){const e=k.lFrame;return oh(e.tView,e.selectedIndex)}(),r,e,t,r[z],n,!1),pe}function Ul(e,t,n,r,o){const s=o?"class":"style";jl(e,n,t.inputs[s],s,r)}function j(e,t,n,r){const o=D(),i=K(),s=le+e,a=o[z],u=i.firstCreatePass?function VM(e,t,n,r,o,i){const s=t.consts,u=kr(t,e,2,r,xn(s,o));return Fl(t,n,u,xn(s,i)),null!==u.attrs&&Ms(u,u.attrs,!1),null!==u.mergedAttrs&&Ms(u,u.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,u),u}(s,i,o,t,n,r):i.data[s],l=o[s]=el(a,t,function YE(){return k.lFrame.currentNamespace}()),c=Zi(u);return Wt(u,!0),mp(a,l,u),32!=(32&u.flags)&&fs(i,o,l,u),0===function FE(){return k.lFrame.elementDepthCount}()&&He(l,o),function PE(){k.lFrame.elementDepthCount++}(),c&&(Rl(i,o,u),xl(i,u,o)),null!==r&&Nl(o,u),j}function G(){let e=ke();Eu()?bu():(e=e.parent,Wt(e,!1));const t=e;!function kE(){k.lFrame.elementDepthCount--}();const n=K();return n.firstCreatePass&&(Xi(n,e),_u(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function e0(e){return 0!=(8&e.flags)}(t)&&Ul(n,t,D(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function t0(e){return 0!=(16&e.flags)}(t)&&Ul(n,t,D(),t.stylesWithoutHost,!1),G}function nr(e,t,n,r){return j(e,t,n,r),G(),nr}function Rs(e,t,n){const r=D(),o=K(),i=e+le,s=o.firstCreatePass?function jM(e,t,n,r,o){const i=t.consts,s=xn(i,r),a=kr(t,e,8,"ng-container",s);return null!==s&&Ms(a,s,!0),Fl(t,n,a,xn(i,o)),null!==t.queries&&t.queries.elementStart(t,a),a}(i,o,r,t,n):o.data[i];Wt(s,!0);const a=r[i]=r[z].createComment("");return fs(o,r,a,s),He(a,r),Zi(s)&&(Rl(o,r,s),xl(o,s,r)),null!=n&&Nl(r,s),Rs}function Ns(){let e=ke();const t=K();return Eu()?bu():(e=e.parent,Wt(e,!1)),t.firstCreatePass&&(Xi(t,e),_u(e)&&t.queries.elementEnd(e)),Ns}function Ko(e){return!!e&&"function"==typeof e.then}const Hl=function jg(e){return!!e&&"function"==typeof e.subscribe};function Ve(e,t,n,r){const o=D(),i=K(),s=ke();return function $g(e,t,n,r,o,i,s){const a=Zi(r),l=e.firstCreatePass&&vg(e),c=t[ve],d=yg(t);let f=!0;if(3&r.type||s){const g=lt(r,t),m=s?s(g):g,v=d.length,w=s?I=>s(Pe(I[r.index])):r.index;let y=null;if(!s&&a&&(y=function BM(e,t,n,r){const o=e.cleanup;if(null!=o)for(let i=0;iu?a[u]:null}"string"==typeof s&&(i+=2)}return null}(e,t,o,r.index)),null!==y)(y.__ngLastListenerFn__||y).__ngNextListenerFn__=i,y.__ngLastListenerFn__=i,f=!1;else{i=Hg(r,t,c,i,!1);const I=n.listen(m,o,i);d.push(i,I),l&&l.push(o,w,v,v+1)}}else i=Hg(r,t,c,i,!1);const h=r.outputs;let p;if(f&&null!==h&&(p=h[o])){const g=p.length;if(g)for(let m=0;m-1?nt(e.index,t):t);let u=Ug(t,n,r,s),l=i.__ngNextListenerFn__;for(;l;)u=Ug(t,n,l,s)&&u,l=l.__ngNextListenerFn__;return o&&!1===u&&(s.preventDefault(),s.returnValue=!1),u}}function bt(e=1){return function zE(e){return(k.lFrame.contextLView=function GE(e,t){for(;e>0;)t=t[mr],e--;return t}(e,k.lFrame.contextLView))[ve]}(e)}function Os(e,t){return e<<17|t<<2}function Nn(e){return e>>17&32767}function Gl(e){return 2|e}function rr(e){return(131068&e)>>2}function Wl(e,t){return-131069&e|t<<2}function ql(e){return 1|e}function Jg(e,t,n,r,o){const i=e[n+1],s=null===t;let a=r?Nn(i):rr(i),u=!1;for(;0!==a&&(!1===u||s);){const c=e[a+1];ZM(e[a],t)&&(u=!0,e[a+1]=r?ql(c):Gl(c)),a=r?Nn(c):rr(c)}u&&(e[n+1]=r?Gl(i):ql(i))}function ZM(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Ir(e,t)>=0}function Fs(e,t){return function Ot(e,t,n,r){const o=D(),i=K(),s=function hn(e){const t=k.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}(2);i.firstUpdatePass&&function um(e,t,n,r){const o=e.data;if(null===o[n+1]){const i=o[Ze()],s=function am(e,t){return t>=e.expandoStartIndex}(e,n);(function fm(e,t){return 0!=(e.flags&(t?8:16))})(i,r)&&null===t&&!s&&(t=!1),t=function oI(e,t,n,r){const o=function Mu(e){const t=k.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=Zo(n=Kl(null,e,t,n,r),t.attrs,r),i=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==o)if(n=Kl(o,e,t,n,r),null===i){let u=function iI(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==rr(r))return e[Nn(r)]}(e,t,r);void 0!==u&&Array.isArray(u)&&(u=Kl(null,e,t,u[1],r),u=Zo(u,t.attrs,r),function sI(e,t,n,r){e[Nn(n?t.classBindings:t.styleBindings)]=r}(e,t,r,u))}else i=function aI(e,t,n){let r;const o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0)&&(l=!0)):c=n,o)if(0!==u){const f=Nn(e[a+1]);e[r+1]=Os(f,a),0!==f&&(e[f+1]=Wl(e[f+1],r)),e[a+1]=function GM(e,t){return 131071&e|t<<17}(e[a+1],r)}else e[r+1]=Os(a,0),0!==a&&(e[a+1]=Wl(e[a+1],r)),a=r;else e[r+1]=Os(u,0),0===a?a=r:e[u+1]=Wl(e[u+1],r),u=r;l&&(e[r+1]=Gl(e[r+1])),Jg(e,c,r,!0),Jg(e,c,r,!1),function KM(e,t,n,r,o){const i=o?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof t&&Ir(i,t)>=0&&(n[r+1]=ql(n[r+1]))}(t,c,e,r,i),s=Os(a,u),i?t.classBindings=s:t.styleBindings=s}(o,i,t,n,s,r)}}(i,e,s,r),t!==L&&ze(o,s,t)&&function cm(e,t,n,r,o,i,s,a){if(!(3&t.type))return;const u=e.data,l=u[a+1],c=function WM(e){return 1==(1&e)}(l)?dm(u,t,n,o,rr(l),s):void 0;Ps(c)||(Ps(i)||function zM(e){return 2==(2&e)}(l)&&(i=dm(u,null,n,o,a,s)),function ub(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=-1===r.indexOf("-")?void 0:rt.DashCase;null==o?e.removeStyle(n,r,i):("string"==typeof o&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=rt.Important),e.setStyle(n,r,o,i))}}(r,s,Yi(Ze(),n),o,i))}(i,i.data[Ze()],o,o[z],e,o[s+1]=function dI(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=ie(function Rn(e){return e instanceof Cp?e.changingThisBreaksApplicationSecurity:e}(e)))),e}(t,n),r,s)}(e,t,null,!0),Fs}function Kl(e,t,n,r,o){let i=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const u=e[o],l=Array.isArray(u),c=l?u[1]:u,d=null===c;let f=n[o+1];f===L&&(f=d?Y:void 0);let h=d?Bu(f,r):c===r?f:void 0;if(l&&!Ps(h)&&(h=Bu(u,r)),Ps(h)&&(a=h,s))return a;const p=e[o+1];o=s?Nn(p):rr(p)}if(null!==t){let u=i?t.residualClasses:t.residualStyles;null!=u&&(a=Bu(u,r))}return a}function Ps(e){return void 0!==e}function Z(e,t=""){const n=D(),r=K(),o=e+le,i=r.firstCreatePass?kr(r,o,1,t,null):r.data[o],s=n[o]=function Ju(e,t){return e.createText(t)}(n[z],t);fs(r,n,s,i),Wt(i,!1)}function vn(e){return Zl("",e,""),vn}function Zl(e,t,n){const r=D(),o=function Vr(e,t,n,r){return ze(e,_r(),n)?t+P(n)+r:L}(r,e,t,n);return o!==L&&function yn(e,t,n){const r=Yi(t,e);!function np(e,t,n){e.setValue(t,n)}(e[z],r,n)}(r,Ze(),o),Zl}const Kr="en-US";let Fm=Kr;function Xl(e,t,n,r,o){if(e=R(e),Array.isArray(e))for(let i=0;i>20;if(er(e)||!e.multi){const h=new Io(u,o,_),p=ec(a,t,o?c:c+f,d);-1===p?(ku(os(l,s),i,a),Jl(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=ec(a,t,c+f,d),p=ec(a,t,c,c+f),m=p>=0&&n[p];if(o&&!m||!o&&!(h>=0&&n[h])){ku(os(l,s),i,a);const v=function TA(e,t,n,r,o){const i=new Io(e,n,_);return i.multi=[],i.index=t,i.componentProviders=0,iy(i,o,r&&!n),i}(o?AA:IA,n.length,o,r,u);!o&&m&&(n[p].providerFactory=v),Jl(i,e,t.length,0),t.push(a),l.directiveStart++,l.directiveEnd++,o&&(l.providerIndexes+=1048576),n.push(v),s.push(v)}else Jl(i,e,h>-1?h:p,iy(n[o?p:h],u,!o&&r));!o&&r&&m&&n[p].componentProviders++}}}function Jl(e,t,n,r){const o=er(t),i=function jb(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 iy(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function ec(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>function MA(e,t,n){const r=K();if(r.firstCreatePass){const o=Rt(e);Xl(n,r.data,r.blueprint,o,!0),Xl(t,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,t)}}class Zr{}class sy{}class ay extends Zr{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Cg(this);const r=at(t);this._bootstrapComponents=mn(r.bootstrap),this._r3Injector=eg(t,n,[{provide:Zr,useValue:this},{provide:Uo,useValue:this.componentFactoryResolver}],ie(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 nc extends sy{constructor(t){super(),this.moduleType=t}create(t){return new ay(this.moduleType,t)}}class RA extends Zr{constructor(t,n,r){super(),this.componentFactoryResolver=new Cg(this),this.instance=null;const o=new Vp([...t,{provide:Zr,useValue:this},{provide:Uo,useValue:this.componentFactoryResolver}],n||Ds(),r,new Set(["environment"]));this.injector=o,o.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function Bs(e,t,n=null){return new RA(e,t,n).injector}let NA=(()=>{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=Fp(0,n.type),o=r.length>0?Bs([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=A({token:e,providedIn:"environment",factory:()=>new e(M(Kt))}),e})();function uy(e){e.getStandaloneInjector=t=>t.get(NA).getOrCreateStandaloneInjector(e)}function oc(e){return t=>{setTimeout(e,void 0,t)}}const me=class oT extends sn{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=oc(i),o&&(o=oc(o)),s&&(s=oc(s)));const a=super.subscribe({next:o,error:i,complete:s});return t instanceof gt&&t.add(a),a}};let Dn=(()=>{class e{}return e.__NG_ELEMENT_ID__=uT,e})();const sT=Dn,aT=class extends sT{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(t,n){const r=this._declarationTContainer.tView,o=Cs(this._declarationLView,r,t,16,null,r.declTNode,null,null,null,null,n||null);o[Eo]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[Ht];return null!==s&&(o[Ht]=s.createEmbeddedView(r)),Tl(r,o,t),new Go(o)}};function uT(){return $s(ke(),D())}function $s(e,t){return 4&e.type?new aT(t,e,Nr(e,t)):null}let Pt=(()=>{class e{}return e.__NG_ELEMENT_ID__=lT,e})();function lT(){return function wy(e,t){let n;const r=t[e.index];if(xt(r))n=r;else{let o;if(8&e.type)o=Pe(r);else{const i=t[z];o=i.createComment("");const s=lt(e,t);Jn(i,ds(i,s),o,function ib(e,t){return e.nextSibling(t)}(i,s),!1)}t[e.index]=n=mg(r,t,o,e),Es(t,n)}return new _y(n,e,t)}(ke(),D())}const cT=Pt,_y=class extends cT{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Nr(this._hostTNode,this._hostLView)}get injector(){return new wr(this._hostTNode,this._hostLView)}get parentInjector(){const t=Pu(this._hostTNode,this._hostLView);if(wh(t)){const n=ns(t,this._hostLView),r=ts(t);return new wr(n[b].data[r+8],n)}return new wr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Cy(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-qe}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 xo(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(ee(t)),l=r||this.parentInjector;if(!i&&null==u.ngModule){const f=(s?l:this.parentInjector).get(Kt,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[b];if(function OE(e){return xt(e[he])}(r)){const c=this.indexOf(t);if(-1!==c)this.detach(c);else{const d=r[he],f=new _y(d,d[$e],d[he]);f.detach(f.indexOf(t))}}const i=this._adjustIndex(n),s=this._lContainer;!function eb(e,t,n,r){const o=qe+r,i=n.length;r>0&&(n[o-1][Tt]=t),r{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{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)(M(zs,8))},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const oi=new S("AppId",{providedIn:"root",factory:function Zy(){return`${yc()}${yc()}${yc()}`}});function yc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Yy=new S("Platform Initializer"),vc=new S("Platform ID",{providedIn:"platform",factory:()=>"unknown"});let LT=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const _n=new S("LocaleId",{providedIn:"root",factory:()=>H(_n,N.Optional|N.SkipSelf)||function VT(){return typeof $localize<"u"&&$localize.locale||Kr}()});class BT{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let Qy=(()=>{class e{compileModuleSync(n){return new nc(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),i=mn(at(n).declarations).reduce((s,a)=>{const u=ee(a);return u&&s.push(new Wo(u)),s},[]);return new BT(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=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const HT=(()=>Promise.resolve(0))();function Dc(e){typeof Zone>"u"?HT.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class De{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new me(!1),this.onMicrotaskEmpty=new me(!1),this.onStable=new me(!1),this.onError=new me(!1),typeof Zone>"u")throw new C(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,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 zT(){let e=ue.requestAnimationFrame,t=ue.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 qT(e){const t=()=>{!function WT(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(ue,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Cc(e),e.isCheckStableRunning=!0,_c(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Cc(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{try{return ev(e),n.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&t(),tv(e)}},onInvoke:(n,r,o,i,s,a,u)=>{try{return ev(e),n.invoke(o,i,s,a,u)}finally{e.shouldCoalesceRunChangeDetection&&t(),tv(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,Cc(e),_c(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(!De.isInAngularZone())throw new C(909,!1)}static assertNotInAngularZone(){if(De.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,GT,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 GT={};function _c(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 Cc(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function ev(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function tv(e){e._nesting--,_c(e)}class KT{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new me,this.onMicrotaskEmpty=new me,this.onStable=new me,this.onError=new me}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 nv=new S(""),Ws=new S("");let bc,wc=(()=>{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,bc||(function ZT(e){bc=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:()=>{De.assertNotInAngularZone(),Dc(()=>{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())Dc(()=>{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)(M(De),M(Ec),M(Ws))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})(),Ec=(()=>{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 bc?.findTestabilityInTree(this,n,r)??null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const Cn=!1;let On=null;const rv=new S("AllowMultipleToken"),Sc=new S("PlatformDestroyListeners"),ov=new S("appBootstrapListener");class iv{constructor(t,n){this.name=t,this.token=n}}function av(e,t,n=[]){const r=`Platform: ${t}`,o=new S(r);return(i=[])=>{let s=Mc();if(!s||s.injector.get(rv,!1)){const a=[...n,...i,{provide:o,useValue:!0}];e?e(a):function XT(e){if(On&&!On.get(rv,!1))throw new C(400,!1);On=e;const t=e.get(lv);(function sv(e){const t=e.get(Yy,null);t&&t.forEach(n=>n())})(e)}(function uv(e=[],t){return Zt.create({name:t,providers:[{provide:yl,useValue:"platform"},{provide:Sc,useValue:new Set([()=>On=null])},...e]})}(a,r))}return function ex(e){const t=Mc();if(!t)throw new C(401,!1);return t}()}}function Mc(){return On?.get(lv)??null}let lv=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const o=function dv(e,t){let n;return n="noop"===e?new KT:("zone.js"===e?void 0:e)||new De(t),n}(r?.ngZone,function cv(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!e||!e.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!e||!e.ngZoneRunCoalescing)||!1}}(r)),i=[{provide:De,useValue:o}];return o.run(()=>{const s=Zt.create({providers:i,parent:this.injector,name:n.moduleType.name}),a=n.create(s),u=a.injector.get(Or,null);if(!u)throw new C(402,!1);return o.runOutsideAngular(()=>{const l=o.onError.subscribe({next:c=>{u.handleError(c)}});a.onDestroy(()=>{Ks(this._modules,a),l.unsubscribe()})}),function fv(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(Gs);return l.runInitializers(),l.donePromise.then(()=>(function Pm(e){yt(e,"Expected localeId to be defined"),"string"==typeof e&&(Fm=e.toLowerCase().replace(/_/g,"-"))}(a.injector.get(_n,Kr)||Kr),this._moduleDoBootstrap(a),a))})})}bootstrapModule(n,r=[]){const o=hv({},r);return function YT(e,t,n){const r=new nc(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(Sc,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)(M(Zt))},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function hv(e,t){return Array.isArray(t)?t.reduce(hv,e):{...e,...t}}let qs=(()=>{class e{get destroyed(){return this._destroyed}get injector(){return this._injector}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 ye(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new ye(a=>{let u;this._zone.runOutsideAngular(()=>{u=this._zone.onStable.subscribe(()=>{De.assertNotInAngularZone(),Dc(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const l=this._zone.onUnstable.subscribe(()=>{De.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{u.unsubscribe(),l.unsubscribe()}});this.isStable=function Xw(...e){const t=yo(e),n=function Gw(e,t){return"number"==typeof iu(e)?e.pop():t}(e,1/0),r=e;return r.length?1===r.length?mt(r[0]):fr(n)(be(r,t)):Bt}(i,s.pipe(function Jw(e={}){const{connector:t=(()=>new sn),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 Oe((g,m)=>{l++,!d&&!c&&f();const v=u=u??t();m.add(()=>{l--,0===l&&!d&&!c&&(a=su(p,o))}),v.subscribe(m),!s&&l>0&&(s=new mo({next:w=>v.next(w),error:w=>{d=!0,f(),a=su(h,n,w),v.error(w)},complete:()=>{c=!0,f(),a=su(h,r),v.complete()}}),mt(g).subscribe(s))})(i)}}()))}bootstrap(n,r){const o=n instanceof Bp;if(!this._injector.get(Gs).done){!o&&function pr(e){const t=ee(e)||Be(e)||tt(e);return null!==t&&t.standalone}(n);throw new C(405,Cn)}let s;s=o?n:this._injector.get(Uo).resolveComponentFactory(n),this.componentTypes.push(s.componentType);const a=function QT(e){return e.isBoundToModule}(s)?void 0:this._injector.get(Zr),l=s.create(Zt.NULL,[],r||s.selector,a),c=l.location.nativeElement,d=l.injector.get(nv,null);return d?.registerApplication(c),l.onDestroy(()=>{this.detachView(l.hostView),Ks(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;Ks(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(ov,[]);r.push(...this._bootstrapListeners),r.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),()=>Ks(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)(M(De),M(Kt),M(Or))},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Ks(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let Zs=(()=>{class e{}return e.__NG_ELEMENT_ID__=nx,e})();function nx(e){return function rx(e,t,n){if(So(e)&&!n){const r=nt(e.index,t);return new Go(r,r)}return 47&e.type?new Go(t[Ue],t):null}(ke(),D(),16==(16&e))}const mx=av(null,"core",[]);let yx=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(M(qs))},e.\u0275mod=At({type:e}),e.\u0275inj=vt({}),e})();let Rc=null;function wn(){return Rc}class _x{}const Xe=new S("DocumentToken");let Nc=(()=>{class e{historyGo(n){throw new Error("Not implemented")}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:function(){return function Cx(){return M(bv)}()},providedIn:"platform"}),e})();const wx=new S("Location Initialized");let bv=(()=>{class e extends Nc{constructor(n){super(),this._doc=n,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return wn().getBaseHref(this._doc)}onPopState(n){const r=wn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){const r=wn().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){Sv()?this._history.pushState(n,r,o):this._location.hash=o}replaceState(n,r,o){Sv()?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)(M(Xe))},e.\u0275prov=A({token:e,factory:function(){return function Ex(){return new bv(M(Xe))}()},providedIn:"platform"}),e})();function Sv(){return!!window.history.pushState}function Oc(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 Mv(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 En(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=A({token:e,factory:function(){return H(Av)},providedIn:"root"}),e})();const Iv=new S("appBaseHref");let Av=(()=>{class e extends sr{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??H(Xe).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 Oc(this._baseHref,n)}path(n=!1){const r=this._platformLocation.pathname+En(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){const s=this.prepareExternalUrl(o+En(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){const s=this.prepareExternalUrl(o+En(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)(M(Nc),M(Iv,8))},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),bx=(()=>{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=Oc(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+En(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+En(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)(M(Nc),M(Iv,8))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})(),Fc=(()=>{class e{constructor(n){this._subject=new me,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;const r=this._locationStrategy.getBaseHref();this._basePath=function Ix(e){if(new RegExp("^(https?:)?//").test(e)){const[,n]=e.split(/\/\/[^\/]+/);return n}return e}(Mv(Tv(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+En(r))}normalize(n){return e.stripTrailingSlash(function Mx(e,t){if(!e||!t.startsWith(e))return t;const n=t.substring(e.length);return""===n||["/",";","?","#"].includes(n[0])?n:t}(this._basePath,Tv(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+En(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+En(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=En,e.joinWithSlash=Oc,e.stripTrailingSlash=Mv,e.\u0275fac=function(n){return new(n||e)(M(sr))},e.\u0275prov=A({token:e,factory:function(){return function Sx(){return new Fc(M(sr))}()},providedIn:"root"}),e})();function Tv(e){return e.replace(/\/index.html$/,"")}function Vv(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}let Hv=(()=>{class e{constructor(n,r){this._viewContainer=n,this._context=new gR,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){zv("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){zv("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)(_(Pt),_(Dn))},e.\u0275dir=F({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),e})();class gR{constructor(){this.$implicit=null,this.ngIf=null}}function zv(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${ie(t)}'.`)}let BR=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=At({type:e}),e.\u0275inj=vt({}),e})();let zR=(()=>{class e{}return e.\u0275prov=A({token:e,providedIn:"root",factory:()=>new GR(M(Xe),window)}),e})();class GR{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 WR(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=Kv(this.window.history)||Kv(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 Kv(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}class Zv{}class DN extends _x{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Qc extends DN{static makeCurrent(){!function Dx(e){Rc||(Rc=e)}(new Qc)}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 _N(){return li=li||document.querySelector("base"),li?li.getAttribute("href"):null}();return null==n?null:function CN(e){ca=ca||document.createElement("a"),ca.setAttribute("href",e);const t=ca.pathname;return"/"===t.charAt(0)?t:`/${t}`}(n)}resetBaseElement(){li=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Vv(document.cookie,t)}}let ca,li=null;const eD=new S("TRANSITION_ID"),EN=[{provide:zs,useFactory:function wN(e,t,n){return()=>{n.get(Gs).donePromise.then(()=>{const r=wn(),o=t.querySelectorAll(`style[ng-transition="${e}"]`);for(let i=0;i{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();const da=new S("EventManagerPlugins");let fa=(()=>{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{class e{constructor(){this.usageCount=new Map}addStyles(n){for(const r of n)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(n){for(const r of n)0===this.changeUsageCount(r,-1)&&this.onStyleRemoved(r)}onStyleRemoved(n){}onStyleAdded(n){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(n,r){const o=this.usageCount;let i=o.get(n)??0;return i+=r,i>0?o.set(n,i):o.delete(n),i}ngOnDestroy(){for(const n of this.getAllStyles())this.onStyleRemoved(n);this.usageCount.clear()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})(),ci=(()=>{class e extends nD{constructor(n){super(),this.doc=n,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(n){for(const r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){const r=this.styleRef;r.get(n)?.forEach(i=>i.remove()),r.delete(n)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(const r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}addStyleToHost(n,r){const o=this.doc.createElement("style");o.textContent=r,n.appendChild(o);const i=this.styleRef.get(r);i?i.push(o):this.styleRef.set(r,[o])}resetHostNodes(){const n=this.hostNodes;n.clear(),n.add(this.doc.head)}}return e.\u0275fac=function(n){return new(n||e)(M(Xe))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();const Xc={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/"},Jc=/%COMP%/g,iD=new S("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function sD(e,t){return t.flat(100).map(n=>n.replace(Jc,e))}function aD(e){return t=>{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let ed=(()=>{class e{constructor(n,r,o,i){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestory=i,this.rendererByCompId=new Map,this.defaultRenderer=new td(n)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;const o=this.getOrCreateRenderer(n,r);return o instanceof cD?o.applyToHost(n):o instanceof nd&&o.applyStyles(),o}getOrCreateRenderer(n,r){const o=this.rendererByCompId;let i=o.get(r.id);if(!i){const s=this.eventManager,a=this.sharedStylesHost,u=this.removeStylesOnCompDestory;switch(r.encapsulation){case Ut.Emulated:i=new cD(s,a,r,this.appId,u);break;case Ut.ShadowDom:return new NN(s,a,n,r);default:i=new nd(s,a,r,u)}i.onDestroy=()=>o.delete(r.id),o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return e.\u0275fac=function(n){return new(n||e)(M(fa),M(ci),M(oi),M(iD))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();class td{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,n){return n?document.createElementNS(Xc[n]||n,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,n){(lD(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(lD(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=Xc[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const o=Xc[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&(rt.DashCase|rt.Important)?t.style.setProperty(n,r,o&rt.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&rt.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,aD(r)):this.eventManager.addEventListener(t,n,aD(r))}}function lD(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class NN extends td{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=sD(o.id,o.styles);for(const s of i){const a=document.createElement("style");a.textContent=s,this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}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)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class nd extends td{constructor(t,n,r,o,i=r.id){super(t),this.sharedStylesHost=n,this.removeStylesOnCompDestory=o,this.rendererUsageCount=0,this.styles=sD(i,r.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class cD extends nd{constructor(t,n,r,o,i){const s=o+"-"+r.id;super(t,n,r,i,s),this.contentAttr=function TN(e){return"_ngcontent-%COMP%".replace(Jc,e)}(s),this.hostAttr=function xN(e){return"_nghost-%COMP%".replace(Jc,e)}(s)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){const r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}}let ON=(()=>{class e extends tD{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)(M(Xe))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();const dD=["alt","control","meta","shift"],FN={"\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"},PN={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let kN=(()=>{class e extends tD{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(()=>wn().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."),dD.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=FN[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"),dD.forEach(s=>{s!==o&&(0,PN[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)(M(Xe))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();const BN=av(mx,"browser",[{provide:vc,useValue:"browser"},{provide:Yy,useValue:function LN(){Qc.makeCurrent()},multi:!0},{provide:Xe,useFactory:function jN(){return function hb(e){ul=e}(document),document},deps:[]}]),pD=new S(""),gD=[{provide:Ws,useClass:class bN{addToWindow(t){ue.getAngularTestability=(r,o=!0)=>{const i=t.findTestabilityInTree(r,o);if(null==i)throw new Error("Could not find testability for element.");return i},ue.getAllAngularTestabilities=()=>t.getAllTestabilities(),ue.getAllAngularRootElements=()=>t.getAllRootElements(),ue.frameworkStabilizers||(ue.frameworkStabilizers=[]),ue.frameworkStabilizers.push(r=>{const o=ue.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?wn().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},deps:[]},{provide:nv,useClass:wc,deps:[De,Ec,Ws]},{provide:wc,useClass:wc,deps:[De,Ec,Ws]}],mD=[{provide:yl,useValue:"root"},{provide:Or,useFactory:function VN(){return new Or},deps:[]},{provide:da,useClass:ON,multi:!0,deps:[Xe,De,vc]},{provide:da,useClass:kN,multi:!0,deps:[Xe]},{provide:ed,useClass:ed,deps:[fa,ci,oi,iD]},{provide:Up,useExisting:ed},{provide:nD,useExisting:ci},{provide:ci,useClass:ci,deps:[Xe]},{provide:fa,useClass:fa,deps:[da,De]},{provide:Zv,useClass:SN,deps:[]},[]];let $N=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:oi,useValue:n.appId},{provide:eD,useExisting:oi},EN]}}}return e.\u0275fac=function(n){return new(n||e)(M(pD,12))},e.\u0275mod=At({type:e}),e.\u0275inj=vt({providers:[...mD,...gD],imports:[BR,yx]}),e})(),yD=(()=>{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)(M(Xe))},e.\u0275prov=A({token:e,factory:function(n){let r=null;return r=n?new n:function HN(){return new yD(M(Xe))}(),r},providedIn:"root"}),e})();function T(...e){return be(e,yo(e))}typeof window<"u"&&window;class jt extends sn{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 ha=po(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}),{isArray:ZN}=Array,{getPrototypeOf:YN,prototype:QN,keys:XN}=Object;function _D(e){if(1===e.length){const t=e[0];if(ZN(t))return{args:t,keys:null};if(function JN(e){return e&&"object"==typeof e&&YN(e)===QN}(t)){const n=XN(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}const{isArray:eO}=Array;function CD(e){return U(t=>function tO(e,t){return eO(t)?e(...t):e(t)}(e,t))}function wD(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function ED(...e){const t=yo(e),n=Of(e),{args:r,keys:o}=_D(e);if(0===r.length)return be([],t);const i=new ye(function nO(e,t,n=qn){return r=>{bD(t,()=>{const{length:o}=e,i=new Array(o);let s=o,a=o;for(let u=0;u{const l=be(e[u],t);let c=!1;l.subscribe(Te(r,d=>{i[u]=d,c||(c=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,t,o?s=>wD(o,s):qn));return n?i.pipe(CD(n)):i}function bD(e,t,n){e?an(n,e,t):t()}function id(...e){return function rO(){return fr(1)}()(be(e,yo(e)))}function SD(e){return new ye(t=>{mt(e()).subscribe(t)})}function di(e,t){const n=oe(e)?e:()=>e,r=o=>o.error(n());return new ye(t?o=>t.schedule(r,0,o):r)}function sd(){return Oe((e,t)=>{let n=null;e._refCount++;const r=Te(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 MD extends ye{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,vf(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 gt;const n=this.getSubject();t.add(this.source.subscribe(Te(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=gt.EMPTY)}return t}refCount(){return sd()(this)}}function tn(e,t){return Oe((n,r)=>{let o=null,i=0,s=!1;const a=()=>s&&!o&&r.complete();n.subscribe(Te(r,u=>{o?.unsubscribe();let l=0;const c=i++;mt(e(u,c)).subscribe(o=Te(r,d=>r.next(t?t(u,d,c,l++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Jr(e){return e<=0?()=>Bt:Oe((t,n)=>{let r=0;t.subscribe(Te(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function Sn(e,t){return Oe((n,r)=>{let o=0;n.subscribe(Te(r,i=>e.call(t,i,o++)&&r.next(i)))})}function pa(e){return Oe((t,n)=>{let r=!1;t.subscribe(Te(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function ID(e=iO){return Oe((t,n)=>{let r=!1;t.subscribe(Te(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function iO(){return new ha}function Pn(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Sn((o,i)=>e(o,i,r)):qn,Jr(1),n?pa(t):ID(()=>new ha))}function kn(e,t){return oe(t)?Fe(e,t,1):Fe(e,1)}function Ge(e,t,n){const r=oe(e)||t||n?{next:e,error:t,complete:n}:e;return r?Oe((o,i)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;o.subscribe(Te(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)}))}):qn}function Ln(e){return Oe((t,n)=>{let i,r=null,o=!1;r=t.subscribe(Te(n,void 0,void 0,s=>{i=mt(e(s,Ln(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function AD(e,t){return Oe(function sO(e,t,n,r,o){return(i,s)=>{let a=n,u=t,l=0;i.subscribe(Te(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()})))}}(e,t,arguments.length>=2,!0))}function ad(e){return e<=0?()=>Bt:Oe((t,n)=>{let r=[];t.subscribe(Te(n,o=>{r.push(o),e{for(const o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function TD(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Sn((o,i)=>e(o,i,r)):qn,ad(1),n?pa(t):ID(()=>new ha))}function ud(e){return Oe((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}const V="primary",fi=Symbol("RouteTitle");class lO{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 eo(e){return new lO(e)}function cO(e,t,n){const r=n.path.split("/");if(r.length>e.length||"full"===n.pathMatch&&(t.hasChildren()||r.lengthr[i]===o)}return e===t}function RD(e){return Array.prototype.concat.apply([],e)}function ND(e){return e.length>0?e[e.length-1]:null}function je(e,t){for(const n in e)e.hasOwnProperty(n)&&t(e[n],n)}function Vn(e){return Hl(e)?e:Ko(e)?be(Promise.resolve(e)):T(e)}const ga=!1,fO={exact:function PD(e,t,n){if(!ar(e.segments,t.segments)||!ma(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(const r in t.children)if(!e.children[r]||!PD(e.children[r],t.children[r],n))return!1;return!0},subset:kD},OD={exact:function hO(e,t){return nn(e,t)},subset:function pO(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>xD(e[n],t[n]))},ignored:()=>!0};function FD(e,t,n){return fO[n.paths](e.root,t.root,n.matrixParams)&&OD[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function kD(e,t,n){return LD(e,t,t.segments,n)}function LD(e,t,n,r){if(e.segments.length>n.length){const o=e.segments.slice(0,n.length);return!(!ar(o,n)||t.hasChildren()||!ma(o,n,r))}if(e.segments.length===n.length){if(!ar(e.segments,n)||!ma(e.segments,n,r))return!1;for(const o in t.children)if(!e.children[o]||!kD(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!!(ar(e.segments,o)&&ma(e.segments,o,r)&&e.children[V])&&LD(e.children[V],t,i,r)}}function ma(e,t,n){return t.every((r,o)=>OD[n](e[o].parameters,r.parameters))}class jn{constructor(t=new W([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=eo(this.queryParams)),this._queryParamMap}toString(){return yO.serialize(this)}}class W{constructor(t,n){this.segments=t,this.children=n,this.parent=null,je(n,(r,o)=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ya(this)}}class hi{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap||(this._parameterMap=eo(this.parameters)),this._parameterMap}toString(){return BD(this)}}function ar(e,t){return e.length===t.length&&e.every((n,r)=>n.path===t[r].path)}let pi=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:function(){return new ld},providedIn:"root"}),e})();class ld{parse(t){const n=new MO(t);return new jn(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){const n=`/${gi(t.root,!0)}`,r=function _O(e){const t=Object.keys(e).map(n=>{const r=e[n];return Array.isArray(r)?r.map(o=>`${va(n)}=${va(o)}`).join("&"):`${va(n)}=${va(r)}`}).filter(n=>!!n);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${n}${r}${"string"==typeof t.fragment?`#${function vO(e){return encodeURI(e)}(t.fragment)}`:""}`}}const yO=new ld;function ya(e){return e.segments.map(t=>BD(t)).join("/")}function gi(e,t){if(!e.hasChildren())return ya(e);if(t){const n=e.children[V]?gi(e.children[V],!1):"",r=[];return je(e.children,(o,i)=>{i!==V&&r.push(`${i}:${gi(o,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=function mO(e,t){let n=[];return je(e.children,(r,o)=>{o===V&&(n=n.concat(t(r,o)))}),je(e.children,(r,o)=>{o!==V&&(n=n.concat(t(r,o)))}),n}(e,(r,o)=>o===V?[gi(e.children[V],!1)]:[`${o}:${gi(r,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[V]?`${ya(e)}/${n[0]}`:`${ya(e)}/(${n.join("//")})`}}function VD(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function va(e){return VD(e).replace(/%3B/gi,";")}function cd(e){return VD(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Da(e){return decodeURIComponent(e)}function jD(e){return Da(e.replace(/\+/g,"%20"))}function BD(e){return`${cd(e.path)}${function DO(e){return Object.keys(e).map(t=>`;${cd(t)}=${cd(e[t])}`).join("")}(e.parameters)}`}const CO=/^[^\/()?;=#]+/;function _a(e){const t=e.match(CO);return t?t[0]:""}const wO=/^[^=?&#]+/,bO=/^[^&#]+/;class MO{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new W([],{}):new W([],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[V]=new W(t,n)),r}parseSegment(){const t=_a(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new C(4009,ga);return this.capture(t),new hi(Da(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const n=_a(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const o=_a(this.remaining);o&&(r=o,this.capture(r))}t[Da(n)]=Da(r)}parseQueryParam(t){const n=function EO(e){const t=e.match(wO);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const s=function SO(e){const t=e.match(bO);return t?t[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const o=jD(n),i=jD(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=_a(this.remaining),o=this.remaining[r.length];if("/"!==o&&")"!==o&&";"!==o)throw new C(4010,ga);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=V);const s=this.parseChildren();n[i]=1===Object.keys(s).length?s[V]:new W([],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,ga)}}function dd(e){return e.segments.length>0?new W([],{[V]:e}):e}function Ca(e){const t={};for(const r of Object.keys(e.children)){const i=Ca(e.children[r]);(i.segments.length>0||i.hasChildren())&&(t[r]=i)}return function IO(e){if(1===e.numberOfChildren&&e.children[V]){const t=e.children[V];return new W(e.segments.concat(t.segments),t.children)}return e}(new W(e.segments,t))}function ur(e){return e instanceof jn}const fd=!1;function AO(e,t,n,r,o){if(0===n.length)return to(t.root,t.root,t.root,r,o);const i=function GD(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new zD(!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 je(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 zD(n,t,r)}(n);return i.toRoot()?to(t.root,t.root,new W([],{}),r,o):function s(u){const l=function xO(e,t,n,r){if(e.isAbsolute)return new no(t.root,!0,0);if(-1===r)return new no(n,n===t.root,0);return function WD(e,t,n){let r=e,o=t,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new C(4005,fd&&"Invalid number of '../'");o=r.segments.length}return new no(r,!1,o-i)}(n,r+(mi(e.commands[0])?0:1),e.numberOfDoubleDots)}(i,t,e.snapshot?._urlSegment,u),c=l.processChildren?ro(l.segmentGroup,l.index,i.commands):hd(l.segmentGroup,l.index,i.commands);return to(t.root,l.segmentGroup,c,r,o)}(e.snapshot?._lastPathIndex)}function mi(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function yi(e){return"object"==typeof e&&null!=e&&e.outlets}function to(e,t,n,r,o){let s,i={};r&&je(r,(u,l)=>{i[l]=Array.isArray(u)?u.map(c=>`${c}`):`${u}`}),s=e===t?n:HD(e,t,n);const a=dd(Ca(s));return new jn(a,i,o)}function HD(e,t,n){const r={};return je(e.children,(o,i)=>{r[i]=o===t?n:HD(o,t,n)}),new W(e.segments,r)}class zD{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&mi(r[0]))throw new C(4003,fd&&"Root segment cannot have matrix parameters");const o=r.find(yi);if(o&&o!==ND(r))throw new C(4004,fd&&"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class no{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}}function hd(e,t,n){if(e||(e=new W([],{})),0===e.segments.length&&e.hasChildren())return ro(e,t,n);const r=function NO(e,t,n){let r=0,o=t;const i={match:!1,pathIndex:0,commandIndex:0};for(;o=n.length)return i;const s=e.segments[o],a=n[r];if(yi(a))break;const u=`${a}`,l=r0&&void 0===u)break;if(u&&l&&"object"==typeof l&&void 0===l.outlets){if(!KD(u,l,s))return i;r+=2}else{if(!KD(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{"string"==typeof i&&(i=[i]),null!==i&&(o[s]=hd(e.children[s],t,i))}),je(e.children,(i,s)=>{void 0===r[s]&&(o[s]=i)}),new W(e.segments,o)}}function pd(e,t,n){const r=e.segments.slice(0,t);let o=0;for(;o{"string"==typeof n&&(n=[n]),null!==n&&(t[r]=pd(new W([],{}),0,n))}),t}function qD(e){const t={};return je(e,(n,r)=>t[r]=`${n}`),t}function KD(e,t,n){return e==n.path&&nn(t,n.parameters)}const vi="imperative";class rn{constructor(t,n){this.id=t,this.url=n}}class gd extends rn{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 lr extends rn{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 wa extends rn{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 Ea extends rn{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=16}}class md extends rn{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 FO extends rn{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 PO extends rn{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 kO extends rn{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 LO extends rn{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 VO extends rn{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 jO{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class BO{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class $O{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class UO{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class HO{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class zO{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ZD{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}')`}}let qO=(()=>{class e{createUrlTree(n,r,o,i,s,a){return AO(n||r.root,o,i,s,a)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})(),ZO=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:function(t){return qO.\u0275fac(t)},providedIn:"root"}),e})();class YD{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=yd(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){const n=yd(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){const n=vd(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return vd(t,this._root).map(n=>n.value)}}function yd(e,t){if(e===t.value)return t;for(const n of t.children){const r=yd(e,n);if(r)return r}return null}function vd(e,t){if(e===t.value)return[t];for(const n of t.children){const r=vd(e,n);if(r.length)return r.unshift(t),r}return[]}class Mn{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}}function oo(e){const t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}class QD extends YD{constructor(t,n){super(t),this.snapshot=n,Dd(this,t)}toString(){return this.snapshot.toString()}}function XD(e,t){const n=function YO(e,t){const s=new ba([],{},{},"",{},V,t,null,e.root,-1,{});return new e_("",new Mn(s,[]))}(e,t),r=new jt([new hi("",{})]),o=new jt({}),i=new jt({}),s=new jt({}),a=new jt(""),u=new io(r,o,s,a,i,V,t,n.root);return u.snapshot=n.root,new QD(new Mn(u,[]),n)}class io{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(U(l=>l[fi]))??T(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(U(t=>eo(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(U(t=>eo(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function JD(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 QO(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 ba{get title(){return this.data?.[fi]}constructor(t,n,r,o,i,s,a,u,l,c,d){this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=u,this._urlSegment=l,this._lastPathIndex=c,this._resolve=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=eo(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=eo(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class e_ extends YD{constructor(t,n){super(n),this.url=t,Dd(this,n)}toString(){return t_(this._root)}}function Dd(e,t){t.value._routerState=e,t.children.forEach(n=>Dd(e,n))}function t_(e){const t=e.children.length>0?` { ${e.children.map(t_).join(", ")} } `:"";return`${e.value}${t}`}function _d(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,nn(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),nn(t.params,n.params)||e.params.next(n.params),function dO(e,t){if(e.length!==t.length)return!1;for(let n=0;nnn(n.parameters,t[r].parameters))}(e.url,t.url);return n&&!(!e.parent!=!t.parent)&&(!e.parent||Cd(e.parent,t.parent))}function Di(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=t.value;const o=function JO(e,t,n){return t.children.map(r=>{for(const o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return Di(e,r,o);return Di(e,r)})}(e,t,n);return new Mn(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=>Di(e,a)),s}}const r=function eF(e){return new io(new jt(e.url),new jt(e.params),new jt(e.queryParams),new jt(e.fragment),new jt(e.data),e.outlet,e.component,e)}(t.value),o=t.children.map(i=>Di(e,i));return new Mn(r,o)}}const wd="ngNavigationCancelingError";function n_(e,t){const{redirectTo:n,navigationBehaviorOptions:r}=ur(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=r_(!1,0,t);return o.url=n,o.navigationBehaviorOptions=r,o}function r_(e,t,n){const r=new Error("NavigationCancelingError: "+(e||""));return r[wd]=!0,r.cancellationCode=t,n&&(r.url=n),r}function o_(e){return i_(e)&&ur(e.url)}function i_(e){return e&&e[wd]}class tF{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new _i,this.attachRef=null}}let _i=(()=>{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 tF,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=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Sa=!1;let s_=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=V,this.activateEvents=new me,this.deactivateEvents=new me,this.attachEvents=new me,this.detachEvents=new me,this.parentContexts=H(_i),this.location=H(Pt),this.changeDetector=H(Zs),this.environmentInjector=H(Kt)}ngOnChanges(n){if(n.name){const{firstChange:r,previousValue:o}=n.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const n=this.parentContexts.getContext(this.name);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,Sa);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new C(4012,Sa);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new C(4012,Sa);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,Sa);this._activatedRoute=n;const o=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,u=new nF(n,a,o.injector);if(r&&function rF(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)},e.\u0275dir=F({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[_t]}),e})();class nF{constructor(t,n,r){this.route=t,this.childContexts=n,this.parent=r}get(t,n){return t===io?this.route:t===_i?this.childContexts:this.parent.get(t,n)}}let Ed=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=yu({type:e,selectors:[["ng-component"]],standalone:!0,features:[uy],decls:1,vars:0,template:function(n,r){1&n&&nr(0,"router-outlet")},dependencies:[s_],encapsulation:2}),e})();function a_(e,t){return e.providers&&!e._injector&&(e._injector=Bs(e.providers,t,`Route: ${e.path}`)),e._injector??t}function Sd(e){const t=e.children&&e.children.map(Sd),n=t?{...e,children:t}:{...e};return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==V&&(n.component=Ed),n}function It(e){return e.outlet||V}function u_(e,t){const n=e.filter(r=>It(r)===t);return n.push(...e.filter(r=>It(r)!==t)),n}function Ci(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 uF{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),_d(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){const o=oo(n);t.children.forEach(i=>{const s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),je(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=oo(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=oo(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=oo(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new zO(i.value.snapshot))}),t.children.length&&this.forwardEvent(new UO(t.value.snapshot))}activateRoutes(t,n,r){const o=t.value,i=n?n.value:null;if(_d(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),_d(a.route.value),this.activateChildRoutes(t,null,s.children)}else{const a=Ci(o.snapshot),u=a?.get(Uo)??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 l_{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Ma{constructor(t,n){this.component=t,this.route=n}}function lF(e,t,n){const r=e._root;return wi(r,t?t._root:null,n,[r.value])}function so(e,t){const n=Symbol(),r=t.get(e,n);return r===n?"function"!=typeof e||function sE(e){return null!==ji(e)}(e)?t.get(e):e:r}function wi(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=oo(t);return e.children.forEach(s=>{(function dF(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 fF(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!ar(e.url,t.url);case"pathParamsOrQueryParamsChange":return!ar(e.url,t.url)||!nn(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Cd(e,t)||!nn(e.queryParams,t.queryParams);default:return!Cd(e,t)}}(s,i,i.routeConfig.runGuardsAndResolvers);u?o.canActivateChecks.push(new l_(r)):(i.data=s.data,i._resolvedData=s._resolvedData),wi(e,t,i.component?a?a.children:null:n,r,o),u&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new Ma(a.outlet.component,s))}else s&&Ei(t,a,o),o.canActivateChecks.push(new l_(r)),wi(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]}),je(i,(s,a)=>Ei(s,n.getContext(a),o)),o}function Ei(e,t,n){const r=oo(e),o=e.value;je(r,(i,s)=>{Ei(i,o.component?t?t.children.getContext(s):null:t,n)}),n.canDeactivateChecks.push(new Ma(o.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,o))}function bi(e){return"function"==typeof e}function Md(e){return e instanceof ha||"EmptyError"===e?.name}const Ia=Symbol("INITIAL_VALUE");function ao(){return tn(e=>ED(e.map(t=>t.pipe(Jr(1),function oO(...e){const t=yo(e);return Oe((n,r)=>{(t?id(e,n,t):id(e,n)).subscribe(r)})}(Ia)))).pipe(U(t=>{for(const n of t)if(!0!==n){if(n===Ia)return Ia;if(!1===n||n instanceof jn)return n}return!0}),Sn(t=>t!==Ia),Jr(1)))}function c_(e){return function lw(...e){return gf(e)}(Ge(t=>{if(ur(t))throw n_(0,t)}),U(t=>!0===t))}const Id={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function d_(e,t,n,r,o){const i=Ad(e,t,n);return i.matched?function TF(e,t,n,r){const o=t.canMatch;return o&&0!==o.length?T(o.map(s=>{const a=so(s,e);return Vn(function vF(e){return e&&bi(e.canMatch)}(a)?a.canMatch(t,n):e.runInContext(()=>a(t,n)))})).pipe(ao(),c_()):T(!0)}(r=a_(t,r),t,n).pipe(U(s=>!0===s?i:{...Id})):T(i)}function Ad(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{...Id}:{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};const o=(t.matcher||cO)(n,e,t);if(!o)return{...Id};const i={};je(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 Aa(e,t,n,r){if(n.length>0&&function NF(e,t,n){return n.some(r=>Ta(e,t,r)&&It(r)!==V)}(e,n,r)){const i=new W(t,function RF(e,t,n,r){const o={};o[V]=r,r._sourceSegment=e,r._segmentIndexShift=t.length;for(const i of n)if(""===i.path&&It(i)!==V){const s=new W([],{});s._sourceSegment=e,s._segmentIndexShift=t.length,o[It(i)]=s}return o}(e,t,r,new W(n,e.children)));return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:[]}}if(0===n.length&&function OF(e,t,n){return n.some(r=>Ta(e,t,r))}(e,n,r)){const i=new W(e.segments,function xF(e,t,n,r,o){const i={};for(const s of r)if(Ta(e,n,s)&&!o[It(s)]){const a=new W([],{});a._sourceSegment=e,a._segmentIndexShift=t.length,i[It(s)]=a}return{...o,...i}}(e,t,n,r,e.children));return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:n}}const o=new W(e.segments,e.children);return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:n}}function Ta(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function f_(e,t,n,r){return!!(It(e)===r||r!==V&&Ta(t,n,e))&&("**"===e.path||Ad(t,e,n).matched)}function h_(e,t,n){return 0===t.length&&!e.children[n]}const xa=!1;class Ra{constructor(t){this.segmentGroup=t||null}}class p_{constructor(t){this.urlTree=t}}function Si(e){return di(new Ra(e))}function g_(e){return di(new p_(e))}class LF{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=Aa(this.urlTree.root,[],[],this.config).segmentGroup,n=new W(t.segments,t.children);return this.expandSegmentGroup(this.injector,this.config,n,V).pipe(U(i=>this.createUrlTree(Ca(i),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Ln(i=>{if(i instanceof p_)return this.allowRedirects=!1,this.match(i.urlTree);throw i instanceof Ra?this.noMatchError(i):i}))}match(t){return this.expandSegmentGroup(this.injector,this.config,t.root,V).pipe(U(o=>this.createUrlTree(Ca(o),t.queryParams,t.fragment))).pipe(Ln(o=>{throw o instanceof Ra?this.noMatchError(o):o}))}noMatchError(t){return new C(4002,xa)}createUrlTree(t,n,r){const o=dd(t);return new jn(o,n,r)}expandSegmentGroup(t,n,r,o){return 0===r.segments.length&&r.hasChildren()?this.expandChildren(t,n,r).pipe(U(i=>new W([],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 be(o).pipe(kn(i=>{const s=r.children[i],a=u_(n,i);return this.expandSegmentGroup(t,a,s,i).pipe(U(u=>({segment:u,outlet:i})))}),AD((i,s)=>(i[s.outlet]=s.segment,i),{}),TD())}expandSegment(t,n,r,o,i,s){return be(r).pipe(kn(a=>this.expandSegmentAgainstRoute(t,n,r,a,o,i,s).pipe(Ln(l=>{if(l instanceof Ra)return T(null);throw l}))),Pn(a=>!!a),Ln((a,u)=>{if(Md(a))return h_(n,o,i)?T(new W([],{})):Si(n);throw a}))}expandSegmentAgainstRoute(t,n,r,o,i,s,a){return f_(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):Si(n):Si(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("/")?g_(i):this.lineralizeSegments(r,i).pipe(Fe(s=>{const a=new W(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}=Ad(n,o,i);if(!a)return Si(n);const d=this.applyRedirectCommands(u,o.redirectTo,c);return o.redirectTo.startsWith("/")?g_(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=a_(r,t),r.loadChildren?(r._loadedRoutes?T({routes:r._loadedRoutes,injector:r._loadedInjector}):this.configLoader.loadChildren(t,r)).pipe(U(a=>(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,new W(o,{})))):T(new W(o,{}))):d_(n,r,o,t).pipe(tn(({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}=Aa(n,a,u,f),g=new W(h.segments,h.children);if(0===p.length&&g.hasChildren())return this.expandChildren(d,f,g).pipe(U(y=>new W(a,y)));if(0===f.length&&0===p.length)return T(new W(a,{}));const m=It(r)===i;return this.expandSegment(d,g,f,p,m?V:i,!0).pipe(U(w=>new W(a.concat(w.segments),w.children)))})):Si(n)))}getChildConfig(t,n,r){return n.children?T({routes:n.children,injector:t}):n.loadChildren?void 0!==n._loadedRoutes?T({routes:n._loadedRoutes,injector:n._loadedInjector}):function AF(e,t,n,r){const o=t.canLoad;return void 0===o||0===o.length?T(!0):T(o.map(s=>{const a=so(s,e);return Vn(function pF(e){return e&&bi(e.canLoad)}(a)?a.canLoad(t,n):e.runInContext(()=>a(t,n)))})).pipe(ao(),c_())}(t,n,r).pipe(Fe(o=>o?this.configLoader.loadChildren(t,n).pipe(Ge(i=>{n._loadedRoutes=i.routes,n._loadedInjector=i.injector})):function PF(e){return di(r_(xa,3))}())):T({routes:[],injector:t})}lineralizeSegments(t,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),0===o.numberOfChildren)return T(r);if(o.numberOfChildren>1||!o.children[V])return t.redirectTo,di(new C(4e3,xa));o=o.children[V]}}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 jn(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){const r={};return je(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 je(n.children,(a,u)=>{s[u]=this.createSegmentGroup(t,a,r,o)}),new W(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,xa);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 jF{}class UF{constructor(t,n,r,o,i,s,a){this.injector=t,this.rootComponentType=n,this.config=r,this.urlTree=o,this.url=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a}recognize(){const t=Aa(this.urlTree.root,[],[],this.config.filter(n=>void 0===n.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,V).pipe(U(n=>{if(null===n)return null;const r=new ba([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},V,this.rootComponentType,null,this.urlTree.root,-1,{}),o=new Mn(r,n),i=new e_(this.url,o);return this.inheritParamsAndData(i._root),i}))}inheritParamsAndData(t){const n=t.value,r=JD(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 be(Object.keys(r.children)).pipe(kn(o=>{const i=r.children[o],s=u_(n,o);return this.processSegmentGroup(t,s,i,o)}),AD((o,i)=>o&&i?(o.push(...i),o):null),function aO(e,t=!1){return Oe((n,r)=>{let o=0;n.subscribe(Te(r,i=>{const s=e(i,o++);(s||t)&&r.next(i),!s&&r.complete()}))})}(o=>null!==o),pa(null),TD(),U(o=>{if(null===o)return null;const i=y_(o);return function HF(e){e.sort((t,n)=>t.value.outlet===V?-1:n.value.outlet===V?1:t.value.outlet.localeCompare(n.value.outlet))}(i),i}))}processSegment(t,n,r,o,i){return be(n).pipe(kn(s=>this.processSegmentAgainstRoute(s._injector??t,s,r,o,i)),Pn(s=>!!s),Ln(s=>{if(Md(s))return h_(r,o,i)?T([]):T(null);throw s}))}processSegmentAgainstRoute(t,n,r,o,i){if(n.redirectTo||!f_(n,r,o,i))return T(null);let s;if("**"===n.path){const a=o.length>0?ND(o).parameters:{},u=D_(r)+o.length;s=T({snapshot:new ba(o,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,__(n),It(n),n.component??n._loadedComponent??null,n,v_(r),u,C_(n)),consumedSegments:[],remainingSegments:[]})}else s=d_(r,n,o,t).pipe(U(({matched:a,consumedSegments:u,remainingSegments:l,parameters:c})=>{if(!a)return null;const d=D_(r)+u.length;return{snapshot:new ba(u,c,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,__(n),It(n),n.component??n._loadedComponent??null,n,v_(r),d,C_(n)),consumedSegments:u,remainingSegments:l}}));return s.pipe(tn(a=>{if(null===a)return T(null);const{snapshot:u,consumedSegments:l,remainingSegments:c}=a;t=n._injector??t;const d=n._loadedInjector??t,f=function zF(e){return e.children?e.children:e.loadChildren?e._loadedRoutes:[]}(n),{segmentGroup:h,slicedSegments:p}=Aa(r,l,c,f.filter(m=>void 0===m.redirectTo));if(0===p.length&&h.hasChildren())return this.processChildren(d,f,h).pipe(U(m=>null===m?null:[new Mn(u,m)]));if(0===f.length&&0===p.length)return T([new Mn(u,[])]);const g=It(n)===i;return this.processSegment(d,f,h,p,g?V:i).pipe(U(m=>null===m?null:[new Mn(u,m)]))}))}}function GF(e){const t=e.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function y_(e){const t=[],n=new Set;for(const r of e){if(!GF(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=y_(r.children);t.push(new Mn(r.value,o))}return t.filter(r=>!n.has(r))}function v_(e){let t=e;for(;t._sourceSegment;)t=t._sourceSegment;return t}function D_(e){let t=e,n=t._segmentIndexShift??0;for(;t._sourceSegment;)t=t._sourceSegment,n+=t._segmentIndexShift??0;return n-1}function __(e){return e.data||{}}function C_(e){return e.resolve||{}}function w_(e){return"string"==typeof e.title||null===e.title}function Td(e){return tn(t=>{const n=e(t);return n?be(n).pipe(U(()=>t)):T(t)})}const uo=new S("ROUTES");let xd=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=H(Qy)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return T(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);const r=Vn(n.loadComponent()).pipe(U(b_),Ge(i=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=i}),ud(()=>{this.componentLoaders.delete(n)})),o=new MD(r,()=>new sn).pipe(sd());return this.componentLoaders.set(n,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return T({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const i=this.loadModuleFactoryOrRoutes(r.loadChildren).pipe(U(a=>{this.onLoadEndListener&&this.onLoadEndListener(r);let u,l,c=!1;Array.isArray(a)?l=a:(u=a.create(n).injector,l=RD(u.get(uo,[],N.Self|N.Optional)));return{routes:l.map(Sd),injector:u}}),ud(()=>{this.childrenLoaders.delete(r)})),s=new MD(i,()=>new sn).pipe(sd());return this.childrenLoaders.set(r,s),s}loadModuleFactoryOrRoutes(n){return Vn(n()).pipe(U(b_),Fe(r=>r instanceof sy||Array.isArray(r)?T(r):be(this.compiler.compileModuleAsync(r))))}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function b_(e){return function JF(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let Oa=(()=>{class e{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new sn,this.configLoader=H(xd),this.environmentInjector=H(Kt),this.urlSerializer=H(pi),this.rootContexts=H(_i),this.navigationId=0,this.afterPreactivation=()=>T(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new BO(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new jO(o))}complete(){this.transitions?.complete()}handleNavigationRequest(n){const r=++this.navigationId;this.transitions?.next({...this.transitions.value,...n,id:r})}setupNavigations(n){return this.transitions=new jt({id:0,targetPageId:0,currentUrlTree:n.currentUrlTree,currentRawUrl:n.currentUrlTree,extractedUrl:n.urlHandlingStrategy.extract(n.currentUrlTree),urlAfterRedirects:n.urlHandlingStrategy.extract(n.currentUrlTree),rawUrl:n.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:vi,restoredState:null,currentSnapshot:n.routerState.snapshot,targetSnapshot:null,currentRouterState:n.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Sn(r=>0!==r.id),U(r=>({...r,extractedUrl:n.urlHandlingStrategy.extract(r.rawUrl)})),tn(r=>{let o=!1,i=!1;return T(r).pipe(Ge(s=>{this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),tn(s=>{const a=n.browserUrlTree.toString(),u=!n.navigated||s.extractedUrl.toString()!==a||a!==n.currentUrlTree.toString();if(!u&&"reload"!==(s.extras.onSameUrlNavigation??n.onSameUrlNavigation)){const c="";return this.events.next(new Ea(s.id,n.serializeUrl(r.rawUrl),c,0)),n.rawUrlTree=s.rawUrl,s.resolve(null),Bt}if(n.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return S_(s.source)&&(n.browserUrlTree=s.extractedUrl),T(s).pipe(tn(c=>{const d=this.transitions?.getValue();return this.events.next(new gd(c.id,this.urlSerializer.serialize(c.extractedUrl),c.source,c.restoredState)),d!==this.transitions?.getValue()?Bt:Promise.resolve(c)}),function VF(e,t,n,r){return tn(o=>function kF(e,t,n,r,o){return new LF(e,t,n,r,o).apply()}(e,t,n,o.extractedUrl,r).pipe(U(i=>({...o,urlAfterRedirects:i}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,n.config),Ge(c=>{this.currentNavigation={...this.currentNavigation,finalUrl:c.urlAfterRedirects},r.urlAfterRedirects=c.urlAfterRedirects}),function qF(e,t,n,r,o){return Fe(i=>function $F(e,t,n,r,o,i,s="emptyOnly"){return new UF(e,t,n,r,o,s,i).recognize().pipe(tn(a=>null===a?function BF(e){return new ye(t=>t.error(e))}(new jF):T(a)))}(e,t,n,i.urlAfterRedirects,r.serialize(i.urlAfterRedirects),r,o).pipe(U(s=>({...i,targetSnapshot:s}))))}(this.environmentInjector,this.rootComponentType,n.config,this.urlSerializer,n.paramsInheritanceStrategy),Ge(c=>{if(r.targetSnapshot=c.targetSnapshot,"eager"===n.urlUpdateStrategy){if(!c.extras.skipLocationChange){const f=n.urlHandlingStrategy.merge(c.urlAfterRedirects,c.rawUrl);n.setBrowserUrl(f,c)}n.browserUrlTree=c.urlAfterRedirects}const d=new FO(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}));if(u&&n.urlHandlingStrategy.shouldProcessUrl(n.rawUrlTree)){const{id:c,extractedUrl:d,source:f,restoredState:h,extras:p}=s,g=new gd(c,this.urlSerializer.serialize(d),f,h);this.events.next(g);const m=XD(d,this.rootComponentType).snapshot;return T(r={...s,targetSnapshot:m,urlAfterRedirects:d,extras:{...p,skipLocationChange:!1,replaceUrl:!1}})}{const c="";return this.events.next(new Ea(s.id,n.serializeUrl(r.extractedUrl),c,1)),n.rawUrlTree=s.rawUrl,s.resolve(null),Bt}}),Ge(s=>{const a=new PO(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),U(s=>r={...s,guards:lF(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function _F(e,t){return Fe(n=>{const{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return 0===s.length&&0===i.length?T({...n,guardsResult:!0}):function CF(e,t,n,r){return be(e).pipe(Fe(o=>function IF(e,t,n,r,o){const i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return i&&0!==i.length?T(i.map(a=>{const u=Ci(t)??o,l=so(a,u);return Vn(function yF(e){return e&&bi(e.canDeactivate)}(l)?l.canDeactivate(e,t,n,r):u.runInContext(()=>l(e,t,n,r))).pipe(Pn())})).pipe(ao()):T(!0)}(o.component,o.route,n,t,r)),Pn(o=>!0!==o,!0))}(s,r,o,e).pipe(Fe(a=>a&&function hF(e){return"boolean"==typeof e}(a)?function wF(e,t,n,r){return be(t).pipe(kn(o=>id(function bF(e,t){return null!==e&&t&&t(new $O(e)),T(!0)}(o.route.parent,r),function EF(e,t){return null!==e&&t&&t(new HO(e)),T(!0)}(o.route,r),function MF(e,t,n){const r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(s=>function cF(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=>SD(()=>T(s.guards.map(u=>{const l=Ci(s.node)??n,c=so(u,l);return Vn(function mF(e){return e&&bi(e.canActivateChild)}(c)?c.canActivateChild(r,e):l.runInContext(()=>c(r,e))).pipe(Pn())})).pipe(ao())));return T(i).pipe(ao())}(e,o.path,n),function SF(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||0===r.length)return T(!0);const o=r.map(i=>SD(()=>{const s=Ci(t)??n,a=so(i,s);return Vn(function gF(e){return e&&bi(e.canActivate)}(a)?a.canActivate(t,e):s.runInContext(()=>a(t,e))).pipe(Pn())}));return T(o).pipe(ao())}(e,o.route,n))),Pn(o=>!0!==o,!0))}(r,i,e,t):T(a)),U(a=>({...n,guardsResult:a})))})}(this.environmentInjector,s=>this.events.next(s)),Ge(s=>{if(r.guardsResult=s.guardsResult,ur(s.guardsResult))throw n_(0,s.guardsResult);const a=new kO(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),Sn(s=>!!s.guardsResult||(n.restoreHistory(s),this.cancelNavigationTransition(s,"",3),!1)),Td(s=>{if(s.guards.canActivateChecks.length)return T(s).pipe(Ge(a=>{const u=new LO(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(u)}),tn(a=>{let u=!1;return T(a).pipe(function KF(e,t){return Fe(n=>{const{targetSnapshot:r,guards:{canActivateChecks:o}}=n;if(!o.length)return T(n);let i=0;return be(o).pipe(kn(s=>function ZF(e,t,n,r){const o=e.routeConfig,i=e._resolve;return void 0!==o?.title&&!w_(o)&&(i[fi]=o.title),function YF(e,t,n,r){const o=function QF(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===o.length)return T({});const i={};return be(o).pipe(Fe(s=>function XF(e,t,n,r){const o=Ci(t)??r,i=so(e,o);return Vn(i.resolve?i.resolve(t,n):o.runInContext(()=>i(t,n)))}(e[s],t,n,r).pipe(Pn(),Ge(a=>{i[s]=a}))),ad(1),function uO(e){return U(()=>e)}(i),Ln(s=>Md(s)?Bt:di(s)))}(i,e,t,r).pipe(U(s=>(e._resolvedData=s,e.data=JD(e,n).resolve,o&&w_(o)&&(e.data[fi]=o.title),null)))}(s.route,r,e,t)),Ge(()=>i++),ad(1),Fe(s=>i===o.length?T(n):Bt))})}(n.paramsInheritanceStrategy,this.environmentInjector),Ge({next:()=>u=!0,complete:()=>{u||(n.restoreHistory(a),this.cancelNavigationTransition(a,"",2))}}))}),Ge(a=>{const u=new VO(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(u)}))}),Td(s=>{const a=u=>{const l=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&l.push(this.configLoader.loadComponent(u.routeConfig).pipe(Ge(c=>{u.component=c}),U(()=>{})));for(const c of u.children)l.push(...a(c));return l};return ED(a(s.targetSnapshot.root)).pipe(pa(),Jr(1))}),Td(()=>this.afterPreactivation()),U(s=>{const a=function XO(e,t,n){const r=Di(e,t._root,n?n._root:void 0);return new QD(r,t)}(n.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return r={...s,targetRouterState:a}}),Ge(s=>{n.currentUrlTree=s.urlAfterRedirects,n.rawUrlTree=n.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),n.routerState=s.targetRouterState,"deferred"===n.urlUpdateStrategy&&(s.extras.skipLocationChange||n.setBrowserUrl(n.rawUrlTree,s),n.browserUrlTree=s.urlAfterRedirects)}),((e,t,n)=>U(r=>(new uF(t,r.targetRouterState,r.currentRouterState,n).activate(e),r)))(this.rootContexts,n.routeReuseStrategy,s=>this.events.next(s)),Jr(1),Ge({next:s=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,n.navigated=!0,this.events.next(new lr(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(n.currentUrlTree))),n.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{o=!0}}),ud(()=>{o||i||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),Ln(s=>{if(i=!0,i_(s)){o_(s)||(n.navigated=!0,n.restoreHistory(r,!0));const a=new wa(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode);if(this.events.next(a),o_(s)){const u=n.urlHandlingStrategy.merge(s.url,n.rawUrlTree),l={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===n.urlUpdateStrategy||S_(r.source)};n.scheduleNavigation(u,vi,null,l,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{n.restoreHistory(r,!0);const a=new md(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);this.events.next(a);try{r.resolve(n.errorHandler(s))}catch(u){r.reject(u)}}return Bt}))}))}cancelNavigationTransition(n,r,o){const i=new wa(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(i),n.resolve(!1)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function S_(e){return e!==vi}let M_=(()=>{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===V);return r}getResolvedTitleForRoute(n){return n.data[fi]}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:function(){return H(eP)},providedIn:"root"}),e})(),eP=(()=>{class e extends M_{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)(M(yD))},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),tP=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:function(){return H(rP)},providedIn:"root"}),e})();class nP{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}}let rP=(()=>{class e extends nP{}return e.\u0275fac=function(){let t;return function(r){return(t||(t=Le(e)))(r||e)}}(),e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Fa=new S("",{providedIn:"root",factory:()=>({})});let iP=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:function(){return H(sP)},providedIn:"root"}),e})(),sP=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function aP(e){throw e}function uP(e,t,n){return t.parse("/")}const lP={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},cP={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ht=(()=>{class e{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){if("computed"===this.canceledNavigationResolution)return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=H(LT),this.isNgZoneEnabled=!1,this.options=H(Fa,{optional:!0})||{},this.errorHandler=this.options.errorHandler||aP,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||uP,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=H(iP),this.routeReuseStrategy=H(tP),this.urlCreationStrategy=H(ZO),this.titleStrategy=H(M_),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=RD(H(uo,{optional:!0})??[]),this.navigationTransitions=H(Oa),this.urlSerializer=H(pi),this.location=H(Fc),this.isNgZoneEnabled=H(De)instanceof De&&De.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new jn,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=XD(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(n=>{this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId??0},n=>{this.console.warn(`Unhandled Navigation Error: ${n}`)})}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const n=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),vi,n)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(n=>{const r="popstate"===n.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{this.navigateToSyncWithBrowser(n.url,r,n.state)},0)}))}navigateToSyncWithBrowser(n,r,o){const i={replaceUrl:!0},s=o?.navigationId?o:null;if(o){const u={...o};delete u.navigationId,delete u.\u0275routerPageId,0!==Object.keys(u).length&&(i.state=u)}const a=this.parseUrl(n);this.scheduleNavigation(a,r,s,i)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(n){this.config=n.map(Sd),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.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=u?this.currentUrlTree.fragment:s;let c=null;switch(a){case"merge":c={...this.currentUrlTree.queryParams,...i};break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}return null!==c&&(c=this.removeEmptyProps(c)),this.urlCreationStrategy.createUrlTree(o,this.routerState,this.currentUrlTree,n,c,l??null)}navigateByUrl(n,r={skipLocationChange:!1}){const o=ur(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,vi,null,r)}navigate(n,r={skipLocationChange:!1}){return function dP(e){for(let t=0;t{const i=n[o];return null!=i&&(r[o]=i),r},{})}scheduleNavigation(n,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let a,u,l,c;return s?(a=s.resolve,u=s.reject,l=s.promise):l=new Promise((d,f)=>{a=d,u=f}),c="computed"===this.canceledNavigationResolution?o&&o.\u0275routerPageId?o.\u0275routerPageId:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:c,source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:i,resolve:a,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(d=>Promise.reject(d))}setBrowserUrl(n,r){const o=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){const s={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId)};this.location.replaceState(o,"",s)}else{const i={...r.extras.state,...this.generateNgRouterState(r.id,r.targetPageId)};this.location.go(o,"",i)}}restoreHistory(n,r=!1){if("computed"===this.canceledNavigationResolution){const i=this.currentPageId-(this.browserPageId??this.currentPageId);0!==i?this.location.historyGo(i):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===i&&(this.resetState(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree())}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))}generateNgRouterState(n,r){return"computed"===this.canceledNavigationResolution?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class I_{}let pP=(()=>{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(Sn(n=>n instanceof lr),kn(()=>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=Bs(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 be(o).pipe(fr())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let o;o=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(n,r):T(null);const i=o.pipe(Fe(s=>null===s?T(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??n,s.routes))));return r.loadComponent&&!r._loadedComponent?be([i,this.loader.loadComponent(r)]).pipe(fr()):i})}}return e.\u0275fac=function(n){return new(n||e)(M(ht),M(Qy),M(Kt),M(I_),M(xd))},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Od=new S("");let A_=(()=>{class e{constructor(n,r,o,i,s={}){this.urlSerializer=n,this.transitions=r,this.viewportScroller=o,this.zone=i,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof gd?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof lr&&(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof ZD&&(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.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new ZD(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return e.\u0275fac=function(n){!function ag(){throw new Error("invalid")}()},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();var pt=(()=>((pt=pt||{})[pt.COMPLETE=0]="COMPLETE",pt[pt.FAILED=1]="FAILED",pt[pt.REDIRECTING=2]="REDIRECTING",pt))();const lo=!1;function Bn(e,t){return{\u0275kind:e,\u0275providers:t}}const Fd=new S("",{providedIn:"root",factory:()=>!1});function x_(){const e=H(Zt);return t=>{const n=e.get(qs);if(t!==n.components[0])return;const r=e.get(ht),o=e.get(R_);1===e.get(Pd)&&r.initialNavigation(),e.get(N_,null,N.Optional)?.setUpPreloading(),e.get(Od,null,N.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}const R_=new S(lo?"bootstrap done indicator":"",{factory:()=>new sn}),Pd=new S(lo?"initial navigation":"",{providedIn:"root",factory:()=>1});function DP(){let e=[];return e=lo?[{provide:ys,multi:!0,useFactory:()=>{const t=H(ht);return()=>t.events.subscribe(n=>{console.group?.(`Router Event: ${n.constructor.name}`),console.log(function GO(e){if(!("type"in e))return`Unknown Router Event: ${e.constructor.name}`;switch(e.type){case 14:return`ActivationEnd(path: '${e.snapshot.routeConfig?.path||""}')`;case 13:return`ActivationStart(path: '${e.snapshot.routeConfig?.path||""}')`;case 12:return`ChildActivationEnd(path: '${e.snapshot.routeConfig?.path||""}')`;case 11:return`ChildActivationStart(path: '${e.snapshot.routeConfig?.path||""}')`;case 8:return`GuardsCheckEnd(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}', state: ${e.state}, shouldActivate: ${e.shouldActivate})`;case 7:return`GuardsCheckStart(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}', state: ${e.state})`;case 2:return`NavigationCancel(id: ${e.id}, url: '${e.url}')`;case 16:return`NavigationSkipped(id: ${e.id}, url: '${e.url}')`;case 1:return`NavigationEnd(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}')`;case 3:return`NavigationError(id: ${e.id}, url: '${e.url}', error: ${e.error})`;case 0:return`NavigationStart(id: ${e.id}, url: '${e.url}')`;case 6:return`ResolveEnd(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}', state: ${e.state})`;case 5:return`ResolveStart(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}', state: ${e.state})`;case 10:return`RouteConfigLoadEnd(path: ${e.route.path})`;case 9:return`RouteConfigLoadStart(path: ${e.route.path})`;case 4:return`RoutesRecognized(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}', state: ${e.state})`;case 15:return`Scroll(anchor: '${e.anchor}', position: '${e.position?`${e.position[0]}, ${e.position[1]}`:null}')`}}(n)),console.log(n),console.groupEnd?.()})}}]:[],Bn(1,e)}const N_=new S(lo?"router preloader":"");function _P(e){return Bn(0,[{provide:N_,useExisting:pP},{provide:I_,useExisting:e}])}const Mi=!1,O_=new S(Mi?"router duplicate forRoot guard":"ROUTER_FORROOT_GUARD"),CP=[Fc,{provide:pi,useClass:ld},ht,_i,{provide:io,useFactory:function T_(e){return e.routerState.root},deps:[ht]},xd,Mi?{provide:Fd,useValue:!0}:[]];function wP(){return new iv("Router",ht)}let F_=(()=>{class e{constructor(n){}static forRoot(n,r){return{ngModule:e,providers:[CP,Mi&&r?.enableTracing?DP().\u0275providers:[],{provide:uo,multi:!0,useValue:n},{provide:O_,useFactory:MP,deps:[[ht,new No,new Oo]]},{provide:Fa,useValue:r||{}},r?.useHash?{provide:sr,useClass:bx}:{provide:sr,useClass:Av},{provide:Od,useFactory:()=>{const e=H(zR),t=H(De),n=H(Fa),r=H(Oa),o=H(pi);return n.scrollOffset&&e.setOffset(n.scrollOffset),new A_(o,r,e,t,n)}},r?.preloadingStrategy?_P(r.preloadingStrategy).\u0275providers:[],{provide:iv,multi:!0,useFactory:wP},r?.initialNavigation?IP(r):[],[{provide:P_,useFactory:x_},{provide:ov,multi:!0,useExisting:P_}]]}}static forChild(n){return{ngModule:e,providers:[{provide:uo,multi:!0,useValue:n}]}}}return e.\u0275fac=function(n){return new(n||e)(M(O_,8))},e.\u0275mod=At({type:e}),e.\u0275inj=vt({imports:[Ed]}),e})();function MP(e){if(Mi&&e)throw new C(4007,"The Router was provided more than once. This can happen if 'forRoot' is used outside of the root injector. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function IP(e){return["disabled"===e.initialNavigation?Bn(3,[{provide:zs,multi:!0,useFactory:()=>{const t=H(ht);return()=>{t.setUpLocationChangeListener()}}},{provide:Pd,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?Bn(2,[{provide:Pd,useValue:0},{provide:zs,multi:!0,deps:[Zt],useFactory:t=>{const n=t.get(wx,Promise.resolve());return()=>n.then(()=>new Promise(r=>{const o=t.get(ht),i=t.get(R_);(function gP(e,t){e.events.pipe(Sn(n=>n instanceof lr||n instanceof wa||n instanceof md||n instanceof Ea),U(n=>n instanceof lr||n instanceof Ea?pt.COMPLETE:n instanceof wa&&(0===n.code||1===n.code)?pt.REDIRECTING:pt.FAILED),Sn(n=>n!==pt.REDIRECTING),Jr(1)).subscribe(()=>{t()})})(o,()=>{r(!0)}),t.get(Oa).afterPreactivation=()=>(r(!0),i.closed?T(void 0):i),o.initialNavigation()}))}}]).\u0275providers:[]]}const P_=new S(Mi?"Router Initializer":""),TP=[];let xP=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=At({type:e});static#n=this.\u0275inj=vt({imports:[F_.forRoot(TP),F_]})}return e})();class Pa{}class kd{}class In{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(n=>{const r=n.indexOf(":");if(r>0){const o=n.slice(0,r),i=o.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{let o;if(o="string"==typeof r?[r]:"number"==typeof r?[r.toString()]:r.map(i=>i.toString()),o.length>0){const i=n.toLowerCase();this.headers.set(i,o),this.maybeSetNormalizedName(n,i)}})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof In?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){const n=new In;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof In?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){const n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(t.name,n);const o=("a"===t.op?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":const i=t.value;if(i){let s=this.headers.get(n);if(!s)return;s=s.filter(a=>-1===i.indexOf(a)),0===s.length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}else this.headers.delete(n),this.normalizedNames.delete(n)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}}class RP{encodeKey(t){return k_(t)}encodeValue(t){return k_(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const OP=/%(\d[a-f0-9])/gi,FP={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function k_(e){return encodeURIComponent(e).replace(OP,(t,n)=>FP[n]??t)}function ka(e){return`${e}`}class $n{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new RP,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function NP(e,t){const n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{const i=o.indexOf("="),[s,a]=-1==i?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],u=n.get(s)||[];u.push(a),n.set(s,u)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{const r=t.fromObject[n],o=Array.isArray(r)?r.map(ka):[ka(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){const n=[];return Object.keys(t).forEach(r=>{const o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const n=new $n({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const n=("a"===t.op?this.map.get(t.param):void 0)||[];n.push(ka(t.value)),this.map.set(t.param,n);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let r=this.map.get(t.param)||[];const o=r.indexOf(ka(t.value));-1!==o&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class PP{constructor(){this.map=new Map}set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function L_(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function V_(e){return typeof Blob<"u"&&e instanceof Blob}function j_(e){return typeof FormData<"u"&&e instanceof FormData}class Ii{constructor(t,n,r,o){let i;if(this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function kP(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==r?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params)),this.headers||(this.headers=new In),this.context||(this.context=new PP),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=n;else{const a=n.indexOf("?");this.urlWithParams=n+(-1===a?"?":ad.set(f,t.setHeaders[f]),u)),t.setParams&&(l=Object.keys(t.setParams).reduce((d,f)=>d.set(f,t.setParams[f]),l)),new Ii(n,r,i,{params:l,headers:u,context:c,reportProgress:a,responseType:o,withCredentials:s})}}var Ae=(()=>((Ae=Ae||{})[Ae.Sent=0]="Sent",Ae[Ae.UploadProgress=1]="UploadProgress",Ae[Ae.ResponseHeader=2]="ResponseHeader",Ae[Ae.DownloadProgress=3]="DownloadProgress",Ae[Ae.Response=4]="Response",Ae[Ae.User=5]="User",Ae))();class Ld{constructor(t,n=200,r="OK"){this.headers=t.headers||new In,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Vd extends Ld{constructor(t={}){super(t),this.type=Ae.ResponseHeader}clone(t={}){return new Vd({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class La extends Ld{constructor(t={}){super(t),this.type=Ae.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new La({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class B_ extends Ld{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function jd(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let $_=(()=>{class e{constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof Ii)i=n;else{let u,l;u=o.headers instanceof In?o.headers:new In(o.headers),o.params&&(l=o.params instanceof $n?o.params:new $n({fromObject:o.params})),i=new Ii(n,r,void 0!==o.body?o.body:null,{headers:u,context:o.context,params:l,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const s=T(i).pipe(kn(u=>this.handler.handle(u)));if(n instanceof Ii||"events"===o.observe)return s;const a=s.pipe(Sn(u=>u instanceof La));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(U(u=>{if(null!==u.body&&!(u.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return u.body}));case"blob":return a.pipe(U(u=>{if(null!==u.body&&!(u.body instanceof Blob))throw new Error("Response is not a Blob.");return u.body}));case"text":return a.pipe(U(u=>{if(null!==u.body&&"string"!=typeof u.body)throw new Error("Response is not a string.");return u.body}));default:return a.pipe(U(u=>u.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:(new $n).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,jd(o,r))}post(n,r,o={}){return this.request("POST",n,jd(o,r))}put(n,r,o={}){return this.request("PUT",n,jd(o,r))}}return e.\u0275fac=function(n){return new(n||e)(M(Pa))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();function U_(e,t){return t(e)}function VP(e,t){return(n,r)=>t.intercept(n,{handle:o=>e(o,r)})}const BP=new S("HTTP_INTERCEPTORS"),Ai=new S("HTTP_INTERCEPTOR_FNS");function $P(){let e=null;return(t,n)=>(null===e&&(e=(H(BP,{optional:!0})??[]).reduceRight(VP,U_)),e(t,n))}let H_=(()=>{class e extends Pa{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null}handle(n){if(null===this.chain){const r=Array.from(new Set(this.injector.get(Ai)));this.chain=r.reduceRight((o,i)=>function jP(e,t,n){return(r,o)=>n.runInContext(()=>t(r,i=>e(i,o)))}(o,i,this.injector),U_)}return this.chain(n,r=>this.backend.handle(r))}}return e.\u0275fac=function(n){return new(n||e)(M(kd),M(Kt))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();const GP=/^\)\]\}',?\n/;let G_=(()=>{class e{constructor(n){this.xhrFactory=n}handle(n){if("JSONP"===n.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new ye(r=>{const o=this.xhrFactory.build();if(o.open(n.method,n.urlWithParams),n.withCredentials&&(o.withCredentials=!0),n.headers.forEach((h,p)=>o.setRequestHeader(h,p.join(","))),n.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){const h=n.detectContentTypeHeader();null!==h&&o.setRequestHeader("Content-Type",h)}if(n.responseType){const h=n.responseType.toLowerCase();o.responseType="json"!==h?h:"text"}const i=n.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const h=o.statusText||"OK",p=new In(o.getAllResponseHeaders()),g=function WP(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(o)||n.url;return s=new Vd({headers:p,status:o.status,statusText:h,url:g}),s},u=()=>{let{headers:h,status:p,statusText:g,url:m}=a(),v=null;204!==p&&(v=typeof o.response>"u"?o.responseText:o.response),0===p&&(p=v?200:0);let w=p>=200&&p<300;if("json"===n.responseType&&"string"==typeof v){const y=v;v=v.replace(GP,"");try{v=""!==v?JSON.parse(v):null}catch(I){v=y,w&&(w=!1,v={error:I,text:v})}}w?(r.next(new La({body:v,headers:h,status:p,statusText:g,url:m||void 0})),r.complete()):r.error(new B_({error:v,headers:h,status:p,statusText:g,url:m||void 0}))},l=h=>{const{url:p}=a(),g=new B_({error:h,status:o.status||0,statusText:o.statusText||"Unknown Error",url:p||void 0});r.error(g)};let c=!1;const d=h=>{c||(r.next(a()),c=!0);let p={type:Ae.DownloadProgress,loaded:h.loaded};h.lengthComputable&&(p.total=h.total),"text"===n.responseType&&o.responseText&&(p.partialText=o.responseText),r.next(p)},f=h=>{let p={type:Ae.UploadProgress,loaded:h.loaded};h.lengthComputable&&(p.total=h.total),r.next(p)};return o.addEventListener("load",u),o.addEventListener("error",l),o.addEventListener("timeout",l),o.addEventListener("abort",l),n.reportProgress&&(o.addEventListener("progress",d),null!==i&&o.upload&&o.upload.addEventListener("progress",f)),o.send(i),r.next({type:Ae.Sent}),()=>{o.removeEventListener("error",l),o.removeEventListener("abort",l),o.removeEventListener("load",u),o.removeEventListener("timeout",l),n.reportProgress&&(o.removeEventListener("progress",d),null!==i&&o.upload&&o.upload.removeEventListener("progress",f)),o.readyState!==o.DONE&&o.abort()}})}}return e.\u0275fac=function(n){return new(n||e)(M(Zv))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();const Bd=new S("XSRF_ENABLED"),W_=new S("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),q_=new S("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class K_{}let ZP=(()=>{class e{constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Vv(n,this.cookieName),this.lastCookieString=n),this.lastToken}}return e.\u0275fac=function(n){return new(n||e)(M(Xe),M(vc),M(W_))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();function YP(e,t){const n=e.url.toLowerCase();if(!H(Bd)||"GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t(e);const r=H(K_).getToken(),o=H(q_);return null!=r&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),t(e)}var we=(()=>((we=we||{})[we.Interceptors=0]="Interceptors",we[we.LegacyInterceptors=1]="LegacyInterceptors",we[we.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",we[we.NoXsrfProtection=3]="NoXsrfProtection",we[we.JsonpSupport=4]="JsonpSupport",we[we.RequestsMadeViaParent=5]="RequestsMadeViaParent",we))();function co(e,t){return{\u0275kind:e,\u0275providers:t}}function QP(...e){const t=[$_,G_,H_,{provide:Pa,useExisting:H_},{provide:kd,useExisting:G_},{provide:Ai,useValue:YP,multi:!0},{provide:Bd,useValue:!0},{provide:K_,useClass:ZP}];for(const n of e)t.push(...n.\u0275providers);return function kb(e){return{\u0275providers:e}}(t)}const Z_=new S("LEGACY_INTERCEPTOR_FN");let JP=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=At({type:e}),e.\u0275inj=vt({providers:[QP(co(we.LegacyInterceptors,[{provide:Z_,useFactory:$P},{provide:Ai,useExisting:Z_,multi:!0}]))]}),e})(),e1=(()=>{class e{constructor(n){this.http=n,this.apiUrl="https://api.privatbank.ua/p24api/exchange_rates?json&date=",this.corsProxyUrl="https://api.allorigins.win/raw?url="}getCurrencyData(){const n=new Date,r=`${n.getDate()}.${n.getMonth()+1}.${n.getFullYear()}`,o=this.corsProxyUrl+encodeURIComponent(this.apiUrl+r);return this.http.get(o)}static#e=this.\u0275fac=function(r){return new(r||e)(M($_))};static#t=this.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Y_=(()=>{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)(_(gn),_(dt))},e.\u0275dir=F({type:e}),e})(),cr=(()=>{class e extends Y_{}return e.\u0275fac=function(){let t;return function(r){return(t||(t=Le(e)))(r||e)}}(),e.\u0275dir=F({type:e,features:[te]}),e})();const on=new S("NgValueAccessor"),r1={provide:on,useExisting:se(()=>Va),multi:!0},i1=new S("CompositionEventMode");let Va=(()=>{class e extends Y_{constructor(n,r,o){super(n,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function o1(){const e=wn()?wn().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)(_(gn),_(dt),_(i1,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&&Ve("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:[ce([r1]),te]}),e})();const s1=!1,We=new S("NgValidators"),Hn=new S("NgAsyncValidators");function aC(e){return null!=e}function uC(e){const t=Ko(e)?be(e):e;if(s1&&!Hl(t)){let n="Expected async validator to return Promise or Observable.";throw"object"==typeof e&&(n+=" Are you using a synchronous validator where an async validator is expected?"),new C(-1101,n)}return t}function lC(e){let t={};return e.forEach(n=>{t=null!=n?{...t,...n}:t}),0===Object.keys(t).length?null:t}function cC(e,t){return t.map(n=>n(e))}function dC(e){return e.map(t=>function u1(e){return!e.validate}(t)?t:n=>t.validate(n))}function $d(e){return null!=e?function fC(e){if(!e)return null;const t=e.filter(aC);return 0==t.length?null:function(n){return lC(cC(n,t))}}(dC(e)):null}function Ud(e){return null!=e?function hC(e){if(!e)return null;const t=e.filter(aC);return 0==t.length?null:function(n){return function t1(...e){const t=Of(e),{args:n,keys:r}=_D(e),o=new ye(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{d||(d=!0,l--),a[c]=f},()=>u--,void 0,()=>{(!u||!d)&&(l||i.next(r?wD(r,a):a),i.complete())}))}});return t?o.pipe(CD(t)):o}(cC(n,t).map(uC)).pipe(U(lC))}}(dC(e)):null}function pC(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function Hd(e){return e?Array.isArray(e)?e:[e]:[]}function Ba(e,t){return Array.isArray(e)?e.includes(t):e===t}function yC(e,t){const n=Hd(t);return Hd(e).forEach(o=>{Ba(n,o)||n.push(o)}),n}function vC(e,t){return Hd(t).filter(n=>!Ba(e,n))}class DC{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=$d(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Ud(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}}class Je extends DC{get formDirective(){return null}get path(){return null}}class zn extends DC{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class _C{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}}let CC=(()=>{class e extends _C{constructor(n){super(n)}}return e.\u0275fac=function(n){return new(n||e)(_(zn,2))},e.\u0275dir=F({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){2&n&&Fs("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:[te]}),e})();const Ti="VALID",Ua="INVALID",fo="PENDING",xi="DISABLED";function Ha(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class SC{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._assignValidators(t),this._assignAsyncValidators(n)}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===Ti}get invalid(){return this.status===Ua}get pending(){return this.status==fo}get disabled(){return this.status===xi}get enabled(){return this.status!==xi}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._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(yC(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(yC(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(vC(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(vC(t,this._rawAsyncValidators))}hasValidator(t){return Ba(this._rawValidators,t)}hasAsyncValidator(t){return Ba(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=fo,!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=xi,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=Ti,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===Ti||this.status===fo)&&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()?xi:Ti}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=fo,this._hasOwnPendingAsyncValidator=!0;const n=uC(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 me,this.statusChanges=new me}_calculateStatus(){return this._allControlsDisabled()?xi:this.errors?Ua:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(fo)?fo:this._anyControlsHaveStatus(Ua)?Ua:Ti}_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){Ha(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=function m1(e){return Array.isArray(e)?$d(e):e||null}(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=function y1(e){return Array.isArray(e)?Ud(e):e||null}(this._rawAsyncValidators)}}const ho=new S("CallSetDisabledState",{providedIn:"root",factory:()=>za}),za="always";function Ri(e,t,n=za){(function Yd(e,t){const n=function gC(e){return e._rawValidators}(e);null!==t.validator?e.setValidators(pC(n,t.validator)):"function"==typeof n&&e.setValidators([n]);const r=function mC(e){return e._rawAsyncValidators}(e);null!==t.asyncValidator?e.setAsyncValidators(pC(r,t.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const o=()=>e.updateValueAndValidity();qa(t._rawValidators,o),qa(t._rawAsyncValidators,o)})(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||"always"===n)&&t.valueAccessor.setDisabledState?.(e.disabled),function _1(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&MC(e,t)})}(e,t),function w1(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 C1(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&MC(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function D1(e,t){if(t.valueAccessor.setDisabledState){const n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}(e,t)}function qa(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function MC(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function TC(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function xC(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const RC=class extends SC{constructor(t=null,n,r){super(function qd(e){return(Ha(e)?e.validators:e)||null}(n),function Kd(e,t){return(Ha(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}),Ha(n)&&(n.nonNullable||n.initialValueIsDefault)&&(this.defaultValue=xC(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){TC(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){TC(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){xC(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}},x1={provide:zn,useExisting:se(()=>tf)},FC=(()=>Promise.resolve())();let tf=(()=>{class e extends zn{constructor(n,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new RC,this._registered=!1,this.update=new me,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=function Jd(e,t){if(!t)return null;let n,r,o;return Array.isArray(t),t.forEach(i=>{i.constructor===Va?n=i:function S1(e){return Object.getPrototypeOf(e.constructor)===cr}(i)?r=i:o=i}),o||r||n||null}(0,i)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){const r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),function Xd(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Ri(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(n){FC.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){const r=n.isDisabled.currentValue,o=0!==r&&function Xr(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}(r);FC.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?function Ga(e,t){return[...t.path,e]}(n,this._parent):[n]}}return e.\u0275fac=function(n){return new(n||e)(_(Je,9),_(We,10),_(Hn,10),_(on,10),_(Zs,8),_(ho,8))},e.\u0275dir=F({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[ce([x1]),te,_t]}),e})();const N1={provide:on,useExisting:se(()=>nf),multi:!0};let nf=(()=>{class e extends cr{writeValue(n){this.setProperty("value",n??"")}registerOnChange(n){this.onChange=r=>{n(""==r?null:parseFloat(r))}}}return e.\u0275fac=function(){let t;return function(r){return(t||(t=Le(e)))(r||e)}}(),e.\u0275dir=F({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,r){1&n&&Ve("input",function(i){return r.onChange(i.target.value)})("blur",function(){return r.onTouched()})},features:[ce([N1]),te]}),e})(),PC=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=At({type:e}),e.\u0275inj=vt({}),e})();const $1={provide:on,useExisting:se(()=>Za),multi:!0};function UC(e,t){return null==e?`${t}`:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let Za=(()=>{class e extends cr{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){this.value=n;const o=UC(this._getOptionId(n),n);this.setProperty("value",o)}registerOnChange(n){this.onChange=r=>{this.value=this._getOptionValue(r),n(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(n){for(const r of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(r),n))return r;return null}_getOptionValue(n){const r=function U1(e){return e.split(":")[0]}(n);return this._optionMap.has(r)?this._optionMap.get(r):n}}return e.\u0275fac=function(){let t;return function(r){return(t||(t=Le(e)))(r||e)}}(),e.\u0275dir=F({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(n,r){1&n&&Ve("change",function(i){return r.onChange(i.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[ce([$1]),te]}),e})(),HC=(()=>{class e{constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(n){null!=this._select&&(this._select._optionMap.set(this.id,n),this._setElementValue(UC(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._setElementValue(n),this._select&&this._select.writeValue(this._select.value)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return e.\u0275fac=function(n){return new(n||e)(_(dt),_(gn),_(Za,9))},e.\u0275dir=F({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})();const H1={provide:on,useExisting:se(()=>uf),multi:!0};function zC(e,t){return null==e?`${t}`:("string"==typeof t&&(t=`'${t}'`),t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let uf=(()=>{class e extends cr{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){let r;if(this.value=n,Array.isArray(n)){const o=n.map(i=>this._getOptionId(i));r=(i,s)=>{i._setSelected(o.indexOf(s.toString())>-1)}}else r=(o,i)=>{o._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(n){this.onChange=r=>{const o=[],i=r.selectedOptions;if(void 0!==i){const s=i;for(let a=0;a{class e{constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(n){null!=this._select&&(this._value=n,this._setElementValue(zC(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(zC(this.id,n)),this._select.writeValue(this._select.value)):this._setElementValue(n)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}_setSelected(n){this._renderer.setProperty(this._element.nativeElement,"selected",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return e.\u0275fac=function(n){return new(n||e)(_(dt),_(gn),_(uf,9))},e.\u0275dir=F({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})(),J1=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=At({type:e}),e.\u0275inj=vt({imports:[PC]}),e})(),tk=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:ho,useValue:n.callSetDisabledState??za}]}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=At({type:e}),e.\u0275inj=vt({imports:[J1]}),e})();function nk(e,t){if(1&e){const n=function Vg(){return D()}();j(0,"div",3)(1,"header",4)(2,"div",5)(3,"h2",6),Z(4,"\u0412\u0430\u043b\u044e\u0442\u0430"),G(),j(5,"h2",7),Z(6,"\u041a\u0443\u043f\u0456\u0432\u043b\u044f"),G(),j(7,"h2",8),Z(8,"\u041f\u0440\u043e\u0434\u0430\u0436"),G()(),j(9,"div",9)(10,"h2",10),Z(11,"EUR"),G(),j(12,"h2",11),Z(13,"UAH"),G(),j(14,"h2",12),Z(15),G(),j(16,"h2",13),Z(17),G()(),nr(18,"div",14),j(19,"div",15)(20,"h2",16),Z(21,"USD"),G(),j(22,"h2",17),Z(23,"UAH"),G(),j(24,"h2",18),Z(25),G(),j(26,"h2",19),Z(27),G()(),nr(28,"div",14),j(29,"div",15)(30,"h2",16),Z(31,"PLN"),G(),j(32,"h2",17),Z(33,"UAH"),G(),j(34,"h2",18),Z(35),G(),j(36,"h2",19),Z(37),G()()(),nr(38,"div",14),j(39,"div",20)(40,"h2",21),Z(41,"\u041a\u043e\u043d\u0432\u0435\u0440\u0442\u0435\u0440 \u0432\u0430\u043b\u044e\u0442"),G(),j(42,"div",22)(43,"div",23)(44,"select",24),Ve("ngModelChange",function(o){return zt(n),Gt(bt().selectedValues.c1=o)})("change",function(){zt(n);const o=bt();return o.convertFirstToSecond(),Gt(o.updateSecondCombinationValue())}),j(45,"option",25),Z(46,"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430 \u0433\u0440\u0438\u0432\u043d\u044f"),G(),j(47,"option",25),Z(48,"\u041f\u043e\u043b\u044c\u0441\u044c\u043a\u0438\u0439 \u0437\u043b\u043e\u0442\u0438\u0439"),G(),j(49,"option",25),Z(50,"\u0404\u0432\u0440\u043e"),G(),j(51,"option",25),Z(52,"\u0414\u043e\u043b\u043b\u0430\u0440 \u0421\u0428\u0410"),G(),j(53,"option",25),Z(54,"\u0410\u043d\u0433\u043b\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0444\u0443\u043d\u0442 \u0441\u0442\u0435\u0440\u043b\u0456\u043d\u0433\u0456\u0432"),G(),j(55,"option",25),Z(56,"\u0427\u0435\u0441\u044c\u043a\u0430 \u043a\u0440\u043e\u043d\u0430"),G(),j(57,"option",25),Z(58,"\u0428\u0432\u0435\u0439\u0446\u0430\u0440\u0441\u044c\u043a\u0438\u0439 \u0444\u0440\u0430\u043d\u043a"),G()(),j(59,"input",26),Ve("ngModelChange",function(o){return zt(n),Gt(bt().inputValues.c1=o)})("input",function(){return zt(n),Gt(bt().convertFirstToSecond())}),G()(),j(60,"button",27),Ve("click",function(){return zt(n),Gt(bt().switchAndRecountInputs())}),G(),j(61,"div",28)(62,"div",29)(63,"select",30),Ve("ngModelChange",function(o){return zt(n),Gt(bt().selectedValues.c2=o)})("change",function(){zt(n);const o=bt();return o.convertFirstToSecond(),Gt(o.updateSecondCombinationValue())}),j(64,"option",25),Z(65,"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430 \u0433\u0440\u0438\u0432\u043d\u044f"),G(),j(66,"option",25),Z(67,"\u041f\u043e\u043b\u044c\u0441\u044c\u043a\u0438\u0439 \u0437\u043b\u043e\u0442\u0438\u0439"),G(),j(68,"option",25),Z(69,"\u0404\u0432\u0440\u043e"),G(),j(70,"option",25),Z(71,"\u0414\u043e\u043b\u043b\u0430\u0440 \u0421\u0428\u0410"),G(),j(72,"option",25),Z(73,"\u0410\u043d\u0433\u043b\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0444\u0443\u043d\u0442 \u0441\u0442\u0435\u0440\u043b\u0456\u043d\u0433\u0456\u0432"),G(),j(74,"option",25),Z(75,"\u0427\u0435\u0441\u044c\u043a\u0430 \u043a\u0440\u043e\u043d\u0430"),G(),j(76,"option",25),Z(77,"\u0428\u0432\u0435\u0439\u0446\u0430\u0440\u0441\u044c\u043a\u0438\u0439 \u0444\u0440\u0430\u043d\u043a"),G()(),j(78,"div",31),Z(79),G()(),j(80,"input",32),Ve("ngModelChange",function(o){return zt(n),Gt(bt().inputValues.c2=o)})("input",function(){return zt(n),Gt(bt().convertSecondToFirst())}),G()()()()()}if(2&e){const n=bt();ne(15),vn(n.currencies.eur.buys),ne(2),vn(n.currencies.eur.sells),ne(8),vn(n.currencies.usd.buys),ne(2),vn(n.currencies.usd.sells),ne(8),vn(n.currencies.pln.buys),ne(2),vn(n.currencies.pln.sells),ne(7),pe("ngModel",n.selectedValues.c1),ne(1),pe("ngValue",1),ne(2),pe("ngValue",n.currencies.pln.buys),ne(2),pe("ngValue",n.currencies.eur.buys),ne(2),pe("ngValue",n.currencies.usd.buys),ne(2),pe("ngValue",n.currencies.gbp.buys),ne(2),pe("ngValue",n.currencies.czk.buys),ne(2),pe("ngValue",n.currencies.chf.buys),ne(2),pe("ngModel",n.inputValues.c1),ne(4),pe("ngModel",n.selectedValues.c2),ne(1),pe("ngValue",1),ne(2),pe("ngValue",n.currencies.pln.sells),ne(2),pe("ngValue",n.currencies.eur.sells),ne(2),pe("ngValue",n.currencies.usd.sells),ne(2),pe("ngValue",n.currencies.gbp.sells),ne(2),pe("ngValue",n.currencies.czk.sells),ne(2),pe("ngValue",n.currencies.chf.sells),ne(3),vn(n.secondCombinationValue),ne(1),pe("ngModel",n.inputValues.c2)}}function rk(e,t){1&e&&(Rs(0),j(1,"p",36),Z(2,"Sorry, too many requests from one user, please try again in one minuete"),G(),Ns())}function ok(e,t){if(1&e&&(j(0,"div",33),nr(1,"div",34),xs(2,rk,3,0,"ng-container",35),G()),2&e){const n=bt();ne(2),pe("ngIf",n.showLoadingMessage)}}let ik=(()=>{class e{constructor(n){this.currency=n,this.title="angular-exchange",this.currjson=[],this.showLoadingMessage=!1,this.currencies={eur:{buys:1,sells:1},usd:{buys:1,sells:1},pln:{buys:1,sells:1},gbp:{buys:1,sells:1},czk:{buys:1,sells:1},chf:{buys:1,sells:1}},this.selectedValues={c1:1,c2:1},this.inputValues={c1:0,c2:0},this.secondCombinationValue=1}ngOnInit(){this.showLoadingMessage=!1,setTimeout(()=>this.showLoadingMessage=!0,3e3),this.fetchCurrencyData()}filterCurrencyByCode(n,r){return r.exchangeRate.find(o=>o.currency===n)}fetchCurrencyData(){this.currency.getCurrencyData().subscribe(n=>{this.currjson=n;for(const r of Object.keys(this.currencies)){const o=r.toUpperCase(),i=this.filterCurrencyByCode(o,this.currjson);i&&(this.currencies[r].buys=i.purchaseRate,this.currencies[r].sells=i.saleRate)}this.selectedValues.c1=1,this.selectedValues.c2=this.currencies.usd.sells,this.updateSecondCombinationValue(),this.showLoadingMessage=!1})}convertFirstToSecond(){const n=Number(this.selectedValues.c1),r=Number(this.selectedValues.c2),o=Number(this.inputValues.c1);!isNaN(o)&&!isNaN(n)&&!isNaN(r)&&(this.inputValues.c2=+(o*n/r).toFixed(2))}convertSecondToFirst(){const n=Number(this.selectedValues.c1),r=Number(this.selectedValues.c2),o=Number(this.inputValues.c2);!isNaN(o)&&!isNaN(n)&&!isNaN(r)&&(this.inputValues.c1=+(o*r/n).toFixed(2))}switchAndRecountInputs(){const n={[this.currencies.usd.buys]:this.currencies.usd.sells,[this.currencies.eur.buys]:this.currencies.eur.sells,[this.currencies.gbp.buys]:this.currencies.gbp.sells,[this.currencies.pln.buys]:this.currencies.pln.sells,[this.currencies.czk.buys]:this.currencies.czk.sells,[this.currencies.chf.buys]:this.currencies.chf.sells,1:1},o=this.selectedValues.c1;this.selectedValues.c1={[this.currencies.usd.sells]:this.currencies.usd.buys,[this.currencies.eur.sells]:this.currencies.eur.buys,[this.currencies.gbp.sells]:this.currencies.gbp.buys,[this.currencies.pln.sells]:this.currencies.pln.buys,[this.currencies.czk.sells]:this.currencies.czk.buys,[this.currencies.chf.sells]:this.currencies.chf.buys,1:1}[this.selectedValues.c2],this.selectedValues.c2=n[o],[this.inputValues.c1,this.inputValues.c2]=[this.inputValues.c2,this.inputValues.c1],this.convertFirstToSecond(),this.updateSecondCombinationValue()}updateSecondCombinationValue(){this.secondCombinationValue=1===this.selectedValues.c2?this.selectedValues.c1:this.selectedValues.c2}static#e=this.\u0275fac=function(r){return new(r||e)(_(e1))};static#t=this.\u0275cmp=yu({type:e,selectors:[["app-root"]],decls:5,vars:2,consts:[[1,"accountantapp-name"],["class","accountantapp",4,"ngIf","ngIfElse"],["loading",""],[1,"accountantapp"],[1,"header"],[1,"header-names"],[1,"header-names-value"],[1,"header-names-buys"],[1,"header-names-sells"],[1,"header-eurmoney"],[1,"header-eurmoney-value"],[1,"header-eurmoney-uah"],[1,"header-eurmoney-buys"],[1,"header-eurmoney-sells"],[1,"line"],[1,"header-usdmoney"],[1,"header-usdmoney-value"],[1,"header-usdmoney-uah"],[1,"header-usdmoney-buys"],[1,"header-usdmoney-sells"],[1,"converter-container"],[1,"converter-name"],[1,"converter"],[1,"converter-first"],["name","country1","id","country1",1,"converter-first-selection",3,"ngModel","ngModelChange","change"],[3,"ngValue"],["type","number",1,"converter-first-input",3,"ngModel","ngModelChange","input"],[1,"converter-division",3,"click"],[1,"converter-second"],[1,"converter-second-combination"],["name","country2","id","country2",1,"converter-second-selection",3,"ngModel","ngModelChange","change"],[1,"converter-second-combination-value"],["type","number",1,"converter-second-input",3,"ngModel","ngModelChange","input"],[1,"loader-container"],[1,"loader"],[4,"ngIf"],[1,"loader-message"]],template:function(r,o){if(1&r&&(j(0,"h1",0),Z(1,"\u041a\u0443\u0440\u0441\u0438 \u0432\u0430\u043b\u044e\u0442 \u0442\u0430 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u043e\u0440"),G(),xs(2,nk,81,25,"div",1),xs(3,ok,3,1,"ng-template",null,2,Ry)),2&r){const i=function kg(e){return function Dr(e,t){return e[t]}(function jE(){return k.lFrame.contextLView}(),le+e)}(4);ne(2),pe("ngIf",o.currjson&&o.currjson.exchangeRate)("ngIfElse",i)}},dependencies:[HC,GC,Va,nf,Za,CC,tf,Hv],styles:['@font-face{font-family:PragmaticaC-Bold;src:url(pragmaticac-bold.3a7e4c297e1cd897.otf) format("woff2"),url(pragmaticac.b6e388cd0aebf0fc.otf) format("woff");font-weight:700;font-style:normal}@font-face{font-family:PragmaticaC;src:url(pragmaticac.b6e388cd0aebf0fc.otf) format("woff2"),url(pragmaticac.b6e388cd0aebf0fc.otf) format("woff");font-weight:700;font-style:normal}.accountantapp[_ngcontent-%COMP%]{box-sizing:border-box;font-family:PragmaticaC-Bold,sans-serif;margin-left:100px;width:550px;display:flex;flex-direction:column;border-radius:10px}@media (max-width: 767px){.accountantapp[_ngcontent-%COMP%]{width:90%;margin:0;padding-left:25px}}.accountantapp-name[_ngcontent-%COMP%]{font-family:PragmaticaC-Bold,sans-serif;margin-top:100px;margin-left:100px;font-size:60px}@media (max-width: 767px){.accountantapp-name[_ngcontent-%COMP%]{font-size:40px;margin:20px}}.line[_ngcontent-%COMP%]{border:1px solid #E2E6E9;width:100%}.header[_ngcontent-%COMP%]{box-sizing:border-box;display:flex;flex-direction:column;justify-content:flex-end;width:450px}@media (max-width: 767px){.header[_ngcontent-%COMP%]{width:100%}}.header-names[_ngcontent-%COMP%]{display:flex;flex-direction:row;font-family:PragmaticaC,sans-serif;color:gray}.header-names-value[_ngcontent-%COMP%]{margin-right:auto}.header-names-buys[_ngcontent-%COMP%]{margin-left:100px;margin-right:50px}@media (max-width: 767px){.header-names-buys[_ngcontent-%COMP%]{margin-left:30px;margin-right:30px}}.header-names-sells[_ngcontent-%COMP%]{margin-left:auto}.header-usdmoney[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between}.header-usdmoney-uah[_ngcontent-%COMP%]{margin-left:10px;color:gray;font-family:PragmaticaC,sans-serif;margin-right:auto}.header-usdmoney-buys[_ngcontent-%COMP%]{margin-left:100px;margin-right:50px}@media (max-width: 767px){.header-usdmoney-buys[_ngcontent-%COMP%]{margin-left:30px;margin-right:30px}}.header-usdmoney-sells[_ngcontent-%COMP%]{margin-left:auto}.header-eurmoney[_ngcontent-%COMP%]{display:flex;flex-direction:row}.header-eurmoney-uah[_ngcontent-%COMP%]{margin-left:10px;color:gray;font-family:PragmaticaC,sans-serif;margin-right:auto}.header-eurmoney-buys[_ngcontent-%COMP%]{margin-left:100px;margin-right:50px}@media (max-width: 767px){.header-eurmoney-buys[_ngcontent-%COMP%]{margin-left:30px;margin-right:30px}}.header-eurmoney-sells[_ngcontent-%COMP%]{margin-left:auto}.converter[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;width:100%}.converter-name[_ngcontent-%COMP%]{font-family:PragmaticaC,sans-serif;color:gray;margin-top:40px}.converter-division[_ngcontent-%COMP%]{display:flex;background-color:#fff;margin-top:10px;width:20px;height:20px;margin-left:25px;margin-right:25px;background-repeat:no-repeat;background-image:url(doublearrowgray.b3389ba399cb4e10.svg);transform:rotate(90deg);background-size:20px;background-position:center;border:none;cursor:pointer}.converter-first[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.converter-first-selection[_ngcontent-%COMP%]{height:40px;width:100%;margin-bottom:20px;border:#B4BDC3 1px solid;padding-left:24px;font-family:PragmaticaC,sans-serif;font-size:16px;cursor:pointer}@media (max-width: 767px){.converter-first-selection[_ngcontent-%COMP%]{width:100%;padding:0}}.converter-first-input[_ngcontent-%COMP%]{box-sizing:border-box;height:40px;width:100%;appearance:textfield;border:#B4BDC3 1px solid;padding-left:24px;font-family:PragmaticaC,sans-serif;font-size:16px;margin-top:auto}@media (max-width: 767px){.converter-first-input[_ngcontent-%COMP%]{margin-top:auto;width:100%}}.converter-first-input[_ngcontent-%COMP%]::-webkit-inner-spin-button, .converter-first-input[_ngcontent-%COMP%]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.converter-second[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.converter-second-combination[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}@media (max-width: 767px){.converter-second-combination[_ngcontent-%COMP%]{flex-direction:column}}.converter-second-combination-value[_ngcontent-%COMP%]{display:flex;height:40px;align-items:center;justify-content:center;width:40px;margin-left:20px;padding:auto;cursor:default;margin-bottom:20px;border:1px solid #B4BDC3}@media (max-width: 767px){.converter-second-combination-value[_ngcontent-%COMP%]{margin-left:auto;margin-bottom:10px;height:30px}}.converter-second-selection[_ngcontent-%COMP%]{height:40px;width:100%;margin-bottom:20px;border:#B4BDC3 1px solid;padding-left:24px;font-family:PragmaticaC,sans-serif;font-size:16px;cursor:pointer}@media (max-width: 767px){.converter-second-selection[_ngcontent-%COMP%]{width:100%;padding:0;margin-bottom:10px}}.converter-second-input[_ngcontent-%COMP%]{box-sizing:border-box;height:40px;width:100%;appearance:textfield;border:#B4BDC3 1px solid;padding-left:24px;font-family:PragmaticaC,sans-serif;font-size:16px}@media (max-width: 767px){.converter-second-input[_ngcontent-%COMP%]{width:100%}}.converter-second-input[_ngcontent-%COMP%]::-webkit-inner-spin-button, .converter-second-input[_ngcontent-%COMP%]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.loader-container[_ngcontent-%COMP%]{margin-left:100px;justify-content:center;align-items:center;width:800px;height:500px;display:flex;flex-direction:column;border-radius:10px}@media (max-width: 767px){.loader-container[_ngcontent-%COMP%]{margin-left:0;width:100%;height:100%}}.loader[_ngcontent-%COMP%]{border:8px solid #f3f3f3;border-top:8px solid #3498db;border-radius:50%;width:150px;height:150px;animation:_ngcontent-%COMP%_spin 1s linear infinite}.loader-message[_ngcontent-%COMP%]{font-family:PragmaticaC,sans-serif;font-size:20px}@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}']})}return e})(),sk=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=At({type:e,bootstrap:[ik]});static#n=this.\u0275inj=vt({imports:[tk,$N,xP,JP]})}return e})();BN().bootstrapModule(sk).catch(e=>console.error(e))}},oe=>{oe(oe.s=277)}]); \ No newline at end of file