From b2cc3390d9ee407211103fc532ca06fffbaae151 Mon Sep 17 00:00:00 2001 From: Ibrahem0Salah1 Date: Wed, 2 Oct 2024 19:54:55 +0200 Subject: [PATCH] finalCommitt --- docs/index.html | 2 +- ...n.ae048a1db06a9158.js => main.8c23272c959d8555.js} | 2 +- src/app/products/components/cart/cart.component.css | 11 ++++++++++- src/app/products/components/cart/cart.component.html | 7 +++---- 4 files changed, 15 insertions(+), 7 deletions(-) rename docs/{main.ae048a1db06a9158.js => main.8c23272c959d8555.js} (80%) diff --git a/docs/index.html b/docs/index.html index 145ecfd..92902e4 100644 --- a/docs/index.html +++ b/docs/index.html @@ -12,6 +12,6 @@ - + \ No newline at end of file diff --git a/docs/main.ae048a1db06a9158.js b/docs/main.8c23272c959d8555.js similarity index 80% rename from docs/main.ae048a1db06a9158.js rename to docs/main.8c23272c959d8555.js index 3f24f6f..1d0f2d8 100644 --- a/docs/main.ae048a1db06a9158.js +++ b/docs/main.8c23272c959d8555.js @@ -1 +1 @@ -"use strict";(self.webpackChunkloginPractice=self.webpackChunkloginPractice||[]).push([[792],{372:()=>{function pe(e){return"function"==typeof e}function Do(e){const t=e(r=>{Error.call(r),r.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const ua=Do(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((r,i)=>`${i+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function wo(e,n){if(e){const t=e.indexOf(n);0<=t&&e.splice(t,1)}}class Tt{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(const o of t)o.remove(this);else t.remove(this);const{initialTeardown:r}=this;if(pe(r))try{r()}catch(o){n=o instanceof ua?o.errors:[o]}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const o of i)try{Cg(o)}catch(s){n=n??[],s instanceof ua?n=[...n,...s.errors]:n.push(s)}}if(n)throw new ua(n)}}add(n){var t;if(n&&n!==this)if(this.closed)Cg(n);else{if(n instanceof Tt){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(n)}}_hasParent(n){const{_parentage:t}=this;return t===n||Array.isArray(t)&&t.includes(n)}_addParent(n){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n}_removeParent(n){const{_parentage:t}=this;t===n?this._parentage=null:Array.isArray(t)&&wo(t,n)}remove(n){const{_finalizers:t}=this;t&&wo(t,n),n instanceof Tt&&n._removeParent(this)}}Tt.EMPTY=(()=>{const e=new Tt;return e.closed=!0,e})();const vg=Tt.EMPTY;function _g(e){return e instanceof Tt||e&&"closed"in e&&pe(e.remove)&&pe(e.add)&&pe(e.unsubscribe)}function Cg(e){pe(e)?e():e.unsubscribe()}const Pr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},da={setTimeout(e,n,...t){const{delegate:r}=da;return r?.setTimeout?r.setTimeout(e,n,...t):setTimeout(e,n,...t)},clearTimeout(e){const{delegate:n}=da;return(n?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Dg(e){da.setTimeout(()=>{const{onUnhandledError:n}=Pr;if(!n)throw e;n(e)})}function du(){}const Z0=fu("C",void 0,void 0);function fu(e,n,t){return{kind:e,value:n,error:t}}let Or=null;function fa(e){if(Pr.useDeprecatedSynchronousErrorHandling){const n=!Or;if(n&&(Or={errorThrown:!1,error:null}),e(),n){const{errorThrown:t,error:r}=Or;if(Or=null,t)throw r}}else e()}class hu extends Tt{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,_g(n)&&n.add(this)):this.destination=nS}static create(n,t,r){return new bo(n,t,r)}next(n){this.isStopped?gu(function Y0(e){return fu("N",e,void 0)}(n),this):this._next(n)}error(n){this.isStopped?gu(function K0(e){return fu("E",void 0,e)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?gu(Z0,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const J0=Function.prototype.bind;function pu(e,n){return J0.call(e,n)}class eS{constructor(n){this.partialObserver=n}next(n){const{partialObserver:t}=this;if(t.next)try{t.next(n)}catch(r){ha(r)}}error(n){const{partialObserver:t}=this;if(t.error)try{t.error(n)}catch(r){ha(r)}else ha(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(t){ha(t)}}}class bo extends hu{constructor(n,t,r){let i;if(super(),pe(n)||!n)i={next:n??void 0,error:t??void 0,complete:r??void 0};else{let o;this&&Pr.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),i={next:n.next&&pu(n.next,o),error:n.error&&pu(n.error,o),complete:n.complete&&pu(n.complete,o)}):i=n}this.destination=new eS(i)}}function ha(e){Pr.useDeprecatedSynchronousErrorHandling?function X0(e){Pr.useDeprecatedSynchronousErrorHandling&&Or&&(Or.errorThrown=!0,Or.error=e)}(e):Dg(e)}function gu(e,n){const{onStoppedNotification:t}=Pr;t&&da.setTimeout(()=>t(e,n))}const nS={closed:!0,next:du,error:function tS(e){throw e},complete:du},mu="function"==typeof Symbol&&Symbol.observable||"@@observable";function nr(e){return e}function wg(e){return 0===e.length?nr:1===e.length?e[0]:function(t){return e.reduce((r,i)=>i(r),t)}}let Ae=(()=>{class e{constructor(t){t&&(this._subscribe=t)}lift(t){const r=new e;return r.source=this,r.operator=t,r}subscribe(t,r,i){const o=function oS(e){return e&&e instanceof hu||function iS(e){return e&&pe(e.next)&&pe(e.error)&&pe(e.complete)}(e)&&_g(e)}(t)?t:new bo(t,r,i);return fa(()=>{const{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(t){try{return this._subscribe(t)}catch(r){t.error(r)}}forEach(t,r){return new(r=bg(r))((i,o)=>{const s=new bo({next:a=>{try{t(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(t){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(t)}[mu](){return this}pipe(...t){return wg(t)(this)}toPromise(t){return new(t=bg(t))((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return e.create=n=>new e(n),e})();function bg(e){var n;return null!==(n=e??Pr.Promise)&&void 0!==n?n:Promise}const sS=Do(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Ge=(()=>{class e extends Ae{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const r=new Eg(this,this);return r.operator=t,r}_throwIfClosed(){if(this.closed)throw new sS}next(t){fa(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(t)}})}error(t){fa(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:r}=this;for(;r.length;)r.shift().error(t)}})}complete(){fa(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:r,isStopped:i,observers:o}=this;return r||i?vg:(this.currentObservers=null,o.push(t),new Tt(()=>{this.currentObservers=null,wo(o,t)}))}_checkFinalizedStatuses(t){const{hasError:r,thrownError:i,isStopped:o}=this;r?t.error(i):o&&t.complete()}asObservable(){const t=new Ae;return t.source=this,t}}return e.create=(n,t)=>new Eg(n,t),e})();class Eg extends Ge{constructor(n,t){super(),this.destination=n,this.source=t}next(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,n)}error(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,n)}complete(){var n,t;null===(t=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===t||t.call(n)}_subscribe(n){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(n))&&void 0!==r?r:vg}}function Mg(e){return pe(e?.lift)}function Fe(e){return n=>{if(Mg(n))return n.lift(function(t){try{return e(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Re(e,n,t,r,i){return new aS(e,n,t,r,i)}class aS extends hu{constructor(n,t,r,i,o,s){super(n),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=t?function(a){try{t(a)}catch(l){n.error(l)}}:super._next,this._error=i?function(a){try{i(a)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:t}=this;super.unsubscribe(),!t&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function ie(e,n){return Fe((t,r)=>{let i=0;t.subscribe(Re(r,o=>{r.next(e.call(n,o,i++))}))})}function rr(e){return this instanceof rr?(this.v=e,this):new rr(e)}function Ag(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function Cu(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],r=0;if(t)return t.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(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(o){t[o]=e[o]&&function(s){return new Promise(function(a,l){!function i(o,s,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},s)}(a,l,(s=e[o](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const Pg=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function Og(e){return pe(e?.then)}function xg(e){return pe(e[mu])}function Ng(e){return Symbol.asyncIterator&&pe(e?.[Symbol.asyncIterator])}function Rg(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 kg=function AS(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Fg(e){return pe(e?.[kg])}function Lg(e){return function Tg(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=t.apply(e,n||[]),o=[];return i={},a("next"),a("throw"),a("return",function s(h){return function(p){return Promise.resolve(p).then(h,d)}}),i[Symbol.asyncIterator]=function(){return this},i;function a(h,p){r[h]&&(i[h]=function(g){return new Promise(function(y,w){o.push([h,g,y,w])>1||l(h,g)})},p&&(i[h]=p(i[h])))}function l(h,p){try{!function c(h){h.value instanceof rr?Promise.resolve(h.value.v).then(u,d):f(o[0][2],h)}(r[h](p))}catch(g){f(o[0][3],g)}}function u(h){l("next",h)}function d(h){l("throw",h)}function f(h,p){h(p),o.shift(),o.length&&l(o[0][0],o[0][1])}}(this,arguments,function*(){const t=e.getReader();try{for(;;){const{value:r,done:i}=yield rr(t.read());if(i)return yield rr(void 0);yield yield rr(r)}}finally{t.releaseLock()}})}function Vg(e){return pe(e?.getReader)}function At(e){if(e instanceof Ae)return e;if(null!=e){if(xg(e))return function PS(e){return new Ae(n=>{const t=e[mu]();if(pe(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Pg(e))return function OS(e){return new Ae(n=>{for(let t=0;t{e.then(t=>{n.closed||(n.next(t),n.complete())},t=>n.error(t)).then(null,Dg)})}(e);if(Ng(e))return jg(e);if(Fg(e))return function NS(e){return new Ae(n=>{for(const t of e)if(n.next(t),n.closed)return;n.complete()})}(e);if(Vg(e))return function RS(e){return jg(Lg(e))}(e)}throw Rg(e)}function jg(e){return new Ae(n=>{(function kS(e,n){var t,r,i,o;return function Sg(e,n,t,r){return new(t||(t=Promise))(function(o,s){function a(u){try{c(r.next(u))}catch(d){s(d)}}function l(u){try{c(r.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):function i(o){return o instanceof t?o:new t(function(s){s(o)})}(u.value).then(a,l)}c((r=r.apply(e,n||[])).next())})}(this,void 0,void 0,function*(){try{for(t=Ag(e);!(r=yield t.next()).done;)if(n.next(r.value),n.closed)return}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=t.return)&&(yield o.call(t))}finally{if(i)throw i.error}}n.complete()})})(e,n).catch(t=>n.error(t))})}function xn(e,n,t,r=0,i=!1){const o=n.schedule(function(){t(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function We(e,n,t=1/0){return pe(n)?We((r,i)=>ie((o,s)=>n(r,o,i,s))(At(e(r,i))),t):("number"==typeof n&&(t=n),Fe((r,i)=>function FS(e,n,t,r,i,o,s,a){const l=[];let c=0,u=0,d=!1;const f=()=>{d&&!l.length&&!c&&n.complete()},h=g=>c{o&&n.next(g),c++;let y=!1;At(t(g,u++)).subscribe(Re(n,w=>{i?.(w),o?h(w):n.next(w)},()=>{y=!0},void 0,()=>{if(y)try{for(c--;l.length&&cp(w)):p(w)}f()}catch(w){n.error(w)}}))};return e.subscribe(Re(n,h,()=>{d=!0,f()})),()=>{a?.()}}(r,i,e,t)))}function si(e=1/0){return We(nr,e)}const pn=new Ae(e=>e.complete());function Du(e){return e[e.length-1]}function Bg(e){return pe(Du(e))?e.pop():void 0}function Eo(e){return function VS(e){return e&&pe(e.schedule)}(Du(e))?e.pop():void 0}function $g(e,n=0){return Fe((t,r)=>{t.subscribe(Re(r,i=>xn(r,e,()=>r.next(i),n),()=>xn(r,e,()=>r.complete(),n),i=>xn(r,e,()=>r.error(i),n)))})}function Hg(e,n=0){return Fe((t,r)=>{r.add(e.schedule(()=>t.subscribe(r),n))})}function Ug(e,n){if(!e)throw new Error("Iterable cannot be null");return new Ae(t=>{xn(t,n,()=>{const r=e[Symbol.asyncIterator]();xn(t,n,()=>{r.next().then(i=>{i.done?t.complete():t.next(i.value)})},0,!0)})})}function Le(e,n){return n?function GS(e,n){if(null!=e){if(xg(e))return function BS(e,n){return At(e).pipe(Hg(n),$g(n))}(e,n);if(Pg(e))return function HS(e,n){return new Ae(t=>{let r=0;return n.schedule(function(){r===e.length?t.complete():(t.next(e[r++]),t.closed||this.schedule())})})}(e,n);if(Og(e))return function $S(e,n){return At(e).pipe(Hg(n),$g(n))}(e,n);if(Ng(e))return Ug(e,n);if(Fg(e))return function US(e,n){return new Ae(t=>{let r;return xn(t,n,()=>{r=e[kg](),xn(t,n,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){return void t.error(s)}o?t.complete():t.next(i)},0,!0)}),()=>pe(r?.return)&&r.return()})}(e,n);if(Vg(e))return function zS(e,n){return Ug(Lg(e),n)}(e,n)}throw Rg(e)}(e,n):At(e)}class Gt extends Ge{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const t=super._subscribe(n);return!t.closed&&n.next(this._value),t}getValue(){const{hasError:n,thrownError:t,_value:r}=this;if(n)throw t;return this._throwIfClosed(),r}next(n){super.next(this._value=n)}}function L(...e){return Le(e,Eo(e))}function zg(e={}){const{connector:n=(()=>new Ge),resetOnError:t=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=e;return o=>{let s,a,l,c=0,u=!1,d=!1;const f=()=>{a?.unsubscribe(),a=void 0},h=()=>{f(),s=l=void 0,u=d=!1},p=()=>{const g=s;h(),g?.unsubscribe()};return Fe((g,y)=>{c++,!d&&!u&&f();const w=l=l??n();y.add(()=>{c--,0===c&&!d&&!u&&(a=wu(p,i))}),w.subscribe(y),!s&&c>0&&(s=new bo({next:v=>w.next(v),error:v=>{d=!0,f(),a=wu(h,t,v),w.error(v)},complete:()=>{u=!0,f(),a=wu(h,r),w.complete()}}),At(g).subscribe(s))})(o)}}function wu(e,n,...t){if(!0===n)return void e();if(!1===n)return;const r=new bo({next:()=>{r.unsubscribe(),e()}});return At(n(...t)).subscribe(r)}function qt(e,n){return Fe((t,r)=>{let i=null,o=0,s=!1;const a=()=>s&&!i&&r.complete();t.subscribe(Re(r,l=>{i?.unsubscribe();let c=0;const u=o++;At(e(l,u)).subscribe(i=Re(r,d=>r.next(n?n(l,d,u,c++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function QS(e,n){return e===n}function ue(e){for(let n in e)if(e[n]===ue)return n;throw Error("Could not find renamed property on target object.")}function pa(e,n){for(const t in n)n.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=n[t])}function Ve(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Ve).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const n=e.toString();if(null==n)return""+n;const t=n.indexOf("\n");return-1===t?n:n.substring(0,t)}function bu(e,n){return null==e||""===e?null===n?"":n:null==n||""===n?e:e+" "+n}const ZS=ue({__forward_ref__:ue});function me(e){return e.__forward_ref__=me,e.toString=function(){return Ve(this())},e}function B(e){return Eu(e)?e():e}function Eu(e){return"function"==typeof e&&e.hasOwnProperty(ZS)&&e.__forward_ref__===me}function Mu(e){return e&&!!e.\u0275providers}const Gg="https://g.co/ng/security#xss";class C extends Error{constructor(n,t){super(function ga(e,n){return`NG0${Math.abs(e)}${n?": "+n:""}`}(n,t)),this.code=n}}function z(e){return"string"==typeof e?e:null==e?"":String(e)}function Su(e,n){throw new C(-201,!1)}function Wt(e,n){null==e&&function V(e,n,t,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${t} ${r} ${n} <=Actual]`))}(n,e,null,"!=")}function x(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Qe(e){return{providers:e.providers||[],imports:e.imports||[]}}function ma(e){return qg(e,va)||qg(e,Wg)}function qg(e,n){return e.hasOwnProperty(n)?e[n]:null}function ya(e){return e&&(e.hasOwnProperty(Iu)||e.hasOwnProperty(rI))?e[Iu]:null}const va=ue({\u0275prov:ue}),Iu=ue({\u0275inj:ue}),Wg=ue({ngInjectableDef:ue}),rI=ue({ngInjectorDef:ue});var X=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(X||{});let Tu;function Dt(e){const n=Tu;return Tu=e,n}function Zg(e,n,t){const r=ma(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:t&X.Optional?null:void 0!==n?n:void Su(Ve(e))}const ye=globalThis;class P{constructor(n,t){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=x({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const Mo={},Nu="__NG_DI_FLAG__",_a="ngTempTokenPath",sI=/\n/gm,Yg="__source";let ai;function ir(e){const n=ai;return ai=e,n}function cI(e,n=X.Default){if(void 0===ai)throw new C(-203,!1);return null===ai?Zg(e,void 0,n):ai.get(e,n&X.Optional?null:void 0,n)}function I(e,n=X.Default){return(function Qg(){return Tu}()||cI)(B(e),n)}function T(e,n=X.Default){return I(e,Ca(n))}function Ca(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Ru(e){const n=[];for(let t=0;tn){s=o-1;break}}}for(;oo?"":i[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==tm(h,c,0)||2&r&&c!==f){if(nn(r))return!1;s=!0}}}}else{if(!s&&!nn(r)&&!nn(l))return!1;if(s&&nn(l))continue;s=!1,r=l|1&r}}return nn(r)||s}function nn(e){return 0==(1&e)}function mI(e,n,t,r){if(null===n)return-1;let i=0;if(r||!t){let o=!1;for(;i-1)for(t++;t0?'="'+a+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""!==i&&!nn(s)&&(n+=lm(o,i),i=""),r=s,o=o||!nn(r);t++}return""!==i&&(n+=lm(o,i)),n}function ct(e){return Nn(()=>{const n=um(e),t={...n,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Da.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Qt.Emulated,styles:e.styles||re,_:null,schemas:e.schemas||null,tView:null,id:""};dm(t);const r=e.dependencies;return t.directiveDefs=ba(r,!1),t.pipeDefs=ba(r,!0),t.id=function AI(e){let n=0;const t=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const i of t)n=Math.imul(31,n)+i.charCodeAt(0)<<0;return n+=2147483648,"c"+n}(t),t})}function MI(e){return ee(e)||Ze(e)}function SI(e){return null!==e}function tt(e){return Nn(()=>({type:e.type,bootstrap:e.bootstrap||re,declarations:e.declarations||re,imports:e.imports||re,exports:e.exports||re,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function cm(e,n){if(null==e)return gn;const t={};for(const r in e)if(e.hasOwnProperty(r)){let i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),t[i]=r,n&&(n[i]=o)}return t}function $(e){return Nn(()=>{const n=um(e);return dm(n),n})}function ee(e){return e[wa]||null}function Ze(e){return e[ku]||null}function ut(e){return e[Fu]||null}function Ot(e,n){const t=e[Jg]||null;if(!t&&!0===n)throw new Error(`Type ${Ve(e)} does not have '\u0275mod' property.`);return t}function um(e){const n={};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:n,inputTransforms:null,inputConfig:e.inputs||gn,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||re,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:cm(e.inputs,n),outputs:cm(e.outputs)}}function dm(e){e.features?.forEach(n=>n(e))}function ba(e,n){if(!e)return null;const t=n?ut:MI;return()=>("function"==typeof e?e():e).map(r=>t(r)).filter(SI)}const Ie=0,A=1,W=2,be=3,rn=4,Ao=5,nt=6,ci=7,Pe=8,or=9,ui=10,G=11,Po=12,fm=13,di=14,Oe=15,Oo=16,fi=17,mn=18,xo=19,hm=20,sr=21,kn=22,No=23,Ro=24,J=25,Vu=1,pm=2,yn=7,hi=9,Ke=11;function bt(e){return Array.isArray(e)&&"object"==typeof e[Vu]}function dt(e){return Array.isArray(e)&&!0===e[Vu]}function ju(e){return 0!=(4&e.flags)}function Nr(e){return e.componentOffset>-1}function Ma(e){return 1==(1&e.flags)}function on(e){return!!e.template}function Bu(e){return 0!=(512&e[W])}function Rr(e,n){return e.hasOwnProperty(Rn)?e[Rn]:null}const ar=Symbol("SIGNAL");function RI(e,n){return(null===e||"object"!=typeof e)&&Object.is(e,n)}let Ye=null,Sa=!1;function Zt(e){const n=Ye;return Ye=e,n}const $u={version:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{}};function ym(e){if(Sa)throw new Error("");if(null===Ye)return;const n=Ye.nextProducerIndex++;pi(Ye),ne.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Dm(e){pi(e);for(let n=0;n0}function pi(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Em(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}let Mm=function LI(){throw new Error};function Gu(){Mm()}let qu=null;function Ta(e,n){const t=Object.create(jI);function r(){return ym(t),t.value}return t.value=e,n?.equal&&(t.equal=n.equal),r.set=Im,r.update=BI,r.mutate=$I,r.asReadonly=HI,r[ar]=t,r}const jI=(()=>({...$u,equal:RI,readonlyFn:void 0}))();function Sm(e){e.version++,_m(e),qu?.()}function Im(e){const n=this[ar];Hu()||Gu(),n.equal(n.value,e)||(n.value=e,Sm(n))}function BI(e){Hu()||Gu(),Im.call(this,e(this[ar].value))}function $I(e){const n=this[ar];Hu()||Gu(),e(n.value),Sm(n)}function HI(){const e=this[ar];if(void 0===e.readonlyFn){const n=()=>this();n[ar]=e,e.readonlyFn=n}return e.readonlyFn}const Am=()=>{},zI=(()=>({...$u,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule(e.ref)},hasRun:!1,cleanupFn:Am}))();class GI{constructor(n,t,r){this.previousValue=n,this.currentValue=t,this.firstChange=r}isFirstChange(){return this.firstChange}}function xt(){return Pm}function Pm(e){return e.type.prototype.ngOnChanges&&(e.setInput=WI),qI}function qI(){const e=xm(this),n=e?.current;if(n){const t=e.previous;if(t===gn)e.previous=n;else for(let r in n)t[r]=n[r];e.current=null,this.ngOnChanges(n)}}function WI(e,n,t,r){const i=this.declaredInputs[t],o=xm(e)||function QI(e,n){return e[Om]=n}(e,{previous:gn,current:null}),s=o.current||(o.current={}),a=o.previous,l=a[i];s[i]=new GI(l&&l.currentValue,n,a===gn),e[r]=n}xt.ngInherit=!0;const Om="__ngSimpleChanges__";function xm(e){return e[Om]||null}const vn=function(e,n,t){};function ve(e){for(;Array.isArray(e);)e=e[Ie];return e}function Aa(e,n){return ve(n[e])}function Et(e,n){return ve(n[e.index])}function km(e,n){return e.data[n]}function Nt(e,n){const t=n[e];return bt(t)?t:t[Ie]}function lr(e,n){return null==n?null:e[n]}function Fm(e){e[fi]=0}function eT(e){1024&e[W]||(e[W]|=1024,Vm(e,1))}function Lm(e){1024&e[W]&&(e[W]&=-1025,Vm(e,-1))}function Vm(e,n){let t=e[be];if(null===t)return;t[Ao]+=n;let r=t;for(t=t[be];null!==t&&(1===n&&1===r[Ao]||-1===n&&0===r[Ao]);)t[Ao]+=n,r=t,t=t[be]}const j={lFrame:Zm(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function $m(){return j.bindingsEnabled}function E(){return j.lFrame.lView}function te(){return j.lFrame.tView}function je(e){return j.lFrame.contextLView=e,e[Pe]}function Be(e){return j.lFrame.contextLView=null,e}function Xe(){let e=Hm();for(;null!==e&&64===e.type;)e=e.parent;return e}function Hm(){return j.lFrame.currentTNode}function _n(e,n){const t=j.lFrame;t.currentTNode=e,t.isParent=n}function Zu(){return j.lFrame.isParent}function Ku(){j.lFrame.isParent=!1}function ft(){const e=j.lFrame;let n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}function yi(){return j.lFrame.bindingIndex++}function Ln(e){const n=j.lFrame,t=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,t}function fT(e,n){const t=j.lFrame;t.bindingIndex=t.bindingRootIndex=e,Yu(n)}function Yu(e){j.lFrame.currentDirectiveIndex=e}function Xu(e){const n=j.lFrame.currentDirectiveIndex;return-1===n?null:e[n]}function qm(){return j.lFrame.currentQueryIndex}function Ju(e){j.lFrame.currentQueryIndex=e}function pT(e){const n=e[A];return 2===n.type?n.declTNode:1===n.type?e[nt]:null}function Wm(e,n,t){if(t&X.SkipSelf){let i=n,o=e;for(;!(i=i.parent,null!==i||t&X.Host||(i=pT(o),null===i||(o=o[di],10&i.type))););if(null===i)return!1;n=i,e=o}const r=j.lFrame=Qm();return r.currentTNode=n,r.lView=e,!0}function ed(e){const n=Qm(),t=e[A];j.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex,n.inI18n=!1}function Qm(){const e=j.lFrame,n=null===e?null:e.child;return null===n?Zm(e):n}function Zm(e){const n={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=n),n}function Km(){const e=j.lFrame;return j.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Ym=Km;function td(){const e=Km();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 ht(){return j.lFrame.selectedIndex}function kr(e){j.lFrame.selectedIndex=e}function Me(){const e=j.lFrame;return km(e.tView,e.selectedIndex)}let Jm=!0;function Pa(){return Jm}function cr(e){Jm=e}function Oa(e,n){for(let t=n.directiveStart,r=n.directiveEnd;t=r)break}else n[l]<0&&(e[fi]+=65536),(a>13>16&&(3&e[W])===n&&(e[W]+=8192,ty(a,o)):ty(a,o)}const vi=-1;class Vo{constructor(n,t,r){this.factory=n,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=r}}function id(e){return e!==vi}function jo(e){return 32767&e}function Bo(e,n){let t=function ST(e){return e>>16}(e),r=n;for(;t>0;)r=r[di],t--;return r}let od=!0;function Ra(e){const n=od;return od=e,n}const ny=255,ry=5;let IT=0;const Cn={};function ka(e,n){const t=iy(e,n);if(-1!==t)return t;const r=n[A];r.firstCreatePass&&(e.injectorIndex=n.length,sd(r.data,e),sd(n,null),sd(r.blueprint,null));const i=Fa(e,n),o=e.injectorIndex;if(id(i)){const s=jo(i),a=Bo(i,n),l=a[A].data;for(let c=0;c<8;c++)n[o+c]=a[s+c]|l[s+c]}return n[o+8]=i,o}function sd(e,n){e.push(0,0,0,0,0,0,0,0,n)}function iy(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function Fa(e,n){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let t=0,r=null,i=n;for(;null!==i;){if(r=dy(i),null===r)return vi;if(t++,i=i[di],-1!==r.injectorIndex)return r.injectorIndex|t<<16}return vi}function ad(e,n,t){!function TT(e,n,t){let r;"string"==typeof t?r=t.charCodeAt(0)||0:t.hasOwnProperty(Io)&&(r=t[Io]),null==r&&(r=t[Io]=IT++);const i=r&ny;n.data[e+(i>>ry)]|=1<=0?n&ny:NT:n}(t);if("function"==typeof o){if(!Wm(n,e,r))return r&X.Host?oy(i,0,r):sy(n,t,r,i);try{let s;if(s=o(r),null!=s||r&X.Optional)return s;Su()}finally{Ym()}}else if("number"==typeof o){let s=null,a=iy(e,n),l=vi,c=r&X.Host?n[Oe][nt]:null;for((-1===a||r&X.SkipSelf)&&(l=-1===a?Fa(e,n):n[a+8],l!==vi&&uy(r,!1)?(s=n[A],a=jo(l),n=Bo(l,n)):a=-1);-1!==a;){const u=n[A];if(cy(o,a,u.data)){const d=PT(a,n,t,s,r,c);if(d!==Cn)return d}l=n[a+8],l!==vi&&uy(r,n[A].data[a+8]===c)&&cy(o,a,n)?(s=u,a=jo(l),n=Bo(l,n)):a=-1}}return i}function PT(e,n,t,r,i,o){const s=n[A],a=s.data[e+8],u=La(a,s,t,null==r?Nr(a)&&od:r!=s&&0!=(3&a.type),i&X.Host&&o===a);return null!==u?Fr(n,s,u,a):Cn}function La(e,n,t,r,i){const o=e.providerIndexes,s=n.data,a=1048575&o,l=e.directiveStart,u=o>>20,f=i?a+u:e.directiveEnd;for(let h=r?a:a+u;h=l&&p.type===t)return h}if(i){const h=s[l];if(h&&on(h)&&h.type===t)return l}return null}function Fr(e,n,t,r){let i=e[t];const o=n.data;if(function bT(e){return e instanceof Vo}(i)){const s=i;s.resolving&&function KS(e,n){const t=n?`. Dependency path: ${n.join(" > ")} > ${e}`:"";throw new C(-200,`Circular dependency in DI detected for ${e}${t}`)}(function le(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():z(e)}(o[t]));const a=Ra(s.canSeeViewProviders);s.resolving=!0;const c=s.injectImpl?Dt(s.injectImpl):null;Wm(e,r,X.Default);try{i=e[t]=s.factory(void 0,o,e,r),n.firstCreatePass&&t>=r.directiveStart&&function DT(e,n,t){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=n.type.prototype;if(r){const s=Pm(n);(t.preOrderHooks??=[]).push(e,s),(t.preOrderCheckHooks??=[]).push(e,s)}i&&(t.preOrderHooks??=[]).push(0-e,i),o&&((t.preOrderHooks??=[]).push(e,o),(t.preOrderCheckHooks??=[]).push(e,o))}(t,o[t],n)}finally{null!==c&&Dt(c),Ra(a),s.resolving=!1,Ym()}}return i}function cy(e,n,t){return!!(t[n+(e>>ry)]&1<{const n=e.prototype.constructor,t=n[Rn]||ld(n),r=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){const o=i[Rn]||ld(i);if(o&&o!==t)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function ld(e){return Eu(e)?()=>{const n=ld(B(e));return n&&n()}:Rr(e)}function dy(e){const n=e[A],t=n.type;return 2===t?n.declTNode:1===t?e[nt]:null}const Ci="__parameters__";function wi(e,n,t){return Nn(()=>{const r=function cd(e){return function(...t){if(e){const r=e(...t);for(const i in r)this[i]=r[i]}}}(n);function i(...o){if(this instanceof i)return r.apply(this,o),this;const s=new i(...o);return a.annotation=s,a;function a(l,c,u){const d=l.hasOwnProperty(Ci)?l[Ci]:Object.defineProperty(l,Ci,{value:[]})[Ci];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return t&&(i.prototype=Object.create(t.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}function Ei(e,n){e.forEach(t=>Array.isArray(t)?Ei(t,n):n(t))}function hy(e,n,t){n>=e.length?e.push(t):e.splice(n,0,t)}function ja(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function Rt(e,n,t){let r=Mi(e,n);return r>=0?e[1|r]=t:(r=~r,function $T(e,n,t,r){let i=e.length;if(i==n)e.push(t,r);else if(1===i)e.push(r,e[0]),e[0]=t;else{for(i--,e.push(e[i-1],e[i]);i>n;)e[i]=e[i-2],i--;e[n]=t,e[n+1]=r}}(e,r,n,t)),r}function ud(e,n){const t=Mi(e,n);if(t>=0)return e[1|t]}function Mi(e,n){return function py(e,n,t){let r=0,i=e.length>>t;for(;i!==r;){const o=r+(i-r>>1),s=e[o<n?i=o:r=o+1}return~(i<|^->||--!>|)/g,uA="\u200b$1\u200b";const gd=new Map;let dA=0;const yd="__ngContext__";function rt(e,n){bt(n)?(e[yd]=n[xo],function hA(e){gd.set(e[xo],e)}(n)):e[yd]=n}let vd;function _d(e,n){return vd(e,n)}function qo(e){const n=e[be];return dt(n)?n[be]:n}function Ry(e){return Fy(e[Po])}function ky(e){return Fy(e[rn])}function Fy(e){for(;null!==e&&!dt(e);)e=e[rn];return e}function Ti(e,n,t,r,i){if(null!=r){let o,s=!1;dt(r)?o=r:bt(r)&&(s=!0,r=r[Ie]);const a=ve(r);0===e&&null!==t?null==i?By(n,t,a):Lr(n,t,a,i||null,!0):1===e&&null!==t?Lr(n,t,a,i||null,!0):2===e?function el(e,n,t){const r=Xa(e,n);r&&function xA(e,n,t,r){e.removeChild(n,t,r)}(e,r,n,t)}(n,a,s):3===e&&n.destroyNode(a),null!=o&&function kA(e,n,t,r,i){const o=t[yn];o!==ve(t)&&Ti(n,e,r,o,i);for(let a=Ke;an.replace(cA,uA))}(n))}function Ka(e,n,t){return e.createElement(n,t)}function Vy(e,n){const t=e[hi],r=t.indexOf(n);Lm(n),t.splice(r,1)}function Ya(e,n){if(e.length<=Ke)return;const t=Ke+n,r=e[t];if(r){const i=r[Oo];null!==i&&i!==e&&Vy(i,r),n>0&&(e[t-1][rn]=r[rn]);const o=ja(e,Ke+n);!function EA(e,n){Qo(e,n,n[G],2,null,null),n[Ie]=null,n[nt]=null}(r[A],r);const s=o[mn];null!==s&&s.detachView(o[A]),r[be]=null,r[rn]=null,r[W]&=-129}return r}function Dd(e,n){if(!(256&n[W])){const t=n[G];n[No]&&wm(n[No]),n[Ro]&&wm(n[Ro]),t.destroyNode&&Qo(e,n,t,3,null,null),function IA(e){let n=e[Po];if(!n)return wd(e[A],e);for(;n;){let t=null;if(bt(n))t=n[Po];else{const r=n[Ke];r&&(t=r)}if(!t){for(;n&&!n[rn]&&n!==e;)bt(n)&&wd(n[A],n),n=n[be];null===n&&(n=e),bt(n)&&wd(n[A],n),t=n&&n[rn]}n=t}}(n)}}function wd(e,n){if(!(256&n[W])){n[W]&=-129,n[W]|=256,function OA(e,n){let t;if(null!=e&&null!=(t=e.destroyHooks))for(let r=0;r=0?r[s]():r[-s].unsubscribe(),o+=2}else t[o].call(r[t[o+1]]);null!==r&&(n[ci]=null);const i=n[sr];if(null!==i){n[sr]=null;for(let o=0;o-1){const{encapsulation:o}=e.data[r.directiveStart+i];if(o===Qt.None||o===Qt.Emulated)return null}return Et(r,t)}}(e,n.parent,t)}function Lr(e,n,t,r,i){e.insertBefore(n,t,r,i)}function By(e,n,t){e.appendChild(n,t)}function $y(e,n,t,r,i){null!==r?Lr(e,n,t,r,i):By(e,n,t)}function Xa(e,n){return e.parentNode(n)}let Ed,tl,Td,nl,zy=function Uy(e,n,t){return 40&e.type?Et(e,t):null};function Ja(e,n,t,r){const i=bd(e,r,n),o=n[G],a=function Hy(e,n,t){return zy(e,n,t)}(r.parent||n[nt],r,n);if(null!=i)if(Array.isArray(t))for(let l=0;le,createScript:e=>e,createScriptURL:e=>e})}catch{}return tl}()?.createHTML(e)||e}function Pi(){if(void 0!==Td)return Td;if(typeof document<"u")return document;throw new C(210,!1)}function Ad(){if(void 0===nl&&(nl=null,ye.trustedTypes))try{nl=ye.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return nl}function Yy(e){return Ad()?.createHTML(e)||e}function Jy(e){return Ad()?.createScriptURL(e)||e}class Vr{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Gg})`}}class HA extends Vr{getTypeName(){return"HTML"}}class UA extends Vr{getTypeName(){return"Style"}}class zA extends Vr{getTypeName(){return"Script"}}class GA extends Vr{getTypeName(){return"URL"}}class qA extends Vr{getTypeName(){return"ResourceURL"}}function kt(e){return e instanceof Vr?e.changingThisBreaksApplicationSecurity:e}function Dn(e,n){const t=function WA(e){return e instanceof Vr&&e.getTypeName()||null}(e);if(null!=t&&t!==n){if("ResourceURL"===t&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${t} (see ${Gg})`)}return t===n}class JA{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const t=(new window.DOMParser).parseFromString(Ai(n),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(n):(t.removeChild(t.firstChild),t)}catch{return null}}}class eP{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const t=this.inertDocument.createElement("template");return t.innerHTML=Ai(n),t}}const nP=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function rl(e){return(e=String(e)).match(nP)?e:"unsafe:"+e}function Vn(e){const n={};for(const t of e.split(","))n[t]=!0;return n}function Zo(...e){const n={};for(const t of e)for(const r in t)t.hasOwnProperty(r)&&(n[r]=!0);return n}const tv=Vn("area,br,col,hr,img,wbr"),nv=Vn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),rv=Vn("rp,rt"),Pd=Zo(tv,Zo(nv,Vn("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Zo(rv,Vn("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Zo(rv,nv)),Od=Vn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),iv=Zo(Od,Vn("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Vn("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),rP=Vn("script,style,template");class iP{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let t=n.firstChild,r=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?r=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,r&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let i=this.checkClobberedElement(t,t.nextSibling);if(i){t=i;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(n){const t=n.nodeName.toLowerCase();if(!Pd.hasOwnProperty(t))return this.sanitizedSomething=!0,!rP.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const r=n.attributes;for(let i=0;i"),!0}endElement(n){const t=n.nodeName.toLowerCase();Pd.hasOwnProperty(t)&&!tv.hasOwnProperty(t)&&(this.buf.push(""))}chars(n){this.buf.push(ov(n))}checkClobberedElement(n,t){if(t&&(n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return t}}const oP=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,sP=/([^\#-~ |!])/g;function ov(e){return e.replace(/&/g,"&").replace(oP,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(sP,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let il;function sv(e,n){let t=null;try{il=il||function ev(e){const n=new eP(e);return function tP(){try{return!!(new window.DOMParser).parseFromString(Ai(""),"text/html")}catch{return!1}}()?new JA(n):n}(e);let r=n?String(n):"";t=il.getInertBodyElement(r);let i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=t.innerHTML,t=il.getInertBodyElement(r)}while(r!==o);return Ai((new iP).sanitizeChildren(xd(t)||t))}finally{if(t){const r=xd(t)||t;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function xd(e){return"content"in e&&function aP(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Ft=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Ft||{});function Nd(e){const n=Ko();return n?Yy(n.sanitize(Ft.HTML,e)||""):Dn(e,"HTML")?Yy(kt(e)):sv(Pi(),z(e))}function dr(e){const n=Ko();return n?n.sanitize(Ft.URL,e)||"":Dn(e,"URL")?kt(e):rl(z(e))}function av(e){const n=Ko();if(n)return Jy(n.sanitize(Ft.RESOURCE_URL,e)||"");if(Dn(e,"ResourceURL"))return Jy(kt(e));throw new C(904,!1)}function Ko(){const e=E();return e&&e[ui].sanitizer}const Yo=new P("ENVIRONMENT_INITIALIZER"),cv=new P("INJECTOR",-1),uv=new P("INJECTOR_DEF_TYPES");class Rd{get(n,t=Mo){if(t===Mo){const r=new Error(`NullInjectorError: No provider for ${Ve(n)}!`);throw r.name="NullInjectorError",r}return t}}function ol(e){return{\u0275providers:e}}function hP(...e){return{\u0275providers:dv(0,e),\u0275fromNgModule:!0}}function dv(e,...n){const t=[],r=new Set;let i;const o=s=>{t.push(s)};return Ei(n,s=>{const a=s;sl(a,o,[],r)&&(i||=[],i.push(a))}),void 0!==i&&fv(i,o),t}function fv(e,n){for(let t=0;t{n(o,r)})}}function sl(e,n,t,r){if(!(e=B(e)))return!1;let i=null,o=ya(e);const s=!o&&ee(e);if(o||s){if(s&&!s.standalone)return!1;i=e}else{const l=e.ngModule;if(o=ya(l),!o)return!1;i=l}const a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)sl(c,n,t,r)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;r.add(i);try{Ei(o.imports,u=>{sl(u,n,t,r)&&(c||=[],c.push(u))})}finally{}void 0!==c&&fv(c,n)}if(!a){const c=Rr(i)||(()=>new i);n({provide:i,useFactory:c,deps:re},i),n({provide:uv,useValue:i,multi:!0},i),n({provide:Yo,useValue:()=>I(i),multi:!0},i)}const l=o.providers;if(null!=l&&!a){const c=e;kd(l,u=>{n(u,c)})}}}return i!==e&&void 0!==e.providers}function kd(e,n){for(let t of e)Mu(t)&&(t=t.\u0275providers),Array.isArray(t)?kd(t,n):n(t)}const pP=ue({provide:String,useValue:ue});function Fd(e){return null!==e&&"object"==typeof e&&pP in e}function jr(e){return"function"==typeof e}const Ld=new P("Set Injector scope."),al={},mP={};let Vd;function ll(){return void 0===Vd&&(Vd=new Rd),Vd}class Lt{}class Oi extends Lt{get destroyed(){return this._destroyed}constructor(n,t,r,i){super(),this.parent=t,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Bd(n,s=>this.processProvider(s)),this.records.set(cv,xi(void 0,this)),i.has("environment")&&this.records.set(Lt,xi(void 0,this));const o=this.records.get(Ld);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(uv.multi,re,X.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const t of n)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const t=ir(this),r=Dt(void 0);try{return n()}finally{ir(t),Dt(r)}}get(n,t=Mo,r=X.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(em))return n[em](this);r=Ca(r);const o=ir(this),s=Dt(void 0);try{if(!(r&X.SkipSelf)){let l=this.records.get(n);if(void 0===l){const c=function DP(e){return"function"==typeof e||"object"==typeof e&&e instanceof P}(n)&&ma(n);l=c&&this.injectableDefInScope(c)?xi(jd(n),al):null,this.records.set(n,l)}if(null!=l)return this.hydrate(n,l)}return(r&X.Self?ll():this.parent).get(n,t=r&X.Optional&&t===Mo?null:t)}catch(a){if("NullInjectorError"===a.name){if((a[_a]=a[_a]||[]).unshift(Ve(n)),o)throw a;return function dI(e,n,t,r){const i=e[_a];throw n[Yg]&&i.unshift(n[Yg]),e.message=function fI(e,n,t,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let i=Ve(n);if(Array.isArray(n))i=n.map(Ve).join(" -> ");else if("object"==typeof n){let o=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):Ve(a)))}i=`{${o.join(", ")}}`}return`${t}${r?"("+r+")":""}[${i}]: ${e.replace(sI,"\n ")}`}("\n"+e.message,i,t,r),e.ngTokenPath=i,e[_a]=null,e}(a,n,"R3InjectorError",this.source)}throw a}finally{Dt(s),ir(o)}}resolveInjectorInitializers(){const n=ir(this),t=Dt(void 0);try{const i=this.get(Yo.multi,re,X.Self);for(const o of i)o()}finally{ir(n),Dt(t)}}toString(){const n=[],t=this.records;for(const r of t.keys())n.push(Ve(r));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new C(205,!1)}processProvider(n){let t=jr(n=B(n))?n:B(n&&n.provide);const r=function vP(e){return Fd(e)?xi(void 0,e.useValue):xi(gv(e),al)}(n);if(jr(n)||!0!==n.multi)this.records.get(t);else{let i=this.records.get(t);i||(i=xi(void 0,al,!0),i.factory=()=>Ru(i.multi),this.records.set(t,i)),t=n,i.multi.push(n)}this.records.set(t,r)}hydrate(n,t){return t.value===al&&(t.value=mP,t.value=t.factory()),"object"==typeof t.value&&t.value&&function CP(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}injectableDefInScope(n){if(!n.providedIn)return!1;const t=B(n.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(n){const t=this._onDestroyHooks.indexOf(n);-1!==t&&this._onDestroyHooks.splice(t,1)}}function jd(e){const n=ma(e),t=null!==n?n.factory:Rr(e);if(null!==t)return t;if(e instanceof P)throw new C(204,!1);if(e instanceof Function)return function yP(e){const n=e.length;if(n>0)throw function Uo(e,n){const t=[];for(let r=0;rt.factory(e):()=>new e}(e);throw new C(204,!1)}function gv(e,n,t){let r;if(jr(e)){const i=B(e);return Rr(i)||jd(i)}if(Fd(e))r=()=>B(e.useValue);else if(function pv(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...Ru(e.deps||[]));else if(function hv(e){return!(!e||!e.useExisting)}(e))r=()=>I(B(e.useExisting));else{const i=B(e&&(e.useClass||e.provide));if(!function _P(e){return!!e.deps}(e))return Rr(i)||jd(i);r=()=>new i(...Ru(e.deps))}return r}function xi(e,n,t=!1){return{factory:e,value:n,multi:t?[]:void 0}}function Bd(e,n){for(const t of e)Array.isArray(t)?Bd(t,n):t&&Mu(t)?Bd(t.\u0275providers,n):n(t)}const cl=new P("AppId",{providedIn:"root",factory:()=>wP}),wP="ng",mv=new P("Platform Initializer"),Br=new P("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),yv=new P("AnimationModuleType"),vv=new P("CSP nonce",{providedIn:"root",factory:()=>Pi().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let _v=(e,n,t)=>null;function Qd(e,n,t=!1){return _v(e,n,t)}class xP{}class wv{}class RP{resolveComponentFactory(n){throw function NP(e){const n=Error(`No component factory found for ${Ve(e)}.`);return n.ngComponent=e,n}(n)}}let es=(()=>{class e{static#e=this.NULL=new RP}return e})();function kP(){return ki(Xe(),E())}function ki(e,n){return new Vt(Et(e,n))}let Vt=(()=>{class e{constructor(t){this.nativeElement=t}static#e=this.__NG_ELEMENT_ID__=kP}return e})();function FP(e){return e instanceof Vt?e.nativeElement:e}class ts{}let jn=(()=>{class e{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function LP(){const e=E(),t=Nt(Xe().index,e);return(bt(t)?t:e)[G]}()}return e})(),VP=(()=>{class e{static#e=this.\u0275prov=x({token:e,providedIn:"root",factory:()=>null})}return e})();class ns{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const jP=new ns("16.2.12"),Yd={};function Iv(e,n=null,t=null,r){const i=Tv(e,n,t,r);return i.resolveInjectorInitializers(),i}function Tv(e,n=null,t=null,r,i=new Set){const o=[t||re,hP(e)];return r=r||("object"==typeof e?void 0:Ve(e)),new Oi(o,n||ll(),r||null,i)}let it=(()=>{class e{static#e=this.THROW_IF_NOT_FOUND=Mo;static#t=this.NULL=new Rd;static create(t,r){if(Array.isArray(t))return Iv({name:""},r,t,"");{const i=t.name??"";return Iv({name:i},t.parent,t.providers,i)}}static#n=this.\u0275prov=x({token:e,providedIn:"any",factory:()=>I(cv)});static#r=this.__NG_ELEMENT_ID__=-1}return e})();function Jd(e){return e.ngOriginalError}class Bn{constructor(){this._console=console}handleError(n){const t=this._findOriginalError(n);this._console.error("ERROR",n),t&&this._console.error("ORIGINAL ERROR",t)}_findOriginalError(n){let t=n&&Jd(n);for(;t&&Jd(t);)t=Jd(t);return t||null}}function ef(e){return n=>{setTimeout(e,void 0,n)}}const _e=class WP extends Ge{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,t,r){let i=n,o=t||(()=>null),s=r;if(n&&"object"==typeof n){const l=n;i=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=ef(o),i&&(i=ef(i)),s&&(s=ef(s)));const a=super.subscribe({next:i,error:o,complete:s});return n instanceof Tt&&n.add(a),a}};function Pv(...e){}class ce{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new _e(!1),this.onMicrotaskEmpty=new _e(!1),this.onStable=new _e(!1),this.onError=new _e(!1),typeof Zone>"u")throw new C(908,!1);Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&t,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function QP(){const e="function"==typeof ye.requestAnimationFrame;let n=ye[e?"requestAnimationFrame":"setTimeout"],t=ye[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&n&&t){const r=n[Zone.__symbol__("OriginalDelegate")];r&&(n=r);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function YP(e){const n=()=>{!function KP(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(ye,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,nf(e),e.isCheckStableRunning=!0,tf(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),nf(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,r,i,o,s,a)=>{if(function JP(e){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0].data?.__ignore_ng_zone__}(a))return t.invokeTask(i,o,s,a);try{return Ov(e),t.invokeTask(i,o,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&n(),xv(e)}},onInvoke:(t,r,i,o,s,a,l)=>{try{return Ov(e),t.invoke(i,o,s,a,l)}finally{e.shouldCoalesceRunChangeDetection&&n(),xv(e)}},onHasTask:(t,r,i,o)=>{t.hasTask(i,o),r===i&&("microTask"==o.change?(e._hasPendingMicrotasks=o.microTask,nf(e),tf(e)):"macroTask"==o.change&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(t,r,i,o)=>(t.handleError(i,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}(i)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ce.isInAngularZone())throw new C(909,!1)}static assertNotInAngularZone(){if(ce.isInAngularZone())throw new C(909,!1)}run(n,t,r){return this._inner.run(n,t,r)}runTask(n,t,r,i){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,n,ZP,Pv,Pv);try{return o.runTask(s,t,r)}finally{o.cancelTask(s)}}runGuarded(n,t,r){return this._inner.runGuarded(n,t,r)}runOutsideAngular(n){return this._outer.run(n)}}const ZP={};function tf(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 nf(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Ov(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function xv(e){e._nesting--,tf(e)}class XP{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new _e,this.onMicrotaskEmpty=new _e,this.onStable=new _e,this.onError=new _e}run(n,t,r){return n.apply(t,r)}runGuarded(n,t,r){return n.apply(t,r)}runOutsideAngular(n){return n()}runTask(n,t,r,i){return n.apply(t,r)}}const Nv=new P("",{providedIn:"root",factory:Rv});function Rv(){const e=T(ce);let n=!0;return function qS(...e){const n=Eo(e),t=function jS(e,n){return"number"==typeof Du(e)?e.pop():n}(e,1/0),r=e;return r.length?1===r.length?At(r[0]):si(t)(Le(r,n)):pn}(new Ae(i=>{n=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{i.next(n),i.complete()})}),new Ae(i=>{let o;e.runOutsideAngular(()=>{o=e.onStable.subscribe(()=>{ce.assertNotInAngularZone(),queueMicrotask(()=>{!n&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(n=!0,i.next(!0))})})});const s=e.onUnstable.subscribe(()=>{ce.assertInAngularZone(),n&&(n=!1,e.runOutsideAngular(()=>{i.next(!1)}))});return()=>{o.unsubscribe(),s.unsubscribe()}}).pipe(zg()))}function kv(e){return e.ownerDocument.defaultView}function $n(e){return e instanceof Function?e():e}let rf=(()=>{class e{constructor(){this.renderDepth=0,this.handler=null}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){this.renderDepth--,0===this.renderDepth&&this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null}static#e=this.\u0275prov=x({token:e,providedIn:"root",factory:()=>new e})}return e})();function rs(e){for(;e;){e[W]|=64;const n=qo(e);if(Bu(e)&&!n)return e;e=n}return null}const Bv=new P("",{providedIn:"root",factory:()=>!1});let yl=null;function zv(e,n){return e[n]??Wv()}function Gv(e,n){const t=Wv();t.producerNode?.length&&(e[n]=yl,t.lView=e,yl=qv())}const l1={...$u,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{rs(e.lView)},lView:null};function qv(){return Object.create(l1)}function Wv(){return yl??=qv(),yl}const q={};function M(e){Qv(te(),E(),ht()+e,!1)}function Qv(e,n,t,r){if(!r)if(3==(3&n[W])){const o=e.preOrderCheckHooks;null!==o&&xa(n,o,t)}else{const o=e.preOrderHooks;null!==o&&Na(n,o,0,t)}kr(t)}function D(e,n=X.Default){const t=E();return null===t?I(e,n):ay(Xe(),t,B(e),n)}function vl(e,n,t,r,i,o,s,a,l,c,u){const d=n.blueprint.slice();return d[Ie]=i,d[W]=140|r,(null!==c||e&&2048&e[W])&&(d[W]|=2048),Fm(d),d[be]=d[di]=e,d[Pe]=t,d[ui]=s||e&&e[ui],d[G]=a||e&&e[G],d[or]=l||e&&e[or]||null,d[nt]=o,d[xo]=function fA(){return dA++}(),d[kn]=u,d[hm]=c,d[Oe]=2==n.type?e[Oe]:d,d}function Vi(e,n,t,r,i){let o=e.data[n];if(null===o)o=function sf(e,n,t,r,i){const o=Hm(),s=Zu(),l=e.data[n]=function m1(e,n,t,r,i,o){let s=n?n.injectorIndex:-1,a=0;return function mi(){return null!==j.skipHydrationRootTNode}()&&(a|=128),{type:t,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?o:o&&o.parent,t,n,r,i);return null===e.firstChild&&(e.firstChild=l),null!==o&&(s?null==o.child&&null!==l.parent&&(o.child=l):null===o.next&&(o.next=l,l.prev=o)),l}(e,n,t,r,i),function dT(){return j.lFrame.inI18n}()&&(o.flags|=32);else if(64&o.type){o.type=t,o.value=r,o.attrs=i;const s=function Lo(){const e=j.lFrame,n=e.currentTNode;return e.isParent?n:n.parent}();o.injectorIndex=null===s?-1:s.injectorIndex}return _n(o,!0),o}function is(e,n,t,r){if(0===t)return-1;const i=n.length;for(let o=0;oJ&&Qv(e,n,J,!1),vn(a?2:0,i);const c=a?o:null,u=Uu(c);try{null!==c&&(c.dirty=!1),t(r,i)}finally{zu(c,u)}}finally{a&&null===n[No]&&Gv(n,No),kr(s),vn(a?3:1,i)}}function af(e,n,t){if(ju(n)){const r=Zt(null);try{const o=n.directiveEnd;for(let s=n.directiveStart;snull;function Jv(e,n,t,r){for(let i in e)if(e.hasOwnProperty(i)){t=null===t?{}:t;const o=e[i];null===r?e_(t,n,i,o):r.hasOwnProperty(i)&&e_(t,n,r[i],o)}return t}function e_(e,n,t,r){e.hasOwnProperty(t)?e[t].push(n,r):e[t]=[n,r]}function jt(e,n,t,r,i,o,s,a){const l=Et(n,t);let u,c=n.inputs;!a&&null!=c&&(u=c[r])?(gf(e,t,u,r,i),Nr(n)&&function _1(e,n){const t=Nt(n,e);16&t[W]||(t[W]|=64)}(t,n.index)):3&n.type&&(r=function v1(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),i=null!=s?s(i,n.value||"",r):i,o.setProperty(l,r,i))}function df(e,n,t,r){if($m()){const i=null===r?null:{"":-1},o=function M1(e,n){const t=e.directiveRegistry;let r=null,i=null;if(t)for(let o=0;o0;){const t=e[--n];if("number"==typeof t&&t<0)return t}return 0})(s)!=a&&s.push(a),s.push(t,r,o)}}(e,n,r,is(e,t,i.hostVars,q),i)}function wn(e,n,t,r,i,o){const s=Et(e,n);!function hf(e,n,t,r,i,o,s){if(null==o)e.removeAttribute(n,i,t);else{const a=null==s?z(o):s(o,r||"",i);e.setAttribute(n,i,a,t)}}(n[G],s,o,e.value,t,r,i)}function O1(e,n,t,r,i,o){const s=o[n];if(null!==s)for(let a=0;a{class e{constructor(){this.all=new Set,this.queue=new Map}create(t,r,i){const o=typeof Zone>"u"?null:Zone.current,s=function UI(e,n,t){const r=Object.create(zI);t&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=n;const i=s=>{r.cleanupFn=s};return r.ref={notify:()=>Cm(r),run:()=>{if(r.dirty=!1,r.hasRun&&!Dm(r))return;r.hasRun=!0;const s=Uu(r);try{r.cleanupFn(),r.cleanupFn=Am,r.fn(i)}finally{zu(r,s)}},cleanup:()=>r.cleanupFn()},r.ref}(t,c=>{this.all.has(c)&&this.queue.set(c,o)},i);let a;this.all.add(s),s.notify();const l=()=>{s.cleanup(),a?.(),this.all.delete(s),this.queue.delete(s)};return a=r?.onDestroy(l),{destroy:l}}flush(){if(0!==this.queue.size)for(const[t,r]of this.queue)this.queue.delete(t),r?r.run(()=>t.run()):t.run()}get isQueueEmpty(){return 0===this.queue.size}static#e=this.\u0275prov=x({token:e,providedIn:"root",factory:()=>new e})}return e})();function Cl(e,n,t){let r=t?e.styles:null,i=t?e.classes:null,o=0;if(null!==n)for(let s=0;s0){h_(e,1);const i=t.components;null!==i&&g_(e,i,1)}}function g_(e,n,t){for(let r=0;r-1&&(Ya(n,r),ja(t,r))}this._attachedToViewContainer=!1}Dd(this._lView[A],this._lView)}onDestroy(n){!function jm(e,n){if(256==(256&e[W]))throw new C(911,!1);null===e[sr]&&(e[sr]=[]),e[sr].push(n)}(this._lView,n)}markForCheck(){rs(this._cdRefInjectingView||this._lView)}detach(){this._lView[W]&=-129}reattach(){this._lView[W]|=128}detectChanges(){Dl(this._lView[A],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new C(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function SA(e,n){Qo(e,n,n[G],2,null,null)}(this._lView[A],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new C(902,!1);this._appRef=n}}class B1 extends ss{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;Dl(n[A],n,n[Pe],!1)}checkNoChanges(){}get context(){return null}}class m_ extends es{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const t=ee(n);return new as(t,this.ngModule)}}function y_(e){const n=[];for(let t in e)e.hasOwnProperty(t)&&n.push({propName:e[t],templateName:t});return n}class H1{constructor(n,t){this.injector=n,this.parentInjector=t}get(n,t,r){r=Ca(r);const i=this.injector.get(n,Yd,r);return i!==Yd||t===Yd?i:this.parentInjector.get(n,t,r)}}class as extends wv{get inputs(){const n=this.componentDef,t=n.inputTransforms,r=y_(n.inputs);if(null!==t)for(const i of r)t.hasOwnProperty(i.propName)&&(i.transform=t[i.propName]);return r}get outputs(){return y_(this.componentDef.outputs)}constructor(n,t){super(),this.componentDef=n,this.ngModule=t,this.componentType=n.type,this.selector=function wI(e){return e.map(DI).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!t}create(n,t,r,i){let o=(i=i||this.ngModule)instanceof Lt?i:i?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new H1(n,o):n,a=s.get(ts,null);if(null===a)throw new C(407,!1);const d={rendererFactory:a,sanitizer:s.get(VP,null),effectManager:s.get(u_,null),afterRenderEventManager:s.get(rf,null)},f=a.createRenderer(null,this.componentDef),h=this.componentDef.selectors[0][0]||"div",p=r?function d1(e,n,t,r){const o=r.get(Bv,!1)||t===Qt.ShadowDom,s=e.selectRootElement(n,o);return function f1(e){Xv(e)}(s),s}(f,r,this.componentDef.encapsulation,s):Ka(f,h,function $1(e){const n=e.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(h)),w=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let v=null;null!==p&&(v=Qd(p,s,!0));const S=uf(0,null,null,1,0,null,null,null,null,null,null),O=vl(null,S,null,w,null,null,d,f,s,null,v);let U,he;ed(O);try{const we=this.componentDef;let et,Ut=null;we.findHostDirectiveDefs?(et=[],Ut=new Map,we.findHostDirectiveDefs(we,et,Ut),et.push(we)):et=[we];const hn=function z1(e,n){const t=e[A],r=J;return e[r]=n,Vi(t,r,2,"#host",null)}(O,p),cu=function G1(e,n,t,r,i,o,s){const a=i[A];!function q1(e,n,t,r){for(const i of e)n.mergedAttrs=To(n.mergedAttrs,i.hostAttrs);null!==n.mergedAttrs&&(Cl(n,n.mergedAttrs,!0),null!==t&&Ky(r,t,n))}(r,e,n,s);let l=null;null!==n&&(l=Qd(n,i[or]));const c=o.rendererFactory.createRenderer(n,t);let u=16;t.signals?u=4096:t.onPush&&(u=64);const d=vl(i,Yv(t),null,u,i[e.index],e,o,c,null,null,l);return a.firstCreatePass&&ff(a,e,r.length-1),_l(i,d),i[e.index]=d}(hn,p,we,et,O,d,f);he=km(S,J),p&&function Q1(e,n,t,r){if(r)Lu(e,t,["ng-version",jP.full]);else{const{attrs:i,classes:o}=function bI(e){const n=[],t=[];let r=1,i=2;for(;r0&&Zy(e,t,o.join(" "))}}(f,we,p,r),void 0!==t&&function Z1(e,n,t){const r=e.projection=[];for(let i=0;i=0;r--){const i=e[r];i.hostVars=n+=i.hostVars,i.hostAttrs=To(i.hostAttrs,t=To(t,i.hostAttrs))}}(r)}function wl(e){return e===gn?{}:e===re?[]:e}function X1(e,n){const t=e.viewQuery;e.viewQuery=t?(r,i)=>{n(r,i),t(r,i)}:n}function J1(e,n){const t=e.contentQueries;e.contentQueries=t?(r,i,o)=>{n(r,i,o),t(r,i,o)}:n}function eO(e,n){const t=e.hostBindings;e.hostBindings=t?(r,i)=>{n(r,i),t(r,i)}:n}function w_(e){const n=e.inputConfig,t={};for(const r in n)if(n.hasOwnProperty(r)){const i=n[r];Array.isArray(i)&&i[2]&&(t[r]=i[2])}e.inputTransforms=t}function bl(e){return!!yf(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function yf(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function bn(e,n,t){return e[n]=t}function ot(e,n,t){return!Object.is(e[n],t)&&(e[n]=t,!0)}function gt(e,n,t,r){const i=E();return ot(i,yi(),n)&&(te(),wn(Me(),i,e,n,t,r)),gt}function Bi(e,n,t,r){return ot(e,yi(),t)?n+z(t)+r:q}function $i(e,n,t,r,i,o){const a=function $r(e,n,t,r){const i=ot(e,n,t);return ot(e,n+1,r)||i}(e,function Fn(){return j.lFrame.bindingIndex}(),t,i);return Ln(2),a?n+z(t)+r+z(i)+o:q}function K(e,n,t,r,i,o,s,a){const l=E(),c=te(),u=e+J,d=c.firstCreatePass?function MO(e,n,t,r,i,o,s,a,l){const c=n.consts,u=Vi(n,e,4,s||null,lr(c,a));df(n,t,u,lr(c,l)),Oa(n,u);const d=u.tView=uf(2,u,r,i,o,n.directiveRegistry,n.pipeRegistry,null,n.schemas,c,null);return null!==n.queries&&(n.queries.template(n,u),d.queries=n.queries.embeddedTView(u)),u}(u,c,l,n,t,r,i,o,s):c.data[u];_n(d,!1);const f=k_(c,l,d,e);Pa()&&Ja(c,l,f,d),rt(f,l),_l(l,l[u]=i_(f,l,f,d)),Ma(d)&&lf(c,l,d),null!=s&&cf(l,d,a)}let k_=function F_(e,n,t,r){return cr(!0),n[G].createComment("")};function N(e,n,t){const r=E();return ot(r,yi(),n)&&jt(te(),Me(),r,e,n,r[G],t,!1),N}function bf(e,n,t,r,i){const s=i?"class":"style";gf(e,t,n.inputs[s],s,r)}function m(e,n,t,r){const i=E(),o=te(),s=J+e,a=i[G],l=o.firstCreatePass?function PO(e,n,t,r,i,o){const s=n.consts,l=Vi(n,e,2,r,lr(s,i));return df(n,t,l,lr(s,o)),null!==l.attrs&&Cl(l,l.attrs,!1),null!==l.mergedAttrs&&Cl(l,l.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,l),l}(s,o,i,n,t,r):o.data[s],c=L_(o,i,l,a,n,e);i[s]=c;const u=Ma(l);return _n(l,!0),Ky(a,c,l),32!=(32&l.flags)&&Pa()&&Ja(o,i,c,l),0===function nT(){return j.lFrame.elementDepthCount}()&&rt(c,i),function rT(){j.lFrame.elementDepthCount++}(),u&&(lf(o,i,l),af(o,l,i)),null!==r&&cf(i,l),m}function _(){let e=Xe();Zu()?Ku():(e=e.parent,_n(e,!1));const n=e;(function oT(e){return j.skipHydrationRootTNode===e})(n)&&function cT(){j.skipHydrationRootTNode=null}(),function iT(){j.lFrame.elementDepthCount--}();const t=te();return t.firstCreatePass&&(Oa(t,e),ju(e)&&t.queries.elementEnd(e)),null!=n.classesWithoutHost&&function ET(e){return 0!=(8&e.flags)}(n)&&bf(t,n,E(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function MT(e){return 0!=(16&e.flags)}(n)&&bf(t,n,E(),n.stylesWithoutHost,!1),_}function Q(e,n,t,r){return m(e,n,t,r),_(),Q}let L_=(e,n,t,r,i,o)=>(cr(!0),Ka(r,i,function Xm(){return j.lFrame.currentNamespace}()));function fs(e,n,t){const r=E(),i=te(),o=e+J,s=i.firstCreatePass?function NO(e,n,t,r,i){const o=n.consts,s=lr(o,r),a=Vi(n,e,8,"ng-container",s);return null!==s&&Cl(a,s,!0),df(n,t,a,lr(o,i)),null!==n.queries&&n.queries.elementStart(n,a),a}(o,i,r,n,t):i.data[o];_n(s,!0);const a=j_(i,r,s,e);return r[o]=a,Pa()&&Ja(i,r,a,s),rt(a,r),Ma(s)&&(lf(i,r,s),af(i,s,r)),null!=t&&cf(r,s),fs}function hs(){let e=Xe();const n=te();return Zu()?Ku():(e=e.parent,_n(e,!1)),n.firstCreatePass&&(Oa(n,e),ju(e)&&n.queries.elementEnd(e)),hs}let j_=(e,n,t,r)=>(cr(!0),Cd(n[G],""));function mt(){return E()}function ps(e){return!!e&&"function"==typeof e.then}function B_(e){return!!e&&"function"==typeof e.subscribe}function Y(e,n,t,r){const i=E(),o=te(),s=Xe();return function H_(e,n,t,r,i,o,s){const a=Ma(r),c=e.firstCreatePass&&a_(e),u=n[Pe],d=s_(n);let f=!0;if(3&r.type||s){const g=Et(r,n),y=s?s(g):g,w=d.length,v=s?O=>s(ve(O[r.index])):r.index;let S=null;if(!s&&a&&(S=function FO(e,n,t,r){const i=e.cleanup;if(null!=i)for(let o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(e,n,i,r.index)),null!==S)(S.__ngLastListenerFn__||S).__ngNextListenerFn__=o,S.__ngLastListenerFn__=o,f=!1;else{o=z_(r,n,u,o,!1);const O=t.listen(y,i,o);d.push(o,O),c&&c.push(i,v,w,w+1)}}else o=z_(r,n,u,o,!1);const h=r.outputs;let p;if(f&&null!==h&&(p=h[i])){const g=p.length;if(g)for(let y=0;y-1?Nt(e.index,n):n);let l=U_(n,t,r,s),c=o.__ngNextListenerFn__;for(;c;)l=U_(n,t,c,s)&&l,c=c.__ngNextListenerFn__;return i&&!1===l&&s.preventDefault(),l}}function H(e=1){return function gT(e){return(j.lFrame.contextLView=function mT(e,n){for(;e>0;)n=n[di],e--;return n}(e,j.lFrame.contextLView))[Pe]}(e)}function Ef(e,n,t){return Mf(e,"",n,"",t),Ef}function Mf(e,n,t,r,i){const o=E(),s=Bi(o,n,t,r);return s!==q&&jt(te(),Me(),o,e,s,o[G],i,!1),Mf}function Tl(e,n){return e<<17|n<<2}function fr(e){return e>>17&32767}function Sf(e){return 2|e}function Hr(e){return(131068&e)>>2}function If(e,n){return-131069&e|n<<2}function Tf(e){return 1|e}function J_(e,n,t,r,i){const o=e[t+1],s=null===n;let a=r?fr(o):Hr(o),l=!1;for(;0!==a&&(!1===l||s);){const u=e[a+1];GO(e[a],n)&&(l=!0,e[a+1]=r?Tf(u):Sf(u)),a=r?fr(u):Hr(u)}l&&(e[t+1]=r?Sf(o):Tf(o))}function GO(e,n){return null===e||null==n||(Array.isArray(e)?e[1]:e)===n||!(!Array.isArray(e)||"string"!=typeof n)&&Mi(e,n)>=0}const He={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function eC(e){return e.substring(He.key,He.keyEnd)}function tC(e,n){const t=He.textEnd;return t===n?-1:(n=He.keyEnd=function ZO(e,n,t){for(;n32;)n++;return n}(e,He.key=n,t),Qi(e,n,t))}function Qi(e,n,t){for(;n=0;t=tC(n,t))Rt(e,eC(n),!0)}function sn(e,n,t,r){const i=E(),o=te(),s=Ln(2);o.firstUpdatePass&&aC(o,e,s,r),n!==q&&ot(i,s,n)&&cC(o,o.data[ht()],i,i[G],e,i[s+1]=function sx(e,n){return null==e||""===e||("string"==typeof n?e+=n:"object"==typeof e&&(e=Ve(kt(e)))),e}(n,t),r,s)}function sC(e,n){return n>=e.expandoStartIndex}function aC(e,n,t,r){const i=e.data;if(null===i[t+1]){const o=i[ht()],s=sC(e,t);dC(o,r)&&null===n&&!s&&(n=!1),n=function JO(e,n,t,r){const i=Xu(e);let o=r?n.residualClasses:n.residualStyles;if(null===i)0===(r?n.classBindings:n.styleBindings)&&(t=ms(t=Af(null,e,n,t,r),n.attrs,r),o=null);else{const s=n.directiveStylingLast;if(-1===s||e[s]!==i)if(t=Af(i,e,n,t,r),null===o){let l=function ex(e,n,t){const r=t?n.classBindings:n.styleBindings;if(0!==Hr(r))return e[fr(r)]}(e,n,r);void 0!==l&&Array.isArray(l)&&(l=Af(null,e,n,l[1],r),l=ms(l,n.attrs,r),function tx(e,n,t,r){e[fr(t?n.classBindings:n.styleBindings)]=r}(e,n,r,l))}else o=function nx(e,n,t){let r;const i=n.directiveEnd;for(let o=1+n.directiveStylingLast;o0)&&(c=!0)):u=t,i)if(0!==l){const f=fr(e[a+1]);e[r+1]=Tl(f,a),0!==f&&(e[f+1]=If(e[f+1],r)),e[a+1]=function $O(e,n){return 131071&e|n<<17}(e[a+1],r)}else e[r+1]=Tl(a,0),0!==a&&(e[a+1]=If(e[a+1],r)),a=r;else e[r+1]=Tl(l,0),0===a?a=r:e[l+1]=If(e[l+1],r),l=r;c&&(e[r+1]=Sf(e[r+1])),J_(e,u,r,!0),J_(e,u,r,!1),function zO(e,n,t,r,i){const o=i?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof n&&Mi(o,n)>=0&&(t[r+1]=Tf(t[r+1]))}(n,u,e,r,o),s=Tl(a,l),o?n.classBindings=s:n.styleBindings=s}(i,o,n,t,s,r)}}function Af(e,n,t,r,i){let o=null;const s=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a0;){const l=e[i],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let f=t[i+1];f===q&&(f=d?re:void 0);let h=d?ud(f,r):u===r?f:void 0;if(c&&!Al(h)&&(h=ud(l,r)),Al(h)&&(a=h,s))return a;const p=e[i+1];i=s?fr(p):Hr(p)}if(null!==n){let l=o?n.residualClasses:n.residualStyles;null!=l&&(a=ud(l,r))}return a}function Al(e){return void 0!==e}function dC(e,n){return 0!=(e.flags&(n?8:16))}function b(e,n=""){const t=E(),r=te(),i=e+J,o=r.firstCreatePass?Vi(r,i,1,n,null):r.data[i],s=fC(r,t,o,n,e);t[i]=s,Pa()&&Ja(r,t,s,o),_n(o,!1)}let fC=(e,n,t,r,i)=>(cr(!0),function Za(e,n){return e.createText(n)}(n[G],r));function xe(e){return oe("",e,""),xe}function oe(e,n,t){const r=E(),i=Bi(r,e,n,t);return i!==q&&Hn(r,ht(),i),oe}function Pl(e,n,t,r,i){const o=E(),s=$i(o,e,n,t,r,i);return s!==q&&Hn(o,ht(),s),Pl}function Pf(e,n,t){const r=E();if(ot(r,yi(),n)){const o=te(),s=Me();jt(o,s,r,e,n,l_(Xu(o.data),s,r),t,!0)}return Pf}const Yi="en-US";let xC=Yi;function Nf(e,n,t,r,i){if(e=B(e),Array.isArray(e))for(let o=0;o>20;if(jr(e)||!e.multi){const h=new Vo(c,i,D),p=kf(l,n,i?u:u+f,d);-1===p?(ad(ka(a,s),o,l),Rf(o,e,n.length),n.push(l),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),t.push(h),s.push(h)):(t[p]=h,s[p]=h)}else{const h=kf(l,n,u+f,d),p=kf(l,n,u,u+f),y=p>=0&&t[p];if(i&&!y||!i&&!(h>=0&&t[h])){ad(ka(a,s),o,l);const w=function IN(e,n,t,r,i){const o=new Vo(e,t,D);return o.multi=[],o.index=n,o.componentProviders=0,rD(o,i,r&&!t),o}(i?SN:MN,t.length,i,r,c);!i&&y&&(t[p].providerFactory=w),Rf(o,e,n.length,0),n.push(l),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),t.push(w),s.push(w)}else Rf(o,e,h>-1?h:p,rD(t[i?p:h],c,!i&&r));!i&&r&&y&&t[p].componentProviders++}}}function Rf(e,n,t,r){const i=jr(n),o=function gP(e){return!!e.useClass}(n);if(i||o){const l=(o?B(n.useClass):n).prototype.ngOnDestroy;if(l){const c=e.destroyHooks||(e.destroyHooks=[]);if(!i&&n.multi){const u=c.indexOf(t);-1===u?c.push(t,[r,l]):c[u+1].push(r,l)}else c.push(t,l)}}}function rD(e,n,t){return t&&e.componentProviders++,e.multi.push(n)-1}function kf(e,n,t,r){for(let i=t;i{t.providersResolver=(r,i)=>function EN(e,n,t){const r=te();if(r.firstCreatePass){const i=on(e);Nf(t,r.data,r.blueprint,i,!0),Nf(n,r.data,r.blueprint,i,!1)}}(r,i?i(e):e,n)}}class zr{}class iD{}class Lf extends zr{constructor(n,t,r){super(),this._parent=t,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new m_(this);const i=Ot(n);this._bootstrapComponents=$n(i.bootstrap),this._r3Injector=Tv(n,t,[{provide:zr,useValue:this},{provide:es,useValue:this.componentFactoryResolver},...r],Ve(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class Vf extends iD{constructor(n){super(),this.moduleType=n}create(n){return new Lf(this.moduleType,n,[])}}class oD extends zr{constructor(n){super(),this.componentFactoryResolver=new m_(this),this.instance=null;const t=new Oi([...n.providers,{provide:zr,useValue:this},{provide:es,useValue:this.componentFactoryResolver}],n.parent||ll(),n.debugName,new Set(["environment"]));this.injector=t,n.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function jf(e,n,t=null){return new oD({providers:e,parent:n,debugName:t,runEnvironmentInitializers:!0}).injector}let PN=(()=>{class e{constructor(t){this._injector=t,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t)){const r=dv(0,t.type),i=r.length>0?jf([r],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t,i)}return this.cachedInjectors.get(t)}ngOnDestroy(){try{for(const t of this.cachedInjectors.values())null!==t&&t.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=x({token:e,providedIn:"environment",factory:()=>new e(I(Lt))})}return e})();function kl(e){e.getStandaloneInjector=n=>n.get(PN).getOrCreateStandaloneInjector(e)}function $f(e,n,t,r){return function hD(e,n,t,r,i,o){const s=n+t;return ot(e,s,i)?bn(e,s+1,o?r.call(o,i):r(i)):function ws(e,n){const t=e[n];return t===q?void 0:t}(e,s+1)}(E(),ft(),e,n,t,r)}function eR(){return this._results[Symbol.iterator]()}class Hf{static#e=Symbol.iterator;get changes(){return this._changes||(this._changes=new _e)}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=Hf.prototype;t[Symbol.iterator]||(t[Symbol.iterator]=eR)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,t){return this._results.reduce(n,t)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,t){const r=this;r.dirty=!1;const i=function Kt(e){return e.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function jT(e,n,t){if(e.length!==n.length)return!1;for(let r=0;r0&&(t[i-1][rn]=n),r{class e{static#e=this.__NG_ELEMENT_ID__=oR}return e})();const rR=zn,iR=class extends rR{constructor(n,t,r){super(),this._declarationLView=n,this._declarationTContainer=t,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,t){return this.createEmbeddedViewImpl(n,t)}createEmbeddedViewImpl(n,t,r){const i=function tR(e,n,t,r){const i=n.tView,a=vl(e,i,t,4096&e[W]?4096:16,null,n,null,null,null,r?.injector??null,r?.hydrationInfo??null);a[Oo]=e[n.index];const c=e[mn];return null!==c&&(a[mn]=c.createEmbeddedView(i)),mf(i,a,t),a}(this._declarationLView,this._declarationTContainer,n,{injector:t,hydrationInfo:r});return new ss(i)}};function oR(){return Fl(Xe(),E())}function Fl(e,n){return 4&e.type?new iR(n,e,ki(e,n)):null}let ln=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=dR}return e})();function dR(){return ED(Xe(),E())}const fR=ln,wD=class extends fR{constructor(n,t,r){super(),this._lContainer=n,this._hostTNode=t,this._hostLView=r}get element(){return ki(this._hostTNode,this._hostLView)}get injector(){return new pt(this._hostTNode,this._hostLView)}get parentInjector(){const n=Fa(this._hostTNode,this._hostLView);if(id(n)){const t=Bo(n,this._hostLView),r=jo(n);return new pt(t[A].data[r+8],t)}return new pt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const t=bD(this._lContainer);return null!==t&&t[n]||null}get length(){return this._lContainer.length-Ke}createEmbeddedView(n,t,r){let i,o;"number"==typeof r?i=r:null!=r&&(i=r.index,o=r.injector);const a=n.createEmbeddedViewImpl(t||{},o,null);return this.insertImpl(a,i,false),a}createComponent(n,t,r,i,o){const s=n&&!function Ho(e){return"function"==typeof e}(n);let a;if(s)a=t;else{const g=t||{};a=g.index,r=g.injector,i=g.projectableNodes,o=g.environmentInjector||g.ngModuleRef}const l=s?n:new as(ee(n)),c=r||this.parentInjector;if(!o&&null==l.ngModule){const y=(s?c:this.parentInjector).get(Lt,null);y&&(o=y)}ee(l.componentType??{});const h=l.create(c,i,null,o);return this.insertImpl(h.hostView,a,false),h}insert(n,t){return this.insertImpl(n,t,!1)}insertImpl(n,t,r){const i=n._lView;if(function JI(e){return dt(e[be])}(i)){const l=this.indexOf(n);if(-1!==l)this.detach(l);else{const c=i[be],u=new wD(c,c[nt],c[be]);u.detach(u.indexOf(n))}}const s=this._adjustIndex(t),a=this._lContainer;return nR(a,i,s,!r),n.attachToViewContainerRef(),hy(Uf(a),s,n),n}move(n,t){return this.insert(n,t)}indexOf(n){const t=bD(this._lContainer);return null!==t?t.indexOf(n):-1}remove(n){const t=this._adjustIndex(n,-1),r=Ya(this._lContainer,t);r&&(ja(Uf(this._lContainer),t),Dd(r[A],r))}detach(n){const t=this._adjustIndex(n,-1),r=Ya(this._lContainer,t);return r&&null!=ja(Uf(this._lContainer),t)?new ss(r):null}_adjustIndex(n,t=0){return n??this.length+t}};function bD(e){return e[8]}function Uf(e){return e[8]||(e[8]=[])}function ED(e,n){let t;const r=n[e.index];return dt(r)?t=r:(t=i_(r,n,null,e),n[e.index]=t,_l(n,t)),MD(t,n,e,r),new wD(t,e,n)}let MD=function SD(e,n,t,r){if(e[yn])return;let i;i=8&t.type?ve(r):function hR(e,n){const t=e[G],r=t.createComment(""),i=Et(n,e);return Lr(t,Xa(t,i),r,function NA(e,n){return e.nextSibling(n)}(t,i),!1),r}(n,t),e[yn]=i};class zf{constructor(n){this.queryList=n,this.matches=null}clone(){return new zf(this.queryList)}setDirty(){this.queryList.setDirty()}}class Gf{constructor(n=[]){this.queries=n}createEmbeddedView(n){const t=n.queries;if(null!==t){const r=null!==n.contentQueries?n.contentQueries[0]:t.length,i=[];for(let o=0;o0)r.push(s[a/2]);else{const c=o[a+1],u=n[-l];for(let d=Ke;d{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,r)=>{this.resolve=t,this.reject=r}),this.appInits=T(nh,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const t=[];for(const i of this.appInits){const o=i();if(ps(o))t.push(o);else if(B_(o)){const s=new Promise((a,l)=>{o.subscribe({complete:a,error:l})});t.push(s)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(t).then(()=>{r()}).catch(i=>{this.reject(i)}),0===t.length&&r(),this.initialized=!0}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),KD=(()=>{class e{log(t){console.log(t)}warn(t){console.warn(t)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();const Gn=new P("LocaleId",{providedIn:"root",factory:()=>T(Gn,X.Optional|X.SkipSelf)||function UR(){return typeof $localize<"u"&&$localize.locale||Yi}()});let jl=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Gt(!1)}add(){this.hasPendingTasks.next(!0);const t=this.taskId++;return this.pendingTasks.add(t),t}remove(t){this.pendingTasks.delete(t),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class qR{constructor(n,t){this.ngModuleFactory=n,this.componentFactories=t}}let YD=(()=>{class e{compileModuleSync(t){return new Vf(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){const r=this.compileModuleSync(t),o=$n(Ot(t).declarations).reduce((s,a)=>{const l=ee(a);return l&&s.push(new as(l)),s},[]);return new qR(r,o)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const tw=new P(""),$l=new P("");let lh,sh=(()=>{class e{constructor(t,r,i){this._ngZone=t,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,lh||(function pk(e){lh=e}(i),i.addToWindow(r)),this._watchAngularEvents(),t.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:()=>{ce.assertNotInAngularZone(),queueMicrotask(()=>{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())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(t)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,r,i){let o=-1;r&&r>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),t(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:t,timeoutId:o,updateCb:i})}whenStable(t,r,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,r,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,r,i){return[]}static#e=this.\u0275fac=function(r){return new(r||e)(I(ce),I(ah),I($l))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})(),ah=(()=>{class e{constructor(){this._applications=new Map}registerApplication(t,r){this._applications.set(t,r)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,r=!0){return lh?.findTestabilityInTree(this,t,r)??null}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),hr=null;const nw=new P("AllowMultipleToken"),ch=new P("PlatformDestroyListeners"),uh=new P("appBootstrapListener");class iw{constructor(n,t){this.name=n,this.token=t}}function sw(e,n,t=[]){const r=`Platform: ${n}`,i=new P(r);return(o=[])=>{let s=dh();if(!s||s.injector.get(nw,!1)){const a=[...t,...o,{provide:i,useValue:!0}];e?e(a):function yk(e){if(hr&&!hr.get(nw,!1))throw new C(400,!1);(function rw(){!function VI(e){Mm=e}(()=>{throw new C(600,!1)})})(),hr=e;const n=e.get(lw);(function ow(e){e.get(mv,null)?.forEach(t=>t())})(e)}(function aw(e=[],n){return it.create({name:n,providers:[{provide:Ld,useValue:"platform"},{provide:ch,useValue:new Set([()=>hr=null])},...e]})}(a,r))}return function _k(e){const n=dh();if(!n)throw new C(401,!1);return n}()}}function dh(){return hr?.get(lw)??null}let lw=(()=>{class e{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,r){const i=function Ck(e="zone.js",n){return"noop"===e?new XP:"zone.js"===e?new ce(n):e}(r?.ngZone,function cw(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return i.run(()=>{const o=function AN(e,n,t){return new Lf(e,n,t)}(t.moduleType,this.injector,function pw(e){return[{provide:ce,useFactory:e},{provide:Yo,multi:!0,useFactory:()=>{const n=T(wk,{optional:!0});return()=>n.initialize()}},{provide:hw,useFactory:Dk},{provide:Nv,useFactory:Rv}]}(()=>i)),s=o.injector.get(Bn,null);return i.runOutsideAngular(()=>{const a=i.onError.subscribe({next:l=>{s.handleError(l)}});o.onDestroy(()=>{Hl(this._modules,o),a.unsubscribe()})}),function uw(e,n,t){try{const r=t();return ps(r)?r.catch(i=>{throw n.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw n.runOutsideAngular(()=>e.handleError(r)),r}}(s,i,()=>{const a=o.injector.get(rh);return a.runInitializers(),a.donePromise.then(()=>(function NC(e){Wt(e,"Expected localeId to be defined"),"string"==typeof e&&(xC=e.toLowerCase().replace(/_/g,"-"))}(o.injector.get(Gn,Yi)||Yi),this._moduleDoBootstrap(o),o))})})}bootstrapModule(t,r=[]){const i=dw({},r);return function gk(e,n,t){const r=new Vf(t);return Promise.resolve(r)}(0,0,t).then(o=>this.bootstrapModuleFactory(o,i))}_moduleDoBootstrap(t){const r=t.injector.get(qn);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!t.instance.ngDoBootstrap)throw new C(-403,!1);t.instance.ngDoBootstrap(r)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}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 t=this._injector.get(ch,null);t&&(t.forEach(r=>r()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(r){return new(r||e)(I(it))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function dw(e,n){return Array.isArray(n)?n.reduce(dw,e):{...e,...n}}let qn=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=T(hw),this.zoneIsStable=T(Nv),this.componentTypes=[],this.components=[],this.isStable=T(jl).hasPendingTasks.pipe(qt(t=>t?L(!1):this.zoneIsStable),function WS(e,n=nr){return e=e??QS,Fe((t,r)=>{let i,o=!0;t.subscribe(Re(r,s=>{const a=n(s);(o||!e(i,a))&&(o=!1,i=a,r.next(s))}))})}(),zg()),this._injector=T(Lt)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(t,r){const i=t instanceof wv;if(!this._injector.get(rh).done)throw!i&&function li(e){const n=ee(e)||Ze(e)||ut(e);return null!==n&&n.standalone}(t),new C(405,!1);let s;s=i?t:this._injector.get(es).resolveComponentFactory(t),this.componentTypes.push(s.componentType);const a=function mk(e){return e.isBoundToModule}(s)?void 0:this._injector.get(zr),c=s.create(it.NULL,[],r||s.selector,a),u=c.location.nativeElement,d=c.injector.get(tw,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),Hl(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new C(101,!1);try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this.internalErrorHandler(t)}finally{this._runningTick=!1}}attachView(t){const r=t;this._views.push(r),r.attachToAppRef(this)}detachView(t){const r=t;Hl(this._views,r),r.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t);const r=this._injector.get(uh,[]);r.push(...this._bootstrapListeners),r.forEach(i=>i(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>Hl(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new C(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Hl(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}const hw=new P("",{providedIn:"root",factory:()=>T(Bn).handleError.bind(void 0)});function Dk(){const e=T(ce),n=T(Bn);return t=>e.runOutsideAngular(()=>n.handleError(t))}let wk=(()=>{class e{constructor(){this.zone=T(ce),this.applicationRef=T(qn)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();let Ul=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=Ek}return e})();function Ek(e){return function Mk(e,n,t){if(Nr(e)&&!t){const r=Nt(e.index,n);return new ss(r,r)}return 47&e.type?new ss(n[Oe],n):null}(Xe(),E(),16==(16&e))}class _w{constructor(){}supports(n){return bl(n)}create(n){return new Pk(n)}}const Ak=(e,n)=>n;class Pk{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||Ak}forEachItem(n){let t;for(t=this._itHead;null!==t;t=t._next)n(t)}forEachOperation(n){let t=this._itHead,r=this._removalsHead,i=0,o=null;for(;t||r;){const s=!r||t&&t.currentIndex{s=this._trackByFn(i,a),null!==t&&Object.is(t.trackById,s)?(r&&(t=this._verifyReinsertion(t,a,s,i)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,s,i),r=!0),t=t._next,i++}),this.length=i;return this._truncate(t),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,t,r,i){let o;return null===n?o=this._itTail:(o=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._reinsertAfter(n,o,i)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(r,i))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._moveAfter(n,o,i)):n=this._addAfter(new Ok(t,r),o,i),n}_verifyReinsertion(n,t,r,i){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==o?n=this._reinsertAfter(o,n._prev,i):n.currentIndex!=i&&(n.currentIndex=i,this._addToMoves(n,i)),n}_truncate(n){for(;null!==n;){const t=n._next;this._addToRemovals(this._unlink(n)),n=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,t,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const i=n._prevRemoved,o=n._nextRemoved;return null===i?this._removalsHead=o:i._nextRemoved=o,null===o?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(n,t,r),this._addToMoves(n,r),n}_moveAfter(n,t,r){return this._unlink(n),this._insertAfter(n,t,r),this._addToMoves(n,r),n}_addAfter(n,t,r){return this._insertAfter(n,t,r),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,t,r){const i=null===t?this._itHead:t._next;return n._next=i,n._prev=t,null===i?this._itTail=n:i._prev=n,null===t?this._itHead=n:t._next=n,null===this._linkedRecords&&(this._linkedRecords=new Cw),this._linkedRecords.put(n),n.currentIndex=r,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const t=n._prev,r=n._next;return null===t?this._itHead=r:t._next=r,null===r?this._itTail=t:r._prev=t,n}_addToMoves(n,t){return n.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Cw),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,t){return n.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class Ok{constructor(n,t){this.item=n,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class xk{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,t){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===t||t<=r.currentIndex)&&Object.is(r.trackById,n))return r;return null}remove(n){const t=n._prevDup,r=n._nextDup;return null===t?this._head=r:t._nextDup=r,null===r?this._tail=t:r._prevDup=t,null===this._head}}class Cw{constructor(){this.map=new Map}put(n){const t=n.trackById;let r=this.map.get(t);r||(r=new xk,this.map.set(t,r)),r.add(n)}get(n,t){const i=this.map.get(n);return i?i.get(n,t):null}remove(n){const t=n.trackById;return this.map.get(t).remove(n)&&this.map.delete(t),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Dw(e,n,t){const r=e.previousIndex;if(null===r)return r;let i=0;return t&&r{if(t&&t.key===i)this._maybeAddToChanges(t,r),this._appendAfter=t,t=t._next;else{const o=this._getOrCreateRecordForKey(i,r);t=this._insertBeforeOrAppend(t,o)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let r=t;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,t){if(n){const r=n._prev;return t._next=n,t._prev=r,n._prev=t,r&&(r._next=t),n===this._mapHead&&(this._mapHead=t),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(n,t){if(this._records.has(n)){const i=this._records.get(n);this._maybeAddToChanges(i,t);const o=i._prev,s=i._next;return o&&(o._next=s),s&&(s._prev=o),i._next=null,i._prev=null,i}const r=new Rk(n);return this._records.set(n,r),r.currentValue=t,this._addToAdditions(r),r}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,t){Object.is(t,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=t,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,t){n instanceof Map?n.forEach(t):Object.keys(n).forEach(r=>t(n[r],r))}}class Rk{constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function bw(){return new ql([new _w])}let ql=(()=>{class e{static#e=this.\u0275prov=x({token:e,providedIn:"root",factory:bw});constructor(t){this.factories=t}static create(t,r){if(null!=r){const i=r.factories.slice();t=t.concat(i)}return new e(t)}static extend(t){return{provide:e,useFactory:r=>e.create(t,r||bw()),deps:[[e,new Ha,new $a]]}}find(t){const r=this.factories.find(i=>i.supports(t));if(null!=r)return r;throw new C(901,!1)}}return e})();function Ew(){return new Ss([new ww])}let Ss=(()=>{class e{static#e=this.\u0275prov=x({token:e,providedIn:"root",factory:Ew});constructor(t){this.factories=t}static create(t,r){if(r){const i=r.factories.slice();t=t.concat(i)}return new e(t)}static extend(t){return{provide:e,useFactory:r=>e.create(t,r||Ew()),deps:[[e,new Ha,new $a]]}}find(t){const r=this.factories.find(i=>i.supports(t));if(r)return r;throw new C(901,!1)}}return e})();const Lk=sw(null,"core",[]);let Vk=(()=>{class e{constructor(t){}static#e=this.\u0275fac=function(r){return new(r||e)(I(qn))};static#t=this.\u0275mod=tt({type:e});static#n=this.\u0275inj=Qe({})}return e})();function eo(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}let yh=null;function pr(){return yh}class Xk{}const Ue=new P("DocumentToken");let vh=(()=>{class e{historyGo(t){throw new Error("Not implemented")}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:function(){return T(eF)},providedIn:"platform"})}return e})();const Jk=new P("Location Initialized");let eF=(()=>{class e extends vh{constructor(){super(),this._doc=T(Ue),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return pr().getBaseHref(this._doc)}onPopState(t){const r=pr().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",t,!1),()=>r.removeEventListener("popstate",t)}onHashChange(t){const r=pr().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",t,!1),()=>r.removeEventListener("hashchange",t)}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(t){this._location.pathname=t}pushState(t,r,i){this._history.pushState(t,r,i)}replaceState(t,r,i){this._history.replaceState(t,r,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:function(){return new e},providedIn:"platform"})}return e})();function _h(e,n){if(0==e.length)return n;if(0==n.length)return e;let t=0;return e.endsWith("/")&&t++,n.startsWith("/")&&t++,2==t?e+n.substring(1):1==t?e+n:e+"/"+n}function Nw(e){const n=e.match(/#|\?|$/),t=n&&n.index||e.length;return e.slice(0,t-("/"===e[t-1]?1:0))+e.slice(t)}function Wn(e){return e&&"?"!==e[0]?"?"+e:e}let gr=(()=>{class e{historyGo(t){throw new Error("Not implemented")}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:function(){return T(kw)},providedIn:"root"})}return e})();const Rw=new P("appBaseHref");let kw=(()=>{class e extends gr{constructor(t,r){super(),this._platformLocation=t,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??T(Ue).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return _h(this._baseHref,t)}path(t=!1){const r=this._platformLocation.pathname+Wn(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?`${r}${i}`:r}pushState(t,r,i,o){const s=this.prepareExternalUrl(i+Wn(o));this._platformLocation.pushState(t,r,s)}replaceState(t,r,i,o){const s=this.prepareExternalUrl(i+Wn(o));this._platformLocation.replaceState(t,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static#e=this.\u0275fac=function(r){return new(r||e)(I(vh),I(Rw,8))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Fw=(()=>{class e extends gr{constructor(t,r){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(t){const r=_h(this._baseHref,t);return r.length>0?"#"+r:r}pushState(t,r,i,o){let s=this.prepareExternalUrl(i+Wn(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,r,s)}replaceState(t,r,i,o){let s=this.prepareExternalUrl(i+Wn(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static#e=this.\u0275fac=function(r){return new(r||e)(I(vh),I(Rw,8))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})(),Ch=(()=>{class e{constructor(t){this._subject=new _e,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=t;const r=this._locationStrategy.getBaseHref();this._basePath=function rF(e){if(new RegExp("^(https?:)?//").test(e)){const[,t]=e.split(/\/\/[^\/]+/);return t}return e}(Nw(Lw(r))),this._locationStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,r=""){return this.path()==this.normalize(t+Wn(r))}normalize(t){return e.stripTrailingSlash(function nF(e,n){if(!e||!n.startsWith(e))return n;const t=n.substring(e.length);return""===t||["/",";","?","#"].includes(t[0])?t:n}(this._basePath,Lw(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,r="",i=null){this._locationStrategy.pushState(i,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Wn(r)),i)}replaceState(t,r="",i=null){this._locationStrategy.replaceState(i,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Wn(r)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)})),()=>{const r=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",r){this._urlChangeListeners.forEach(i=>i(t,r))}subscribe(t,r,i){return this._subject.subscribe({next:t,error:r,complete:i})}static#e=this.normalizeQueryParams=Wn;static#t=this.joinWithSlash=_h;static#n=this.stripTrailingSlash=Nw;static#r=this.\u0275fac=function(r){return new(r||e)(I(gr))};static#i=this.\u0275prov=x({token:e,factory:function(){return function tF(){return new Ch(I(gr))}()},providedIn:"root"})}return e})();function Lw(e){return e.replace(/\/index.html$/,"")}function qw(e,n){n=encodeURIComponent(n);for(const t of e.split(";")){const r=t.indexOf("="),[i,o]=-1==r?[t,""]:[t.slice(0,r),t.slice(r+1)];if(i.trim()===n)return decodeURIComponent(o)}return null}class UF{constructor(n,t,r,i){this.$implicit=n,this.ngForOf=t,this.index=r,this.count=i}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let no=(()=>{class e{set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}constructor(t,r,i){this._viewContainer=t,this._template=r,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const r=this._viewContainer;t.forEachOperation((i,o,s)=>{if(null==i.previousIndex)r.createEmbeddedView(this._template,new UF(i.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)r.remove(null===o?void 0:o);else if(null!==o){const a=r.get(o);r.move(a,s),Zw(a,i)}});for(let i=0,o=r.length;i{Zw(r.get(i.currentIndex),i)})}static ngTemplateContextGuard(t,r){return!0}static#e=this.\u0275fac=function(r){return new(r||e)(D(ln),D(zn),D(ql))};static#t=this.\u0275dir=$({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return e})();function Zw(e,n){e.context.$implicit=n.item}let mr=(()=>{class e{constructor(t,r){this._viewContainer=t,this._context=new zF,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){Kw("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Kw("ngIfElse",t),this._elseTemplateRef=t,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(t,r){return!0}static#e=this.\u0275fac=function(r){return new(r||e)(D(ln),D(zn))};static#t=this.\u0275dir=$({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return e})();class zF{constructor(){this.$implicit=null,this.ngIf=null}}function Kw(e,n){if(n&&!n.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Ve(n)}'.`)}let Nh=(()=>{class e{constructor(t,r,i){this._ngEl=t,this._differs=r,this._renderer=i,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,r){const[i,o]=t.split("."),s=-1===i.indexOf("-")?void 0:ur.DashCase;null!=r?this._renderer.setStyle(this._ngEl.nativeElement,i,o?`${r}${o}`:r,s):this._renderer.removeStyle(this._ngEl.nativeElement,i,s)}_applyChanges(t){t.forEachRemovedItem(r=>this._setStyle(r.key,null)),t.forEachAddedItem(r=>this._setStyle(r.key,r.currentValue)),t.forEachChangedItem(r=>this._setStyle(r.key,r.currentValue))}static#e=this.\u0275fac=function(r){return new(r||e)(D(Vt),D(Ss),D(jn))};static#t=this.\u0275dir=$({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}return e})(),Fh=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=tt({type:e});static#n=this.\u0275inj=Qe({})}return e})();function eb(e){return"server"===e}let _2=(()=>{class e{static#e=this.\u0275prov=x({token:e,providedIn:"root",factory:()=>new C2(I(Ue),window)})}return e})();class C2{constructor(n,t){this.document=n,this.window=t,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const t=function D2(e,n){const t=e.getElementById(n)||e.getElementsByName(n)[0];if(t)return t;if("function"==typeof e.createTreeWalker&&e.body&&"function"==typeof e.body.attachShadow){const r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let i=r.currentNode;for(;i;){const o=i.shadowRoot;if(o){const s=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(s)return s}i=r.nextNode()}}return null}(this.document,n);t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(n){this.supportsScrolling()&&(this.window.history.scrollRestoration=n)}scrollToElement(n){const t=n.getBoundingClientRect(),r=t.left+this.window.pageXOffset,i=t.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(r-o[0],i-o[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class tb{}class z2 extends Xk{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class jh extends z2{static makeCurrent(){!function Yk(e){yh||(yh=e)}(new jh)}onAndCancel(n,t,r){return n.addEventListener(t,r),()=>{n.removeEventListener(t,r)}}dispatchEvent(n,t){n.dispatchEvent(t)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,t){return(t=t||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,t){return"window"===t?window:"document"===t?n:"body"===t?n.body:null}getBaseHref(n){const t=function G2(){return Ps=Ps||document.querySelector("base"),Ps?Ps.getAttribute("href"):null}();return null==t?null:function q2(e){sc=sc||document.createElement("a"),sc.setAttribute("href",e);const n=sc.pathname;return"/"===n.charAt(0)?n:`/${n}`}(t)}resetBaseElement(){Ps=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return qw(document.cookie,n)}}let sc,Ps=null,Q2=(()=>{class e{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})();const Bh=new P("EventManagerPlugins");let sb=(()=>{class e{constructor(t,r){this._zone=r,this._eventNameToPlugin=new Map,t.forEach(i=>{i.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,r,i){return this._findPluginFor(r).addEventListener(t,r,i)}getZone(){return this._zone}_findPluginFor(t){let r=this._eventNameToPlugin.get(t);if(r)return r;if(r=this._plugins.find(o=>o.supports(t)),!r)throw new C(5101,!1);return this._eventNameToPlugin.set(t,r),r}static#e=this.\u0275fac=function(r){return new(r||e)(I(Bh),I(ce))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})();class ab{constructor(n){this._doc=n}}const $h="ng-app-id";let lb=(()=>{class e{constructor(t,r,i,o={}){this.doc=t,this.appId=r,this.nonce=i,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=eb(o),this.resetHostNodes()}addStyles(t){for(const r of t)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(t){for(const r of t)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const t=this.styleNodesInDOM;t&&(t.forEach(r=>r.remove()),t.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(const r of this.getAllStyles())this.addStyleToHost(t,r)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(const r of this.hostNodes)this.addStyleToHost(r,t)}onStyleRemoved(t){const r=this.styleRef;r.get(t)?.elements?.forEach(i=>i.remove()),r.delete(t)}collectServerRenderedStyles(){const t=this.doc.head?.querySelectorAll(`style[${$h}="${this.appId}"]`);if(t?.length){const r=new Map;return t.forEach(i=>{null!=i.textContent&&r.set(i.textContent,i)}),r}return null}changeUsageCount(t,r){const i=this.styleRef;if(i.has(t)){const o=i.get(t);return o.usage+=r,o.usage}return i.set(t,{usage:r,elements:[]}),r}getStyleElement(t,r){const i=this.styleNodesInDOM,o=i?.get(r);if(o?.parentNode===t)return i.delete(r),o.removeAttribute($h),o;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute($h,this.appId),s}}addStyleToHost(t,r){const i=this.getStyleElement(t,r);t.appendChild(i);const o=this.styleRef,s=o.get(r)?.elements;s?s.push(i):o.set(r,{elements:[i],usage:1})}resetHostNodes(){const t=this.hostNodes;t.clear(),t.add(this.doc.head)}static#e=this.\u0275fac=function(r){return new(r||e)(I(Ue),I(cl),I(vv,8),I(Br))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})();const Hh={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/"},Uh=/%COMP%/g,X2=new P("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function ub(e,n){return n.map(t=>t.replace(Uh,e))}let zh=(()=>{class e{constructor(t,r,i,o,s,a,l,c=null){this.eventManager=t,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=l,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=eb(a),this.defaultRenderer=new Gh(t,s,l,this.platformIsServer)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Qt.ShadowDom&&(r={...r,encapsulation:Qt.Emulated});const i=this.getOrCreateRenderer(t,r);return i instanceof fb?i.applyToHost(t):i instanceof qh&&i.applyStyles(),i}getOrCreateRenderer(t,r){const i=this.rendererByCompId;let o=i.get(r.id);if(!o){const s=this.doc,a=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case Qt.Emulated:o=new fb(l,c,r,this.appId,u,s,a,d);break;case Qt.ShadowDom:return new nL(l,c,t,r,s,a,this.nonce,d);default:o=new qh(l,c,r,u,s,a,d)}i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(r){return new(r||e)(I(sb),I(lb),I(cl),I(X2),I(Ue),I(Br),I(ce),I(vv))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})();class Gh{constructor(n,t,r,i){this.eventManager=n,this.doc=t,this.ngZone=r,this.platformIsServer=i,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,t){return t?this.doc.createElementNS(Hh[t]||t,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,t){(db(n)?n.content:n).appendChild(t)}insertBefore(n,t,r){n&&(db(n)?n.content:n).insertBefore(t,r)}removeChild(n,t){n&&n.removeChild(t)}selectRootElement(n,t){let r="string"==typeof n?this.doc.querySelector(n):n;if(!r)throw new C(-5104,!1);return t||(r.textContent=""),r}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,t,r,i){if(i){t=i+":"+t;const o=Hh[i];o?n.setAttributeNS(o,t,r):n.setAttribute(t,r)}else n.setAttribute(t,r)}removeAttribute(n,t,r){if(r){const i=Hh[r];i?n.removeAttributeNS(i,t):n.removeAttribute(`${r}:${t}`)}else n.removeAttribute(t)}addClass(n,t){n.classList.add(t)}removeClass(n,t){n.classList.remove(t)}setStyle(n,t,r,i){i&(ur.DashCase|ur.Important)?n.style.setProperty(t,r,i&ur.Important?"important":""):n.style[t]=r}removeStyle(n,t,r){r&ur.DashCase?n.style.removeProperty(t):n.style[t]=""}setProperty(n,t,r){n[t]=r}setValue(n,t){n.nodeValue=t}listen(n,t,r){if("string"==typeof n&&!(n=pr().getGlobalEventTarget(this.doc,n)))throw new Error(`Unsupported event target ${n} for event ${t}`);return this.eventManager.addEventListener(n,t,this.decoratePreventDefault(r))}decoratePreventDefault(n){return t=>{if("__ngUnwrap__"===t)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(t)):n(t))&&t.preventDefault()}}}function db(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class nL extends Gh{constructor(n,t,r,i,o,s,a,l){super(n,o,s,l),this.sharedStylesHost=t,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const c=ub(i.id,i.styles);for(const u of c){const d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=u,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,t){return super.appendChild(this.nodeOrShadowRoot(n),t)}insertBefore(n,t,r){return super.insertBefore(this.nodeOrShadowRoot(n),t,r)}removeChild(n,t){return super.removeChild(this.nodeOrShadowRoot(n),t)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class qh extends Gh{constructor(n,t,r,i,o,s,a,l){super(n,o,s,a),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=i,this.styles=l?ub(l,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class fb extends qh{constructor(n,t,r,i,o,s,a,l){const c=i+"-"+r.id;super(n,t,r,o,s,a,l,c),this.contentAttr=function J2(e){return"_ngcontent-%COMP%".replace(Uh,e)}(c),this.hostAttr=function eL(e){return"_nghost-%COMP%".replace(Uh,e)}(c)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,t){const r=super.createElement(n,t);return super.setAttribute(r,this.contentAttr,""),r}}let rL=(()=>{class e extends ab{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,i){return t.addEventListener(r,i,!1),()=>this.removeEventListener(t,r,i)}removeEventListener(t,r,i){return t.removeEventListener(r,i)}static#e=this.\u0275fac=function(r){return new(r||e)(I(Ue))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})();const hb=["alt","control","meta","shift"],iL={"\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"},oL={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let sL=(()=>{class e extends ab{constructor(t){super(t)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,r,i){const o=e.parseEventName(r),s=e.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>pr().onAndCancel(t,o.domEventName,s))}static parseEventName(t){const r=t.toLowerCase().split("."),i=r.shift();if(0===r.length||"keydown"!==i&&"keyup"!==i)return null;const o=e._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),hb.forEach(c=>{const u=r.indexOf(c);u>-1&&(r.splice(u,1),s+=c+".")}),s+=o,0!=r.length||0===o.length)return null;const l={};return l.domEventName=i,l.fullKey=s,l}static matchEventFullKeyCode(t,r){let i=iL[t.key]||t.key,o="";return r.indexOf("code.")>-1&&(i=t.code,o="code."),!(null==i||!i)&&(i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),hb.forEach(s=>{s!==i&&(0,oL[s])(t)&&(o+=s+".")}),o+=i,o===r)}static eventCallback(t,r,i){return o=>{e.matchEventFullKeyCode(o,t)&&i.runGuarded(()=>r(o))}}static _normalizeKey(t){return"esc"===t?"escape":t}static#e=this.\u0275fac=function(r){return new(r||e)(I(Ue))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})();const uL=sw(Lk,"browser",[{provide:Br,useValue:"browser"},{provide:mv,useValue:function aL(){jh.makeCurrent()},multi:!0},{provide:Ue,useFactory:function cL(){return function $A(e){Td=e}(document),document},deps:[]}]),dL=new P(""),mb=[{provide:$l,useClass:class W2{addToWindow(n){ye.getAngularTestability=(r,i=!0)=>{const o=n.findTestabilityInTree(r,i);if(null==o)throw new C(5103,!1);return o},ye.getAllAngularTestabilities=()=>n.getAllTestabilities(),ye.getAllAngularRootElements=()=>n.getAllRootElements(),ye.frameworkStabilizers||(ye.frameworkStabilizers=[]),ye.frameworkStabilizers.push(r=>{const i=ye.getAllAngularTestabilities();let o=i.length,s=!1;const a=function(l){s=s||l,o--,0==o&&r(s)};i.forEach(l=>{l.whenStable(a)})})}findTestabilityInTree(n,t,r){return null==t?null:n.getTestability(t)??(r?pr().isShadowRoot(t)?this.findTestabilityInTree(n,t.host,!0):this.findTestabilityInTree(n,t.parentElement,!0):null)}},deps:[]},{provide:tw,useClass:sh,deps:[ce,ah,$l]},{provide:sh,useClass:sh,deps:[ce,ah,$l]}],yb=[{provide:Ld,useValue:"root"},{provide:Bn,useFactory:function lL(){return new Bn},deps:[]},{provide:Bh,useClass:rL,multi:!0,deps:[Ue,ce,Br]},{provide:Bh,useClass:sL,multi:!0,deps:[Ue]},zh,lb,sb,{provide:ts,useExisting:zh},{provide:tb,useClass:Q2,deps:[]},[]];let vb=(()=>{class e{constructor(t){}static withServerTransition(t){return{ngModule:e,providers:[{provide:cl,useValue:t.appId}]}}static#e=this.\u0275fac=function(r){return new(r||e)(I(dL,12))};static#t=this.\u0275mod=tt({type:e});static#n=this.\u0275inj=Qe({providers:[...yb,...mb],imports:[Fh,Vk]})}return e})(),_b=(()=>{class e{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}static#e=this.\u0275fac=function(r){return new(r||e)(I(Ue))};static#t=this.\u0275prov=x({token:e,factory:function(r){let i=null;return i=r?new r:function hL(){return new _b(I(Ue))}(),i},providedIn:"root"})}return e})();typeof window<"u"&&window;let wb=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:function(r){let i=null;return i=r?new(r||e):I(bb),i},providedIn:"root"})}return e})(),bb=(()=>{class e extends wb{constructor(t){super(),this._doc=t}sanitize(t,r){if(null==r)return null;switch(t){case Ft.NONE:return r;case Ft.HTML:return Dn(r,"HTML")?kt(r):sv(this._doc,String(r)).toString();case Ft.STYLE:return Dn(r,"Style")?kt(r):r;case Ft.SCRIPT:if(Dn(r,"Script"))return kt(r);throw new C(5200,!1);case Ft.URL:return Dn(r,"URL")?kt(r):rl(String(r));case Ft.RESOURCE_URL:if(Dn(r,"ResourceURL"))return kt(r);throw new C(5201,!1);default:throw new C(5202,!1)}}bypassSecurityTrustHtml(t){return function QA(e){return new HA(e)}(t)}bypassSecurityTrustStyle(t){return function ZA(e){return new UA(e)}(t)}bypassSecurityTrustScript(t){return function KA(e){return new zA(e)}(t)}bypassSecurityTrustUrl(t){return function YA(e){return new GA(e)}(t)}bypassSecurityTrustResourceUrl(t){return function XA(e){return new qA(e)}(t)}static#e=this.\u0275fac=function(r){return new(r||e)(I(Ue))};static#t=this.\u0275prov=x({token:e,factory:function(r){let i=null;return i=r?new r:function yL(e){return new bb(e.get(Ue))}(I(it)),i},providedIn:"root"})}return e})();const{isArray:_L}=Array,{getPrototypeOf:CL,prototype:DL,keys:wL}=Object;function Mb(e){if(1===e.length){const n=e[0];if(_L(n))return{args:n,keys:null};if(function bL(e){return e&&"object"==typeof e&&CL(e)===DL}(n)){const t=wL(n);return{args:t.map(r=>n[r]),keys:t}}}return{args:e,keys:null}}const{isArray:EL}=Array;function Sb(e){return ie(n=>function ML(e,n){return EL(n)?e(...n):e(n)}(e,n))}function Ib(e,n){return e.reduce((t,r,i)=>(t[r]=n[i],t),{})}function Qh(...e){const n=Eo(e),t=Bg(e),{args:r,keys:i}=Mb(e);if(0===r.length)return Le([],n);const o=new Ae(function SL(e,n,t=nr){return r=>{Tb(n,()=>{const{length:i}=e,o=new Array(i);let s=i,a=i;for(let l=0;l{const c=Le(e[l],n);let u=!1;c.subscribe(Re(r,d=>{o[l]=d,u||(u=!0,a--),a||r.next(t(o.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,n,i?s=>Ib(i,s):nr));return t?o.pipe(Sb(t)):o}function Tb(e,n,t){e?xn(t,e,n):n()}const ac=Do(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Zh(...e){return function IL(){return si(1)}()(Le(e,Eo(e)))}function Ab(e){return new Ae(n=>{At(e()).subscribe(n)})}function qr(e,n){const t=pe(e)?e:()=>e,r=i=>i.error(t());return new Ae(n?i=>n.schedule(r,0,i):r)}function Kh(){return Fe((e,n)=>{let t=null;e._refCount++;const r=Re(n,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(t=null);const i=e._connection,o=t;t=null,i&&(!o||i===o)&&i.unsubscribe(),n.unsubscribe()});e.subscribe(r),r.closed||(t=e.connect())})}class Pb extends Ae{constructor(n,t){super(),this.source=n,this.subjectFactory=t,this._subject=null,this._refCount=0,this._connection=null,Mg(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new Tt;const t=this.getSubject();n.add(this.source.subscribe(Re(t,void 0,()=>{this._teardown(),t.complete()},r=>{this._teardown(),t.error(r)},()=>this._teardown()))),n.closed&&(this._connection=null,n=Tt.EMPTY)}return n}refCount(){return Kh()(this)}}function ro(e){return e<=0?()=>pn:Fe((n,t)=>{let r=0;n.subscribe(Re(t,i=>{++r<=e&&(t.next(i),e<=r&&t.complete())}))})}function Kn(e,n){return Fe((t,r)=>{let i=0;t.subscribe(Re(r,o=>e.call(n,o,i++)&&r.next(o)))})}function lc(e){return Fe((n,t)=>{let r=!1;n.subscribe(Re(t,i=>{r=!0,t.next(i)},()=>{r||t.next(e),t.complete()}))})}function Ob(e=AL){return Fe((n,t)=>{let r=!1;n.subscribe(Re(t,i=>{r=!0,t.next(i)},()=>r?t.complete():t.error(e())))})}function AL(){return new ac}function Wr(e,n){const t=arguments.length>=2;return r=>r.pipe(e?Kn((i,o)=>e(i,o,r)):nr,ro(1),t?lc(n):Ob(()=>new ac))}function io(e,n){return pe(n)?We(e,n,1):We(e,1)}function st(e,n,t){const r=pe(e)||n||t?{next:e,error:n,complete:t}:e;return r?Fe((i,o)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;i.subscribe(Re(o,l=>{var c;null===(c=r.next)||void 0===c||c.call(r,l),o.next(l)},()=>{var l;a=!1,null===(l=r.complete)||void 0===l||l.call(r),o.complete()},l=>{var c;a=!1,null===(c=r.error)||void 0===c||c.call(r,l),o.error(l)},()=>{var l,c;a&&(null===(l=r.unsubscribe)||void 0===l||l.call(r)),null===(c=r.finalize)||void 0===c||c.call(r)}))}):nr}function Yn(e){return Fe((n,t)=>{let o,r=null,i=!1;r=n.subscribe(Re(t,void 0,void 0,s=>{o=At(e(s,Yn(e)(n))),r?(r.unsubscribe(),r=null,o.subscribe(t)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(t))})}function Yh(e){return e<=0?()=>pn:Fe((n,t)=>{let r=[];n.subscribe(Re(t,i=>{r.push(i),e{for(const i of r)t.next(i);t.complete()},void 0,()=>{r=null}))})}function Os(e){return Fe((n,t)=>{try{n.subscribe(t)}finally{t.add(e)}})}const Z="primary",xs=Symbol("RouteTitle");class kL{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const t=this.params[n];return Array.isArray(t)?t[0]:t}return null}getAll(n){if(this.has(n)){const t=this.params[n];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function oo(e){return new kL(e)}function FL(e,n,t){const r=t.path.split("/");if(r.length>e.length||"full"===t.pathMatch&&(n.hasChildren()||r.lengthr[o]===i)}return e===n}function Nb(e){return e.length>0?e[e.length-1]:null}function vr(e){return function vL(e){return!!e&&(e instanceof Ae||pe(e.lift)&&pe(e.subscribe))}(e)?e:ps(e)?Le(Promise.resolve(e)):L(e)}const VL={exact:function Fb(e,n,t){if(!Qr(e.segments,n.segments)||!cc(e.segments,n.segments,t)||e.numberOfChildren!==n.numberOfChildren)return!1;for(const r in n.children)if(!e.children[r]||!Fb(e.children[r],n.children[r],t))return!1;return!0},subset:Lb},Rb={exact:function jL(e,n){return Sn(e,n)},subset:function BL(e,n){return Object.keys(n).length<=Object.keys(e).length&&Object.keys(n).every(t=>xb(e[t],n[t]))},ignored:()=>!0};function kb(e,n,t){return VL[t.paths](e.root,n.root,t.matrixParams)&&Rb[t.queryParams](e.queryParams,n.queryParams)&&!("exact"===t.fragment&&e.fragment!==n.fragment)}function Lb(e,n,t){return Vb(e,n,n.segments,t)}function Vb(e,n,t,r){if(e.segments.length>t.length){const i=e.segments.slice(0,t.length);return!(!Qr(i,t)||n.hasChildren()||!cc(i,t,r))}if(e.segments.length===t.length){if(!Qr(e.segments,t)||!cc(e.segments,t,r))return!1;for(const i in n.children)if(!e.children[i]||!Lb(e.children[i],n.children[i],r))return!1;return!0}{const i=t.slice(0,e.segments.length),o=t.slice(e.segments.length);return!!(Qr(e.segments,i)&&cc(e.segments,i,r)&&e.children[Z])&&Vb(e.children[Z],n,o,r)}}function cc(e,n,t){return n.every((r,i)=>Rb[t](e[i].parameters,r.parameters))}class so{constructor(n=new fe([],{}),t={},r=null){this.root=n,this.queryParams=t,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=oo(this.queryParams)),this._queryParamMap}toString(){return UL.serialize(this)}}class fe{constructor(n,t){this.segments=n,this.children=t,this.parent=null,Object.values(t).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return uc(this)}}class Ns{constructor(n,t){this.path=n,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=oo(this.parameters)),this._parameterMap}toString(){return $b(this)}}function Qr(e,n){return e.length===n.length&&e.every((t,r)=>t.path===n[r].path)}let Rs=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:function(){return new Xh},providedIn:"root"})}return e})();class Xh{parse(n){const t=new eV(n);return new so(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(n){const t=`/${ks(n.root,!0)}`,r=function qL(e){const n=Object.keys(e).map(t=>{const r=e[t];return Array.isArray(r)?r.map(i=>`${dc(t)}=${dc(i)}`).join("&"):`${dc(t)}=${dc(r)}`}).filter(t=>!!t);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${t}${r}${"string"==typeof n.fragment?`#${function zL(e){return encodeURI(e)}(n.fragment)}`:""}`}}const UL=new Xh;function uc(e){return e.segments.map(n=>$b(n)).join("/")}function ks(e,n){if(!e.hasChildren())return uc(e);if(n){const t=e.children[Z]?ks(e.children[Z],!1):"",r=[];return Object.entries(e.children).forEach(([i,o])=>{i!==Z&&r.push(`${i}:${ks(o,!1)}`)}),r.length>0?`${t}(${r.join("//")})`:t}{const t=function HL(e,n){let t=[];return Object.entries(e.children).forEach(([r,i])=>{r===Z&&(t=t.concat(n(i,r)))}),Object.entries(e.children).forEach(([r,i])=>{r!==Z&&(t=t.concat(n(i,r)))}),t}(e,(r,i)=>i===Z?[ks(e.children[Z],!1)]:[`${i}:${ks(r,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[Z]?`${uc(e)}/${t[0]}`:`${uc(e)}/(${t.join("//")})`}}function jb(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function dc(e){return jb(e).replace(/%3B/gi,";")}function Jh(e){return jb(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function fc(e){return decodeURIComponent(e)}function Bb(e){return fc(e.replace(/\+/g,"%20"))}function $b(e){return`${Jh(e.path)}${function GL(e){return Object.keys(e).map(n=>`;${Jh(n)}=${Jh(e[n])}`).join("")}(e.parameters)}`}const WL=/^[^\/()?;#]+/;function ep(e){const n=e.match(WL);return n?n[0]:""}const QL=/^[^\/()?;=#]+/,KL=/^[^=?&#]+/,XL=/^[^&#]+/;class eV{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new fe([],{}):new fe([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(n.length>0||Object.keys(t).length>0)&&(r[Z]=new fe(n,t)),r}parseSegment(){const n=ep(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new C(4009,!1);return this.capture(n),new Ns(fc(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const t=function ZL(e){const n=e.match(QL);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){const i=ep(this.remaining);i&&(r=i,this.capture(r))}n[fc(t)]=fc(r)}parseQueryParam(n){const t=function YL(e){const n=e.match(KL);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){const s=function JL(e){const n=e.match(XL);return n?n[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const i=Bb(t),o=Bb(r);if(n.hasOwnProperty(i)){let s=n[i];Array.isArray(s)||(s=[s],n[i]=s),s.push(o)}else n[i]=o}parseParens(n){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=ep(this.remaining),i=this.remaining[r.length];if("/"!==i&&")"!==i&&";"!==i)throw new C(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=Z);const s=this.parseChildren();t[o]=1===Object.keys(s).length?s[Z]:new fe([],s),this.consumeOptional("//")}return t}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new C(4011,!1)}}function Hb(e){return e.segments.length>0?new fe([],{[Z]:e}):e}function Ub(e){const n={};for(const r of Object.keys(e.children)){const o=Ub(e.children[r]);if(r===Z&&0===o.segments.length&&o.hasChildren())for(const[s,a]of Object.entries(o.children))n[s]=a;else(o.segments.length>0||o.hasChildren())&&(n[r]=o)}return function tV(e){if(1===e.numberOfChildren&&e.children[Z]){const n=e.children[Z];return new fe(e.segments.concat(n.segments),n.children)}return e}(new fe(e.segments,n))}function Zr(e){return e instanceof so}function zb(e){let n;const i=Hb(function t(o){const s={};for(const l of o.children){const c=t(l);s[l.outlet]=c}const a=new fe(o.url,s);return o===e&&(n=a),a}(e.root));return n??i}function Gb(e,n,t,r){let i=e;for(;i.parent;)i=i.parent;if(0===n.length)return tp(i,i,i,t,r);const o=function rV(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new Wb(!0,0,e);let n=0,t=!1;const r=e.reduce((i,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return Object.entries(o.outlets).forEach(([l,c])=>{a[l]="string"==typeof c?c.split("/"):c}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return"string"!=typeof o?[...i,o]:0===s?(o.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?t=!0:".."===a?n++:""!=a&&i.push(a))}),i):[...i,o]},[]);return new Wb(t,n,r)}(n);if(o.toRoot())return tp(i,i,new fe([],{}),t,r);const s=function iV(e,n,t){if(e.isAbsolute)return new pc(n,!0,0);if(!t)return new pc(n,!1,NaN);if(null===t.parent)return new pc(t,!0,0);const r=hc(e.commands[0])?0:1;return function oV(e,n,t){let r=e,i=n,o=t;for(;o>i;){if(o-=i,r=r.parent,!r)throw new C(4005,!1);i=r.segments.length}return new pc(r,!1,i-o)}(t,t.segments.length-1+r,e.numberOfDoubleDots)}(o,i,e),a=s.processChildren?Ls(s.segmentGroup,s.index,o.commands):Qb(s.segmentGroup,s.index,o.commands);return tp(i,s.segmentGroup,a,t,r)}function hc(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function Fs(e){return"object"==typeof e&&null!=e&&e.outlets}function tp(e,n,t,r,i){let s,o={};r&&Object.entries(r).forEach(([l,c])=>{o[l]=Array.isArray(c)?c.map(u=>`${u}`):`${c}`}),s=e===n?t:qb(e,n,t);const a=Hb(Ub(s));return new so(a,o,i)}function qb(e,n,t){const r={};return Object.entries(e.children).forEach(([i,o])=>{r[i]=o===n?t:qb(o,n,t)}),new fe(e.segments,r)}class Wb{constructor(n,t,r){if(this.isAbsolute=n,this.numberOfDoubleDots=t,this.commands=r,n&&r.length>0&&hc(r[0]))throw new C(4003,!1);const i=r.find(Fs);if(i&&i!==Nb(r))throw new C(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class pc{constructor(n,t,r){this.segmentGroup=n,this.processChildren=t,this.index=r}}function Qb(e,n,t){if(e||(e=new fe([],{})),0===e.segments.length&&e.hasChildren())return Ls(e,n,t);const r=function aV(e,n,t){let r=0,i=n;const o={match:!1,pathIndex:0,commandIndex:0};for(;i=t.length)return o;const s=e.segments[i],a=t[r];if(Fs(a))break;const l=`${a}`,c=r0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!Kb(l,c,s))return o;r+=2}else{if(!Kb(l,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(e,n,t),i=t.slice(r.commandIndex);if(r.match&&r.pathIndexo!==Z)&&e.children[Z]&&1===e.numberOfChildren&&0===e.children[Z].segments.length){const o=Ls(e.children[Z],n,t);return new fe(e.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{"string"==typeof s&&(s=[s]),null!==s&&(i[o]=Qb(e.children[o],n,s))}),Object.entries(e.children).forEach(([o,s])=>{void 0===r[o]&&(i[o]=s)}),new fe(e.segments,i)}}function np(e,n,t){const r=e.segments.slice(0,n);let i=0;for(;i{"string"==typeof r&&(r=[r]),null!==r&&(n[t]=np(new fe([],{}),0,r))}),n}function Zb(e){const n={};return Object.entries(e).forEach(([t,r])=>n[t]=`${r}`),n}function Kb(e,n,t){return e==t.path&&Sn(n,t.parameters)}const Vs="imperative";class In{constructor(n,t){this.id=n,this.url=t}}class gc extends In{constructor(n,t,r="imperative",i=null){super(n,t),this.type=0,this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class _r extends In{constructor(n,t,r){super(n,t),this.urlAfterRedirects=r,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class js extends In{constructor(n,t,r,i){super(n,t),this.reason=r,this.code=i,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class ao extends In{constructor(n,t,r,i){super(n,t),this.reason=r,this.code=i,this.type=16}}class mc extends In{constructor(n,t,r,i){super(n,t),this.error=r,this.target=i,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Yb extends In{constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class cV extends In{constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class uV extends In{constructor(n,t,r,i,o){super(n,t),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class dV extends In{constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class fV extends In{constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class hV{constructor(n){this.route=n,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class pV{constructor(n){this.route=n,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class gV{constructor(n){this.snapshot=n,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class mV{constructor(n){this.snapshot=n,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class yV{constructor(n){this.snapshot=n,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vV{constructor(n){this.snapshot=n,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Xb{constructor(n,t,r){this.routerEvent=n,this.position=t,this.anchor=r,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class rp{}class ip{constructor(n){this.url=n}}class _V{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Bs,this.attachRef=null}}let Bs=(()=>{class e{constructor(){this.contexts=new Map}onChildOutletCreated(t,r){const i=this.getOrCreateContext(t);i.outlet=r,this.contexts.set(t,i)}onChildOutletDestroyed(t){const r=this.getContext(t);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let r=this.getContext(t);return r||(r=new _V,this.contexts.set(t,r)),r}getContext(t){return this.contexts.get(t)||null}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class Jb{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const t=this.pathFromRoot(n);return t.length>1?t[t.length-2]:null}children(n){const t=op(n,this._root);return t?t.children.map(r=>r.value):[]}firstChild(n){const t=op(n,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(n){const t=sp(n,this._root);return t.length<2?[]:t[t.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return sp(n,this._root).map(t=>t.value)}}function op(e,n){if(e===n.value)return n;for(const t of n.children){const r=op(e,t);if(r)return r}return null}function sp(e,n){if(e===n.value)return[n];for(const t of n.children){const r=sp(e,t);if(r.length)return r.unshift(n),r}return[]}class Xn{constructor(n,t){this.value=n,this.children=t}toString(){return`TreeNode(${this.value})`}}function lo(e){const n={};return e&&e.children.forEach(t=>n[t.value.outlet]=t),n}class eE extends Jb{constructor(n,t){super(n),this.snapshot=t,ap(this,n)}toString(){return this.snapshot.toString()}}function tE(e,n){const t=function CV(e,n){const s=new yc([],{},{},"",{},Z,n,null,{});return new rE("",new Xn(s,[]))}(0,n),r=new Gt([new Ns("",{})]),i=new Gt({}),o=new Gt({}),s=new Gt({}),a=new Gt(""),l=new Cr(r,i,s,a,o,Z,n,t.root);return l.snapshot=t.root,new eE(new Xn(l,[]),t)}class Cr{constructor(n,t,r,i,o,s,a,l){this.urlSubject=n,this.paramsSubject=t,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(ie(c=>c[xs]))??L(void 0),this.url=n,this.params=t,this.queryParams=r,this.fragment=i,this.data=o}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(ie(n=>oo(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(ie(n=>oo(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function nE(e,n="emptyOnly"){const t=e.pathFromRoot;let r=0;if("always"!==n)for(r=t.length-1;r>=1;){const i=t[r],o=t[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(o.component)break;r--}}return function DV(e){return e.reduce((n,t)=>({params:{...n.params,...t.params},data:{...n.data,...t.data},resolve:{...t.data,...n.resolve,...t.routeConfig?.data,...t._resolvedData}}),{params:{},data:{},resolve:{}})}(t.slice(r))}class yc{get title(){return this.data?.[xs]}constructor(n,t,r,i,o,s,a,l,c){this.url=n,this.params=t,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=oo(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=oo(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class rE extends Jb{constructor(n,t){super(t),this.url=n,ap(this,t)}toString(){return iE(this._root)}}function ap(e,n){n.value._routerState=e,n.children.forEach(t=>ap(e,t))}function iE(e){const n=e.children.length>0?` { ${e.children.map(iE).join(", ")} } `:"";return`${e.value}${n}`}function lp(e){if(e.snapshot){const n=e.snapshot,t=e._futureSnapshot;e.snapshot=t,Sn(n.queryParams,t.queryParams)||e.queryParamsSubject.next(t.queryParams),n.fragment!==t.fragment&&e.fragmentSubject.next(t.fragment),Sn(n.params,t.params)||e.paramsSubject.next(t.params),function LL(e,n){if(e.length!==n.length)return!1;for(let t=0;tSn(t.parameters,n[r].parameters))}(e.url,n.url);return t&&!(!e.parent!=!n.parent)&&(!e.parent||cp(e.parent,n.parent))}let up=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=Z,this.activateEvents=new _e,this.deactivateEvents=new _e,this.attachEvents=new _e,this.detachEvents=new _e,this.parentContexts=T(Bs),this.location=T(ln),this.changeDetector=T(Ul),this.environmentInjector=T(Lt),this.inputBinder=T(vc,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(t){if(t.name){const{firstChange:r,previousValue:i}=t.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new C(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new C(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new C(4012,!1);this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,r){this.activated=t,this._activatedRoute=r,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,r){if(this.isActivated)throw new C(4013,!1);this._activatedRoute=t;const i=this.location,s=t.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new wV(t,a,i.injector);this.activated=i.createComponent(s,{index:i.length,injector:l,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275dir=$({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[xt]})}return e})();class wV{constructor(n,t,r){this.route=n,this.childContexts=t,this.parent=r}get(n,t){return n===Cr?this.route:n===Bs?this.childContexts:this.parent.get(n,t)}}const vc=new P("");let oE=(()=>{class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){const{activatedRoute:r}=t,i=Qh([r.queryParams,r.params,r.data]).pipe(qt(([o,s,a],l)=>(a={...o,...s,...a},0===l?L(a):Promise.resolve(a)))).subscribe(o=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==r||null===r.component)return void this.unsubscribeFromRouteData(t);const s=function Kk(e){const n=ee(e);if(!n)return null;const t=new as(n);return{get selector(){return t.selector},get type(){return t.componentType},get inputs(){return t.inputs},get outputs(){return t.outputs},get ngContentSelectors(){return t.ngContentSelectors},get isStandalone(){return n.standalone},get isSignal(){return n.signals}}}(r.component);if(s)for(const{templateName:a}of s.inputs)t.activatedComponentRef.setInput(a,o[a]);else this.unsubscribeFromRouteData(t)});this.outletDataSubscriptions.set(t,i)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})();function $s(e,n,t){if(t&&e.shouldReuseRoute(n.value,t.value.snapshot)){const r=t.value;r._futureSnapshot=n.value;const i=function EV(e,n,t){return n.children.map(r=>{for(const i of t.children)if(e.shouldReuseRoute(r.value,i.value.snapshot))return $s(e,r,i);return $s(e,r)})}(e,n,t);return new Xn(r,i)}{if(e.shouldAttach(n.value)){const o=e.retrieve(n.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>$s(e,a)),s}}const r=function MV(e){return new Cr(new Gt(e.url),new Gt(e.params),new Gt(e.queryParams),new Gt(e.fragment),new Gt(e.data),e.outlet,e.component,e)}(n.value),i=n.children.map(o=>$s(e,o));return new Xn(r,i)}}const dp="ngNavigationCancelingError";function sE(e,n){const{redirectTo:t,navigationBehaviorOptions:r}=Zr(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=aE(!1,0,n);return i.url=t,i.navigationBehaviorOptions=r,i}function aE(e,n,t){const r=new Error("NavigationCancelingError: "+(e||""));return r[dp]=!0,r.cancellationCode=n,t&&(r.url=t),r}function lE(e){return e&&e[dp]}let cE=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=ct({type:e,selectors:[["ng-component"]],standalone:!0,features:[kl],decls:1,vars:0,template:function(r,i){1&r&&Q(0,"router-outlet")},dependencies:[up],encapsulation:2})}return e})();function fp(e){const n=e.children&&e.children.map(fp),t=n?{...e,children:n}:{...e};return!t.component&&!t.loadComponent&&(n||t.loadChildren)&&t.outlet&&t.outlet!==Z&&(t.component=cE),t}function dn(e){return e.outlet||Z}function Hs(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let n=e.parent;n;n=n.parent){const t=n.routeConfig;if(t?._loadedInjector)return t._loadedInjector;if(t?._injector)return t._injector}return null}class NV{constructor(n,t,r,i,o){this.routeReuseStrategy=n,this.futureState=t,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(n){const t=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,r,n),lp(this.futureState.root),this.activateChildRoutes(t,r,n)}deactivateChildRoutes(n,t,r){const i=lo(t);n.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(n,t,r){const i=n.value,o=t?t.value:null;if(i===o)if(i.component){const s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(n,t,s.children)}else this.deactivateChildRoutes(n,t,r);else o&&this.deactivateRouteAndItsChildren(t,r)}deactivateRouteAndItsChildren(n,t){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,t):this.deactivateRouteAndOutlet(n,t)}detachAndStoreRouteSubtree(n,t){const r=t.getContext(n.value.outlet),i=r&&n.value.component?r.children:t,o=lo(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],i);if(r&&r.outlet){const s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,t){const r=t.getContext(n.value.outlet),i=r&&n.value.component?r.children:t,o=lo(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,t,r){const i=lo(t);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new vV(o.value.snapshot))}),n.children.length&&this.forwardEvent(new mV(n.value.snapshot))}activateRoutes(n,t,r){const i=n.value,o=t?t.value:null;if(lp(i),i===o)if(i.component){const s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,t,s.children)}else this.activateChildRoutes(n,t,r);else if(i.component){const s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.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),lp(a.route.value),this.activateChildRoutes(n,null,s.children)}else{const a=Hs(i.snapshot);s.attachRef=null,s.route=i,s.injector=a,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(n,null,s.children)}}else this.activateChildRoutes(n,null,r)}}class uE{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class _c{constructor(n,t){this.component=n,this.route=t}}function RV(e,n,t){const r=e._root;return Us(r,n?n._root:null,t,[r.value])}function co(e,n){const t=Symbol(),r=n.get(e,t);return r===t?"function"!=typeof e||function tI(e){return null!==ma(e)}(e)?n.get(e):e:r}function Us(e,n,t,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=lo(n);return e.children.forEach(s=>{(function FV(e,n,t,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,s=n?n.value:null,a=t?t.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function LV(e,n,t){if("function"==typeof t)return t(e,n);switch(t){case"pathParamsChange":return!Qr(e.url,n.url);case"pathParamsOrQueryParamsChange":return!Qr(e.url,n.url)||!Sn(e.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!cp(e,n)||!Sn(e.queryParams,n.queryParams);default:return!cp(e,n)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new uE(r)):(o.data=s.data,o._resolvedData=s._resolvedData),Us(e,n,o.component?a?a.children:null:t,r,i),l&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new _c(a.outlet.component,s))}else s&&zs(n,a,i),i.canActivateChecks.push(new uE(r)),Us(e,null,o.component?a?a.children:null:t,r,i)})(s,o[s.value.outlet],t,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>zs(a,t.getContext(s),i)),i}function zs(e,n,t){const r=lo(e),i=e.value;Object.entries(r).forEach(([o,s])=>{zs(s,i.component?n?n.children.getContext(o):null:n,t)}),t.canDeactivateChecks.push(new _c(i.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,i))}function Gs(e){return"function"==typeof e}function dE(e){return e instanceof ac||"EmptyError"===e?.name}const Cc=Symbol("INITIAL_VALUE");function uo(){return qt(e=>Qh(e.map(n=>n.pipe(ro(1),function TL(...e){const n=Eo(e);return Fe((t,r)=>{(n?Zh(e,t,n):Zh(e,t)).subscribe(r)})}(Cc)))).pipe(ie(n=>{for(const t of n)if(!0!==t){if(t===Cc)return Cc;if(!1===t||t instanceof so)return t}return!0}),Kn(n=>n!==Cc),ro(1)))}function fE(e){return function rS(...e){return wg(e)}(st(n=>{if(Zr(n))throw sE(0,n)}),ie(n=>!0===n))}class Dc{constructor(n){this.segmentGroup=n||null}}class hE{constructor(n){this.urlTree=n}}function fo(e){return qr(new Dc(e))}function pE(e){return qr(new hE(e))}class rj{constructor(n,t){this.urlSerializer=n,this.urlTree=t}noMatchError(n){return new C(4002,!1)}lineralizeSegments(n,t){let r=[],i=t.root;for(;;){if(r=r.concat(i.segments),0===i.numberOfChildren)return L(r);if(i.numberOfChildren>1||!i.children[Z])return qr(new C(4e3,!1));i=i.children[Z]}}applyRedirectCommands(n,t,r){return this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),n,r)}applyRedirectCreateUrlTree(n,t,r,i){const o=this.createSegmentGroup(n,t.root,r,i);return new so(o,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(n,t){const r={};return Object.entries(n).forEach(([i,o])=>{if("string"==typeof o&&o.startsWith(":")){const a=o.substring(1);r[i]=t[a]}else r[i]=o}),r}createSegmentGroup(n,t,r,i){const o=this.createSegments(n,t.segments,r,i);let s={};return Object.entries(t.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(n,l,r,i)}),new fe(o,s)}createSegments(n,t,r,i){return t.map(o=>o.path.startsWith(":")?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,t,r){const i=r[t.path.substring(1)];if(!i)throw new C(4001,!1);return i}findOrReturn(n,t){let r=0;for(const i of t){if(i.path===n.path)return t.splice(r),i;r++}return n}}const hp={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ij(e,n,t,r,i){const o=pp(e,n,t);return o.matched?(r=function IV(e,n){return e.providers&&!e._injector&&(e._injector=jf(e.providers,n,`Route: ${e.path}`)),e._injector??n}(n,r),function ej(e,n,t,r){const i=n.canMatch;return i&&0!==i.length?L(i.map(s=>{const a=co(s,e);return vr(function UV(e){return e&&Gs(e.canMatch)}(a)?a.canMatch(n,t):e.runInContext(()=>a(n,t)))})).pipe(uo(),fE()):L(!0)}(r,n,t).pipe(ie(s=>!0===s?o:{...hp}))):L(o)}function pp(e,n,t){if(""===n.path)return"full"===n.pathMatch&&(e.hasChildren()||t.length>0)?{...hp}:{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};const i=(n.matcher||FL)(t,e,n);if(!i)return{...hp};const o={};Object.entries(i.posParams??{}).forEach(([a,l])=>{o[a]=l.path});const s=i.consumed.length>0?{...o,...i.consumed[i.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:t.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function gE(e,n,t,r){return t.length>0&&function aj(e,n,t){return t.some(r=>wc(e,n,r)&&dn(r)!==Z)}(e,t,r)?{segmentGroup:new fe(n,sj(r,new fe(t,e.children))),slicedSegments:[]}:0===t.length&&function lj(e,n,t){return t.some(r=>wc(e,n,r))}(e,t,r)?{segmentGroup:new fe(e.segments,oj(e,0,t,r,e.children)),slicedSegments:t}:{segmentGroup:new fe(e.segments,e.children),slicedSegments:t}}function oj(e,n,t,r,i){const o={};for(const s of r)if(wc(e,t,s)&&!i[dn(s)]){const a=new fe([],{});o[dn(s)]=a}return{...i,...o}}function sj(e,n){const t={};t[Z]=n;for(const r of e)if(""===r.path&&dn(r)!==Z){const i=new fe([],{});t[dn(r)]=i}return t}function wc(e,n,t){return(!(e.hasChildren()||n.length>0)||"full"!==t.pathMatch)&&""===t.path}class fj{constructor(n,t,r,i,o,s,a){this.injector=n,this.configLoader=t,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.allowRedirects=!0,this.applyRedirects=new rj(this.urlSerializer,this.urlTree)}noMatchError(n){return new C(4002,!1)}recognize(){const n=gE(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,n,Z).pipe(Yn(t=>{if(t instanceof hE)return this.allowRedirects=!1,this.urlTree=t.urlTree,this.match(t.urlTree);throw t instanceof Dc?this.noMatchError(t):t}),ie(t=>{const r=new yc([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Z,this.rootComponentType,null,{}),i=new Xn(r,t),o=new rE("",i),s=function nV(e,n,t=null,r=null){return Gb(zb(e),n,t,r)}(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(o._root),{state:o,tree:s}}))}match(n){return this.processSegmentGroup(this.injector,this.config,n.root,Z).pipe(Yn(r=>{throw r instanceof Dc?this.noMatchError(r):r}))}inheritParamsAndData(n){const t=n.value,r=nE(t,this.paramsInheritanceStrategy);t.params=Object.freeze(r.params),t.data=Object.freeze(r.data),n.children.forEach(i=>this.inheritParamsAndData(i))}processSegmentGroup(n,t,r,i){return 0===r.segments.length&&r.hasChildren()?this.processChildren(n,t,r):this.processSegment(n,t,r,r.segments,i,!0)}processChildren(n,t,r){const i=[];for(const o of Object.keys(r.children))"primary"===o?i.unshift(o):i.push(o);return Le(i).pipe(io(o=>{const s=r.children[o],a=function OV(e,n){const t=e.filter(r=>dn(r)===n);return t.push(...e.filter(r=>dn(r)!==n)),t}(t,o);return this.processSegmentGroup(n,a,s,o)}),function OL(e,n){return Fe(function PL(e,n,t,r,i){return(o,s)=>{let a=t,l=n,c=0;o.subscribe(Re(s,u=>{const d=c++;l=a?e(l,u,d):(a=!0,u),r&&s.next(l)},i&&(()=>{a&&s.next(l),s.complete()})))}}(e,n,arguments.length>=2,!0))}((o,s)=>(o.push(...s),o)),lc(null),function xL(e,n){const t=arguments.length>=2;return r=>r.pipe(e?Kn((i,o)=>e(i,o,r)):nr,Yh(1),t?lc(n):Ob(()=>new ac))}(),We(o=>{if(null===o)return fo(r);const s=mE(o);return function hj(e){e.sort((n,t)=>n.value.outlet===Z?-1:t.value.outlet===Z?1:n.value.outlet.localeCompare(t.value.outlet))}(s),L(s)}))}processSegment(n,t,r,i,o,s){return Le(t).pipe(io(a=>this.processSegmentAgainstRoute(a._injector??n,t,a,r,i,o,s).pipe(Yn(l=>{if(l instanceof Dc)return L(null);throw l}))),Wr(a=>!!a),Yn(a=>{if(dE(a))return function uj(e,n,t){return 0===n.length&&!e.children[t]}(r,i,o)?L([]):fo(r);throw a}))}processSegmentAgainstRoute(n,t,r,i,o,s,a){return function cj(e,n,t,r){return!!(dn(e)===r||r!==Z&&wc(n,t,e))&&("**"===e.path||pp(n,e,t).matched)}(r,i,o,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(n,i,r,o,s,a):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,i,t,r,o,s):fo(i):fo(i)}expandSegmentAgainstRouteUsingRedirect(n,t,r,i,o,s){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,r,i,s):this.expandRegularSegmentAgainstRouteUsingRedirect(n,t,r,i,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,t,r,i){const o=this.applyRedirects.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?pE(o):this.applyRedirects.lineralizeSegments(r,o).pipe(We(s=>{const a=new fe(s,{});return this.processSegment(n,t,a,s,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,t,r,i,o,s){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=pp(t,i,o);if(!a)return fo(t);const d=this.applyRedirects.applyRedirectCommands(l,i.redirectTo,u);return i.redirectTo.startsWith("/")?pE(d):this.applyRedirects.lineralizeSegments(i,d).pipe(We(f=>this.processSegment(n,r,t,f.concat(c),s,!1)))}matchSegmentAgainstRoute(n,t,r,i,o,s){let a;if("**"===r.path){const l=i.length>0?Nb(i).parameters:{};a=L({snapshot:new yc(i,l,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,yE(r),dn(r),r.component??r._loadedComponent??null,r,vE(r)),consumedSegments:[],remainingSegments:[]}),t.children={}}else a=ij(t,r,i,n).pipe(ie(({matched:l,consumedSegments:c,remainingSegments:u,parameters:d})=>l?{snapshot:new yc(c,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,yE(r),dn(r),r.component??r._loadedComponent??null,r,vE(r)),consumedSegments:c,remainingSegments:u}:null));return a.pipe(qt(l=>null===l?fo(t):this.getChildConfig(n=r._injector??n,r,i).pipe(qt(({routes:c})=>{const u=r._loadedInjector??n,{snapshot:d,consumedSegments:f,remainingSegments:h}=l,{segmentGroup:p,slicedSegments:g}=gE(t,f,h,c);if(0===g.length&&p.hasChildren())return this.processChildren(u,c,p).pipe(ie(w=>null===w?null:[new Xn(d,w)]));if(0===c.length&&0===g.length)return L([new Xn(d,[])]);const y=dn(r)===o;return this.processSegment(u,c,p,g,y?Z:o,!0).pipe(ie(w=>[new Xn(d,w)]))}))))}getChildConfig(n,t,r){return t.children?L({routes:t.children,injector:n}):t.loadChildren?void 0!==t._loadedRoutes?L({routes:t._loadedRoutes,injector:t._loadedInjector}):function JV(e,n,t,r){const i=n.canLoad;return void 0===i||0===i.length?L(!0):L(i.map(s=>{const a=co(s,e);return vr(function jV(e){return e&&Gs(e.canLoad)}(a)?a.canLoad(n,t):e.runInContext(()=>a(n,t)))})).pipe(uo(),fE())}(n,t,r).pipe(We(i=>i?this.configLoader.loadChildren(n,t).pipe(st(o=>{t._loadedRoutes=o.routes,t._loadedInjector=o.injector})):function nj(e){return qr(aE(!1,3))}())):L({routes:[],injector:n})}}function pj(e){const n=e.value.routeConfig;return n&&""===n.path}function mE(e){const n=[],t=new Set;for(const r of e){if(!pj(r)){n.push(r);continue}const i=n.find(o=>r.value.routeConfig===o.value.routeConfig);void 0!==i?(i.children.push(...r.children),t.add(i)):n.push(r)}for(const r of t){const i=mE(r.children);n.push(new Xn(r.value,i))}return n.filter(r=>!t.has(r))}function yE(e){return e.data||{}}function vE(e){return e.resolve||{}}function _E(e){return"string"==typeof e.title||null===e.title}function gp(e){return qt(n=>{const t=e(n);return t?Le(t).pipe(ie(()=>n)):L(n)})}const ho=new P("ROUTES");let mp=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=T(YD)}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return L(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);const r=vr(t.loadComponent()).pipe(ie(CE),st(o=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=o}),Os(()=>{this.componentLoaders.delete(t)})),i=new Pb(r,()=>new Ge).pipe(Kh());return this.componentLoaders.set(t,i),i}loadChildren(t,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return L({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const o=function Dj(e,n,t,r){return vr(e.loadChildren()).pipe(ie(CE),We(i=>i instanceof iD||Array.isArray(i)?L(i):Le(n.compileModuleAsync(i))),ie(i=>{r&&r(e);let o,s,a=!1;return Array.isArray(i)?(s=i,!0):(o=i.create(t).injector,s=o.get(ho,[],{optional:!0,self:!0}).flat()),{routes:s.map(fp),injector:o}}))}(r,this.compiler,t,this.onLoadEndListener).pipe(Os(()=>{this.childrenLoaders.delete(r)})),s=new Pb(o,()=>new Ge).pipe(Kh());return this.childrenLoaders.set(r,s),s}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function CE(e){return function wj(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let bc=(()=>{class e{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Ge,this.transitionAbortSubject=new Ge,this.configLoader=T(mp),this.environmentInjector=T(Lt),this.urlSerializer=T(Rs),this.rootContexts=T(Bs),this.inputBindingEnabled=null!==T(vc,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>L(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=i=>this.events.next(new pV(i)),this.configLoader.onLoadStartListener=i=>this.events.next(new hV(i))}complete(){this.transitions?.complete()}handleNavigationRequest(t){const r=++this.navigationId;this.transitions?.next({...this.transitions.value,...t,id:r})}setupNavigations(t,r,i){return this.transitions=new Gt({id:0,currentUrlTree:r,currentRawUrl:r,currentBrowserUrl:r,extractedUrl:t.urlHandlingStrategy.extract(r),urlAfterRedirects:t.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Vs,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Kn(o=>0!==o.id),ie(o=>({...o,extractedUrl:t.urlHandlingStrategy.extract(o.rawUrl)})),qt(o=>{this.currentTransition=o;let s=!1,a=!1;return L(o).pipe(st(l=>{this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),qt(l=>{const c=l.currentBrowserUrl.toString(),u=!t.navigated||l.extractedUrl.toString()!==c||c!==l.currentUrlTree.toString();if(!u&&"reload"!==(l.extras.onSameUrlNavigation??t.onSameUrlNavigation)){const f="";return this.events.next(new ao(l.id,this.urlSerializer.serialize(l.rawUrl),f,0)),l.resolve(null),pn}if(t.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return L(l).pipe(qt(f=>{const h=this.transitions?.getValue();return this.events.next(new gc(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),h!==this.transitions?.getValue()?pn:Promise.resolve(f)}),function gj(e,n,t,r,i,o){return We(s=>function dj(e,n,t,r,i,o,s="emptyOnly"){return new fj(e,n,t,r,i,s,o).recognize()}(e,n,t,r,s.extractedUrl,i,o).pipe(ie(({state:a,tree:l})=>({...s,targetSnapshot:a,urlAfterRedirects:l}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,t.paramsInheritanceStrategy),st(f=>{o.targetSnapshot=f.targetSnapshot,o.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:f.urlAfterRedirects};const h=new Yb(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(h)}));if(u&&t.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){const{id:f,extractedUrl:h,source:p,restoredState:g,extras:y}=l,w=new gc(f,this.urlSerializer.serialize(h),p,g);this.events.next(w);const v=tE(0,this.rootComponentType).snapshot;return this.currentTransition=o={...l,targetSnapshot:v,urlAfterRedirects:h,extras:{...y,skipLocationChange:!1,replaceUrl:!1}},L(o)}{const f="";return this.events.next(new ao(l.id,this.urlSerializer.serialize(l.extractedUrl),f,1)),l.resolve(null),pn}}),st(l=>{const c=new cV(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}),ie(l=>(this.currentTransition=o={...l,guards:RV(l.targetSnapshot,l.currentSnapshot,this.rootContexts)},o)),function GV(e,n){return We(t=>{const{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=t;return 0===s.length&&0===o.length?L({...t,guardsResult:!0}):function qV(e,n,t,r){return Le(e).pipe(We(i=>function XV(e,n,t,r,i){const o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return o&&0!==o.length?L(o.map(a=>{const l=Hs(n)??i,c=co(a,l);return vr(function HV(e){return e&&Gs(e.canDeactivate)}(c)?c.canDeactivate(e,n,t,r):l.runInContext(()=>c(e,n,t,r))).pipe(Wr())})).pipe(uo()):L(!0)}(i.component,i.route,t,n,r)),Wr(i=>!0!==i,!0))}(s,r,i,e).pipe(We(a=>a&&function VV(e){return"boolean"==typeof e}(a)?function WV(e,n,t,r){return Le(n).pipe(io(i=>Zh(function ZV(e,n){return null!==e&&n&&n(new gV(e)),L(!0)}(i.route.parent,r),function QV(e,n){return null!==e&&n&&n(new yV(e)),L(!0)}(i.route,r),function YV(e,n,t){const r=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>function kV(e){const n=e.routeConfig?e.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:e,guards:n}:null}(s)).filter(s=>null!==s).map(s=>Ab(()=>L(s.guards.map(l=>{const c=Hs(s.node)??t,u=co(l,c);return vr(function $V(e){return e&&Gs(e.canActivateChild)}(u)?u.canActivateChild(r,e):c.runInContext(()=>u(r,e))).pipe(Wr())})).pipe(uo())));return L(o).pipe(uo())}(e,i.path,t),function KV(e,n,t){const r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||0===r.length)return L(!0);const i=r.map(o=>Ab(()=>{const s=Hs(n)??t,a=co(o,s);return vr(function BV(e){return e&&Gs(e.canActivate)}(a)?a.canActivate(n,e):s.runInContext(()=>a(n,e))).pipe(Wr())}));return L(i).pipe(uo())}(e,i.route,t))),Wr(i=>!0!==i,!0))}(r,o,e,n):L(a)),ie(a=>({...t,guardsResult:a})))})}(this.environmentInjector,l=>this.events.next(l)),st(l=>{if(o.guardsResult=l.guardsResult,Zr(l.guardsResult))throw sE(0,l.guardsResult);const c=new uV(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(c)}),Kn(l=>!!l.guardsResult||(this.cancelNavigationTransition(l,"",3),!1)),gp(l=>{if(l.guards.canActivateChecks.length)return L(l).pipe(st(c=>{const u=new dV(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),qt(c=>{let u=!1;return L(c).pipe(function mj(e,n){return We(t=>{const{targetSnapshot:r,guards:{canActivateChecks:i}}=t;if(!i.length)return L(t);let o=0;return Le(i).pipe(io(s=>function yj(e,n,t,r){const i=e.routeConfig,o=e._resolve;return void 0!==i?.title&&!_E(i)&&(o[xs]=i.title),function vj(e,n,t,r){const i=function _j(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===i.length)return L({});const o={};return Le(i).pipe(We(s=>function Cj(e,n,t,r){const i=Hs(n)??r,o=co(e,i);return vr(o.resolve?o.resolve(n,t):i.runInContext(()=>o(n,t)))}(e[s],n,t,r).pipe(Wr(),st(a=>{o[s]=a}))),Yh(1),function NL(e){return ie(()=>e)}(o),Yn(s=>dE(s)?pn:qr(s)))}(o,e,n,r).pipe(ie(s=>(e._resolvedData=s,e.data=nE(e,t).resolve,i&&_E(i)&&(e.data[xs]=i.title),null)))}(s.route,r,e,n)),st(()=>o++),Yh(1),We(s=>o===i.length?L(t):pn))})}(t.paramsInheritanceStrategy,this.environmentInjector),st({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(c,"",2)}}))}),st(c=>{const u=new fV(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}))}),gp(l=>{const c=u=>{const d=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(u.routeConfig).pipe(st(f=>{u.component=f}),ie(()=>{})));for(const f of u.children)d.push(...c(f));return d};return Qh(c(l.targetSnapshot.root)).pipe(lc(),ro(1))}),gp(()=>this.afterPreactivation()),ie(l=>{const c=function bV(e,n,t){const r=$s(e,n._root,t?t._root:void 0);return new eE(r,n)}(t.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=o={...l,targetRouterState:c},o}),st(()=>{this.events.next(new rp)}),((e,n,t,r)=>ie(i=>(new NV(n,i.targetRouterState,i.currentRouterState,t,r).activate(e),i)))(this.rootContexts,t.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),ro(1),st({next:l=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new _r(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),t.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{s=!0}}),function RL(e){return Fe((n,t)=>{At(e).subscribe(Re(t,()=>t.complete(),du)),!t.closed&&n.subscribe(t)})}(this.transitionAbortSubject.pipe(st(l=>{throw l}))),Os(()=>{s||a||this.cancelNavigationTransition(o,"",1),this.currentNavigation?.id===o.id&&(this.currentNavigation=null)}),Yn(l=>{if(a=!0,lE(l))this.events.next(new js(o.id,this.urlSerializer.serialize(o.extractedUrl),l.message,l.cancellationCode)),function SV(e){return lE(e)&&Zr(e.url)}(l)?this.events.next(new ip(l.url)):o.resolve(!1);else{this.events.next(new mc(o.id,this.urlSerializer.serialize(o.extractedUrl),l,o.targetSnapshot??void 0));try{o.resolve(t.errorHandler(l))}catch(c){o.reject(c)}}return pn}))}))}cancelNavigationTransition(t,r,i){const o=new js(t.id,this.urlSerializer.serialize(t.extractedUrl),r,i);this.events.next(o),t.resolve(!1)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function DE(e){return e!==Vs}let wE=(()=>{class e{buildTitle(t){let r,i=t.root;for(;void 0!==i;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===Z);return r}getResolvedTitleForRoute(t){return t.data[xs]}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:function(){return T(bj)},providedIn:"root"})}return e})(),bj=(()=>{class e extends wE{constructor(t){super(),this.title=t}updateTitle(t){const r=this.buildTitle(t);void 0!==r&&this.title.setTitle(r)}static#e=this.\u0275fac=function(r){return new(r||e)(I(_b))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Ej=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:function(){return T(Sj)},providedIn:"root"})}return e})();class Mj{shouldDetach(n){return!1}store(n,t){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,t){return n.routeConfig===t.routeConfig}}let Sj=(()=>{class e extends Mj{static#e=this.\u0275fac=function(){let t;return function(i){return(t||(t=Je(e)))(i||e)}}();static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Ec=new P("",{providedIn:"root",factory:()=>({})});let Ij=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:function(){return T(Tj)},providedIn:"root"})}return e})(),Tj=(()=>{class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,r){return t}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var qs=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(qs||{});function bE(e,n){e.events.pipe(Kn(t=>t instanceof _r||t instanceof js||t instanceof mc||t instanceof ao),ie(t=>t instanceof _r||t instanceof ao?qs.COMPLETE:t instanceof js&&(0===t.code||1===t.code)?qs.REDIRECTING:qs.FAILED),Kn(t=>t!==qs.REDIRECTING),ro(1)).subscribe(()=>{n()})}function Aj(e){throw e}function Pj(e,n,t){return n.parse("/")}const Oj={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},xj={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ze=(()=>{class e{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.location.getState()?.\u0275routerPageId??this.currentPageId}get events(){return this._events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=T(KD),this.isNgZoneEnabled=!1,this._events=new Ge,this.options=T(Ec,{optional:!0})||{},this.pendingTasks=T(jl),this.errorHandler=this.options.errorHandler||Aj,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||Pj,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=T(Ij),this.routeReuseStrategy=T(Ej),this.titleStrategy=T(wE),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=T(ho,{optional:!0})?.flat()??[],this.navigationTransitions=T(bc),this.urlSerializer=T(Rs),this.location=T(Ch),this.componentInputBindingEnabled=!!T(vc,{optional:!0}),this.eventsSubscription=new Tt,this.isNgZoneEnabled=T(ce)instanceof ce&&ce.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new so,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=tE(0,null),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe(t=>{this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId},t=>{this.console.warn(`Unhandled Navigation Error: ${t}`)}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const t=this.navigationTransitions.events.subscribe(r=>{try{const{currentTransition:i}=this.navigationTransitions;if(null===i)return void(EE(r)&&this._events.next(r));if(r instanceof gc)DE(i.source)&&(this.browserUrlTree=i.extractedUrl);else if(r instanceof ao)this.rawUrlTree=i.rawUrl;else if(r instanceof Yb){if("eager"===this.urlUpdateStrategy){if(!i.extras.skipLocationChange){const o=this.urlHandlingStrategy.merge(i.urlAfterRedirects,i.rawUrl);this.setBrowserUrl(o,i)}this.browserUrlTree=i.urlAfterRedirects}}else if(r instanceof rp)this.currentUrlTree=i.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(i.urlAfterRedirects,i.rawUrl),this.routerState=i.targetRouterState,"deferred"===this.urlUpdateStrategy&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i),this.browserUrlTree=i.urlAfterRedirects);else if(r instanceof js)0!==r.code&&1!==r.code&&(this.navigated=!0),(3===r.code||2===r.code)&&this.restoreHistory(i);else if(r instanceof ip){const o=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),s={skipLocationChange:i.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||DE(i.source)};this.scheduleNavigation(o,Vs,null,s,{resolve:i.resolve,reject:i.reject,promise:i.promise})}r instanceof mc&&this.restoreHistory(i,!0),r instanceof _r&&(this.navigated=!0),EE(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const t=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Vs,t)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const r="popstate"===t.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{this.navigateToSyncWithBrowser(t.url,r,t.state)},0)}))}navigateToSyncWithBrowser(t,r,i){const o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){const l={...i};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(o.state=l)}const a=this.parseUrl(t);this.scheduleNavigation(a,r,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(fp),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,this.eventsSubscription.unsubscribe()}createUrlTree(t,r={}){const{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=r,c=l?this.currentUrlTree.fragment:s;let d,u=null;switch(a){case"merge":u={...this.currentUrlTree.queryParams,...o};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=o||null}null!==u&&(u=this.removeEmptyProps(u));try{d=zb(i?i.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof t[0]||!t[0].startsWith("/"))&&(t=[]),d=this.currentUrlTree.root}return Gb(d,t,u,c??null)}navigateByUrl(t,r={skipLocationChange:!1}){const i=Zr(t)?t:this.parseUrl(t),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Vs,null,r)}navigate(t,r={skipLocationChange:!1}){return function Nj(e){for(let n=0;n{const o=t[i];return null!=o&&(r[i]=o),r},{})}scheduleNavigation(t,r,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c;s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((d,f)=>{a=d,l=f});const u=this.pendingTasks.add();return bE(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,currentBrowserUrl:this.browserUrlTree,rawUrl:t,extras:o,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(d=>Promise.reject(d))}setBrowserUrl(t,r){const i=this.urlSerializer.serialize(t);if(this.location.isCurrentPathEqualTo(i)||r.extras.replaceUrl){const s={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId)};this.location.replaceState(i,"",s)}else{const o={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId+1)};this.location.go(i,"",o)}}restoreHistory(t,r=!1){if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-this.browserPageId;0!==o?this.location.historyGo(o):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===o&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,r){return"computed"===this.canceledNavigationResolution?{navigationId:t,\u0275routerPageId:r}:{navigationId:t}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function EE(e){return!(e instanceof rp||e instanceof ip)}let Kr=(()=>{class e{constructor(t,r,i,o,s,a){this.router=t,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=a,this.href=null,this.commands=null,this.onChanges=new Ge,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=t.events.subscribe(c=>{c instanceof _r&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(t){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(t){null!=t?(this.commands=Array.isArray(t)?t:[t],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(t,r,i,o,s){return!!(null===this.urlTree||this.isAnchorElement&&(0!==t||r||i||o||s||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const t=null===this.href?null:function lv(e,n,t){return function fP(e,n){return"src"===n&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===n&&("base"===e||"link"===e)?av:dr}(n,t)(e)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",t)}applyAttributeValue(t,r){const i=this.renderer,o=this.el.nativeElement;null!==r?i.setAttribute(o,t,r):i.removeAttribute(o,t)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static#e=this.\u0275fac=function(r){return new(r||e)(D(ze),D(Cr),function Va(e){return function AT(e,n){if("class"===n)return e.classes;if("style"===n)return e.styles;const t=e.attrs;if(t){const r=t.length;let i=0;for(;i{class e{constructor(t,r,i,o,s){this.router=t,this.injector=i,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(Kn(t=>t instanceof _r),io(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,r){const i=[];for(const o of r){o.providers&&!o._injector&&(o._injector=jf(o.providers,t,`Route: ${o.path}`));const s=o._injector??t,a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(a,o.children??o._loadedRoutes))}return Le(i).pipe(si())}preloadConfig(t,r){return this.preloadingStrategy.preload(r,()=>{let i;i=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(t,r):L(null);const o=i.pipe(We(s=>null===s?L(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??t,s.routes))));return r.loadComponent&&!r._loadedComponent?Le([o,this.loader.loadComponent(r)]).pipe(si()):o})}static#e=this.\u0275fac=function(r){return new(r||e)(I(ze),I(YD),I(Lt),I(ME),I(mp))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const yp=new P("");let SE=(()=>{class e{constructor(t,r,i,o,s={}){this.urlSerializer=t,this.transitions=r,this.viewportScroller=i,this.zone=o,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(t=>{t instanceof gc?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof _r?(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment)):t instanceof ao&&0===t.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof Xb&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Xb(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(r){!function Zv(){throw new Error("invalid")}()};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})();function Jn(e,n){return{\u0275kind:e,\u0275providers:n}}function TE(){const e=T(it);return n=>{const t=e.get(qn);if(n!==t.components[0])return;const r=e.get(ze),i=e.get(AE);1===e.get(vp)&&r.initialNavigation(),e.get(PE,null,X.Optional)?.setUpPreloading(),e.get(yp,null,X.Optional)?.init(),r.resetRootComponentType(t.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}const AE=new P("",{factory:()=>new Ge}),vp=new P("",{providedIn:"root",factory:()=>1}),PE=new P("");function Bj(e){return Jn(0,[{provide:PE,useExisting:Fj},{provide:ME,useExisting:e}])}const OE=new P("ROUTER_FORROOT_GUARD"),Hj=[Ch,{provide:Rs,useClass:Xh},ze,Bs,{provide:Cr,useFactory:function IE(e){return e.routerState.root},deps:[ze]},mp,[]];function Uj(){return new iw("Router",ze)}let xE=(()=>{class e{constructor(t){}static forRoot(t,r){return{ngModule:e,providers:[Hj,[],{provide:ho,multi:!0,useValue:t},{provide:OE,useFactory:Wj,deps:[[ze,new $a,new Ha]]},{provide:Ec,useValue:r||{}},r?.useHash?{provide:gr,useClass:Fw}:{provide:gr,useClass:kw},{provide:yp,useFactory:()=>{const e=T(_2),n=T(ce),t=T(Ec),r=T(bc),i=T(Rs);return t.scrollOffset&&e.setOffset(t.scrollOffset),new SE(i,r,e,n,t)}},r?.preloadingStrategy?Bj(r.preloadingStrategy).\u0275providers:[],{provide:iw,multi:!0,useFactory:Uj},r?.initialNavigation?Qj(r):[],r?.bindToComponentInputs?Jn(8,[oE,{provide:vc,useExisting:oE}]).\u0275providers:[],[{provide:NE,useFactory:TE},{provide:uh,multi:!0,useExisting:NE}]]}}static forChild(t){return{ngModule:e,providers:[{provide:ho,multi:!0,useValue:t}]}}static#e=this.\u0275fac=function(r){return new(r||e)(I(OE,8))};static#t=this.\u0275mod=tt({type:e});static#n=this.\u0275inj=Qe({})}return e})();function Wj(e){return"guarded"}function Qj(e){return["disabled"===e.initialNavigation?Jn(3,[{provide:nh,multi:!0,useFactory:()=>{const n=T(ze);return()=>{n.setUpLocationChangeListener()}}},{provide:vp,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?Jn(2,[{provide:vp,useValue:0},{provide:nh,multi:!0,deps:[it],useFactory:n=>{const t=n.get(Jk,Promise.resolve());return()=>t.then(()=>new Promise(r=>{const i=n.get(ze),o=n.get(AE);bE(i,()=>{r(!0)}),n.get(bc).afterPreactivation=()=>(r(!0),o.closed?L(void 0):o),i.initialNavigation()}))}}]).\u0275providers:[]]}const NE=new P("");let RE=(()=>{class e{constructor(t,r){this._renderer=t,this._elementRef=r,this.onChange=i=>{},this.onTouched=()=>{}}setProperty(t,r){this._renderer.setProperty(this._elementRef.nativeElement,t,r)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}static#e=this.\u0275fac=function(r){return new(r||e)(D(jn),D(Vt))};static#t=this.\u0275dir=$({type:e})}return e})(),Yr=(()=>{class e extends RE{static#e=this.\u0275fac=function(){let t;return function(i){return(t||(t=Je(e)))(i||e)}}();static#t=this.\u0275dir=$({type:e,features:[de]})}return e})();const Tn=new P("NgValueAccessor"),Xj={provide:Tn,useExisting:me(()=>Dr),multi:!0},eB=new P("CompositionEventMode");let Dr=(()=>{class e extends RE{constructor(t,r,i){super(t,r),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function Jj(){const e=pr()?pr().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(t){this.setProperty("value",t??"")}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}static#e=this.\u0275fac=function(r){return new(r||e)(D(jn),D(Vt),D(eB,8))};static#t=this.\u0275dir=$({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(r,i){1&r&&Y("input",function(s){return i._handleInput(s.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(s){return i._compositionEnd(s.target.value)})},features:[Ee([Xj]),de]})}return e})();function wr(e){return null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}function FE(e){return null!=e&&"number"==typeof e.length}const at=new P("NgValidators"),br=new P("NgAsyncValidators"),tB=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class LE{static min(n){return function VE(e){return n=>{if(wr(n.value)||wr(e))return null;const t=parseFloat(n.value);return!isNaN(t)&&t{if(wr(n.value)||wr(e))return null;const t=parseFloat(n.value);return!isNaN(t)&&t>e?{max:{max:e,actual:n.value}}:null}}(n)}static required(n){return function BE(e){return wr(e.value)?{required:!0}:null}(n)}static requiredTrue(n){return function $E(e){return!0===e.value?null:{required:!0}}(n)}static email(n){return function HE(e){return wr(e.value)||tB.test(e.value)?null:{email:!0}}(n)}static minLength(n){return function UE(e){return n=>wr(n.value)||!FE(n.value)?null:n.value.lengthFE(n.value)&&n.value.length>e?{maxlength:{requiredLength:e,actualLength:n.value.length}}:null}(n)}static pattern(n){return function GE(e){if(!e)return Mc;let n,t;return"string"==typeof e?(t="","^"!==e.charAt(0)&&(t+="^"),t+=e,"$"!==e.charAt(e.length-1)&&(t+="$"),n=new RegExp(t)):(t=e.toString(),n=e),r=>{if(wr(r.value))return null;const i=r.value;return n.test(i)?null:{pattern:{requiredPattern:t,actualValue:i}}}}(n)}static nullValidator(n){return null}static compose(n){return YE(n)}static composeAsync(n){return XE(n)}}function Mc(e){return null}function qE(e){return null!=e}function WE(e){return ps(e)?Le(e):e}function QE(e){let n={};return e.forEach(t=>{n=null!=t?{...n,...t}:n}),0===Object.keys(n).length?null:n}function ZE(e,n){return n.map(t=>t(e))}function KE(e){return e.map(n=>function nB(e){return!e.validate}(n)?n:t=>n.validate(t))}function YE(e){if(!e)return null;const n=e.filter(qE);return 0==n.length?null:function(t){return QE(ZE(t,n))}}function _p(e){return null!=e?YE(KE(e)):null}function XE(e){if(!e)return null;const n=e.filter(qE);return 0==n.length?null:function(t){return function Kj(...e){const n=Bg(e),{args:t,keys:r}=Mb(e),i=new Ae(o=>{const{length:s}=t;if(!s)return void o.complete();const a=new Array(s);let l=s,c=s;for(let u=0;u{d||(d=!0,c--),a[u]=f},()=>l--,void 0,()=>{(!l||!d)&&(c||o.next(r?Ib(r,a):a),o.complete())}))}});return n?i.pipe(Sb(n)):i}(ZE(t,n).map(WE)).pipe(ie(QE))}}function Cp(e){return null!=e?XE(KE(e)):null}function JE(e,n){return null===e?[n]:Array.isArray(e)?[...e,n]:[e,n]}function eM(e){return e._rawValidators}function tM(e){return e._rawAsyncValidators}function Dp(e){return e?Array.isArray(e)?e:[e]:[]}function Sc(e,n){return Array.isArray(e)?e.includes(n):e===n}function nM(e,n){const t=Dp(n);return Dp(e).forEach(i=>{Sc(t,i)||t.push(i)}),t}function rM(e,n){return Dp(n).filter(t=>!Sc(e,t))}class iM{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=_p(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=Cp(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,t){return!!this.control&&this.control.hasError(n,t)}getError(n,t){return this.control?this.control.getError(n,t):null}}class Ct extends iM{get formDirective(){return null}get path(){return null}}class Er extends iM{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class oM{constructor(n){this._cd=n}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 po=(()=>{class e extends oM{constructor(t){super(t)}static#e=this.\u0275fac=function(r){return new(r||e)(D(Er,2))};static#t=this.\u0275dir=$({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,i){2&r&&gs("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[de]})}return e})(),wp=(()=>{class e extends oM{constructor(t){super(t)}static#e=this.\u0275fac=function(r){return new(r||e)(D(Ct,10))};static#t=this.\u0275dir=$({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,i){2&r&&gs("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},features:[de]})}return e})();const Ws="VALID",Tc="INVALID",go="PENDING",Qs="DISABLED";function Mp(e){return(Ac(e)?e.validators:e)||null}function Sp(e,n){return(Ac(n)?n.asyncValidators:e)||null}function Ac(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function aM(e,n,t){const r=e.controls;if(!(n?Object.keys(r):r).length)throw new C(1e3,"");if(!r[t])throw new C(1001,"")}function lM(e,n,t){e._forEachChild((r,i)=>{if(void 0===t[i])throw new C(1002,"")})}class Pc{constructor(n,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===Ws}get invalid(){return this.status===Tc}get pending(){return this.status==go}get disabled(){return this.status===Qs}get enabled(){return this.status!==Qs}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(nM(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(nM(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(rM(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(rM(n,this._rawAsyncValidators))}hasValidator(n){return Sc(this._rawValidators,n)}hasAsyncValidator(n){return Sc(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=go,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=Qs,this.errors=null,this._forEachChild(r=>{r.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:t}),this._onDisabledChange.forEach(r=>r(!0))}enable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=Ws,this._forEachChild(r=>{r.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:t}),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ws||this.status===go)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Qs:Ws}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=go,this._hasOwnPendingAsyncValidator=!0;const t=WE(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,t={}){this.errors=n,this._updateControlsErrors(!1!==t.emitEvent)}get(n){let t=n;return null==t||(Array.isArray(t)||(t=t.split(".")),0===t.length)?null:t.reduce((r,i)=>r&&r._find(i),this)}getError(n,t){const r=t?this.get(t):this;return r&&r.errors?r.errors[n]:null}hasError(n,t){return!!this.getError(n,t)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new _e,this.statusChanges=new _e}_calculateStatus(){return this._allControlsDisabled()?Qs:this.errors?Tc:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(go)?go:this._anyControlsHaveStatus(Tc)?Tc:Ws}_anyControlsHaveStatus(n){return this._anyControls(t=>t.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){Ac(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function sB(e){return Array.isArray(e)?_p(e):e||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function aB(e){return Array.isArray(e)?Cp(e):e||null}(this._rawAsyncValidators)}}class mo extends Pc{constructor(n,t,r){super(Mp(t),Sp(r,t)),this.controls=n,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,t){return this.controls[n]?this.controls[n]:(this.controls[n]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(n,t,r={}){this.registerControl(n,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(n,t={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(n,t,r={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],t&&this.registerControl(n,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,t={}){lM(this,0,n),Object.keys(n).forEach(r=>{aM(this,!0,r),this.controls[r].setValue(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(Object.keys(n).forEach(r=>{const i=this.controls[r];i&&i.patchValue(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n={},t={}){this._forEachChild((r,i)=>{r.reset(n?n[i]:null,{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(n,t,r)=>(n[r]=t.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(t,r)=>!!r._syncPendingControls()||t);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(t=>{const r=this.controls[t];r&&n(r,t)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[t,r]of Object.entries(this.controls))if(this.contains(t)&&n(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(t,r,i)=>((r.enabled||this.disabled)&&(t[i]=r.value),t))}_reduceChildren(n,t){let r=n;return this._forEachChild((i,o)=>{r=t(r,i,o)}),r}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}class cM extends mo{}const Xr=new P("CallSetDisabledState",{providedIn:"root",factory:()=>Zs}),Zs="always";function Oc(e,n){return[...n.path,e]}function Ks(e,n,t=Zs){Ip(e,n),n.valueAccessor.writeValue(e.value),(e.disabled||"always"===t)&&n.valueAccessor.setDisabledState?.(e.disabled),function cB(e,n){n.valueAccessor.registerOnChange(t=>{e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&uM(e,n)})}(e,n),function dB(e,n){const t=(r,i)=>{n.valueAccessor.writeValue(r),i&&n.viewToModelUpdate(r)};e.registerOnChange(t),n._registerOnDestroy(()=>{e._unregisterOnChange(t)})}(e,n),function uB(e,n){n.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&uM(e,n),"submit"!==e.updateOn&&e.markAsTouched()})}(e,n),function lB(e,n){if(n.valueAccessor.setDisabledState){const t=r=>{n.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(t),n._registerOnDestroy(()=>{e._unregisterOnDisabledChange(t)})}}(e,n)}function xc(e,n,t=!0){const r=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(r),n.valueAccessor.registerOnTouched(r)),Rc(e,n),e&&(n._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function Nc(e,n){e.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(n)})}function Ip(e,n){const t=eM(e);null!==n.validator?e.setValidators(JE(t,n.validator)):"function"==typeof t&&e.setValidators([t]);const r=tM(e);null!==n.asyncValidator?e.setAsyncValidators(JE(r,n.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const i=()=>e.updateValueAndValidity();Nc(n._rawValidators,i),Nc(n._rawAsyncValidators,i)}function Rc(e,n){let t=!1;if(null!==e){if(null!==n.validator){const i=eM(e);if(Array.isArray(i)&&i.length>0){const o=i.filter(s=>s!==n.validator);o.length!==i.length&&(t=!0,e.setValidators(o))}}if(null!==n.asyncValidator){const i=tM(e);if(Array.isArray(i)&&i.length>0){const o=i.filter(s=>s!==n.asyncValidator);o.length!==i.length&&(t=!0,e.setAsyncValidators(o))}}}const r=()=>{};return Nc(n._rawValidators,r),Nc(n._rawAsyncValidators,r),t}function uM(e,n){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function dM(e,n){Ip(e,n)}function Ap(e,n){if(!e.hasOwnProperty("model"))return!1;const t=e.model;return!!t.isFirstChange()||!Object.is(n,t.currentValue)}function fM(e,n){e._syncPendingControls(),n.forEach(t=>{const r=t.control;"submit"===r.updateOn&&r._pendingChange&&(t.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}function Pp(e,n){if(!n)return null;let t,r,i;return Array.isArray(n),n.forEach(o=>{o.constructor===Dr?t=o:function pB(e){return Object.getPrototypeOf(e.constructor)===Yr}(o)?r=o:i=o}),i||r||t||null}const mB={provide:Ct,useExisting:me(()=>kc)},Ys=(()=>Promise.resolve())();let kc=(()=>{class e extends Ct{constructor(t,r,i){super(),this.callSetDisabledState=i,this.submitted=!1,this._directives=new Set,this.ngSubmit=new _e,this.form=new mo({},_p(t),Cp(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Ys.then(()=>{const r=this._findContainer(t.path);t.control=r.registerControl(t.name,t.control),Ks(t.control,t,this.callSetDisabledState),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){Ys.then(()=>{const r=this._findContainer(t.path);r&&r.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){Ys.then(()=>{const r=this._findContainer(t.path),i=new mo({});dM(i,t),r.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Ys.then(()=>{const r=this._findContainer(t.path);r&&r.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,r){Ys.then(()=>{this.form.get(t.path).setValue(r)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,fM(this.form,this._directives),this.ngSubmit.emit(t),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}static#e=this.\u0275fac=function(r){return new(r||e)(D(at,10),D(br,10),D(Xr,8))};static#t=this.\u0275dir=$({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(r,i){1&r&&Y("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ee([mB]),de]})}return e})();function hM(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function pM(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const Xs=class extends Pc{constructor(n=null,t,r){super(Mp(t),Sp(r,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Ac(t)&&(t.nonNullable||t.initialValueIsDefault)&&(this.defaultValue=pM(n)?n.value:n)}setValue(n,t={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(n,t={}){this.setValue(n,t)}reset(n=this.defaultValue,t={}){this._applyFormState(n),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){hM(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){hM(this._onDisabledChange,n)}_forEachChild(n){}_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(n){pM(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}},_B={provide:Er,useExisting:me(()=>yo)},yM=(()=>Promise.resolve())();let yo=(()=>{class e extends Er{constructor(t,r,i,o,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new Xs,this._registered=!1,this.name="",this.update=new _e,this._parent=t,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=Pp(0,o)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){const r=t.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),Ap(t,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(t){this.viewModel=t,this.update.emit(t)}_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(){Ks(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(t){yM.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){const r=t.isDisabled.currentValue,i=0!==r&&eo(r);yM.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?Oc(t,this._parent):[t]}static#e=this.\u0275fac=function(r){return new(r||e)(D(Ct,9),D(at,10),D(br,10),D(Tn,10),D(Ul,8),D(Xr,8))};static#t=this.\u0275dir=$({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:[Ee([_B]),de,xt]})}return e})(),Op=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275dir=$({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return e})();const CB={provide:Tn,useExisting:me(()=>Fc),multi:!0};let Fc=(()=>{class e extends Yr{writeValue(t){this.setProperty("value",t??"")}registerOnChange(t){this.onChange=r=>{t(""==r?null:parseFloat(r))}}static#e=this.\u0275fac=function(){let t;return function(i){return(t||(t=Je(e)))(i||e)}}();static#t=this.\u0275dir=$({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(r,i){1&r&&Y("input",function(s){return i.onChange(s.target.value)})("blur",function(){return i.onTouched()})},features:[Ee([CB]),de]})}return e})();const DB={provide:Tn,useExisting:me(()=>xp),multi:!0};let vM=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=tt({type:e});static#n=this.\u0275inj=Qe({})}return e})(),wB=(()=>{class e{constructor(){this._accessors=[]}add(t,r){this._accessors.push([t,r])}remove(t){for(let r=this._accessors.length-1;r>=0;--r)if(this._accessors[r][1]===t)return void this._accessors.splice(r,1)}select(t){this._accessors.forEach(r=>{this._isSameGroup(r,t)&&r[1]!==t&&r[1].fireUncheck(t.value)})}_isSameGroup(t,r){return!!t[0].control&&t[0]._parent===r._control._parent&&t[1].name===r.name}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:vM})}return e})(),xp=(()=>{class e extends Yr{constructor(t,r,i,o){super(t,r),this._registry=i,this._injector=o,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=T(Xr,{optional:!0})??Zs}ngOnInit(){this._control=this._injector.get(Er),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this.setProperty("checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}setDisabledState(t){(this.setDisabledStateFired||t||"whenDisabledForLegacyCode"===this.callSetDisabledState)&&this.setProperty("disabled",t),this.setDisabledStateFired=!0}fireUncheck(t){this.writeValue(t)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}static#e=this.\u0275fac=function(r){return new(r||e)(D(jn),D(Vt),D(wB),D(it))};static#t=this.\u0275dir=$({type:e,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(r,i){1&r&&Y("change",function(){return i.onChange()})("blur",function(){return i.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[Ee([DB]),de]})}return e})();const Np=new P("NgModelWithFormControlWarning"),MB={provide:Ct,useExisting:me(()=>Lc)};let Lc=(()=>{class e extends Ct{constructor(t,r,i){super(),this.callSetDisabledState=i,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new _e,this._setValidators(t),this._setAsyncValidators(r)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Rc(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const r=this.form.get(t.path);return Ks(r,t,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),r}getControl(t){return this.form.get(t.path)}removeControl(t){xc(t.control||null,t,!1),function gB(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,r){this.form.get(t.path).setValue(r)}onSubmit(t){return this.submitted=!0,fM(this.form,this.directives),this.ngSubmit.emit(t),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const r=t.control,i=this.form.get(t.path);r!==i&&(xc(r||null,t),(e=>e instanceof Xs)(i)&&(Ks(i,t,this.callSetDisabledState),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const r=this.form.get(t.path);dM(r,t),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const r=this.form.get(t.path);r&&function fB(e,n){return Rc(e,n)}(r,t)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Ip(this.form,this),this._oldForm&&Rc(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(r){return new(r||e)(D(at,10),D(br,10),D(Xr,8))};static#t=this.\u0275dir=$({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,i){1&r&&Y("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ee([MB]),de,xt]})}return e})();const TB={provide:Er,useExisting:me(()=>Fp)};let Fp=(()=>{class e extends Er{set isDisabled(t){}static#e=this._ngModelWarningSentOnce=!1;constructor(t,r,i,o,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.name=null,this.update=new _e,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=Pp(0,o)}ngOnChanges(t){this._added||this._setUpControl(),Ap(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return Oc(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static#t=this.\u0275fac=function(r){return new(r||e)(D(Ct,13),D(at,10),D(br,10),D(Tn,10),D(Np,8))};static#n=this.\u0275dir=$({type:e,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[Ee([TB]),de,xt]})}return e})(),NM=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=tt({type:e});static#n=this.\u0275inj=Qe({imports:[vM]})}return e})();class RM extends Pc{constructor(n,t,r){super(Mp(t),Sp(r,t)),this.controls=n,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,t={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(n,t,r={}){this.controls.splice(n,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(n,t={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(n,t,r={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),t&&(this.controls.splice(i,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,t={}){lM(this,0,n),n.forEach((r,i)=>{aM(this,!1,i),this.at(i).setValue(r,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(n.forEach((r,i)=>{this.at(i)&&this.at(i).patchValue(r,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n=[],t={}){this._forEachChild((r,i)=>{r.reset(n[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((t,r)=>!!r._syncPendingControls()||t,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((t,r)=>{n(t,r)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(t=>t.enabled&&n(t))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}}function kM(e){return!!e&&(void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn)}let UB=(()=>{class e{constructor(){this.useNonNullable=!1}get nonNullable(){const t=new e;return t.useNonNullable=!0,t}group(t,r=null){const i=this._reduceControls(t);let o={};return kM(r)?o=r:null!==r&&(o.validators=r.validator,o.asyncValidators=r.asyncValidator),new mo(i,o)}record(t,r=null){const i=this._reduceControls(t);return new cM(i,r)}control(t,r,i){let o={};return this.useNonNullable?(kM(r)?o=r:(o.validators=r,o.asyncValidators=i),new Xs(t,{...o,nonNullable:!0})):new Xs(t,r,i)}array(t,r,i){const o=t.map(s=>this._createControl(s));return new RM(o,r,i)}_reduceControls(t){const r={};return Object.keys(t).forEach(i=>{r[i]=this._createControl(t[i])}),r}_createControl(t){return t instanceof Xs||t instanceof Pc?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),FM=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:Xr,useValue:t.callSetDisabledState??Zs}]}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=tt({type:e});static#n=this.\u0275inj=Qe({imports:[NM]})}return e})(),Vc=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:Np,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:Xr,useValue:t.callSetDisabledState??Zs}]}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=tt({type:e});static#n=this.\u0275inj=Qe({imports:[NM]})}return e})();class jc{}class Bc{}class An{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?"string"==typeof n?this.lazyInit=()=>{this.headers=new Map,n.split("\n").forEach(t=>{const r=t.indexOf(":");if(r>0){const i=t.slice(0,r),o=i.toLowerCase(),s=t.slice(r+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((t,r)=>{this.setHeaderEntries(r,t)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([t,r])=>{this.setHeaderEntries(t,r)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const t=this.headers.get(n.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,t){return this.clone({name:n,value:t,op:"a"})}set(n,t){return this.clone({name:n,value:t,op:"s"})}delete(n,t){return this.clone({name:n,value:t,op:"d"})}maybeSetNormalizedName(n,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,n)}init(){this.lazyInit&&(this.lazyInit instanceof An?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(t=>{this.headers.set(t,n.headers.get(t)),this.normalizedNames.set(t,n.normalizedNames.get(t))})}clone(n){const t=new An;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof An?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([n]),t}applyUpdate(n){const t=n.name.toLowerCase();switch(n.op){case"a":case"s":let r=n.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(n.name,t);const i=("a"===n.op?this.headers.get(t):void 0)||[];i.push(...r),this.headers.set(t,i);break;case"d":const o=n.value;if(o){let s=this.headers.get(t);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,s)}else this.headers.delete(t),this.normalizedNames.delete(t)}}setHeaderEntries(n,t){const r=(Array.isArray(t)?t:[t]).map(o=>o.toString()),i=n.toLowerCase();this.headers.set(i,r),this.maybeSetNormalizedName(n,i)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>n(this.normalizedNames.get(t),this.headers.get(t)))}}class zB{encodeKey(n){return LM(n)}encodeValue(n){return LM(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const qB=/%(\d[a-f0-9])/gi,WB={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function LM(e){return encodeURIComponent(e).replace(qB,(n,t)=>WB[t]??n)}function $c(e){return`${e}`}class Mr{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new zB,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function GB(e,n){const t=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(i=>{const o=i.indexOf("="),[s,a]=-1==o?[n.decodeKey(i),""]:[n.decodeKey(i.slice(0,o)),n.decodeValue(i.slice(o+1))],l=t.get(s)||[];l.push(a),t.set(s,l)}),t}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(t=>{const r=n.fromObject[t],i=Array.isArray(r)?r.map($c):[$c(r)];this.map.set(t,i)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const t=this.map.get(n);return t?t[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,t){return this.clone({param:n,value:t,op:"a"})}appendAll(n){const t=[];return Object.keys(n).forEach(r=>{const i=n[r];Array.isArray(i)?i.forEach(o=>{t.push({param:r,value:o,op:"a"})}):t.push({param:r,value:i,op:"a"})}),this.clone(t)}set(n,t){return this.clone({param:n,value:t,op:"s"})}delete(n,t){return this.clone({param:n,value:t,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const t=this.encoder.encodeKey(n);return this.map.get(n).map(r=>t+"="+this.encoder.encodeValue(r)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const t=new Mr({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(n),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const t=("a"===n.op?this.map.get(n.param):void 0)||[];t.push($c(n.value)),this.map.set(n.param,t);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let r=this.map.get(n.param)||[];const i=r.indexOf($c(n.value));-1!==i&&r.splice(i,1),r.length>0?this.map.set(n.param,r):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class QB{constructor(){this.map=new Map}set(n,t){return this.map.set(n,t),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function VM(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function jM(e){return typeof Blob<"u"&&e instanceof Blob}function BM(e){return typeof FormData<"u"&&e instanceof FormData}class Js{constructor(n,t,r,i){let o;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function ZB(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==r?r:null,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new An),this.context||(this.context=new QB),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=t;else{const a=t.indexOf("?");this.urlWithParams=t+(-1===a?"?":ad.set(f,n.setHeaders[f]),l)),n.setParams&&(c=Object.keys(n.setParams).reduce((d,f)=>d.set(f,n.setParams[f]),c)),new Js(t,r,o,{params:c,headers:l,context:u,reportProgress:a,responseType:i,withCredentials:s})}}var vo=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(vo||{});class Bp{constructor(n,t=200,r="OK"){this.headers=n.headers||new An,this.status=void 0!==n.status?n.status:t,this.statusText=n.statusText||r,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class $p extends Bp{constructor(n={}){super(n),this.type=vo.ResponseHeader}clone(n={}){return new $p({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class _o extends Bp{constructor(n={}){super(n),this.type=vo.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new _o({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class $M extends Bp{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function Hp(e,n){return{body:n,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let Hc=(()=>{class e{constructor(t){this.handler=t}request(t,r,i={}){let o;if(t instanceof Js)o=t;else{let l,c;l=i.headers instanceof An?i.headers:new An(i.headers),i.params&&(c=i.params instanceof Mr?i.params:new Mr({fromObject:i.params})),o=new Js(t,r,void 0!==i.body?i.body:null,{headers:l,context:i.context,params:c,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const s=L(o).pipe(io(l=>this.handler.handle(l)));if(t instanceof Js||"events"===i.observe)return s;const a=s.pipe(Kn(l=>l instanceof _o));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(ie(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(ie(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(ie(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(ie(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(t,r={}){return this.request("DELETE",t,r)}get(t,r={}){return this.request("GET",t,r)}head(t,r={}){return this.request("HEAD",t,r)}jsonp(t,r){return this.request("JSONP",t,{params:(new Mr).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,r={}){return this.request("OPTIONS",t,r)}patch(t,r,i={}){return this.request("PATCH",t,Hp(i,r))}post(t,r,i={}){return this.request("POST",t,Hp(i,r))}put(t,r,i={}){return this.request("PUT",t,Hp(i,r))}static#e=this.\u0275fac=function(r){return new(r||e)(I(jc))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})();function zM(e,n){return n(e)}function XB(e,n){return(t,r)=>n.intercept(t,{handle:i=>e(i,r)})}const GM=new P(""),ea=new P(""),qM=new P("");function e$(){let e=null;return(n,t)=>{null===e&&(e=(T(GM,{optional:!0})??[]).reduceRight(XB,zM));const r=T(jl),i=r.add();return e(n,t).pipe(Os(()=>r.remove(i)))}}let WM=(()=>{class e extends jc{constructor(t,r){super(),this.backend=t,this.injector=r,this.chain=null,this.pendingTasks=T(jl)}handle(t){if(null===this.chain){const i=Array.from(new Set([...this.injector.get(ea),...this.injector.get(qM,[])]));this.chain=i.reduceRight((o,s)=>function JB(e,n,t){return(r,i)=>t.runInContext(()=>n(r,o=>e(o,i)))}(o,s,this.injector),zM)}const r=this.pendingTasks.add();return this.chain(t,i=>this.backend.handle(i)).pipe(Os(()=>this.pendingTasks.remove(r)))}static#e=this.\u0275fac=function(r){return new(r||e)(I(Bc),I(Lt))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})();const i$=/^\)\]\}',?\n/;let ZM=(()=>{class e{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new C(-2800,!1);const r=this.xhrFactory;return(r.\u0275loadImpl?Le(r.\u0275loadImpl()):L(null)).pipe(qt(()=>new Ae(o=>{const s=r.build();if(s.open(t.method,t.urlWithParams),t.withCredentials&&(s.withCredentials=!0),t.headers.forEach((g,y)=>s.setRequestHeader(g,y.join(","))),t.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const g=t.detectContentTypeHeader();null!==g&&s.setRequestHeader("Content-Type",g)}if(t.responseType){const g=t.responseType.toLowerCase();s.responseType="json"!==g?g:"text"}const a=t.serializeBody();let l=null;const c=()=>{if(null!==l)return l;const g=s.statusText||"OK",y=new An(s.getAllResponseHeaders()),w=function o$(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(s)||t.url;return l=new $p({headers:y,status:s.status,statusText:g,url:w}),l},u=()=>{let{headers:g,status:y,statusText:w,url:v}=c(),S=null;204!==y&&(S=typeof s.response>"u"?s.responseText:s.response),0===y&&(y=S?200:0);let O=y>=200&&y<300;if("json"===t.responseType&&"string"==typeof S){const U=S;S=S.replace(i$,"");try{S=""!==S?JSON.parse(S):null}catch(he){S=U,O&&(O=!1,S={error:he,text:S})}}O?(o.next(new _o({body:S,headers:g,status:y,statusText:w,url:v||void 0})),o.complete()):o.error(new $M({error:S,headers:g,status:y,statusText:w,url:v||void 0}))},d=g=>{const{url:y}=c(),w=new $M({error:g,status:s.status||0,statusText:s.statusText||"Unknown Error",url:y||void 0});o.error(w)};let f=!1;const h=g=>{f||(o.next(c()),f=!0);let y={type:vo.DownloadProgress,loaded:g.loaded};g.lengthComputable&&(y.total=g.total),"text"===t.responseType&&s.responseText&&(y.partialText=s.responseText),o.next(y)},p=g=>{let y={type:vo.UploadProgress,loaded:g.loaded};g.lengthComputable&&(y.total=g.total),o.next(y)};return s.addEventListener("load",u),s.addEventListener("error",d),s.addEventListener("timeout",d),s.addEventListener("abort",d),t.reportProgress&&(s.addEventListener("progress",h),null!==a&&s.upload&&s.upload.addEventListener("progress",p)),s.send(a),o.next({type:vo.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",u),s.removeEventListener("timeout",d),t.reportProgress&&(s.removeEventListener("progress",h),null!==a&&s.upload&&s.upload.removeEventListener("progress",p)),s.readyState!==s.DONE&&s.abort()}})))}static#e=this.\u0275fac=function(r){return new(r||e)(I(tb))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})();const Up=new P("XSRF_ENABLED"),KM=new P("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),YM=new P("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class XM{}let l$=(()=>{class e{constructor(t,r,i){this.doc=t,this.platform=r,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=qw(t,this.cookieName),this.lastCookieString=t),this.lastToken}static#e=this.\u0275fac=function(r){return new(r||e)(I(Ue),I(Br),I(KM))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})();function c$(e,n){const t=e.url.toLowerCase();if(!T(Up)||"GET"===e.method||"HEAD"===e.method||t.startsWith("http://")||t.startsWith("https://"))return n(e);const r=T(XM).getToken(),i=T(YM);return null!=r&&!e.headers.has(i)&&(e=e.clone({headers:e.headers.set(i,r)})),n(e)}var Sr=function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e}(Sr||{});function u$(...e){const n=[Hc,ZM,WM,{provide:jc,useExisting:WM},{provide:Bc,useExisting:ZM},{provide:ea,useValue:c$,multi:!0},{provide:Up,useValue:!0},{provide:XM,useClass:l$}];for(const t of e)n.push(...t.\u0275providers);return ol(n)}const JM=new P("LEGACY_INTERCEPTOR_FN");function d$(){return function ei(e,n){return{\u0275kind:e,\u0275providers:n}}(Sr.LegacyInterceptors,[{provide:JM,useFactory:e$},{provide:ea,useExisting:JM,multi:!0}])}let e0=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=tt({type:e});static#n=this.\u0275inj=Qe({providers:[u$(d$())]})}return e})(),ta=(()=>{class e{constructor(t){this.http=t,this.LogInapiUrl="https://dummyjson.com/auth/login",this.authMe="https://dummyjson.com/auth/me",this.refreshTokenApi="https://dummyjson.com/auth/refresh"}onLogin(t){return this.http.post(this.LogInapiUrl,t)}getAndAuthorizeCurrentUser(){const t=localStorage.getItem("token");return this.http.get(this.authMe,{headers:{Authorization:`Bearer ${t}`}})}refreshToken(){const t=localStorage.getItem("refreshToken");return this.http.post(this.refreshTokenApi,{refreshToken:t,expiresInMins:30})}static#e=this.\u0275fac=function(r){return new(r||e)(I(Hc))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),y$=(()=>{class e{constructor(){this.searchText="",this.text=new _e}onSearch(t){this.searchText=t.target.value,this.text.emit(this.searchText)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=ct({type:e,selectors:[["app-search"]],outputs:{text:"text"},decls:2,vars:1,consts:[["role","search",1,"d-flex"],["type","search","placeholder","Search","aria-label","Search",1,"form-control","me-2",3,"ngModel","ngModelChange","keyup.enter"]],template:function(r,i){1&r&&(m(0,"form",0)(1,"input",1),Y("ngModelChange",function(s){return i.searchText=s})("keyup.enter",function(s){return i.onSearch(s)}),_()()),2&r&&(M(1),N("ngModel",i.searchText))},dependencies:[Op,Dr,po,wp,yo,kc],styles:["form.d-flex[_ngcontent-%COMP%]{display:flex;align-items:center}form.d-flex[_ngcontent-%COMP%] input.form-control[_ngcontent-%COMP%]{width:400px;padding:6px;transition:width .3s ease-in-out}form.d-flex[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:8px}@media (max-width: 1200px){form.d-flex[_ngcontent-%COMP%] input.form-control[_ngcontent-%COMP%]{width:350px}}@media (max-width: 992px){.rows[_ngcontent-%COMP%]{width:90%}.actions[_ngcontent-%COMP%]{justify-content:end}form.d-flex[_ngcontent-%COMP%] input.form-control[_ngcontent-%COMP%]{width:350px;padding:5px}form.d-flex[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:5px}}@media (max-width: 768px){.rows[_ngcontent-%COMP%]{width:95%}.links[_ngcontent-%COMP%] .home[_ngcontent-%COMP%]{margin-left:15px}.actions[_ngcontent-%COMP%]{width:100%;margin-left:15px}form.d-flex[_ngcontent-%COMP%] input.form-control[_ngcontent-%COMP%]{width:100%}}@media (max-width: 576px){.rows[_ngcontent-%COMP%]{width:98%;flex-direction:column;align-items:flex-start}.actions[_ngcontent-%COMP%]{width:90%;margin-left:15px}form.d-flex[_ngcontent-%COMP%]{width:300px;justify-content:space-between}form.d-flex[_ngcontent-%COMP%] input.form-control[_ngcontent-%COMP%]{width:100%}.logo[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:16px;padding:5px}.logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:34px;height:34px}.links[_ngcontent-%COMP%]{justify-content:space-evenly;width:200px;margin-bottom:10px}.home[_ngcontent-%COMP%]{padding:5px}}"]})}return e})();function v$(e,n){if(1&e&&(m(0,"span",20),b(1),_()),2&e){const t=H(2);M(1),xe(t.countOfCart)}}function _$(e,n){1&e&&(m(0,"p",21),b(1,"Oops! Your cart is empty"),_())}function C$(e,n){if(1&e){const t=mt();m(0,"div",22)(1,"div",23),Q(2,"img",24),_(),m(3,"div",4)(4,"p",25),b(5),_(),m(6,"p",26),b(7," Quantity: "),m(8,"span"),b(9),_()()(),m(10,"div",4)(11,"div")(12,"input",27),Y("ngModelChange",function(i){return Be(je(t).$implicit.quantity=i)}),_(),m(13,"button",28),Y("click",function(){return je(t),Be(H(2).setQuantity())}),b(14,"set quantity"),_()()()()}if(2&e){const t=n.$implicit;M(2),N("src",t.product.images[0],dr),M(3),xe(t.product.title),M(4),xe(t.quantity),M(3),N("value",t.quantity)("ngModel",t.quantity)}}function D$(e,n){if(1&e){const t=mt();m(0,"div",29)(1,"button",30),Y("click",function(){return je(t),Be(H(2).deleteCart())}),b(2,"Delete Cart"),_(),m(3,"button",31),Y("click",function(){return je(t),Be(H(2).checkout())}),b(4,"Review and checkout"),_()()}}function w$(e,n){if(1&e){const t=mt();m(0,"div",7)(1,"app-search",8),Y("text",function(i){return je(t),Be(H().onSearch(i))}),_(),m(2,"button",9)(3,"i",10),K(4,v$,2,1,"span",11),_()(),m(5,"div",12)(6,"div",13)(7,"h5",14),b(8,"Cart"),_(),Q(9,"button",15),_(),m(10,"div",16),K(11,_$,2,0,"p",17),K(12,C$,15,5,"div",18),_(),K(13,D$,5,0,"div",19),_()()}if(2&e){const t=H();M(4),N("ngIf",t.countOfCart),M(7),N("ngIf",!t.emptyCart),M(1),N("ngForOf",t.cartProducts),M(1),N("ngIf",t.emptyCart)}}let zc=(()=>{class e{constructor(t,r){this.route=t,this.auth=r,this.logedIn=!1,this.text=new _e,this.searchText="",this.cartProducts=[],this.emptyCart=!1,this.quantity=1}ngOnChanges(t){this.getCartProducts(),this.quantity=1}ngOnInit(){this.getUserId(),this.logedIn=!!localStorage.getItem("token"),console.log(this.countOfCart)}getUserId(){this.auth.getAndAuthorizeCurrentUser().subscribe(t=>{console.log(t),this.user=t,localStorage.setItem("userId",this.user.id)})}onSearch(t){this.searchText=t,this.text.emit(this.searchText)}getCartProducts(){"cart"in localStorage&&(this.emptyCart=!0,this.cartProducts=JSON.parse(localStorage.getItem("cart")),console.log(this.cartProducts))}setQuantity(){localStorage.setItem("cart",JSON.stringify(this.cartProducts)),this.quantity=1}deleteCart(){localStorage.removeItem("cart"),this.cartProducts=[]}checkout(){this.route.navigateByUrl("cart"),this.quantity=1}static#e=this.\u0275fac=function(r){return new(r||e)(D(ze),D(ta))};static#t=this.\u0275cmp=ct({type:e,selectors:[["app-header"]],inputs:{countOfCart:"countOfCart"},outputs:{text:"text"},features:[xt],decls:10,vars:1,consts:[[1,"rows"],[1,"links"],["routerLink","home/products/9/0/All",1,"logo"],["src","assets/images/Logomark.png","alt","Logomark-ClickTik"],[1,"title"],["routerLink","home/products/9/0/All",1,"home"],["class","actions",4,"ngIf"],[1,"actions"],[3,"text"],["type","button","data-bs-toggle","offcanvas","data-bs-target","#cart","aria-controls","offcanvasScrolling",1,"btn","btnCategories"],[1,"fas","fa-shopping-cart","cart-icon"],["class","child",4,"ngIf"],["data-bs-scroll","true","data-bs-backdrop","true","tabindex","-1","id","cart","aria-labelledby","offcanvasScrollingLabel",1,"offcanvas","offcanvas-end"],[1,"offcanvas-header"],["id","offcanvasScrollingLabel",1,"offcanvas-title"],["type","button","data-bs-dismiss","offcanvas","aria-label","Close",1,"btn-close"],[1,"offcanvas-body"],["class","empty",4,"ngIf"],["class","product",4,"ngFor","ngForOf"],["class","offcanvas-footer",4,"ngIf"],[1,"child"],[1,"empty"],[1,"product"],[1,"image"],["alt","product's image",3,"src"],[1,"title1"],[1,"title2"],["type","number",1,"form-control","quantityinput",3,"value","ngModel","ngModelChange"],[1,"setQuality",3,"click"],[1,"offcanvas-footer"],[1,"deleteCart",3,"click"],[1,"checkout",3,"click"]],template:function(r,i){1&r&&(m(0,"div",0)(1,"div",1)(2,"div",2),Q(3,"img",3),m(4,"h1",4),b(5,"ClickTik"),_()(),m(6,"div",5),b(7,"Home"),_()(),K(8,w$,14,4,"div",6),Q(9,"hr"),_()),2&r&&(M(8),N("ngIf",i.logedIn))},dependencies:[no,mr,Dr,Fc,po,yo,Kr,y$],styles:["*[_ngcontent-%COMP%]{margin:0;padding:0}.headerContainer[_ngcontent-%COMP%]{grid-column:span 12 / span 12}.rows[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:85%;margin:0 auto;padding:15px 0}.links[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:250px}.logo[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;cursor:pointer}.logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:36px;height:36px}.logo[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:18px;color:#000;font-weight:500;padding:10px}.home[_ngcontent-%COMP%], .login[_ngcontent-%COMP%]{color:#667085;font-weight:500;padding:10px;cursor:pointer}.actions[_ngcontent-%COMP%]{display:flex;align-items:center;width:90%;margin-right:20px}.cart-icon[_ngcontent-%COMP%]{font-size:22px;color:#667085;margin-left:12px;cursor:pointer;position:relative}.child[_ngcontent-%COMP%]{position:absolute;background-color:#41cccc;border-radius:50%;font-size:12px;padding:2px 4px;top:-10px;left:15px;color:#34405488;gap:0px;border:2px 0px 0px 0px;opacity:0px}.offcanvas-header[_ngcontent-%COMP%]{color:#1e1e1e;font-weight:700;padding:15px;background-color:#f6f6f6}.offcanvas-body[_ngcontent-%COMP%]{color:#222d41;font-weight:400;padding:15px 5px;background-color:#f6f6f6}.product[_ngcontent-%COMP%]{background-color:#fff;display:flex;flex-direction:row;justify-content:space-between;align-items:center;margin-bottom:10px;padding:10px 20px;border-radius:20px}.product[_ngcontent-%COMP%] .image[_ngcontent-%COMP%]{width:70px;height:50px;margin-right:10px}.image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%}.title1[_ngcontent-%COMP%]{font-size:16px;color:#222d41;font-weight:500}.title2[_ngcontent-%COMP%]{font-size:14px;color:#222d41}.title2[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#667085;font-weight:700}.empty[_ngcontent-%COMP%]{background-color:#8c2020;color:#fff;padding:5px 10px;border-radius:5px}.offcanvas-footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:50%;padding:10px;outline:0;border:0}.quantityinput[_ngcontent-%COMP%]{width:100px;text-align:center}.setQuality[_ngcontent-%COMP%]{outline:0;border:0;font-size:16px;background-color:#41cccc;color:#222d41;border-radius:4px;padding:4px 8px;margin-top:5px}.offcanvas-footer[_ngcontent-%COMP%] .checkout[_ngcontent-%COMP%]{background-color:#41cccc;color:#222d41}.offcanvas-footer[_ngcontent-%COMP%] .deleteCart[_ngcontent-%COMP%]{background-color:#dc3545;color:#f6f6f6}form.d-flex[_ngcontent-%COMP%]{display:flex;align-items:center}form.d-flex[_ngcontent-%COMP%] input.form-control[_ngcontent-%COMP%]{width:400px;padding:6px;transition:width .3s ease-in-out}form.d-flex[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:8px}@media (max-width:1800px){.rows[_ngcontent-%COMP%]{width:90%;display:flex;justify-content:space-between;align-items:center}.actions[_ngcontent-%COMP%]{justify-content:end}}@media (max-width: 1200px){.rows[_ngcontent-%COMP%]{width:90%}.actions[_ngcontent-%COMP%]{justify-content:end}}@media (max-width: 992px){.rows[_ngcontent-%COMP%]{width:90%}.actions[_ngcontent-%COMP%]{justify-content:end}form.d-flex[_ngcontent-%COMP%] input.form-control[_ngcontent-%COMP%]{width:350px;padding:5px}form.d-flex[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:5px}}@media (max-width: 768px){.rows[_ngcontent-%COMP%]{width:95%}.links[_ngcontent-%COMP%] .home[_ngcontent-%COMP%]{margin-left:15px}.actions[_ngcontent-%COMP%]{width:100%;margin-left:15px}form.d-flex[_ngcontent-%COMP%] input.form-control[_ngcontent-%COMP%]{width:100%}}@media (max-width: 576px){.rows[_ngcontent-%COMP%]{width:98%;flex-direction:column;align-items:flex-start}.actions[_ngcontent-%COMP%]{width:90%;margin-left:15px}form.d-flex[_ngcontent-%COMP%]{width:100%;justify-content:space-between}form.d-flex[_ngcontent-%COMP%] input.form-control[_ngcontent-%COMP%]{width:100%;margin-bottom:10px}.logo[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:16px;padding:5px}.logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:34px;height:34px}.links[_ngcontent-%COMP%]{justify-content:space-evenly;width:200px;margin-bottom:10px}.home[_ngcontent-%COMP%]{padding:5px}}"]})}return e})(),Gc=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=ct({type:e,selectors:[["app-footer"]],decls:9,vars:0,consts:[[1,"footer"],[1,"container"],[1,"left"],["src","assets/images/Logomark.png","alt","Logomark-ClickTik"],[1,"title2"],["routerLink","home/products/9/0/All",2,"text-decoration","none","color","white"],[1,"right"]],template:function(r,i){1&r&&(m(0,"div",0)(1,"div",1)(2,"div",2),Q(3,"img",3),m(4,"p",4)(5,"a",5),b(6,"ClickTik"),_()()(),m(7,"div",6),b(8," \xa9 2022 ClickTik "),_()()())},dependencies:[Kr],styles:["*[_ngcontent-%COMP%]{margin:0;padding:0}.parent[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(12,1fr);grid-template-rows:repeat(9,1fr);gap:8px;height:100vh}.headerContainer[_ngcontent-%COMP%]{grid-column:span 12 / span 12}.rows[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:85%;margin:20px auto}.links[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:250px}.logo[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;cursor:pointer}.logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:36px;height:36px}.home[_ngcontent-%COMP%]{color:#667085;font-weight:500;padding:10px;cursor:pointer}.logo[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:18px;color:#000;font-weight:500;padding:10px}.login[_ngcontent-%COMP%]{color:#667085;font-weight:500;padding:10px;cursor:pointer}.main[_ngcontent-%COMP%]{grid-column:span 4 / span 4;grid-row:span 5 / span 5;grid-column-start:5;grid-row-start:2;margin-top:20px;width:100%;display:flex;flex-direction:column;justify-content:space-evenly;align-items:center;box-sizing:border-box}.main[_ngcontent-%COMP%] .logoMark[_ngcontent-%COMP%], .main[_ngcontent-%COMP%] .header[_ngcontent-%COMP%], .main[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{width:100%;text-align:center}.signBtn[_ngcontent-%COMP%]{width:100%;padding:8px;margin-top:20px;background-color:#41cccc;color:#344054;border:0px;font-weight:500}.card[_ngcontent-%COMP%]{width:100%;padding:10px}.logedInImg[_ngcontent-%COMP%]{width:50px}.goHomeLink[_ngcontent-%COMP%]{padding:4px;cursor:pointer;font-size:16px;color:#fff;background-color:#344054;border-radius:5px;text-align:center;width:80%;margin:5px auto}.footer[_ngcontent-%COMP%]{grid-column:span 12 / span 12;grid-column-start:1;grid-row-start:9;background-color:#1d2939}.footer[_ngcontent-%COMP%] .container[_ngcontent-%COMP%]{color:#fff;width:80%;margin:0 auto;display:flex;flex-direction:row;justify-content:space-between;align-items:center;font-size:16px}.footer[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;margin-top:20px}.footer[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:34px;margin-right:5px}.footer[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{margin-top:20px;color:#98a2b3}@media (max-width: 1200px){.main[_ngcontent-%COMP%]{grid-column:span 6 / span 6;grid-column-start:4}}@media (min-width: 768px){.goHomeLink[_ngcontent-%COMP%]{margin:5px 0}}@media (max-width: 992px){.rows[_ngcontent-%COMP%]{width:90%}.main[_ngcontent-%COMP%]{grid-column:span 8 / span 8;grid-column-start:3}.footer[_ngcontent-%COMP%] .container[_ngcontent-%COMP%]{font-size:14px}}@media (max-width: 768px){.rows[_ngcontent-%COMP%]{width:90%}.main[_ngcontent-%COMP%]{grid-column:span 10 / span 10;grid-column-start:2;padding:15px}}.logedIn[_ngcontent-%COMP%]{cursor:pointer}@media (max-width: 576px){.rows[_ngcontent-%COMP%]{width:98%}.logo[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:16px;padding:5px}.logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:34px;height:34px}.links[_ngcontent-%COMP%]{justify-content:space-evenly;width:200px}.home[_ngcontent-%COMP%]{padding:5px}.main[_ngcontent-%COMP%]{grid-column:span 12 / span 12;grid-column-start:1;padding:10px}}"]})}return e})();function b$(e,n){1&e&&(m(0,"span"),b(1,"Please enter your details"),_())}function E$(e,n){if(1&e&&(m(0,"span",11),b(1),_()),2&e){const t=H();M(1),Pl("",t.currentUser.firstName," ",t.currentUser.lastName,"")}}function M$(e,n){if(1&e&&(m(0,"div",12)(1,"div",13)(2,"div",14)(3,"div",15)(4,"div",16),Q(5,"img",17),_(),m(6,"div",18)(7,"div",19)(8,"h5",20),b(9),_(),m(10,"p",21)(11,"small",22),b(12),_()()(),m(13,"p",23),b(14,"Go to the home page"),_()()()()()()),2&e){const t=H();M(5),Ef("src",t.currentUser.image,dr),M(4),Pl("",t.currentUser.firstName," ",t.currentUser.lastName,""),M(3),xe(t.currentUser.email)}}function S$(e,n){if(1&e){const t=mt();m(0,"form",24),Y("ngSubmit",function(){return je(t),Be(H().onSubmit())}),m(1,"div",25),Q(2,"input",26),m(3,"label",27),b(4,"Username"),_()(),m(5,"div",28),Q(6,"input",29),m(7,"label",30),b(8,"Password"),_()(),m(9,"div",31)(10,"button",32),b(11,"Sign in"),_()()()}if(2&e){const t=H();N("formGroup",t.loginForm),M(10),N("disabled",t.loginForm.invalid)}}let I$=(()=>{class e{constructor(t,r,i){this.http=t,this.fb=r,this.route=i,this.loginForm=mo,this.logedIn=!1}ngOnInit(){this.loginForm=this.fb.group({username:["",[LE.required]],password:["",[LE.required]]}),localStorage.getItem("token")?(this.getUser(),this.logedIn=!0):this.logedIn=!1}onSubmit(){this.http.onLogin(this.loginForm.value).subscribe(s=>{localStorage.setItem("token",s.accessToken),console.log(s.accessToken),localStorage.setItem("refreshToken",s.refreshToken),this.route.navigateByUrl("home/products/9/0/All")}),this.authUser()}authUser(){this.http.getAndAuthorizeCurrentUser().subscribe({next:t=>{this.logedIn=!0,this.logedIn&&this.route.navigateByUrl("home/products/:limit/:skip/:category")},error:t=>{this.logedIn=!1,console.log(this.logedIn)}})}getUser(){this.http.getAndAuthorizeCurrentUser().subscribe(t=>{this.currentUser=t,console.log(this.currentUser)})}static#e=this.\u0275fac=function(r){return new(r||e)(D(ta),D(UB),D(ze))};static#t=this.\u0275cmp=ct({type:e,selectors:[["login"]],decls:17,vars:4,consts:[[1,"parent"],[1,"headerContainer"],[1,"main"],[1,"logoMark"],["src","assets/images/Logomark.png","alt",""],[1,"header"],[4,"ngIf"],["style","font-weight: bold;",4,"ngIf"],["class","","style","width: 80%;",4,"ngIf"],[3,"formGroup","ngSubmit",4,"ngIf"],[1,"footer"],[2,"font-weight","bold"],[1,"",2,"width","80%"],[1,"container","mt-5"],[1,"card"],[1,"row","g-0",2,"justify-content","center","align-items","center"],[1,"col-md-4"],["alt","User Image",1,"img-fluid","rounded-start","logedInImg",3,"src"],[1,"col-md-8"],[1,"card-body"],[1,"card-title"],[1,"card-text"],[1,"text-muted"],["routerLink","clickTik.com/home/9/0",1,"goHomeLink"],[3,"formGroup","ngSubmit"],[1,"form-floating","mb-3"],["type","text","formControlName","username","id","floatingInput","placeholder","Username",1,"form-control"],["for","floatingInput"],[1,"form-floating"],["type","password","formControlName","password","id","floatingPassword","placeholder","Password",1,"form-control"],["for","floatingPassword"],[1,"col-12"],["type","submit",1,"btn","btn-primary","signBtn",3,"disabled"]],template:function(r,i){1&r&&(m(0,"div",0)(1,"div",1),Q(2,"app-header"),_(),m(3,"div",2)(4,"div",3),Q(5,"img",4),_(),m(6,"div",5)(7,"h1"),b(8,"Log in to your account"),_(),m(9,"p"),b(10,"Welcome back! "),K(11,b$,2,0,"span",6),K(12,E$,2,2,"span",7),_()(),K(13,M$,15,4,"div",8),K(14,S$,12,2,"form",9),_(),m(15,"div",10),Q(16,"app-footer"),_()()),2&r&&(M(11),N("ngIf",!i.logedIn),M(1),N("ngIf",i.logedIn),M(1),N("ngIf",i.logedIn),M(1),N("ngIf",!i.logedIn))},dependencies:[mr,Op,Dr,po,wp,Lc,Fp,Kr,zc,Gc],styles:["*[_ngcontent-%COMP%]{margin:0;padding:0}.parent[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(12,1fr);grid-template-rows:repeat(9,1fr);gap:8px;height:100vh}.headerContainer[_ngcontent-%COMP%]{grid-column:span 12 / span 12}.rows[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:85%;margin:20px auto}.links[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:250px}.logo[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;cursor:pointer}.logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:36px;height:36px}.home[_ngcontent-%COMP%]{color:#667085;font-weight:500;padding:10px;cursor:pointer}.logo[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:18px;color:#000;font-weight:500;padding:10px}.login[_ngcontent-%COMP%]{color:#667085;font-weight:500;padding:10px;cursor:pointer}.main[_ngcontent-%COMP%]{grid-column:span 4 / span 4;grid-row:span 5 / span 5;grid-column-start:5;grid-row-start:2;margin-top:20px;width:100%;display:flex;flex-direction:column;justify-content:space-evenly;align-items:center;box-sizing:border-box}.main[_ngcontent-%COMP%] .logoMark[_ngcontent-%COMP%], .main[_ngcontent-%COMP%] .header[_ngcontent-%COMP%], .main[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{width:100%;text-align:center}.signBtn[_ngcontent-%COMP%]{width:100%;padding:8px;margin-top:20px;background-color:#41cccc;color:#344054;border:0px;font-weight:500}.card[_ngcontent-%COMP%]{width:100%;padding:10px}.logedInImg[_ngcontent-%COMP%]{width:50px}.goHomeLink[_ngcontent-%COMP%]{padding:4px;cursor:pointer;font-size:16px;color:#fff;background-color:#344054;border-radius:5px;text-align:center;width:80%;margin:5px auto}.footer[_ngcontent-%COMP%]{grid-column:span 12 / span 12;grid-column-start:1;grid-row-start:9;background-color:#1d2939}.footer[_ngcontent-%COMP%] .container[_ngcontent-%COMP%]{color:#fff;width:80%;margin:0 auto;display:flex;flex-direction:row;justify-content:space-between;align-items:center;font-size:16px}.footer[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;margin-top:20px}.footer[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:34px;margin-right:5px}.footer[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{margin-top:20px;color:#98a2b3}@media (max-width: 1200px){.main[_ngcontent-%COMP%]{grid-column:span 6 / span 6;grid-column-start:4}}@media (min-width: 768px){.goHomeLink[_ngcontent-%COMP%]{margin:5px 0}}@media (max-width: 992px){.rows[_ngcontent-%COMP%]{width:90%}.main[_ngcontent-%COMP%]{grid-column:span 8 / span 8;grid-column-start:3}.footer[_ngcontent-%COMP%] .container[_ngcontent-%COMP%]{font-size:14px}}@media (max-width: 768px){.rows[_ngcontent-%COMP%]{width:90%}.main[_ngcontent-%COMP%]{grid-column:span 10 / span 10;grid-column-start:2;padding:15px}}.logedIn[_ngcontent-%COMP%]{cursor:pointer}@media (max-width: 576px){.rows[_ngcontent-%COMP%]{width:98%}.logo[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:16px;padding:5px}.logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:34px;height:34px}.links[_ngcontent-%COMP%]{justify-content:space-evenly;width:200px}.home[_ngcontent-%COMP%]{padding:5px}.main[_ngcontent-%COMP%]{grid-column:span 12 / span 12;grid-column-start:1;padding:10px}}"]})}return e})(),qc=(()=>{class e{constructor(t,r){this.http=t,this.route=r,this.allProductsURL="https://dummyjson.com/products",this.addCartURL="https://dummyjson.com/carts/add",this.productByIdURL="https://dummyjson.com/products/"}getProducts(t,r){return this.http.get(`${this.allProductsURL}?limit=${t}&skip=${r}`)}addCart(t){return this.http.post(this.addCartURL,t)}getProductById(t){return this.http.get(this.productByIdURL+t)}static#e=this.\u0275fac=function(r){return new(r||e)(I(Hc),I(ze))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),t0=(()=>{class e{constructor(t){this.http=t}getCategoryList(){return this.http.get("https://dummyjson.com/products/category-list")}getProductsByCategory(t){return this.http.get(`https://dummyjson.com/products/category/${t}`)}SearchProducts(t){return this.http.get(`https://dummyjson.com/products/search?q=${t}`)}static#e=this.\u0275fac=function(r){return new(r||e)(I(Hc))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class n0{}class T${}const er="*";function A$(e,n){return{type:7,name:e,definitions:n,options:{}}}function r0(e,n=null){return{type:4,styles:n,timings:e}}function o0(e,n=null){return{type:2,steps:e,options:n}}function na(e){return{type:6,styles:e,offset:null}}function zp(e,n,t){return{type:0,name:e,styles:n,options:t}}function s0(e,n,t=null){return{type:1,expr:e,animation:n,options:t}}class ra{constructor(n=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const t="start"==n?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}}class a0{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let t=0,r=0,i=0;const o=this.players.length;0==o?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++t==o&&this._onFinish()}),s.onDestroy(()=>{++r==o&&this._onDestroy()}),s.onStart(()=>{++i==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const t=n*this.totalTime;this.players.forEach(r=>{const i=r.totalTime?Math.min(1,t/r.totalTime):1;r.setPosition(i)})}getPosition(){const n=this.players.reduce((t,r)=>null===t||r.totalTime>t.totalTime?r:t,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const t="start"==n?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}}const l0=["toast-component",""];function P$(e,n){if(1&e){const t=mt();m(0,"button",5),Y("click",function(){return je(t),Be(H().remove())}),m(1,"span",6),b(2,"\xd7"),_()()}}function O$(e,n){if(1&e&&(fs(0),b(1),hs()),2&e){const t=H(2);M(1),oe("[",t.duplicatesCount+1,"]")}}function x$(e,n){if(1&e&&(m(0,"div"),b(1),K(2,O$,2,1,"ng-container",4),_()),2&e){const t=H();Un(t.options.titleClass),gt("aria-label",t.title),M(1),oe(" ",t.title," "),M(1),N("ngIf",t.duplicatesCount)}}function N$(e,n){if(1&e&&Q(0,"div",7),2&e){const t=H();Un(t.options.messageClass),N("innerHTML",t.message,Nd)}}function R$(e,n){if(1&e&&(m(0,"div",8),b(1),_()),2&e){const t=H();Un(t.options.messageClass),gt("aria-label",t.message),M(1),oe(" ",t.message," ")}}function k$(e,n){if(1&e&&(m(0,"div"),Q(1,"div",9),_()),2&e){const t=H();M(1),Zi("width",t.width()+"%")}}class H${_attachedHost;component;viewContainerRef;injector;constructor(n,t){this.component=n,this.injector=t}attach(n,t){return this._attachedHost=n,n.attach(this,t)}detach(){const n=this._attachedHost;if(n)return this._attachedHost=void 0,n.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(n){this._attachedHost=n}}class U${_attachedPortal;_disposeFn;attach(n,t){return this._attachedPortal=n,this.attachComponentPortal(n,t)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(n){this._disposeFn=n}}class z${_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new Ge;_activate=new Ge;_manualClose=new Ge;_resetTimeout=new Ge;_countDuplicate=new Ge;constructor(n){this._overlayRef=n}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(n,t){n&&this._resetTimeout.next(),t&&this._countDuplicate.next(++this.duplicatesCount)}}class Wc{toastId;config;message;title;toastType;toastRef;_onTap=new Ge;_onAction=new Ge;constructor(n,t,r,i,o,s){this.toastId=n,this.config=t,this.message=r,this.title=i,this.toastType=o,this.toastRef=s,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(n){this._onAction.next(n)}onAction(){return this._onAction.asObservable()}}const u0=new P("ToastConfig");class G$ extends U${_hostDomElement;_componentFactoryResolver;_appRef;constructor(n,t,r){super(),this._hostDomElement=n,this._componentFactoryResolver=t,this._appRef=r}attachComponentPortal(n,t){const r=this._componentFactoryResolver.resolveComponentFactory(n.component);let i;return i=r.create(n.injector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()}),t?this._hostDomElement.insertBefore(this._getComponentRootNode(i),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(i)),i}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}let q$=(()=>{class e{_document=T(Ue);_containerElement;ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t=this._document.createElement("div");t.classList.add("overlay-container"),t.setAttribute("aria-live","polite"),this._document.body.appendChild(t),this._containerElement=t}static \u0275fac=function(r){return new(r||e)};static \u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class W${_portalHost;constructor(n){this._portalHost=n}attach(n,t=!0){return this._portalHost.attach(n,t)}detach(){return this._portalHost.detach()}}let Q$=(()=>{class e{_overlayContainer=T(q$);_componentFactoryResolver=T(es);_appRef=T(qn);_document=T(Ue);_paneElements=new Map;create(t,r){return this._createOverlayRef(this.getPaneElement(t,r))}getPaneElement(t="",r){return this._paneElements.get(r)||this._paneElements.set(r,{}),this._paneElements.get(r)[t]||(this._paneElements.get(r)[t]=this._createPaneElement(t,r)),this._paneElements.get(r)[t]}_createPaneElement(t,r){const i=this._document.createElement("div");return i.id="toast-container",i.classList.add(t),i.classList.add("toast-container"),r?r.getContainerElement().appendChild(i):this._overlayContainer.getContainerElement().appendChild(i),i}_createPortalHost(t){return new G$(t,this._componentFactoryResolver,this._appRef)}_createOverlayRef(t){return new W$(this._createPortalHost(t))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),ia=(()=>{class e{overlay;_injector;sanitizer;ngZone;toastrConfig;currentlyActive=0;toasts=[];overlayContainer;previousToastMessage;index=0;constructor(t,r,i,o,s){this.overlay=r,this._injector=i,this.sanitizer=o,this.ngZone=s,this.toastrConfig={...t.default,...t.config},t.config.iconClasses&&(this.toastrConfig.iconClasses={...t.default.iconClasses,...t.config.iconClasses})}show(t,r,i={},o=""){return this._preBuildNotification(o,t,r,this.applyConfig(i))}success(t,r,i={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",t,r,this.applyConfig(i))}error(t,r,i={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",t,r,this.applyConfig(i))}info(t,r,i={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",t,r,this.applyConfig(i))}warning(t,r,i={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",t,r,this.applyConfig(i))}clear(t){for(const r of this.toasts)if(void 0!==t){if(r.toastId===t)return void r.toastRef.manualClose()}else r.toastRef.manualClose()}remove(t){const r=this._findToast(t);if(!r||(r.activeToast.toastRef.close(),this.toasts.splice(r.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActivethis._buildNotification(t,r,i,o)):this._buildNotification(t,r,i,o)}_buildNotification(t,r,i,o){if(!o.toastComponent)throw new Error("toastComponent required");const s=this.findDuplicate(i,r,this.toastrConfig.resetTimeoutOnDuplicate&&o.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&i||r)&&this.toastrConfig.preventDuplicates&&null!==s)return s;this.previousToastMessage=r;let a=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(a=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const l=this.overlay.create(o.positionClass,this.overlayContainer);this.index=this.index+1;let c=r;r&&o.enableHtml&&(c=this.sanitizer.sanitize(Ft.HTML,r));const u=new z$(l),d=new Wc(this.index,o,c,i,t,u),h=it.create({providers:[{provide:Wc,useValue:d}],parent:this._injector}),p=new H$(o.toastComponent,h),g=l.attach(p,o.newestOnTop);u.componentInstance=g.instance;const y={toastId:this.index,title:i||"",message:r||"",toastRef:u,onShown:u.afterActivate(),onHidden:u.afterClosed(),onTap:d.onTap(),onAction:d.onAction(),portal:g};return a||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{y.toastRef.activate()})),this.toasts.push(y),y}static \u0275fac=function(r){return new(r||e)(I(u0),I(Q$),I(it),I(wb),I(ce))};static \u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Z$={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing",toastComponent:(()=>{class e{toastrService;toastPackage;ngZone;message;title;options;duplicatesCount;originalTimeout;width=Ta(-1);toastClasses="";state;get _state(){return this.state()}get displayStyle(){if("inactive"===this.state().value)return"none"}timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(t,r,i){this.toastrService=t,this.toastPackage=r,this.ngZone=i,this.message=r.message,this.title=r.title,this.options=r.config,this.originalTimeout=r.config.timeOut,this.toastClasses=`${r.toastType} ${r.config.toastClass}`,this.sub=r.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=r.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=r.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=r.toastRef.countDuplicate().subscribe(o=>{this.duplicatesCount=o}),this.state=Ta({value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}})}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state.update(t=>({...t,value:"active"})),!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width()||100===this.width()||!this.options.timeOut)return;const t=(new Date).getTime();this.width.set((this.hideTime-t)/this.options.timeOut*100),"increasing"===this.options.progressAnimation&&this.width.update(i=>100-i),this.width()<=0&&this.width.set(0),this.width()>=100&&this.width.set(100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state.update(t=>({...t,value:"active"})),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state().value&&(clearTimeout(this.timeout),this.state.update(t=>({...t,value:"removed"})),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state().value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state().value&&"extendedTimeOut"!==this.options.disableTimeOut&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width.set(0))}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state().value||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(t,r){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(t),r)):this.timeout=setTimeout(()=>t(),r)}outsideInterval(t,r){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(t),r)):this.intervalId=setInterval(()=>t(),r)}runInsideAngular(t){this.ngZone?this.ngZone.run(()=>t()):t()}static \u0275fac=function(r){return new(r||e)(D(ia),D(Wc),D(ce))};static \u0275cmp=ct({type:e,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(r,i){1&r&&Y("click",function(){return i.tapToast()})("mouseenter",function(){return i.stickAround()})("mouseleave",function(){return i.delayedHideToast()}),2&r&&(Pf("@flyInOut",i._state),Un(i.toastClasses),Zi("display",i.displayStyle))},standalone:!0,features:[kl],attrs:l0,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(r,i){1&r&&(K(0,P$,3,0,"button",0),K(1,x$,3,5,"div",1),K(2,N$,1,3,"div",2),K(3,R$,2,4,"div",3),K(4,k$,2,2,"div",4)),2&r&&(N("ngIf",i.options.closeButton),M(1),N("ngIf",i.title),M(1),N("ngIf",i.message&&i.options.enableHtml),M(1),N("ngIf",i.message&&!i.options.enableHtml),M(1),N("ngIf",i.options.progressBar))},dependencies:[mr],encapsulation:2,data:{animation:[A$("flyInOut",[zp("inactive",na({opacity:0})),zp("active",na({opacity:1})),zp("removed",na({opacity:0})),s0("inactive => active",r0("{{ easeTime }}ms {{ easing }}")),s0("active => removed",r0("{{ easeTime }}ms {{ easing }}"))])]},changeDetection:0})}return e})()},K$=(e={})=>ol([{provide:u0,useValue:{default:Z$,config:e}}]);let qp=(()=>{class e{static forRoot(t={}){return{ngModule:e,providers:[K$(t)]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=tt({type:e});static \u0275inj=Qe({})}return e})(),Y$=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=ct({type:e,selectors:[["app-spinner"]],decls:10,vars:0,consts:[[1,"lds-roller"]],template:function(r,i){1&r&&(m(0,"div")(1,"div",0),Q(2,"div")(3,"div")(4,"div")(5,"div")(6,"div")(7,"div")(8,"div")(9,"div"),_()())},styles:['.lds-roller[_ngcontent-%COMP%], .lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%], .lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:after{box-sizing:border-box}.lds-roller[_ngcontent-%COMP%]{display:inline-block;position:relative;width:80px;height:80px}.lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_lds-roller 1.2s cubic-bezier(.5,0,.5,1) infinite;transform-origin:40px 40px}.lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:after{content:" ";display:block;position:absolute;width:7.2px;height:7.2px;border-radius:50%;background:currentColor;margin:-3.6px 0 0 -3.6px}.lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(1){animation-delay:-36ms}.lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(1):after{top:62.62742px;left:62.62742px}.lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(2){animation-delay:-72ms}.lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(2):after{top:67.71281px;left:56px}.lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(3){animation-delay:-.108s}.lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(3):after{top:70.90963px;left:48.28221px}.lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(4){animation-delay:-.144s}.lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(4):after{top:72px;left:40px}.lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(5){animation-delay:-.18s}.lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(5):after{top:70.90963px;left:31.71779px}.lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(6){animation-delay:-.216s}.lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(6):after{top:67.71281px;left:24px}.lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(7){animation-delay:-.252s}.lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(7):after{top:62.62742px;left:17.37258px}.lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(8){animation-delay:-.288s}.lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(8):after{top:56px;left:12.28719px}@keyframes _ngcontent-%COMP%_lds-roller{0%{transform:rotate(0)}to{transform:rotate(360deg)}}']})}return e})();function X$(e,n){if(1&e){const t=mt();m(0,"div",0)(1,"input",4),Y("ngModelChange",function(i){return je(t),Be(H().selectedCategory=i)})("change",function(){const o=je(t).$implicit;return Be(H().onCategoryChange(o))}),_(),m(2,"label",5),b(3),_()()}if(2&e){const t=n.$implicit,r=H();M(1),N("value",t)("ngModel",r.selectedCategory)("checked",r.selectedCategory===t),M(2),oe(" ",t," ")}}let J$=(()=>{class e{constructor(t){this.http=t,this.allCategories=[],this.selectedCategory="All",this.categoryChange=new _e}ngOnInit(){this.getAllCategories()}onCategoryChange(t){this.selectedCategory=t,this.categoryChange.emit(this.selectedCategory)}getAllCategories(){this.http.getCategoryList().subscribe(t=>{this.allCategories=t,console.log(this.allCategories)})}static#e=this.\u0275fac=function(r){return new(r||e)(D(t0))};static#t=this.\u0275cmp=ct({type:e,selectors:[["app-filter-products"]],outputs:{categoryChange:"categoryChange"},decls:5,vars:2,consts:[[1,"form-check","option"],["type","radio","name","categoryRadios","id","All","value","All","routerLink","/home/products/9/0/All",1,"form-check-input",2,"background-color","#667085",3,"ngModel","ngModelChange","change"],["for","All",1,"form-check-label"],["class","form-check option",4,"ngFor","ngForOf"],["type","radio","name","categoryRadios",1,"form-check-input",2,"background-color","#667085",3,"value","ngModel","checked","ngModelChange","change"],[1,"form-check-label"]],template:function(r,i){1&r&&(m(0,"div",0)(1,"input",1),Y("ngModelChange",function(s){return i.selectedCategory=s})("change",function(){return i.onCategoryChange("All")}),_(),m(2,"label",2),b(3," All "),_()(),K(4,X$,4,4,"div",3)),2&r&&(M(1),N("ngModel",i.selectedCategory),M(3),N("ngForOf",i.allCategories))},dependencies:[no,Dr,xp,po,yo,Kr]})}return e})();function eH(e,n){1&e&&(m(0,"span"),b(1,"\u2605"),_())}const tH=function(e){return{color:e}};let nH=(()=>{class e{constructor(t,r,i){this.service=t,this.toastr=r,this.route=i,this.product={},this.currentUser={},this.cartProducts=[],this.added=!1,this.countCart=new _e}goToProductDetails(){this.route.navigateByUrl(`products/${this.product.title}/${this.product.id}/${this.cartCount}`)}ngOnInit(){"cart"in localStorage&&(this.cartProducts=JSON.parse(localStorage.getItem("cart")),this.cartCount=this.cartProducts.length)}getDiscountPrice(t,r){return(t-t*r/100).toFixed(2)}getBrand(t,r){return null==t&&(t=r),t}toggleAddedToCart(){this.added=!this.added}addToCartItem(t){"cart"in localStorage?(this.cartProducts=JSON.parse(localStorage.getItem("cart")),this.cartProducts.find(o=>o.product.id==t.id)?(this.added=!0,this.toastr.error("You already added the product to cart")):(this.cartProducts.push({product:t,quantity:1}),this.cartCount=this.cartProducts.length,this.countCart.emit(this.cartCount),localStorage.setItem("cart",JSON.stringify(this.cartProducts)),this.added=!0,this.toastr.success("Product is added to your cart"))):(this.cartProducts.push({product:t,quantity:1}),this.cartCount=this.cartProducts.length,this.countCart.emit(this.cartCount),this.toastr.success("Product is added to your cart"),localStorage.setItem("cart",JSON.stringify(this.cartProducts)),this.added=!0),this.added=!1}static#e=this.\u0275fac=function(r){return new(r||e)(D(qc),D(ia),D(ze))};static#t=this.\u0275cmp=ct({type:e,selectors:[["app-product"]],inputs:{product:"product",currentUser:"currentUser"},outputs:{countCart:"countCart"},decls:40,vars:18,consts:[[1,"card","item"],[1,"card-body"],[1,"discPercentage"],[1,"cardImage",2,"width","100%",3,"src"],[1,"card-title"],[1,"card-text"],[1,"price"],[1,"orignalPrice"],[1,"numberP"],[1,"values"],[1,"rating",3,"ngStyle"],[4,"ngIf"],[1,"revLength"],[1,"row","btnBox",2,"display","flex","justify-content","center","align-items","center"],["type","button",1,"addToCart1",3,"ariaHidden","click"],["type","button",1,"addToCart2",3,"click"]],template:function(r,i){1&r&&(m(0,"div",0)(1,"div",1)(2,"p",2),b(3),_(),Q(4,"img",3),m(5,"h5",4),b(6),_(),m(7,"p",5)(8,"span"),b(9),_()(),m(10,"p",6)(11,"span",7)(12,"span",8),b(13),_(),b(14," USD "),_(),m(15,"span",8),b(16),_(),b(17," USD "),_(),m(18,"p",9),b(19,"Brand: "),m(20,"span",9),b(21),_()(),m(22,"p",9),b(23,"Category: "),m(24,"span"),b(25),_()(),m(26,"p",9),b(27,"In stock: "),m(28,"span"),b(29),_()(),m(30,"p",10),K(31,eH,2,0,"span",11),b(32),m(33,"span",12),b(34),_()(),m(35,"div",13)(36,"button",14),Y("click",function(){return i.addToCartItem(i.product)})("click",function(){return i.toggleAddedToCart()}),b(37,"ADD TO CART"),_(),m(38,"button",15),Y("click",function(){return i.goToProductDetails()}),b(39,"VIEW PRODUCT"),_()()()()),2&r&&(M(3),oe("- ",i.product.discountPercentage,"%"),M(1),N("src",i.product.images[0],dr),M(2),xe(i.product.title),M(3),xe(i.product.description),M(4),oe("",i.product.price," "),M(3),oe(" ",i.getDiscountPrice(i.product.price,i.product.discountPercentage)," "),M(5),xe(i.getBrand(i.product.brand,i.product.category)),M(4),xe(i.product.category),M(4),xe(i.product.stock),M(1),N("ngStyle",$f(16,tH,i.product.rating>3.5?"#F4B000":"#1e1e1eb0")),M(1),N("ngIf",i.product.rating>3.5),M(1),oe(" ",i.product.rating," "),M(2),oe("(",i.product.reviews.length,")"),M(2),gs("active",i.added),N("ariaHidden",i.added))},dependencies:[mr,Nh],styles:[".card[_ngcontent-%COMP%]{height:100%}.cardImage[_ngcontent-%COMP%]{width:100%;height:250px;border-radius:10px}.pricespan[_ngcontent-%COMP%]{background-color:#1d2939;padding:6px;color:#fff;border-radius:4px}.item[_ngcontent-%COMP%]:hover{transform:scale(1.03);transition:.3s all}.discPercentage[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;background:#41CCCC;border-radius:5px;padding:4px 8px;color:#344054;font-size:14px;font-weight:500;line-height:14.52px;text-align:center}.card-title[_ngcontent-%COMP%]{text-align:left;color:#344054;font-size:18px;font-weight:700;height:40px;margin-bottom:10px}.card-text[_ngcontent-%COMP%]{color:#344054;font-size:15px;font-weight:400;line-height:17px;text-align:left;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-overflow:ellipsis;max-height:4.5em}.price[_ngcontent-%COMP%]{font-size:15px}.orignalPrice[_ngcontent-%COMP%]{text-decoration:line-through;text-decoration-color:#64676ad0}.numberP[_ngcontent-%COMP%]{font-weight:700;line-height:16.94px;text-align:left;color:#344054}.values[_ngcontent-%COMP%]{font-size:14px;font-weight:400;line-height:16.94px;text-align:left;color:#344054}.values[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:14px;font-weight:600;line-height:16.94px;text-align:left;color:#344054}.rating[_ngcontent-%COMP%]{text-align:end;font-size:16px}.revLength[_ngcontent-%COMP%]{font-size:16px;font-weight:400;line-height:21.79px;text-align:center;color:#1e1e1ebc}.addToCart2[_ngcontent-%COMP%], .addToCart1[_ngcontent-%COMP%]{color:#344054e0;background-color:#41cccc;font-size:14px;font-weight:700;line-height:21.79px;text-align:center;width:100%;border:0;outline:0;padding:10px 15px;border-radius:5px;width:45%;margin-right:4px;font-weight:500}.addToCart2[_ngcontent-%COMP%]{background-color:#344054;color:#fff;font-weight:500}.active[_ngcontent-%COMP%]{background-color:gray;color:#00000095}@media (max-width: 968px){.addToCart1[_ngcontent-%COMP%], .addToCart2[_ngcontent-%COMP%]{width:80%}.addToCart1[_ngcontent-%COMP%]{margin-bottom:8px}}"]})}return e})();function rH(e,n){1&e&&Q(0,"app-spinner",19)}function iH(e,n){if(1&e&&(m(0,"span",20),b(1),_()),2&e){const t=H();M(1),oe(" / ",t.selectedCategory,"")}}function oH(e,n){if(1&e&&(m(0,"span",20),b(1),_()),2&e){const t=H();M(1),oe(" / ",t.searchText,"")}}function sH(e,n){if(1&e){const t=mt();m(0,"div",23)(1,"app-product",24),Y("countCart",function(i){return je(t),Be(H(2).getCartCount(i))}),_()()}if(2&e){const t=n.$implicit,r=H(2);M(1),N("product",t)("currentUser",r.currentUser)}}function aH(e,n){if(1&e&&(m(0,"div",21),K(1,sH,2,2,"div",22),_()),2&e){const t=H();M(1),N("ngForOf",t.allProducts)}}function lH(e,n){if(1&e){const t=mt();m(0,"li",27)(1,"a",32),Y("click",function(){je(t);const i=H(2);return Be(i.getAllProducts(i.urlLimit,0,i.selectedCategory))}),b(2,"1"),_()()}}function cH(e,n){1&e&&(m(0,"li",27)(1,"span",33),b(2,"..."),_()())}const uH=function(e){return{"background-color":e}};function dH(e,n){if(1&e){const t=mt();m(0,"a",35),Y("click",function(){je(t);const i=H().index,o=H(2);return Be(o.getAllProducts(o.limit,i*o.limit,o.selectedCategory))}),b(1),_()}if(2&e){const t=H().index,r=H(2);N("ngStyle",$f(2,uH,r.skip/r.limit===t?"#41CCCC":"#fff")),M(1),oe(" ",t+1," ")}}function fH(e,n){if(1&e&&(m(0,"li",27),K(1,dH,2,4,"a",34),_()),2&e){const t=n.index,r=H(2);M(1),N("ngIf",t>=r.skip/r.limit-1&&t9),M(1),N("ngIf",t.skip>3*t.limit),M(1),N("ngForOf",function fD(e,n,t){const r=ft()+e,i=E();return i[r]===q?bn(i,r,t?n.call(t):n()):function ls(e,n){return e[n]}(i,r)}(7,gH).constructor(t.totalPages)),M(1),N("ngIf",t.skip=(t.totalPages-1)*t.limit)}}let yH=(()=>{class e{constructor(t,r,i,o,s,a){this.http=t,this.sharedService=r,this.route=i,this.router=o,this.auth=s,this.toastr=a,this.urlLimit=9,this.urlSkip=0,this.selectedCategory="All",this.allProducts=[],this.allCategories=[],this.loadingSpinner=!1,this.totalPages=0,this.currentPage=1,this.limit=9,this.skip=0,this.searchText="",console.log("he"),this.urlLimit=Number(this.route.snapshot.paramMap.get("limit")),this.urlSkip=Number(this.route.snapshot.paramMap.get("skip")),console.log(this.urlLimit,this.urlSkip)}ngOnInit(){console.log("hel"),this.getUser(),this.refreshPage(),this.cartCount()}cartCount(){if("cart"in localStorage){let t=JSON.parse(localStorage.getItem("cart"));this.cartCountAll=t.length}}getCartCount(t){this.cartCountAll=t,console.log(this.cartCountAll)}refreshPage(){this.route.paramMap.subscribe(t=>{this.urlLimit=Number(t.get("limit")),this.urlSkip=Number(t.get("skip")),this.selectedCategory=t.get("category")||"All",this.getAllProducts(this.urlLimit,this.urlSkip,this.selectedCategory)})}getAllProducts(t,r,i){this.skip=r,this.urlSkip=this.skip,this.loadingSpinner=!0,"All"===i?this.http.getProducts(this.urlLimit,this.urlSkip).subscribe(o=>{9===o.limit&&(this.totalPages=Math.ceil(o.total/o.limit)),this.searchText="",this.allProducts=o.products,this.router.navigateByUrl(`home/products/${this.urlLimit}/${this.skip}/${this.selectedCategory}`),this.loadingSpinner=!1},o=>{this.loadingSpinner=!1}):this.sharedService.getProductsByCategory(i).subscribe(o=>{this.allProducts=o.products,this.router.navigateByUrl(`home/products/${this.urlLimit}/${this.skip}/${this.selectedCategory}`),this.loadingSpinner=!1},o=>{this.loadingSpinner=!1})}onCategorySelected(t){this.selectedCategory=t,this.getAllProducts(this.urlLimit,this.urlSkip,this.selectedCategory)}PreviousPage(){this.skip>=9&&(this.skip-=9,this.getAllProducts(this.limit,Number(this.skip),this.selectedCategory))}nextPage(){this.skip<189&&(this.skip+=9,this.getAllProducts(this.limit,Number(this.skip),this.selectedCategory))}onSearchText(t){console.log(t),this.searchText=t,this.selectedCategory="All",console.log(this.searchText),this.sharedService.SearchProducts(t).subscribe(r=>{this.allProducts=r.products,console.log(this.allProducts.length),this.searchText=""})}getUser(){this.auth.getAndAuthorizeCurrentUser().subscribe(t=>{this.currentUser=t,console.log(this.currentUser)})}static#e=this.\u0275fac=function(r){return new(r||e)(D(qc),D(t0),D(Cr),D(ze),D(ta),D(ia))};static#t=this.\u0275cmp=ct({type:e,selectors:[["app-all-products"]],decls:26,vars:6,consts:[[1,"headerContainer"],[3,"countOfCart","text"],[1,"text-center","w-100",2,"margin-top","50px"],["style","color: #41CCCC;",4,"ngIf"],[1,"labels"],["class","categoryLabel",4,"ngIf"],["type","button","data-bs-toggle","offcanvas","data-bs-target","#offcanvasScrolling","aria-controls","offcanvasScrolling",1,"btn","btnCategories"],["data-bs-scroll","true","data-bs-backdrop","true","tabindex","-1","id","offcanvasScrolling","aria-labelledby","offcanvasScrollingLabel",1,"offcanvas","offcanvas-end"],[1,"offcanvas-header"],["id","offcanvasScrollingLabel",1,"offcanvas-title"],["type","button","data-bs-dismiss","offcanvas","aria-label","Close",1,"btn-close"],[1,"offcanvas-body"],[3,"categoryChange"],[1,"box","mt-4"],[1,"select","slectList"],[1,"container","productsall"],["class","row ",4,"ngIf"],["aria-label","Page navigation example",4,"ngIf"],[1,"footer",2,"padding-bottom","20px"],[2,"color","#41CCCC"],[1,"categoryLabel"],[1,"row"],["class","item col-md-3 col-sm-12 ","style","margin-bottom: 30px;",4,"ngFor","ngForOf"],[1,"item","col-md-3","col-sm-12",2,"margin-bottom","30px"],[3,"product","currentUser","countCart"],["aria-label","Page navigation example"],[1,"pagination","justify-content-center"],[1,"page-item"],[1,"page-link",3,"disabled","click"],["aria-hidden","true"],["class","page-item",4,"ngIf"],["class","page-item",4,"ngFor","ngForOf"],[1,"page-link",3,"click"],[1,"page-link"],["class","page-link",3,"ngStyle","click",4,"ngIf"],[1,"page-link",3,"ngStyle","click"]],template:function(r,i){1&r&&(m(0,"div",0)(1,"app-header",1),Y("text",function(s){return i.onSearchText(s)}),_()(),m(2,"div",2),K(3,rH,1,0,"app-spinner",3),_(),m(4,"div",4)(5,"p"),b(6,"Home / Products "),K(7,iH,2,1,"span",5),K(8,oH,2,1,"span",5),_(),m(9,"button",6),b(10,"Select category \xbb"),_(),m(11,"div",7)(12,"div",8)(13,"h5",9),b(14,"Select Category :"),_(),Q(15,"button",10),_(),m(16,"div",11)(17,"app-filter-products",12),Y("categoryChange",function(s){return i.onCategorySelected(s)}),_()()()(),m(18,"div",13)(19,"div",14)(20,"app-filter-products",12),Y("categoryChange",function(s){return i.onCategorySelected(s)}),_()(),m(21,"div",15),K(22,aH,2,1,"div",16),K(23,mH,15,8,"nav",17),_()(),m(24,"div",18),Q(25,"app-footer"),_()),2&r&&(M(1),N("countOfCart",i.cartCountAll),M(2),N("ngIf",i.loadingSpinner),M(4),N("ngIf","All"!==i.selectedCategory),M(1),N("ngIf","All"==i.selectedCategory),M(14),N("ngIf",!i.loadingSpinner),M(1),N("ngIf","All"===i.selectedCategory&&""===i.searchText))},dependencies:[no,mr,Nh,zc,Y$,Gc,J$,nH],styles:["*[_ngcontent-%COMP%]{margin:0;padding:0}.container[_ngcontent-%COMP%]{max-width:100%}.box[_ngcontent-%COMP%]{display:flex;justify-content:center}.labels[_ngcontent-%COMP%]{width:90%;margin:auto;display:flex;justify-content:space-between;align-items:center}.btnCategories[_ngcontent-%COMP%]{background-color:#dedede;color:#344054;padding:4px 8px;display:none}.btnCategories[_ngcontent-%COMP%]:hover{background-color:#41cccc;color:#1e1e1e}.offcanvas-header[_ngcontent-%COMP%]{color:#1e1e1e;font-weight:700;padding:15px;background-color:#f6f6f6}.offcanvas-body[_ngcontent-%COMP%]{color:#222d41;font-weight:400;padding:15px;background-color:#f6f6f6}.categoryLabel[_ngcontent-%COMP%]{font-size:18px;font-weight:700;line-height:21.78px;text-align:left;color:#344054}.labels[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#1e1e1e;font-size:18px;font-weight:400;line-height:21.78px;text-align:left}.slectList[_ngcontent-%COMP%]{width:25%;border:1px solid #6c757d;border-radius:10px;padding:20px 35px;margin-top:30px;margin-left:40px;height:100%;box-sizing:border-box}.productsall[_ngcontent-%COMP%]{margin-top:30px}.list-group-item[_ngcontent-%COMP%]:hover{background-color:#f8f9fa}.card[_ngcontent-%COMP%]{box-shadow:0 4px 8px #0000001a;transition:transform .2s ease-in-out}.card[_ngcontent-%COMP%]:hover{transform:scale(1.05)}.cardImage[_ngcontent-%COMP%]{height:200px;object-fit:cover}.pagination[_ngcontent-%COMP%]{justify-content:center;width:400px;margin:30px auto}.page-link[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #F6F6F6;width:32px;margin:5px;color:#1e1e1e;border-radius:5px;cursor:pointer;text-align:center}.page-link[_ngcontent-%COMP%]:hover{background-color:#41cccc}.headerContainer[_ngcontent-%COMP%]{margin-top:0;z-index:999;position:sticky;top:0;left:0;background-color:#f6f6f6}.row[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:stretch;gap:15px}.item[_ngcontent-%COMP%]{width:28%}@media (max-width: 1200px){.item[_ngcontent-%COMP%]{width:45%}}@media (max-width: 992px){.list-group[_ngcontent-%COMP%]{margin-bottom:20px}.slectList[_ngcontent-%COMP%]{display:none}.footer[_ngcontent-%COMP%] .container[_ngcontent-%COMP%]{font-size:14px}.btnCategories[_ngcontent-%COMP%]{display:block;font-size:16px}.cardImage[_ngcontent-%COMP%]{height:180px}.item[_ngcontent-%COMP%]{width:45%}}@media (max-width: 768px){.cardImage[_ngcontent-%COMP%]{height:160px}.col-md-4[_ngcontent-%COMP%]{flex:0 0 50%;max-width:50%}.item[_ngcontent-%COMP%]{width:40%}}@media (max-width: 576px){.cardImage[_ngcontent-%COMP%]{height:140px}.labels[_ngcontent-%COMP%]{flex-wrap:wrap;flex-direction:column;text-align:left;align-items:start;justify-content:space-between}.labels[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:10px}.col-md-4[_ngcontent-%COMP%]{flex:0 0 100%;max-width:100%}.item[_ngcontent-%COMP%]{width:90%}}.footer[_ngcontent-%COMP%]{grid-column:span 12 / span 12;grid-column-start:1;grid-row-start:9;background-color:#1d2939}.footer[_ngcontent-%COMP%] .container[_ngcontent-%COMP%]{color:#fff;width:80%;margin:0 auto;display:flex;flex-direction:row;justify-content:space-between;align-items:center;font-size:16px}.footer[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;margin-top:20px}.footer[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:34px;margin-right:5px}.footer[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{margin-top:20px;color:#98a2b3}"]})}return e})();const d0=(e,n)=>!!localStorage.getItem("token")||(T(ze).navigateByUrl("login"),!1);function vH(e,n){if(1&e){const t=mt();m(0,"div",22)(1,"div",23),Q(2,"img",24),_(),m(3,"div",25)(4,"div",2)(5,"div",26)(6,"h1",27),b(7),_(),m(8,"p",28),b(9),_(),m(10,"p",28),b(11,"Price: "),m(12,"span",29),b(13),_()(),m(14,"p",30),b(15),_(),m(16,"p",30),b(17),_(),m(18,"p",30),b(19),m(20,"button",31),Y("click",function(){const o=je(t).$implicit;return Be(H().goToProductDetails(o))}),b(21,"View product"),_()()()(),m(22,"div",32)(23,"div",33)(24,"h3",34)(25,"span",35),b(26),_()()()()()()}if(2&e){const t=n.$implicit;M(2),N("src",t.thumbnail,dr),M(5),xe(t.title),M(2),oe("Discount: ",t.discountPercentage,"%"),M(4),xe(t.price),M(2),oe("Price (mulitiply quantity): ",t.total.toFixed(2)," "),M(2),oe("Quantity: ",t.quantity," "),M(2),oe("Quantity: ",t.quantity," "),M(7),oe("Total: ",t.discountedPrice.toFixed(2),"$")}}let _H=(()=>{class e{constructor(t,r,i){this.auth=t,this.service=r,this.route=i,this.user={},this.response={},this.getUserId()}getUserId(){this.auth.getAndAuthorizeCurrentUser().subscribe(t=>{console.log(t),this.user=t,localStorage.setItem("userId",this.user.id)})}ngOnInit(){this.getUserId(),this.addToCart()}pushCart(){const t=JSON.parse(localStorage.getItem("userId")),r=JSON.parse(localStorage.getItem("cart"));let i=[];this.cartLength=r.length,console.log(r);for(let o of r)i.push({id:o.product.id,quantity:o.quantity}),console.log(i);this.service.addCart({userId:t,products:i}).subscribe(o=>{console.log(o),this.response=o},o=>{console.log(o)})}addToCart(){"cart"in localStorage&&"userId"in localStorage||this.getUserId(),this.pushCart()}goToProductDetails(t){console.log(t),this.route.navigateByUrl(`products/${t.title}/${t.id}/${this.response.products.length}`)}static#e=this.\u0275fac=function(r){return new(r||e)(D(ta),D(qc),D(ze))};static#t=this.\u0275cmp=ct({type:e,selectors:[["app-cart"]],decls:54,vars:5,consts:[[1,"bg-light"],[1,"container-fluid"],[1,"row"],[1,"col-md-10","col-11","mx-auto"],[1,"row","mt-5","gx-3","bigBox",2,"position","relative"],[1,"col-md-8","col-12","mx-auto","main_cart","mb-md-0","mb-5","shadow","ss"],[1,"card","p-4","cards"],[1,"py-3","font-weight-bold",2,"color","#222d41"],["class","row","style","margin-bottom: 15px; padding: 20px; border-radius: 10px;",4,"ngFor","ngForOf"],[1,"col-md-4","col-12","mx-auto","mt-md-0","mt-2","bigBox2",2,"height","fit-content","position","sticky","top","10px","left","0"],[1,"right_side","p-3","shadow","bg-white"],[1,"product_name","mb-2",2,"color","#222d41"],[1,"price_indiv","d-flex","justify-content-between"],["id","product_total_amt"],["id","shipping_charge"],[1,"total-amt","d-flex","justify-content-between","font-weight-bold"],["id","total_cart_amt"],[1,"btn","btn-primary","text-uppercase","btnView","mt-2","mb-2"],[1,"mt-3","shadow","p-3","bg-white"],[1,"pt-4"],[1,"mb-4"],[1,"footer",2,"padding-bottom","20px"],[1,"row",2,"margin-bottom","15px","padding","20px","border-radius","10px"],[1,"col-md-5","col-11","mx-auto","bg-light","d-flex","justify-content-center","align-items-center","shadow","product_img"],["alt","cart img",1,"img-fluid",3,"src"],[1,"col-md-7","col-11","mx-auto","mt-2","z"],[1,"col-6","card-title"],[1,"mb-4","product_name",2,"color","#222d41"],[1,"mb-2"],[2,"text-decoration","line-through"],[1,"mb-2",2,"font-weight","700"],[1,"btnView",3,"click"],[1,"row","total"],[1,"col-4","d-flex","justify-content-end","price_money"],[2,"color","#222d41"],[1,"h3"]],template:function(r,i){1&r&&(Q(0,"app-header"),m(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"div",5)(7,"div",6)(8,"h2",7),b(9),_(),K(10,vH,27,8,"div",8),_(),Q(11,"hr"),_(),m(12,"div",9)(13,"div",10)(14,"h2",11),b(15,"Total"),_(),m(16,"div",12)(17,"p"),b(18,"Products total"),_(),m(19,"p"),b(20,"$"),m(21,"span",13),b(22),_()()(),m(23,"div",12)(24,"p"),b(25,"Total quantity"),_(),m(26,"p")(27,"span",13),b(28),_()()(),m(29,"div",12)(30,"p"),b(31,"Shipping Charge"),_(),m(32,"p"),b(33,"$"),m(34,"span",14),b(35,"50.0"),_()()(),Q(36,"hr"),m(37,"div",15)(38,"p"),b(39,"The total amount of (including VAT)"),_(),m(40,"p"),b(41,"$"),m(42,"span",16),b(43),_()()(),m(44,"button",17),b(45,"Checkout"),_()(),m(46,"div",18)(47,"div",19)(48,"h5",20),b(49,"Expected delivery date"),_(),m(50,"p"),b(51,"July 27th 2020 - July 29th 2020"),_()()()()()()()()(),m(52,"div",21),Q(53,"app-footer"),_()),2&r&&(M(9),oe("Cart Items (",i.cartLength,")"),M(1),N("ngForOf",i.response.products),M(12),xe(i.response.total.toFixed(2)),M(6),xe(i.response.totalQuantity),M(15),xe((i.response.total+50).toFixed(2)))},dependencies:[no,zc,Gc],styles:['*[_ngcontent-%COMP%]{margin:0;padding:0;box-sizing:border-box;font-family:Mulish,sans-serif}[_ngcontent-%COMP%]:root{--text-clr: #4f4f4f}p[_ngcontent-%COMP%]{color:#6c757d}a[_ngcontent-%COMP%], a[_ngcontent-%COMP%]:hover{text-decoration:none;color:var(--text-clr)}h2[_ngcontent-%COMP%]{color:var(--text-clr);font-size:1.5rem}.main_cart[_ngcontent-%COMP%]{background:#fff}.card[_ngcontent-%COMP%]{border:none}.product_img[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{min-width:200px;max-height:200px}.product_name[_ngcontent-%COMP%]{color:#000;font-size:1.4rem;text-transform:capitalize;font-weight:500}.card-title[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:.9rem;font-weight:500}.remove-and-wish[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:.8rem;margin-bottom:0}.price-money[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:1rem;font-weight:600}.set_quantity[_ngcontent-%COMP%]{position:relative}.set_quantity[_ngcontent-%COMP%]:after{content:"(Note, 1 piece)";width:auto;height:auto;text-align:center;position:absolute;bottom:-20px;right:1.5rem;font-size:.8rem}.page-link[_ngcontent-%COMP%]{line-height:16px;width:45px;font-size:1rem;display:flex;justify-content:center;align-items:center;color:#495057}.page-item[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{line-height:22px;padding:3px;font-size:15px;display:flex;justify-content:center;align-items:center;text-align:center}.page-link[_ngcontent-%COMP%]:hover{text-decoration:none;color:#495057;outline:none!important}.page-link[_ngcontent-%COMP%]:focus{box-shadow:none}.price_indiv[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:1.1rem}.fa-heart[_ngcontent-%COMP%]:hover{color:red}.btnView[_ngcontent-%COMP%]{display:block;background-color:#41cccc;color:#141d30;border-radius:5px;padding:4px 8px;border:0;outline:0;font-weight:500}.ss[_ngcontent-%COMP%]{width:65%}.total[_ngcontent-%COMP%]{margin-left:20px}.card-title[_ngcontent-%COMP%]{width:100%;margin-left:20px}@media (max-width: 968px){*[_ngcontent-%COMP%]{font-size:16px}.bigBox[_ngcontent-%COMP%], .bigBox2[_ngcontent-%COMP%]{width:100%}.bigBox2[_ngcontent-%COMP%]{margin-top:20px}.h3[_ngcontent-%COMP%]{font-weight:700}.z[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{width:100%;margin-left:5px;margin-right:0;padding-left:0;padding-right:0;text-align:start}.card-title[_ngcontent-%COMP%]{width:100%;text-align:start;padding:0;margin:0}.product_name[_ngcontent-%COMP%]{width:100%;text-align:start}.ss[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]{width:100%;margin-left:0;margin-right:0;padding-left:0;padding-right:0}.btnView[_ngcontent-%COMP%]{width:80%;margin:auto}}@media (max-width: 525px){.h3[_ngcontent-%COMP%]{margin-left:10px}}.footer[_ngcontent-%COMP%]{margin-top:20px;grid-column:span 12 / span 12;grid-column-start:1;grid-row-start:9;background-color:#1d2939}.footer[_ngcontent-%COMP%] .container[_ngcontent-%COMP%]{color:#fff;width:80%;margin:0 auto;display:flex;flex-direction:row;justify-content:space-between;align-items:center;font-size:16px}.footer[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;margin-top:20px}.footer[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:34px;margin-right:5px}.footer[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{margin-top:20px;color:#98a2b3}']})}return e})();const CH=["imgShowcase"];function DH(e,n){1&e&&Q(0,"img",37),2&e&&N("src",n.$implicit,dr)}function wH(e,n){if(1&e){const t=mt();m(0,"a",40),Y("click",function(i){je(t);const o=H().index;return Be(H().onImgClick(i,o+1))}),Q(1,"img",41),_()}if(2&e){const t=H(),i=t.$implicit;gt("data-id",t.index+1),M(1),N("src",i,dr)}}function bH(e,n){if(1&e&&(m(0,"div",38),K(1,wH,2,2,"a",39),_()),2&e){const t=H();M(1),N("ngIf",t.product.images.length>1)}}function EH(e,n){1&e&&Q(0,"i",42)}const MH=[{path:"login",component:I$},{path:"home/products/:limit/:skip/:category",component:yH,canActivate:[d0]},{path:"products/:product/:id/:countCart",component:(()=>{class e{constructor(t,r,i){this.route=t,this.service=r,this.toastr=i,this.product={},this.cartProducts=[],this.quantity=1,this.imgId=1,this.productImages={images:[]},this.id=this.route.snapshot.paramMap.get("id"),console.log(Number(this.id)),this.countCart=this.route.snapshot.paramMap.get("countCart"),console.log(this.countCart)}ngOnInit(){this.getProductById(this.id)}getProductById(t){this.service.getProductById(t).subscribe(r=>{this.product=r,console.log(this.product)})}getDiscountPrice(t,r){return(t-t*r/100).toFixed(2)}addToCartItem(){"cart"in localStorage?(this.cartProducts=JSON.parse(localStorage.getItem("cart")),this.cartProducts.find(r=>r.product.id==this.product.id)?this.toastr.error("You already added the product to cart"):(this.cartProducts.push({product:this.product,quantity:this.quantity}),this.countCart=this.cartProducts.length,localStorage.setItem("cart",JSON.stringify(this.cartProducts)),this.toastr.success("Product is added to your cart"))):(this.cartProducts.push({product:this.product,quantity:this.quantity}),this.countCart=this.cartProducts.length,this.toastr.success("Product is added to your cart"),localStorage.setItem("cart",JSON.stringify(this.cartProducts)))}ngAfterViewChecked(){this.slideImage()}onImgClick(t,r){t.preventDefault(),this.imgId=r,this.slideImage()}slideImage(){if(!this.imgShowcase||!this.imgShowcase.nativeElement)return;const t=this.imgShowcase.nativeElement.querySelector("img:first-child")?.clientWidth;t&&(this.imgShowcase.nativeElement.style.transform=`translateX(${-(this.imgId-1)*t}px)`)}onResize(t){this.slideImage()}static#e=this.\u0275fac=function(r){return new(r||e)(D(Cr),D(qc),D(ia))};static#t=this.\u0275cmp=ct({type:e,selectors:[["app-product-details"]],viewQuery:function(r,i){if(1&r&&AD(CH,5),2&r){let o;Zf(o=function Kf(){return function CR(e,n){return e[mn].queries[n].queryList}(E(),qm())}())&&(i.imgShowcase=o.first)}},hostBindings:function(r,i){1&r&&Y("resize",function(s){return i.onResize(s)},0,kv)},decls:90,vars:16,consts:[["charset","utf-8"],["http-equiv","X-UA-Compatible","content","IE=edge"],["name","viewport","content","width=device-width, initial-scale=1"],["rel","stylesheet","href","https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css","integrity","sha512-+4zCK9k+qNFUR5X+cKL9EIR+ZOhtIloNl9GIKS57V1MyNsYpYcUrUeQc9vNfzsWfV28IaLL3i96P9sdNyeRssA==","crossorigin","anonymous"],[1,"card-wrapper",2,"margin-top","60px","margin-bottom","65px","width","80%"],[1,"card"],[1,"product-imgs"],[1,"img-display"],[1,"img-showcase",2,"transform","translateX(0px)"],["imgShowcase",""],["alt","productImg",3,"src",4,"ngFor","ngForOf"],[1,"img-select"],["class","img-item",4,"ngFor","ngForOf"],[1,"product-content"],[1,"product-title"],["href","https://www.linkedin.com/in/ibrahim-salah-94417921b/",1,"product-link",2,"background-color","#41CCCC","color","#252525","padding","2px 5px"],[1,"product-rating"],["class","fas fa-star",4,"ngIf"],[2,"color","#7e8288b8","font-weight","500"],[1,"product-price"],[1,"last-price"],[1,"new-price"],[2,"font-weight","700"],[2,"color","green"],[1,"product-detail"],[1,"purchase-info"],["type","number",1,"form-control","quantityinput",2,"text-align","center",3,"value","ngModel","ngModelChange"],["type","button",1,"btn",3,"click"],[1,"fas","fa-shopping-cart"],[1,"social-links"],["href","https://www.linkedin.com/in/ibrahim-salah-94417921b/"],[1,"fab","fa-facebook-f"],[1,"fab","fa-twitter"],[1,"fab","fa-instagram"],[1,"fab","fa-whatsapp"],[1,"fab","fa-pinterest"],[1,"footer",2,"padding-bottom","20px"],["alt","productImg",3,"src"],[1,"img-item"],[3,"click",4,"ngIf"],[3,"click"],["alt","productImg",1,"sss",3,"src"],[1,"fas","fa-star"]],template:function(r,i){1&r&&(m(0,"head"),Q(1,"meta",0)(2,"meta",1),m(3,"title"),b(4,"Product Card/Page"),_(),Q(5,"meta",2)(6,"link",3),_(),Q(7,"app-header"),m(8,"body")(9,"div",4)(10,"div",5)(11,"div",6)(12,"div",7)(13,"div",8,9),K(15,DH,1,1,"img",10),_()(),m(16,"div",11),K(17,bH,2,1,"div",12),_()(),m(18,"div",13)(19,"h2",14),b(20),_(),m(21,"a",15),b(22,"visit original store"),_(),m(23,"div",16),K(24,EH,1,0,"i",17),m(25,"span"),b(26),m(27,"span",18),b(28),_()()(),m(29,"div",19)(30,"p",20),b(31,"Old Price: "),m(32,"span"),b(33),_()(),m(34,"p",21),b(35,"New Price: "),m(36,"span",22),b(37),m(38,"span",23),b(39),_()()()(),m(40,"div",24)(41,"h2"),b(42,"about Product: "),_(),m(43,"p"),b(44),_(),m(45,"ul")(46,"li"),b(47,"Brand: "),m(48,"span"),b(49),_()(),m(50,"li"),b(51,"Available: "),m(52,"span",23),b(53),_()(),m(54,"li"),b(55,"Category: "),m(56,"span"),b(57),_()(),m(58,"li"),b(59,"Shipping Area: "),m(60,"span"),b(61,"All over the world"),_()(),m(62,"li"),b(63,"Shipping Fee: "),m(64,"span"),b(65,"Free"),_()(),m(66,"li"),b(67,"Warranty Information: "),m(68,"span"),b(69),_()()()(),m(70,"div",25)(71,"input",26),Y("ngModelChange",function(s){return i.quantity=s}),_(),m(72,"button",27),Y("click",function(){return i.addToCartItem()}),b(73," Add to Cart "),Q(74,"i",28),_()(),m(75,"div",29)(76,"p"),b(77,"Share At : "),_(),m(78,"a",30),Q(79,"i",31),_(),m(80,"a",30),Q(81,"i",32),_(),m(82,"a",30),Q(83,"i",33),_(),m(84,"a",30),Q(85,"i",34),_(),m(86,"a",30),Q(87,"i",35),_()()()()()(),m(88,"div",36),Q(89,"app-footer"),_()),2&r&&(M(15),N("ngForOf",i.product.images),M(2),N("ngForOf",i.product.images),M(3),xe(i.product.title),M(4),N("ngIf",i.product.rating>3.5),M(2),oe(" Rating: ",i.product.rating," "),M(2),oe(" (",i.product.reviews.length," reviews)"),M(5),xe(i.product.price),M(4),oe("",i.getDiscountPrice(i.product.price,i.product.discountPercentage),"$ "),M(2),oe("(",i.product.discountPercentage,"%)"),M(5),oe("",i.product.description," "),M(5),xe(i.product.brand),M(4),oe("in stock (",i.product.stock,")"),M(4),xe(i.product.category),M(12),xe(i.product.warrantyInformation),M(2),N("value",i.quantity)("ngModel",i.quantity))},dependencies:[no,mr,Dr,Fc,po,yo,zc,Gc],styles:['*[_ngcontent-%COMP%]{box-sizing:border-box;padding:0;margin:0;font-family:Open Sans,sans-serif}body[_ngcontent-%COMP%]{line-height:1.5}.card-wrapper[_ngcontent-%COMP%]{max-width:1100px;margin:0 auto}img[_ngcontent-%COMP%]{width:100%;display:block}.img-display[_ngcontent-%COMP%]{overflow:hidden}.img-showcase[_ngcontent-%COMP%]{display:flex;width:100%;transition:all .5s ease}.img-showcase[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{min-width:100%}.img-select[_ngcontent-%COMP%]{display:flex}.img-item[_ngcontent-%COMP%]{margin:.3rem}.img-item[_ngcontent-%COMP%]:nth-child(1), .img-item[_ngcontent-%COMP%]:nth-child(2), .img-item[_ngcontent-%COMP%]:nth-child(3){margin-right:0}.img-item[_ngcontent-%COMP%]:hover{opacity:.8}.product-content[_ngcontent-%COMP%]{padding:2rem 1rem}.product-title[_ngcontent-%COMP%]{font-size:3rem;text-transform:capitalize;font-weight:700;position:relative;color:#12263a;margin:1rem 0}.product-title[_ngcontent-%COMP%]:after{content:"";position:absolute;left:0;bottom:0;height:4px;width:80px;background:#12263a}.product-link[_ngcontent-%COMP%]{text-decoration:none;text-transform:uppercase;font-weight:400;font-size:.9rem;display:inline-block;margin-bottom:.5rem;background:#256eff;color:#fff;padding:0 .3rem;transition:all .5s ease}.sss[_ngcontent-%COMP%]{width:100%;height:100%}.img-showcase[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:400px}.product-link[_ngcontent-%COMP%]:hover{opacity:.9}.product-rating[_ngcontent-%COMP%]{color:#ffc107}.product-rating[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:600;color:#252525}.product-price[_ngcontent-%COMP%]{margin:1rem 0;font-size:1rem;font-weight:700}.product-price[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:400}.last-price[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#767778;text-decoration:line-through}.new-price[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#256eff}.product-detail[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{text-transform:capitalize;color:#12263a;padding-bottom:.6rem}.product-detail[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:.9rem;padding:.3rem;opacity:.8}.product-detail[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:1rem 0;font-size:.9rem}.product-detail[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:0;list-style:none;background:url(checked.f56bc21dc859c096.png) left center no-repeat;background-size:18px;padding-left:1.7rem;margin:.4rem 0;font-weight:600;opacity:.9}.product-detail[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:400}.purchase-info[_ngcontent-%COMP%]{margin:1.5rem 0}.purchase-info[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .purchase-info[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{border:1.5px solid #ddd;border-radius:25px;text-align:center;padding:.45rem .8rem;outline:0;margin-right:.2rem;margin-bottom:1rem}.purchase-info[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:60px}.purchase-info[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{cursor:pointer;color:#fff;margin-top:12px;margin-right:5px}.purchase-info[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]:last-of-type{background-color:#41cccc;color:#252525}.purchase-info[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]:hover{opacity:.9}.social-links[_ngcontent-%COMP%]{display:flex;align-items:center}.social-links[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:32px;height:32px;color:#000;border:1px solid #000;margin:0 .2rem;border-radius:50%;text-decoration:none;font-size:.8rem;transition:all .5s ease}.social-links[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background:#000;border-color:transparent;color:#fff}@media screen and (min-width: 992px){.card[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);grid-gap:1.5rem}.card-wrapper[_ngcontent-%COMP%]{height:100vh;display:flex;justify-content:center;align-items:center}.product-imgs[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center}.product-content[_ngcontent-%COMP%]{padding-top:0}}.footer[_ngcontent-%COMP%]{grid-column:span 12 / span 12;grid-column-start:1;grid-row-start:9;background-color:#1d2939}.footer[_ngcontent-%COMP%] .container[_ngcontent-%COMP%]{color:#fff;width:80%;margin:0 auto;display:flex;flex-direction:row;justify-content:space-between;align-items:center;font-size:16px}.footer[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;margin-top:20px}.footer[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:34px;margin-right:5px}.footer[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{margin-top:20px;color:#98a2b3}']})}return e})()},{path:"cart",component:_H,canActivate:[d0]},{path:"**",redirectTo:"home/products/9/0/All",pathMatch:"full"}];let Qc=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=tt({type:e});static#n=this.\u0275inj=Qe({imports:[xE.forRoot(MH),xE]})}return e})(),SH=(()=>{class e{constructor(){this.title="Outtick"}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=ct({type:e,selectors:[["app-root"]],decls:1,vars:0,template:function(r,i){1&r&&Q(0,"router-outlet")},dependencies:[up]})}return e})(),IH=(()=>{class e{constructor(t){this.authService=t}intercept(t,r){const i=localStorage.getItem("token");return i&&(t=t.clone({setHeaders:{Authorization:`Bearer ${i}`}})),r.handle(t).pipe(Yn(o=>401===o.status?this.authService.refreshToken().pipe(qt(s=>{localStorage.setItem("token",s.accessToken),localStorage.setItem("refreshToken",s.refreshToken);const a=t.clone({setHeaders:{Authorization:`Bearer ${s.token}`}});return r.handle(a)}),Yn(s=>(console.error("Refresh token failed",s),qr(s)))):qr(o)))}static#e=this.\u0275fac=function(r){return new(r||e)(I(ta))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})();function f0(e){return new C(3e3,!1)}function Ir(e){switch(e.length){case 0:return new ra;case 1:return e[0];default:return new a0(e)}}function h0(e,n,t=new Map,r=new Map){const i=[],o=[];let s=-1,a=null;if(n.forEach(l=>{const c=l.get("offset"),u=c==s,d=u&&a||new Map;l.forEach((f,h)=>{let p=h,g=f;if("offset"!==h)switch(p=e.normalizePropertyName(p,i),g){case"!":g=t.get(h);break;case er:g=r.get(h);break;default:g=e.normalizeStyleValue(h,p,g,i)}d.set(p,g)}),u||o.push(d),a=d,s=c}),i.length)throw function KH(e){return new C(3502,!1)}();return o}function Wp(e,n,t,r){switch(n){case"start":e.onStart(()=>r(t&&Qp(t,"start",e)));break;case"done":e.onDone(()=>r(t&&Qp(t,"done",e)));break;case"destroy":e.onDestroy(()=>r(t&&Qp(t,"destroy",e)))}}function Qp(e,n,t){const o=Zp(e.element,e.triggerName,e.fromState,e.toState,n||e.phaseName,t.totalTime??e.totalTime,!!t.disabled),s=e._data;return null!=s&&(o._data=s),o}function Zp(e,n,t,r,i="",o=0,s){return{element:e,triggerName:n,fromState:t,toState:r,phaseName:i,totalTime:o,disabled:!!s}}function $t(e,n,t){let r=e.get(n);return r||e.set(n,r=t),r}function p0(e){const n=e.indexOf(":");return[e.substring(1,n),e.slice(n+1)]}const lU=(()=>typeof document>"u"?null:document.documentElement)();function Kp(e){const n=e.parentNode||e.host||null;return n===lU?null:n}let ti=null,g0=!1;function m0(e,n){for(;n;){if(n===e)return!0;n=Kp(n)}return!1}function y0(e,n,t){if(t)return Array.from(e.querySelectorAll(n));const r=e.querySelector(n);return r?[r]:[]}let v0=(()=>{class e{validateStyleProperty(t){return function uU(e){ti||(ti=function dU(){return typeof document<"u"?document.body:null}()||{},g0=!!ti.style&&"WebkitAppearance"in ti.style);let n=!0;return ti.style&&!function cU(e){return"ebkit"==e.substring(1,6)}(e)&&(n=e in ti.style,!n&&g0&&(n="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in ti.style)),n}(t)}matchesElement(t,r){return!1}containsElement(t,r){return m0(t,r)}getParentElement(t){return Kp(t)}query(t,r,i){return y0(t,r,i)}computeStyle(t,r,i){return i||""}animate(t,r,i,o,s,a=[],l){return new ra(i,o)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})(),Yp=(()=>{class e{static#e=this.NOOP=new v0}return e})();const fU=1e3,Xp="ng-enter",Zc="ng-leave",Kc="ng-trigger",Yc=".ng-trigger",C0="ng-animating",Jp=".ng-animating";function tr(e){if("number"==typeof e)return e;const n=e.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:eg(parseFloat(n[1]),n[2])}function eg(e,n){return"s"===n?e*fU:e}function Xc(e,n,t){return e.hasOwnProperty("duration")?e:function pU(e,n,t){let i,o=0,s="";if("string"==typeof e){const a=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return n.push(f0()),{duration:0,delay:0,easing:""};i=eg(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=eg(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else i=e;if(!t){let a=!1,l=n.length;i<0&&(n.push(function TH(){return new C(3100,!1)}()),a=!0),o<0&&(n.push(function AH(){return new C(3101,!1)}()),a=!0),a&&n.splice(l,0,f0())}return{duration:i,delay:o,easing:s}}(e,n,t)}function oa(e,n={}){return Object.keys(e).forEach(t=>{n[t]=e[t]}),n}function D0(e){const n=new Map;return Object.keys(e).forEach(t=>{n.set(t,e[t])}),n}function Tr(e,n=new Map,t){if(t)for(let[r,i]of t)n.set(r,i);for(let[r,i]of e)n.set(r,i);return n}function Pn(e,n,t){n.forEach((r,i)=>{const o=ng(i);t&&!t.has(i)&&t.set(i,e.style[o]),e.style[o]=r})}function ni(e,n){n.forEach((t,r)=>{const i=ng(r);e.style[i]=""})}function sa(e){return Array.isArray(e)?1==e.length?e[0]:o0(e):e}const tg=new RegExp("{{\\s*(.+?)\\s*}}","g");function b0(e){let n=[];if("string"==typeof e){let t;for(;t=tg.exec(e);)n.push(t[1]);tg.lastIndex=0}return n}function aa(e,n,t){const r=e.toString(),i=r.replace(tg,(o,s)=>{let a=n[s];return null==a&&(t.push(function OH(e){return new C(3003,!1)}()),a=""),a.toString()});return i==r?e:i}function Jc(e){const n=[];let t=e.next();for(;!t.done;)n.push(t.value),t=e.next();return n}const yU=/-+([a-z0-9])/g;function ng(e){return e.replace(yU,(...n)=>n[1].toUpperCase())}function Ht(e,n,t){switch(n.type){case 7:return e.visitTrigger(n,t);case 0:return e.visitState(n,t);case 1:return e.visitTransition(n,t);case 2:return e.visitSequence(n,t);case 3:return e.visitGroup(n,t);case 4:return e.visitAnimate(n,t);case 5:return e.visitKeyframes(n,t);case 6:return e.visitStyle(n,t);case 8:return e.visitReference(n,t);case 9:return e.visitAnimateChild(n,t);case 10:return e.visitAnimateRef(n,t);case 11:return e.visitQuery(n,t);case 12:return e.visitStagger(n,t);default:throw function xH(e){return new C(3004,!1)}()}}function E0(e,n){return window.getComputedStyle(e)[n]}const eu="*";function CU(e,n){const t=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(r=>function DU(e,n,t){if(":"==e[0]){const l=function wU(e,n){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,r)=>parseFloat(r)>parseFloat(t);case":decrement":return(t,r)=>parseFloat(r) *"}}(e,t);if("function"==typeof l)return void n.push(l);e=l}const r=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return t.push(function GH(e){return new C(3015,!1)}()),n;const i=r[1],o=r[2],s=r[3];n.push(M0(i,s));"<"==o[0]&&!(i==eu&&s==eu)&&n.push(M0(s,i))}(r,t,n)):t.push(e),t}const tu=new Set(["true","1"]),nu=new Set(["false","0"]);function M0(e,n){const t=tu.has(e)||nu.has(e),r=tu.has(n)||nu.has(n);return(i,o)=>{let s=e==eu||e==i,a=n==eu||n==o;return!s&&t&&"boolean"==typeof i&&(s=i?tu.has(e):nu.has(e)),!a&&r&&"boolean"==typeof o&&(a=o?tu.has(n):nu.has(n)),s&&a}}const bU=new RegExp("s*:selfs*,?","g");function rg(e,n,t,r){return new EU(e).build(n,t,r)}class EU{constructor(n){this._driver=n}build(n,t,r){const i=new IU(t);return this._resetContextStyleTimingState(i),Ht(this,sa(n),i)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,t){let r=t.queryCount=0,i=t.depCount=0;const o=[],s=[];return"@"==n.name.charAt(0)&&t.errors.push(function RH(){return new C(3006,!1)}()),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,o.push(this.visitState(l,t))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,t);r+=l.queryCount,i+=l.depCount,s.push(l)}else t.errors.push(function kH(){return new C(3007,!1)}())}),{type:7,name:n.name,states:o,transitions:s,queryCount:r,depCount:i,options:null}}visitState(n,t){const r=this.visitStyle(n.styles,t),i=n.options&&n.options.params||null;if(r.containsDynamicStyles){const o=new Set,s=i||{};r.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{b0(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&(Jc(o.values()),t.errors.push(function FH(e,n){return new C(3008,!1)}()))}return{type:0,name:n.name,style:r,options:i?{params:i}:null}}visitTransition(n,t){t.queryCount=0,t.depCount=0;const r=Ht(this,sa(n.animation),t);return{type:1,matchers:CU(n.expr,t.errors),animation:r,queryCount:t.queryCount,depCount:t.depCount,options:ri(n.options)}}visitSequence(n,t){return{type:2,steps:n.steps.map(r=>Ht(this,r,t)),options:ri(n.options)}}visitGroup(n,t){const r=t.currentTime;let i=0;const o=n.steps.map(s=>{t.currentTime=r;const a=Ht(this,s,t);return i=Math.max(i,t.currentTime),a});return t.currentTime=i,{type:3,steps:o,options:ri(n.options)}}visitAnimate(n,t){const r=function AU(e,n){if(e.hasOwnProperty("duration"))return e;if("number"==typeof e)return ig(Xc(e,n).duration,0,"");const t=e;if(t.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=ig(0,0,"");return o.dynamic=!0,o.strValue=t,o}const i=Xc(t,n);return ig(i.duration,i.delay,i.easing)}(n.timings,t.errors);t.currentAnimateTimings=r;let i,o=n.styles?n.styles:na({});if(5==o.type)i=this.visitKeyframes(o,t);else{let s=n.styles,a=!1;if(!s){a=!0;const c={};r.easing&&(c.easing=r.easing),s=na(c)}t.currentTime+=r.duration+r.delay;const l=this.visitStyle(s,t);l.isEmptyStep=a,i=l}return t.currentAnimateTimings=null,{type:4,timings:r,style:i,options:null}}visitStyle(n,t){const r=this._makeStyleAst(n,t);return this._validateStyleAst(r,t),r}_makeStyleAst(n,t){const r=[],i=Array.isArray(n.styles)?n.styles:[n.styles];for(let a of i)"string"==typeof a?a===er?r.push(a):t.errors.push(new C(3002,!1)):r.push(D0(a));let o=!1,s=null;return r.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o))for(let l of a.values())if(l.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:r,easing:s,offset:n.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(n,t){const r=t.currentAnimateTimings;let i=t.currentTime,o=t.currentTime;r&&o>0&&(o-=r.duration+r.delay),n.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const c=t.collectedStyles.get(t.currentQuerySelector),u=c.get(l);let d=!0;u&&(o!=i&&o>=u.startTime&&i<=u.endTime&&(t.errors.push(function VH(e,n,t,r,i){return new C(3010,!1)}()),d=!1),o=u.startTime),d&&c.set(l,{startTime:o,endTime:i}),t.options&&function mU(e,n,t){const r=n.params||{},i=b0(e);i.length&&i.forEach(o=>{r.hasOwnProperty(o)||t.push(function PH(e){return new C(3001,!1)}())})}(a,t.options,t.errors)})})}visitKeyframes(n,t){const r={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function jH(){return new C(3011,!1)}()),r;let o=0;const s=[];let a=!1,l=!1,c=0;const u=n.steps.map(w=>{const v=this._makeStyleAst(w,t);let S=null!=v.offset?v.offset:function TU(e){if("string"==typeof e)return null;let n=null;if(Array.isArray(e))e.forEach(t=>{if(t instanceof Map&&t.has("offset")){const r=t;n=parseFloat(r.get("offset")),r.delete("offset")}});else if(e instanceof Map&&e.has("offset")){const t=e;n=parseFloat(t.get("offset")),t.delete("offset")}return n}(v.styles),O=0;return null!=S&&(o++,O=v.offset=S),l=l||O<0||O>1,a=a||O0&&o{const S=f>0?v==h?1:f*v:s[v],O=S*y;t.currentTime=p+g.delay+O,g.duration=O,this._validateStyleAst(w,t),w.offset=S,r.styles.push(w)}),r}visitReference(n,t){return{type:8,animation:Ht(this,sa(n.animation),t),options:ri(n.options)}}visitAnimateChild(n,t){return t.depCount++,{type:9,options:ri(n.options)}}visitAnimateRef(n,t){return{type:10,animation:this.visitReference(n.animation,t),options:ri(n.options)}}visitQuery(n,t){const r=t.currentQuerySelector,i=n.options||{};t.queryCount++,t.currentQuery=n;const[o,s]=function MU(e){const n=!!e.split(/\s*,\s*/).find(t=>":self"==t);return n&&(e=e.replace(bU,"")),e=e.replace(/@\*/g,Yc).replace(/@\w+/g,t=>Yc+"-"+t.slice(1)).replace(/:animating/g,Jp),[e,n]}(n.selector);t.currentQuerySelector=r.length?r+" "+o:o,$t(t.collectedStyles,t.currentQuerySelector,new Map);const a=Ht(this,sa(n.animation),t);return t.currentQuery=null,t.currentQuerySelector=r,{type:11,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:a,originalSelector:n.selector,options:ri(n.options)}}visitStagger(n,t){t.currentQuery||t.errors.push(function UH(){return new C(3013,!1)}());const r="full"===n.timings?{duration:0,delay:0,easing:"full"}:Xc(n.timings,t.errors,!0);return{type:12,animation:Ht(this,sa(n.animation),t),timings:r,options:null}}}class IU{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function ri(e){return e?(e=oa(e)).params&&(e.params=function SU(e){return e?oa(e):null}(e.params)):e={},e}function ig(e,n,t){return{duration:e,delay:n,easing:t}}function og(e,n,t,r,i,o,s=null,a=!1){return{type:1,element:e,keyframes:n,preStyleProps:t,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:s,subTimeline:a}}class ru{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,t){let r=this._map.get(n);r||this._map.set(n,r=[]),r.push(...t)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const xU=new RegExp(":enter","g"),RU=new RegExp(":leave","g");function sg(e,n,t,r,i,o=new Map,s=new Map,a,l,c=[]){return(new kU).buildKeyframes(e,n,t,r,i,o,s,a,l,c)}class kU{buildKeyframes(n,t,r,i,o,s,a,l,c,u=[]){c=c||new ru;const d=new ag(n,t,c,i,o,u,[]);d.options=l;const f=l.delay?tr(l.delay):0;d.currentTimeline.delayNextStep(f),d.currentTimeline.setStyles([s],null,d.errors,l),Ht(this,r,d);const h=d.timelines.filter(p=>p.containsAnimation());if(h.length&&a.size){let p;for(let g=h.length-1;g>=0;g--){const y=h[g];if(y.element===t){p=y;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,d.errors,l)}return h.length?h.map(p=>p.buildKeyframes()):[og(t,[],[],[],0,f,"",!1)]}visitTrigger(n,t){}visitState(n,t){}visitTransition(n,t){}visitAnimateChild(n,t){const r=t.subInstructions.get(t.element);if(r){const i=t.createSubContext(n.options),o=t.currentTimeline.currentTime,s=this._visitSubInstructions(r,i,i.options);o!=s&&t.transformIntoNewTimeline(s)}t.previousNode=n}visitAnimateRef(n,t){const r=t.createSubContext(n.options);r.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],t,r),this.visitReference(n.animation,r),t.transformIntoNewTimeline(r.currentTimeline.currentTime),t.previousNode=n}_applyAnimationRefDelays(n,t,r){for(const i of n){const o=i?.delay;if(o){const s="number"==typeof o?o:tr(aa(o,i?.params??{},t.errors));r.delayNextStep(s)}}}_visitSubInstructions(n,t,r){let o=t.currentTimeline.currentTime;const s=null!=r.duration?tr(r.duration):null,a=null!=r.delay?tr(r.delay):null;return 0!==s&&n.forEach(l=>{const c=t.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(n,t){t.updateOptions(n.options,!0),Ht(this,n.animation,t),t.previousNode=n}visitSequence(n,t){const r=t.subContextCount;let i=t;const o=n.options;if(o&&(o.params||o.delay)&&(i=t.createSubContext(o),i.transformIntoNewTimeline(),null!=o.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=iu);const s=tr(o.delay);i.delayNextStep(s)}n.steps.length&&(n.steps.forEach(s=>Ht(this,s,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),t.previousNode=n}visitGroup(n,t){const r=[];let i=t.currentTimeline.currentTime;const o=n.options&&n.options.delay?tr(n.options.delay):0;n.steps.forEach(s=>{const a=t.createSubContext(n.options);o&&a.delayNextStep(o),Ht(this,s,a),i=Math.max(i,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(s=>t.currentTimeline.mergeTimelineCollectedStyles(s)),t.transformIntoNewTimeline(i),t.previousNode=n}_visitTiming(n,t){if(n.dynamic){const r=n.strValue;return Xc(t.params?aa(r,t.params,t.errors):r,t.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,t){const r=t.currentAnimateTimings=this._visitTiming(n.timings,t),i=t.currentTimeline;r.delay&&(t.incrementTime(r.delay),i.snapshotCurrentStyles());const o=n.style;5==o.type?this.visitKeyframes(o,t):(t.incrementTime(r.duration),this.visitStyle(o,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=n}visitStyle(n,t){const r=t.currentTimeline,i=t.currentAnimateTimings;!i&&r.hasCurrentStyleProperties()&&r.forwardFrame();const o=i&&i.easing||n.easing;n.isEmptyStep?r.applyEmptyStep(o):r.setStyles(n.styles,o,t.errors,t.options),t.previousNode=n}visitKeyframes(n,t){const r=t.currentAnimateTimings,i=t.currentTimeline.duration,o=r.duration,a=t.createSubContext().currentTimeline;a.easing=r.easing,n.styles.forEach(l=>{a.forwardTime((l.offset||0)*o),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(i+o),t.previousNode=n}visitQuery(n,t){const r=t.currentTimeline.currentTime,i=n.options||{},o=i.delay?tr(i.delay):0;o&&(6===t.previousNode.type||0==r&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=iu);let s=r;const a=t.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{t.currentQueryIndex=u;const d=t.createSubContext(n.options,c);o&&d.delayNextStep(o),c===t.element&&(l=d.currentTimeline),Ht(this,n.animation,d),d.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,d.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(s),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=n}visitStagger(n,t){const r=t.parentContext,i=t.currentTimeline,o=n.timings,s=Math.abs(o.duration),a=s*(t.currentQueryTotal-1);let l=s*t.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=r.currentStaggerTime}const u=t.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;Ht(this,n.animation,t),t.previousNode=n,r.currentStaggerTime=i.currentTime-d+(i.startTime-r.currentTimeline.startTime)}}const iu={};class ag{constructor(n,t,r,i,o,s,a,l){this._driver=n,this.element=t,this.subInstructions=r,this._enterClassName=i,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=iu,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new ou(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,t){if(!n)return;const r=n;let i=this.options;null!=r.duration&&(i.duration=tr(r.duration)),null!=r.delay&&(i.delay=tr(r.delay));const o=r.params;if(o){let s=i.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!t||!s.hasOwnProperty(a))&&(s[a]=aa(o[a],s,this.errors))})}}_copyOptions(){const n={};if(this.options){const t=this.options.params;if(t){const r=n.params={};Object.keys(t).forEach(i=>{r[i]=t[i]})}}return n}createSubContext(n=null,t,r){const i=t||this.element,o=new ag(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(n),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(n){return this.previousNode=iu,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,t,r){const i={duration:t??n.duration,delay:this.currentTimeline.currentTime+(r??0)+n.delay,easing:""},o=new FU(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,i,n.stretchStartingKeyframe);return this.timelines.push(o),i}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,t,r,i,o,s){let a=[];if(i&&a.push(this.element),n.length>0){n=(n=n.replace(xU,"."+this._enterClassName)).replace(RU,"."+this._leaveClassName);let c=this._driver.query(this.element,n,1!=r);0!==r&&(c=r<0?c.slice(c.length+r,c.length):c.slice(0,r)),a.push(...c)}return!o&&0==a.length&&s.push(function zH(e){return new C(3014,!1)}()),a}}class ou{constructor(n,t,r,i){this._driver=n,this.element=t,this.startTime=r,this._elementTimelineStylesLookup=i,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const t=1===this._keyframes.size&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+n),t&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,t){return this.applyStylesToKeyframe(),new ou(this._driver,n,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,t){this._localTimelineStyles.set(n,t),this._globalTimelineStyles.set(n,t),this._styleSummary.set(n,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[t,r]of this._globalTimelineStyles)this._backFill.set(t,r||er),this._currentKeyframe.set(t,er);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,t,r,i){t&&this._previousKeyframe.set("easing",t);const o=i&&i.params||{},s=function LU(e,n){const t=new Map;let r;return e.forEach(i=>{if("*"===i){r=r||n.keys();for(let o of r)t.set(o,er)}else Tr(i,t)}),t}(n,this._globalTimelineStyles);for(let[a,l]of s){const c=aa(l,o,r);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??er),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,t)=>{this._currentKeyframe.set(t,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,n)}))}snapshotCurrentStyles(){for(let[n,t]of this._localTimelineStyles)this._pendingStyles.set(n,t),this._updateStyle(n,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let t in this._currentKeyframe)n.push(t);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((t,r)=>{const i=this._styleSummary.get(r);(!i||t.time>i.time)&&this._updateStyle(r,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,t=new Set,r=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((a,l)=>{const c=Tr(a,new Map,this._backFill);c.forEach((u,d)=>{"!"===u?n.add(d):u===er&&t.add(d)}),r||c.set("offset",l/this.duration),i.push(c)});const o=n.size?Jc(n.values()):[],s=t.size?Jc(t.values()):[];if(r){const a=i[0],l=new Map(a);a.set("offset",0),l.set("offset",1),i=[a,l]}return og(this.element,i,o,s,this.duration,this.startTime,this.easing,!1)}}class FU extends ou{constructor(n,t,r,i,o,s,a=!1){super(n,t,s.delay),this.keyframes=r,this.preStyleProps=i,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:t,duration:r,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){const o=[],s=r+t,a=t/s,l=Tr(n[0]);l.set("offset",0),o.push(l);const c=Tr(n[0]);c.set("offset",T0(a)),o.push(c);const u=n.length-1;for(let d=1;d<=u;d++){let f=Tr(n[d]);const h=f.get("offset");f.set("offset",T0((t+h*r)/s)),o.push(f)}r=s,t=0,i="",n=o}return og(this.element,n,this.preStyleProps,this.postStyleProps,r,t,i,!0)}}function T0(e,n=3){const t=Math.pow(10,n-1);return Math.round(e*t)/t}class lg{}const VU=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class jU extends lg{normalizePropertyName(n,t){return ng(n)}normalizeStyleValue(n,t,r,i){let o="";const s=r.toString().trim();if(VU.has(t)&&0!==r&&"0"!==r)if("number"==typeof r)o="px";else{const a=r.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push(function NH(e,n){return new C(3005,!1)}())}return s+o}}function A0(e,n,t,r,i,o,s,a,l,c,u,d,f){return{type:0,element:e,triggerName:n,isRemovalTransition:i,fromState:t,fromStyles:o,toState:r,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:f}}const cg={};class P0{constructor(n,t,r){this._triggerName=n,this.ast=t,this._stateStyles=r}match(n,t,r,i){return function BU(e,n,t,r,i){return e.some(o=>o(n,t,r,i))}(this.ast.matchers,n,t,r,i)}buildStyles(n,t,r){let i=this._stateStyles.get("*");return void 0!==n&&(i=this._stateStyles.get(n?.toString())||i),i?i.buildStyles(t,r):new Map}build(n,t,r,i,o,s,a,l,c,u){const d=[],f=this.ast.options&&this.ast.options.params||cg,p=this.buildStyles(r,a&&a.params||cg,d),g=l&&l.params||cg,y=this.buildStyles(i,g,d),w=new Set,v=new Map,S=new Map,O="void"===i,U={params:$U(g,f),delay:this.ast.options?.delay},he=u?[]:sg(n,t,this.ast.animation,o,s,p,y,U,c,d);let we=0;if(he.forEach(Ut=>{we=Math.max(Ut.duration+Ut.delay,we)}),d.length)return A0(t,this._triggerName,r,i,O,p,y,[],[],v,S,we,d);he.forEach(Ut=>{const hn=Ut.element,cu=$t(v,hn,new Set);Ut.preStyleProps.forEach(ii=>cu.add(ii));const ca=$t(S,hn,new Set);Ut.postStyleProps.forEach(ii=>ca.add(ii)),hn!==t&&w.add(hn)});const et=Jc(w.values());return A0(t,this._triggerName,r,i,O,p,y,he,et,v,S,we)}}function $U(e,n){const t=oa(n);for(const r in e)e.hasOwnProperty(r)&&null!=e[r]&&(t[r]=e[r]);return t}class HU{constructor(n,t,r){this.styles=n,this.defaultParams=t,this.normalizer=r}buildStyles(n,t){const r=new Map,i=oa(this.defaultParams);return Object.keys(n).forEach(o=>{const s=n[o];null!==s&&(i[o]=s)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=aa(s,i,t));const l=this.normalizer.normalizePropertyName(a,t);s=this.normalizer.normalizeStyleValue(a,l,s,t),r.set(a,s)})}),r}}class zU{constructor(n,t,r){this.name=n,this.ast=t,this._normalizer=r,this.transitionFactories=[],this.states=new Map,t.states.forEach(i=>{this.states.set(i.name,new HU(i.style,i.options&&i.options.params||{},r))}),O0(this.states,"true","1"),O0(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new P0(n,i,this.states))}),this.fallbackTransition=function GU(e,n,t){return new P0(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,t,r,i){return this.transitionFactories.find(s=>s.match(n,t,r,i))||null}matchStyles(n,t,r){return this.fallbackTransition.buildStyles(n,t,r)}}function O0(e,n,t){e.has(n)?e.has(t)||e.set(t,e.get(n)):e.has(t)&&e.set(n,e.get(t))}const qU=new ru;class WU{constructor(n,t,r){this.bodyNode=n,this._driver=t,this._normalizer=r,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,t){const r=[],o=rg(this._driver,t,r,[]);if(r.length)throw function YH(e){return new C(3503,!1)}();this._animations.set(n,o)}_buildPlayer(n,t,r){const i=n.element,o=h0(this._normalizer,n.keyframes,t,r);return this._driver.animate(i,o,n.duration,n.delay,n.easing,[],!0)}create(n,t,r={}){const i=[],o=this._animations.get(n);let s;const a=new Map;if(o?(s=sg(this._driver,t,o,Xp,Zc,new Map,new Map,r,qU,i),s.forEach(u=>{const d=$t(a,u.element,new Map);u.postStyleProps.forEach(f=>d.set(f,null))})):(i.push(function XH(){return new C(3300,!1)}()),s=[]),i.length)throw function JH(e){return new C(3504,!1)}();a.forEach((u,d)=>{u.forEach((f,h)=>{u.set(h,this._driver.computeStyle(d,h,er))})});const c=Ir(s.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(n,c),c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){const t=this._getPlayer(n);t.destroy(),this._playersById.delete(n);const r=this.players.indexOf(t);r>=0&&this.players.splice(r,1)}_getPlayer(n){const t=this._playersById.get(n);if(!t)throw function eU(e){return new C(3301,!1)}();return t}listen(n,t,r,i){const o=Zp(t,"","","");return Wp(this._getPlayer(n),r,o,i),()=>{}}command(n,t,r,i){if("register"==r)return void this.register(n,i[0]);if("create"==r)return void this.create(n,t,i[0]||{});const o=this._getPlayer(n);switch(r){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(n)}}}const x0="ng-animate-queued",ug="ng-animate-disabled",XU=[],N0={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},JU={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},fn="__ng_removed";class dg{get params(){return this.options.params}constructor(n,t=""){this.namespaceId=t;const r=n&&n.hasOwnProperty("value");if(this.value=function r3(e){return e??null}(r?n.value:n),r){const o=oa(n);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){const t=n.params;if(t){const r=this.options.params;Object.keys(t).forEach(i=>{null==r[i]&&(r[i]=t[i])})}}}const la="void",fg=new dg(la);class e3{constructor(n,t,r){this.id=n,this.hostElement=t,this._engine=r,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,en(t,this._hostClassName)}listen(n,t,r,i){if(!this._triggers.has(t))throw function tU(e,n){return new C(3302,!1)}();if(null==r||0==r.length)throw function nU(e){return new C(3303,!1)}();if(!function i3(e){return"start"==e||"done"==e}(r))throw function rU(e,n){return new C(3400,!1)}();const o=$t(this._elementListeners,n,[]),s={name:t,phase:r,callback:i};o.push(s);const a=$t(this._engine.statesByElement,n,new Map);return a.has(t)||(en(n,Kc),en(n,Kc+"-"+t),a.set(t,fg)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(t)||a.delete(t)})}}register(n,t){return!this._triggers.has(n)&&(this._triggers.set(n,t),!0)}_getTrigger(n){const t=this._triggers.get(n);if(!t)throw function iU(e){return new C(3401,!1)}();return t}trigger(n,t,r,i=!0){const o=this._getTrigger(t),s=new hg(this.id,t,n);let a=this._engine.statesByElement.get(n);a||(en(n,Kc),en(n,Kc+"-"+t),this._engine.statesByElement.set(n,a=new Map));let l=a.get(t);const c=new dg(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=fg),c.value!==la&&l.value===c.value){if(!function a3(e,n){const t=Object.keys(e),r=Object.keys(n);if(t.length!=r.length)return!1;for(let i=0;i{ni(n,y),Pn(n,w)})}return}const f=$t(this._engine.playersByElement,n,[]);f.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy()});let h=o.matchTransition(l.value,c.value,n,c.params),p=!1;if(!h){if(!i)return;h=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:t,transition:h,fromState:l,toState:c,player:s,isFallbackTransition:p}),p||(en(n,x0),s.onStart(()=>{Co(n,x0)})),s.onDone(()=>{let g=this.players.indexOf(s);g>=0&&this.players.splice(g,1);const y=this._engine.playersByElement.get(n);if(y){let w=y.indexOf(s);w>=0&&y.splice(w,1)}}),this.players.push(s),f.push(s),s}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(t=>t.delete(n)),this._elementListeners.forEach((t,r)=>{this._elementListeners.set(r,t.filter(i=>i.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const t=this._engine.playersByElement.get(n);t&&(t.forEach(r=>r.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,t){const r=this._engine.driver.query(n,Yc,!0);r.forEach(i=>{if(i[fn])return;const o=this._engine.fetchNamespacesByElement(i);o.size?o.forEach(s=>s.triggerLeaveAnimation(i,t,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(n,t,r,i){const o=this._engine.statesByElement.get(n),s=new Map;if(o){const a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){const u=this.trigger(n,c,la,i);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,t,s),r&&Ir(a).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const t=this._elementListeners.get(n),r=this._engine.statesByElement.get(n);if(t&&r){const i=new Set;t.forEach(o=>{const s=o.name;if(i.has(s))return;i.add(s);const l=this._triggers.get(s).fallbackTransition,c=r.get(s)||fg,u=new dg(la),d=new hg(this.id,s,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:s,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(n,t){const r=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,t),this.triggerLeaveAnimation(n,t,!0))return;let i=!1;if(r.totalAnimations){const o=r.players.length?r.playersByQueriedElement.get(n):[];if(o&&o.length)i=!0;else{let s=n;for(;s=s.parentNode;)if(r.statesByElement.get(s)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(n),i)r.markElementAsRemoved(this.id,n,!1,t);else{const o=n[fn];(!o||o===N0)&&(r.afterFlush(()=>this.clearElementCache(n)),r.destroyInnerAnimations(n),r._onRemovalComplete(n,t))}}insertNode(n,t){en(n,this._hostClassName)}drainQueuedTransitions(n){const t=[];return this._queue.forEach(r=>{const i=r.player;if(i.destroyed)return;const o=r.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==r.triggerName){const l=Zp(o,r.triggerName,r.fromState.value,r.toState.value);l._data=n,Wp(r.player,a.phase,l,a.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(r)}),this._queue=[],t.sort((r,i)=>{const o=r.transition.ast.depCount,s=i.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(r.element,i.element)?1:-1})}destroy(n){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}}class t3{_onRemovalComplete(n,t){this.onRemovalComplete(n,t)}constructor(n,t,r){this.bodyNode=n,this.driver=t,this._normalizer=r,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(i,o)=>{}}get queuedPlayers(){const n=[];return this._namespaceList.forEach(t=>{t.players.forEach(r=>{r.queued&&n.push(r)})}),n}createNamespace(n,t){const r=new e3(n,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(r,t):(this.newHostElements.set(t,r),this.collectEnterElement(t)),this._namespaceLookup[n]=r}_balanceNamespaceList(n,t){const r=this._namespaceList,i=this.namespacesByHostElement;if(r.length-1>=0){let s=!1,a=this.driver.getParentElement(t);for(;a;){const l=i.get(a);if(l){const c=r.indexOf(l);r.splice(c+1,0,n),s=!0;break}a=this.driver.getParentElement(a)}s||r.unshift(n)}else r.push(n);return i.set(t,n),n}register(n,t){let r=this._namespaceLookup[n];return r||(r=this.createNamespace(n,t)),r}registerTrigger(n,t,r){let i=this._namespaceLookup[n];i&&i.register(t,r)&&this.totalAnimations++}destroy(n,t){n&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const r=this._fetchNamespace(n);this.namespacesByHostElement.delete(r.hostElement);const i=this._namespaceList.indexOf(r);i>=0&&this._namespaceList.splice(i,1),r.destroy(t),delete this._namespaceLookup[n]}))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const t=new Set,r=this.statesByElement.get(n);if(r)for(let i of r.values())if(i.namespaceId){const o=this._fetchNamespace(i.namespaceId);o&&t.add(o)}return t}trigger(n,t,r,i){if(su(t)){const o=this._fetchNamespace(n);if(o)return o.trigger(t,r,i),!0}return!1}insertNode(n,t,r,i){if(!su(t))return;const o=t[fn];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(t);s>=0&&this.collectedLeaveElements.splice(s,1)}if(n){const s=this._fetchNamespace(n);s&&s.insertNode(t,r)}i&&this.collectEnterElement(t)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,t){t?this.disabledNodes.has(n)||(this.disabledNodes.add(n),en(n,ug)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),Co(n,ug))}removeNode(n,t,r){if(su(t)){const i=n?this._fetchNamespace(n):null;i?i.removeNode(t,r):this.markElementAsRemoved(n,t,!1,r);const o=this.namespacesByHostElement.get(t);o&&o.id!==n&&o.removeNode(t,r)}else this._onRemovalComplete(t,r)}markElementAsRemoved(n,t,r,i,o){this.collectedLeaveElements.push(t),t[fn]={namespaceId:n,setForRemoval:i,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:o}}listen(n,t,r,i,o){return su(t)?this._fetchNamespace(n).listen(t,r,i,o):()=>{}}_buildInstruction(n,t,r,i,o){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,r,i,n.fromState.options,n.toState.options,t,o)}destroyInnerAnimations(n){let t=this.driver.query(n,Yc,!0);t.forEach(r=>this.destroyActiveAnimationsForElement(r)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(n,Jp,!0),t.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(n){const t=this.playersByElement.get(n);t&&t.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(n){const t=this.playersByQueriedElement.get(n);t&&t.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return Ir(this.players).onDone(()=>n());n()})}processLeaveNode(n){const t=n[fn];if(t&&t.setForRemoval){if(n[fn]=N0,t.namespaceId){this.destroyInnerAnimations(n);const r=this._fetchNamespace(t.namespaceId);r&&r.clearElementCache(n)}this._onRemovalComplete(n,t.setForRemoval)}n.classList?.contains(ug)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(n=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((r,i)=>this._balanceNamespaceList(r,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;rr()),this._flushFns=[],this._whenQuietFns.length){const r=this._whenQuietFns;this._whenQuietFns=[],t.length?Ir(t).onDone(()=>{r.forEach(i=>i())}):r.forEach(i=>i())}}reportError(n){throw function oU(e){return new C(3402,!1)}()}_flushAnimations(n,t){const r=new ru,i=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(R=>{u.add(R);const k=this.driver.query(R,".ng-animate-queued",!0);for(let F=0;F{const F=Xp+g++;p.set(k,F),R.forEach(ne=>en(ne,F))});const y=[],w=new Set,v=new Set;for(let R=0;Rw.add(ne)):v.add(k))}const S=new Map,O=F0(f,Array.from(w));O.forEach((R,k)=>{const F=Zc+g++;S.set(k,F),R.forEach(ne=>en(ne,F))}),n.push(()=>{h.forEach((R,k)=>{const F=p.get(k);R.forEach(ne=>Co(ne,F))}),O.forEach((R,k)=>{const F=S.get(k);R.forEach(ne=>Co(ne,F))}),y.forEach(R=>{this.processLeaveNode(R)})});const U=[],he=[];for(let R=this._namespaceList.length-1;R>=0;R--)this._namespaceList[R].drainQueuedTransitions(t).forEach(F=>{const ne=F.player,qe=F.element;if(U.push(ne),this.collectedEnterElements.length){const lt=qe[fn];if(lt&<.setForMove){if(lt.previousTriggersValues&<.previousTriggersValues.has(F.triggerName)){const oi=lt.previousTriggersValues.get(F.triggerName),tn=this.statesByElement.get(F.element);if(tn&&tn.has(F.triggerName)){const uu=tn.get(F.triggerName);uu.value=oi,tn.set(F.triggerName,uu)}}return void ne.destroy()}}const On=!d||!this.driver.containsElement(d,qe),zt=S.get(qe),Ar=p.get(qe),Se=this._buildInstruction(F,r,Ar,zt,On);if(Se.errors&&Se.errors.length)return void he.push(Se);if(On)return ne.onStart(()=>ni(qe,Se.fromStyles)),ne.onDestroy(()=>Pn(qe,Se.toStyles)),void i.push(ne);if(F.isFallbackTransition)return ne.onStart(()=>ni(qe,Se.fromStyles)),ne.onDestroy(()=>Pn(qe,Se.toStyles)),void i.push(ne);const Q0=[];Se.timelines.forEach(lt=>{lt.stretchStartingKeyframe=!0,this.disabledNodes.has(lt.element)||Q0.push(lt)}),Se.timelines=Q0,r.append(qe,Se.timelines),s.push({instruction:Se,player:ne,element:qe}),Se.queriedElements.forEach(lt=>$t(a,lt,[]).push(ne)),Se.preStyleProps.forEach((lt,oi)=>{if(lt.size){let tn=l.get(oi);tn||l.set(oi,tn=new Set),lt.forEach((uu,yg)=>tn.add(yg))}}),Se.postStyleProps.forEach((lt,oi)=>{let tn=c.get(oi);tn||c.set(oi,tn=new Set),lt.forEach((uu,yg)=>tn.add(yg))})});if(he.length){const R=[];he.forEach(k=>{R.push(function sU(e,n){return new C(3505,!1)}())}),U.forEach(k=>k.destroy()),this.reportError(R)}const we=new Map,et=new Map;s.forEach(R=>{const k=R.element;r.has(k)&&(et.set(k,k),this._beforeAnimationBuild(R.player.namespaceId,R.instruction,we))}),i.forEach(R=>{const k=R.element;this._getPreviousPlayers(k,!1,R.namespaceId,R.triggerName,null).forEach(ne=>{$t(we,k,[]).push(ne),ne.destroy()})});const Ut=y.filter(R=>V0(R,l,c)),hn=new Map;k0(hn,this.driver,v,c,er).forEach(R=>{V0(R,l,c)&&Ut.push(R)});const ca=new Map;h.forEach((R,k)=>{k0(ca,this.driver,new Set(R),l,"!")}),Ut.forEach(R=>{const k=hn.get(R),F=ca.get(R);hn.set(R,new Map([...k?.entries()??[],...F?.entries()??[]]))});const ii=[],q0=[],W0={};s.forEach(R=>{const{element:k,player:F,instruction:ne}=R;if(r.has(k)){if(u.has(k))return F.onDestroy(()=>Pn(k,ne.toStyles)),F.disabled=!0,F.overrideTotalTime(ne.totalTime),void i.push(F);let qe=W0;if(et.size>1){let zt=k;const Ar=[];for(;zt=zt.parentNode;){const Se=et.get(zt);if(Se){qe=Se;break}Ar.push(zt)}Ar.forEach(Se=>et.set(Se,qe))}const On=this._buildAnimation(F.namespaceId,ne,we,o,ca,hn);if(F.setRealPlayer(On),qe===W0)ii.push(F);else{const zt=this.playersByElement.get(qe);zt&&zt.length&&(F.parentPlayer=Ir(zt)),i.push(F)}}else ni(k,ne.fromStyles),F.onDestroy(()=>Pn(k,ne.toStyles)),q0.push(F),u.has(k)&&i.push(F)}),q0.forEach(R=>{const k=o.get(R.element);if(k&&k.length){const F=Ir(k);R.setRealPlayer(F)}}),i.forEach(R=>{R.parentPlayer?R.syncPlayerEvents(R.parentPlayer):R.destroy()});for(let R=0;R!On.destroyed);qe.length?o3(this,k,qe):this.processLeaveNode(k)}return y.length=0,ii.forEach(R=>{this.players.push(R),R.onDone(()=>{R.destroy();const k=this.players.indexOf(R);this.players.splice(k,1)}),R.play()}),ii}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,t,r,i,o){let s=[];if(t){const a=this.playersByQueriedElement.get(n);a&&(s=a)}else{const a=this.playersByElement.get(n);if(a){const l=!o||o==la;a.forEach(c=>{c.queued||!l&&c.triggerName!=i||s.push(c)})}}return(r||i)&&(s=s.filter(a=>!(r&&r!=a.namespaceId||i&&i!=a.triggerName))),s}_beforeAnimationBuild(n,t,r){const o=t.element,s=t.isRemovalTransition?void 0:n,a=t.isRemovalTransition?void 0:t.triggerName;for(const l of t.timelines){const c=l.element,u=c!==o,d=$t(r,c,[]);this._getPreviousPlayers(c,u,s,a,t.toState).forEach(h=>{const p=h.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),h.destroy(),d.push(h)})}ni(o,t.fromStyles)}_buildAnimation(n,t,r,i,o,s){const a=t.triggerName,l=t.element,c=[],u=new Set,d=new Set,f=t.timelines.map(p=>{const g=p.element;u.add(g);const y=g[fn];if(y&&y.removedBeforeQueried)return new ra(p.duration,p.delay);const w=g!==l,v=function s3(e){const n=[];return L0(e,n),n}((r.get(g)||XU).map(we=>we.getRealPlayer())).filter(we=>!!we.element&&we.element===g),S=o.get(g),O=s.get(g),U=h0(this._normalizer,p.keyframes,S,O),he=this._buildPlayer(p,U,v);if(p.subTimeline&&i&&d.add(g),w){const we=new hg(n,a,g);we.setRealPlayer(he),c.push(we)}return he});c.forEach(p=>{$t(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function n3(e,n,t){let r=e.get(n);if(r){if(r.length){const i=r.indexOf(t);r.splice(i,1)}0==r.length&&e.delete(n)}return r}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>en(p,C0));const h=Ir(f);return h.onDestroy(()=>{u.forEach(p=>Co(p,C0)),Pn(l,t.toStyles)}),d.forEach(p=>{$t(i,p,[]).push(h)}),h}_buildPlayer(n,t,r){return t.length>0?this.driver.animate(n.element,t,n.duration,n.delay,n.easing,r):new ra(n.duration,n.delay)}}class hg{constructor(n,t,r){this.namespaceId=n,this.triggerName=t,this.element=r,this._player=new ra,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((t,r)=>{t.forEach(i=>Wp(n,r,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const t=this._player;t.triggerCallback&&n.onStart(()=>t.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,t){$t(this._queuedCallbacks,n,[]).push(t)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const t=this._player;t.triggerCallback&&t.triggerCallback(n)}}function su(e){return e&&1===e.nodeType}function R0(e,n){const t=e.style.display;return e.style.display=n??"none",t}function k0(e,n,t,r,i){const o=[];t.forEach(l=>o.push(R0(l)));const s=[];r.forEach((l,c)=>{const u=new Map;l.forEach(d=>{const f=n.computeStyle(c,d,i);u.set(d,f),(!f||0==f.length)&&(c[fn]=JU,s.push(c))}),e.set(c,u)});let a=0;return t.forEach(l=>R0(l,o[a++])),s}function F0(e,n){const t=new Map;if(e.forEach(a=>t.set(a,[])),0==n.length)return t;const i=new Set(n),o=new Map;function s(a){if(!a)return 1;let l=o.get(a);if(l)return l;const c=a.parentNode;return l=t.has(c)?c:i.has(c)?1:s(c),o.set(a,l),l}return n.forEach(a=>{const l=s(a);1!==l&&t.get(l).push(a)}),t}function en(e,n){e.classList?.add(n)}function Co(e,n){e.classList?.remove(n)}function o3(e,n,t){Ir(t).onDone(()=>e.processLeaveNode(n))}function L0(e,n){for(let t=0;ti.add(o)):n.set(e,r),t.delete(e),!0}class au{constructor(n,t,r){this.bodyNode=n,this._driver=t,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(i,o)=>{},this._transitionEngine=new t3(n,t,r),this._timelineEngine=new WU(n,t,r),this._transitionEngine.onRemovalComplete=(i,o)=>this.onRemovalComplete(i,o)}registerTrigger(n,t,r,i,o){const s=n+"-"+i;let a=this._triggerCache[s];if(!a){const l=[],u=rg(this._driver,o,l,[]);if(l.length)throw function ZH(e,n){return new C(3404,!1)}();a=function UU(e,n,t){return new zU(e,n,t)}(i,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(t,i,a)}register(n,t){this._transitionEngine.register(n,t)}destroy(n,t){this._transitionEngine.destroy(n,t)}onInsert(n,t,r,i){this._transitionEngine.insertNode(n,t,r,i)}onRemove(n,t,r){this._transitionEngine.removeNode(n,t,r)}disableAnimations(n,t){this._transitionEngine.markElementAsDisabled(n,t)}process(n,t,r,i){if("@"==r.charAt(0)){const[o,s]=p0(r);this._timelineEngine.command(o,t,s,i)}else this._transitionEngine.trigger(n,t,r,i)}listen(n,t,r,i,o){if("@"==r.charAt(0)){const[s,a]=p0(r);return this._timelineEngine.listen(s,t,a,o)}return this._transitionEngine.listen(n,t,r,i,o)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(n){this._transitionEngine.afterFlushAnimationsDone(n)}}let c3=(()=>{class e{static#e=this.initialStylesByElement=new WeakMap;constructor(t,r,i){this._element=t,this._startStyles=r,this._endStyles=i,this._state=0;let o=e.initialStylesByElement.get(t);o||e.initialStylesByElement.set(t,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Pn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Pn(this._element,this._initialStyles),this._endStyles&&(Pn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(ni(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ni(this._element,this._endStyles),this._endStyles=null),Pn(this._element,this._initialStyles),this._state=3)}}return e})();function pg(e){let n=null;return e.forEach((t,r)=>{(function u3(e){return"display"===e||"position"===e})(r)&&(n=n||new Map,n.set(r,t))}),n}class j0{constructor(n,t,r,i){this.element=n,this.keyframes=t,this.options=r,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map;const t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const t=[];return n.forEach(r=>{t.push(Object.fromEntries(r))}),t}_triggerWebAnimation(n,t,r){return n.animate(this._convertKeyframesToObject(t),r)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((r,i)=>{"offset"!==i&&n.set(i,this._finished?r:E0(this.element,i))}),this.currentSnapshot=n}triggerCallback(n){const t="start"===n?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}}class d3{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}matchesElement(n,t){return!1}containsElement(n,t){return m0(n,t)}getParentElement(n){return Kp(n)}query(n,t,r){return y0(n,t,r)}computeStyle(n,t,r){return window.getComputedStyle(n)[t]}animate(n,t,r,i,o,s=[]){const l={duration:r,delay:i,fill:0==i?"both":"forwards"};o&&(l.easing=o);const c=new Map,u=s.filter(h=>h instanceof j0);(function vU(e,n){return 0===e||0===n})(r,i)&&u.forEach(h=>{h.currentSnapshot.forEach((p,g)=>c.set(g,p))});let d=function gU(e){return e.length?e[0]instanceof Map?e:e.map(n=>D0(n)):[]}(t).map(h=>Tr(h));d=function _U(e,n,t){if(t.size&&n.length){let r=n[0],i=[];if(t.forEach((o,s)=>{r.has(s)||i.push(s),r.set(s,o)}),i.length)for(let o=1;os.set(a,E0(e,a)))}}return n}(n,d,c);const f=function l3(e,n){let t=null,r=null;return Array.isArray(n)&&n.length?(t=pg(n[0]),n.length>1&&(r=pg(n[n.length-1]))):n instanceof Map&&(t=pg(n)),t||r?new c3(e,t,r):null}(n,d);return new j0(n,d,l,f)}}let f3=(()=>{class e extends n0{constructor(t,r){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(r.body,{id:"0",encapsulation:Qt.None,styles:[],data:{animation:[]}})}build(t){const r=this._nextAnimationId.toString();this._nextAnimationId++;const i=Array.isArray(t)?o0(t):t;return B0(this._renderer,null,r,"register",[i]),new h3(r,this._renderer)}static#e=this.\u0275fac=function(r){return new(r||e)(I(ts),I(Ue))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})();class h3 extends T${constructor(n,t){super(),this._id=n,this._renderer=t}create(n,t){return new p3(this._id,n,t||{},this._renderer)}}class p3{constructor(n,t,r,i){this.id=n,this.element=t,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",r)}_listen(n,t){return this._renderer.listen(this.element,`@@${this.id}:${n}`,t)}_command(n,...t){return B0(this._renderer,this.element,this.id,n,t)}onDone(n){this._listen("done",n)}onStart(n){this._listen("start",n)}onDestroy(n){this._listen("destroy",n)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(n){this._command("setPosition",n)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function B0(e,n,t,r,i){return e.setProperty(n,`@@${t}:${r}`,i)}const $0="@.disabled";let g3=(()=>{class e{constructor(t,r,i){this.delegate=t,this.engine=r,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,r.onRemovalComplete=(o,s)=>{const a=s?.parentNode(o);a&&s.removeChild(a,o)}}createRenderer(t,r){const o=this.delegate.createRenderer(t,r);if(!(t&&r&&r.data&&r.data.animation)){let u=this._rendererCache.get(o);return u||(u=new H0("",o,this.engine,()=>this._rendererCache.delete(o)),this._rendererCache.set(o,u)),u}const s=r.id,a=r.id+"-"+this._currentId;this._currentId++,this.engine.register(a,t);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(s,a,t,u.name,u)};return r.data.animation.forEach(l),new m3(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(t,r,i){t>=0&&tr(i)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([r,i]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}static#e=this.\u0275fac=function(r){return new(r||e)(I(ts),I(au),I(ce))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})();class H0{constructor(n,t,r,i){this.namespaceId=n,this.delegate=t,this.engine=r,this._onDestroy=i}get data(){return this.delegate.data}destroyNode(n){this.delegate.destroyNode?.(n)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(n,t){return this.delegate.createElement(n,t)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,t){this.delegate.appendChild(n,t),this.engine.onInsert(this.namespaceId,t,n,!1)}insertBefore(n,t,r,i=!0){this.delegate.insertBefore(n,t,r),this.engine.onInsert(this.namespaceId,t,n,i)}removeChild(n,t,r){this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(n,t){return this.delegate.selectRootElement(n,t)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,t,r,i){this.delegate.setAttribute(n,t,r,i)}removeAttribute(n,t,r){this.delegate.removeAttribute(n,t,r)}addClass(n,t){this.delegate.addClass(n,t)}removeClass(n,t){this.delegate.removeClass(n,t)}setStyle(n,t,r,i){this.delegate.setStyle(n,t,r,i)}removeStyle(n,t,r){this.delegate.removeStyle(n,t,r)}setProperty(n,t,r){"@"==t.charAt(0)&&t==$0?this.disableAnimations(n,!!r):this.delegate.setProperty(n,t,r)}setValue(n,t){this.delegate.setValue(n,t)}listen(n,t,r){return this.delegate.listen(n,t,r)}disableAnimations(n,t){this.engine.disableAnimations(n,t)}}class m3 extends H0{constructor(n,t,r,i,o){super(t,r,i,o),this.factory=n,this.namespaceId=t}setProperty(n,t,r){"@"==t.charAt(0)?"."==t.charAt(1)&&t==$0?this.disableAnimations(n,r=void 0===r||!!r):this.engine.process(this.namespaceId,n,t.slice(1),r):this.delegate.setProperty(n,t,r)}listen(n,t,r){if("@"==t.charAt(0)){const i=function y3(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(n);let o=t.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function v3(e){const n=e.indexOf(".");return[e.substring(0,n),e.slice(n+1)]}(o)),this.engine.listen(this.namespaceId,i,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,r,a)})}return this.delegate.listen(n,t,r)}}const U0=[{provide:n0,useClass:f3},{provide:lg,useFactory:function C3(){return new jU}},{provide:au,useClass:(()=>{class e extends au{constructor(t,r,i,o){super(t.body,r,i)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(r){return new(r||e)(I(Ue),I(Yp),I(lg),I(qn))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})()},{provide:ts,useFactory:function D3(e,n,t){return new g3(e,n,t)},deps:[zh,au,ce]}],gg=[{provide:Yp,useFactory:()=>new d3},{provide:yv,useValue:"BrowserAnimations"},...U0],z0=[{provide:Yp,useClass:v0},{provide:yv,useValue:"NoopAnimations"},...U0];let mg=(()=>{class e{static withConfig(t){return{ngModule:e,providers:t.disableAnimations?z0:gg}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=tt({type:e});static#n=this.\u0275inj=Qe({providers:gg,imports:[vb]})}return e})(),w3=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=tt({type:e});static#n=this.\u0275inj=Qe({imports:[Fh,e0,Vc,FM,Qc,mg,qp.forRoot()]})}return e})(),G0=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=tt({type:e});static#n=this.\u0275inj=Qe({providers:[{provide:GM,useClass:IH,multi:!0}],imports:[Fh,Vc,Qc,e0,w3,qp.forRoot(),mg]})}return e})(),b3=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=tt({type:e,bootstrap:[SH]});static#n=this.\u0275inj=Qe({providers:[{provide:gr,useClass:Fw}],imports:[vb,Qc,G0,Vc,FM,mg,qp.forRoot({positionClass:"toast-top-right",preventDuplicates:!0,timeOut:3e3,closeButton:!0,progressBar:!0,tapToDismiss:!0,easeTime:300}),Vc,Qc,G0]})}return e})();uL().bootstrapModule(b3).catch(e=>console.error(e))}},pe=>{pe(pe.s=372)}]); \ No newline at end of file +"use strict";(self.webpackChunkloginPractice=self.webpackChunkloginPractice||[]).push([[792],{372:()=>{function pe(e){return"function"==typeof e}function Do(e){const t=e(r=>{Error.call(r),r.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const ua=Do(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((r,i)=>`${i+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function wo(e,n){if(e){const t=e.indexOf(n);0<=t&&e.splice(t,1)}}class Tt{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(const o of t)o.remove(this);else t.remove(this);const{initialTeardown:r}=this;if(pe(r))try{r()}catch(o){n=o instanceof ua?o.errors:[o]}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const o of i)try{Cg(o)}catch(s){n=n??[],s instanceof ua?n=[...n,...s.errors]:n.push(s)}}if(n)throw new ua(n)}}add(n){var t;if(n&&n!==this)if(this.closed)Cg(n);else{if(n instanceof Tt){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(n)}}_hasParent(n){const{_parentage:t}=this;return t===n||Array.isArray(t)&&t.includes(n)}_addParent(n){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n}_removeParent(n){const{_parentage:t}=this;t===n?this._parentage=null:Array.isArray(t)&&wo(t,n)}remove(n){const{_finalizers:t}=this;t&&wo(t,n),n instanceof Tt&&n._removeParent(this)}}Tt.EMPTY=(()=>{const e=new Tt;return e.closed=!0,e})();const vg=Tt.EMPTY;function _g(e){return e instanceof Tt||e&&"closed"in e&&pe(e.remove)&&pe(e.add)&&pe(e.unsubscribe)}function Cg(e){pe(e)?e():e.unsubscribe()}const Pr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},da={setTimeout(e,n,...t){const{delegate:r}=da;return r?.setTimeout?r.setTimeout(e,n,...t):setTimeout(e,n,...t)},clearTimeout(e){const{delegate:n}=da;return(n?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Dg(e){da.setTimeout(()=>{const{onUnhandledError:n}=Pr;if(!n)throw e;n(e)})}function du(){}const Z0=fu("C",void 0,void 0);function fu(e,n,t){return{kind:e,value:n,error:t}}let Or=null;function fa(e){if(Pr.useDeprecatedSynchronousErrorHandling){const n=!Or;if(n&&(Or={errorThrown:!1,error:null}),e(),n){const{errorThrown:t,error:r}=Or;if(Or=null,t)throw r}}else e()}class hu extends Tt{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,_g(n)&&n.add(this)):this.destination=nS}static create(n,t,r){return new bo(n,t,r)}next(n){this.isStopped?gu(function Y0(e){return fu("N",e,void 0)}(n),this):this._next(n)}error(n){this.isStopped?gu(function K0(e){return fu("E",void 0,e)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?gu(Z0,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const J0=Function.prototype.bind;function pu(e,n){return J0.call(e,n)}class eS{constructor(n){this.partialObserver=n}next(n){const{partialObserver:t}=this;if(t.next)try{t.next(n)}catch(r){ha(r)}}error(n){const{partialObserver:t}=this;if(t.error)try{t.error(n)}catch(r){ha(r)}else ha(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(t){ha(t)}}}class bo extends hu{constructor(n,t,r){let i;if(super(),pe(n)||!n)i={next:n??void 0,error:t??void 0,complete:r??void 0};else{let o;this&&Pr.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),i={next:n.next&&pu(n.next,o),error:n.error&&pu(n.error,o),complete:n.complete&&pu(n.complete,o)}):i=n}this.destination=new eS(i)}}function ha(e){Pr.useDeprecatedSynchronousErrorHandling?function X0(e){Pr.useDeprecatedSynchronousErrorHandling&&Or&&(Or.errorThrown=!0,Or.error=e)}(e):Dg(e)}function gu(e,n){const{onStoppedNotification:t}=Pr;t&&da.setTimeout(()=>t(e,n))}const nS={closed:!0,next:du,error:function tS(e){throw e},complete:du},mu="function"==typeof Symbol&&Symbol.observable||"@@observable";function nr(e){return e}function wg(e){return 0===e.length?nr:1===e.length?e[0]:function(t){return e.reduce((r,i)=>i(r),t)}}let Ae=(()=>{class e{constructor(t){t&&(this._subscribe=t)}lift(t){const r=new e;return r.source=this,r.operator=t,r}subscribe(t,r,i){const o=function oS(e){return e&&e instanceof hu||function iS(e){return e&&pe(e.next)&&pe(e.error)&&pe(e.complete)}(e)&&_g(e)}(t)?t:new bo(t,r,i);return fa(()=>{const{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(t){try{return this._subscribe(t)}catch(r){t.error(r)}}forEach(t,r){return new(r=bg(r))((i,o)=>{const s=new bo({next:a=>{try{t(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(t){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(t)}[mu](){return this}pipe(...t){return wg(t)(this)}toPromise(t){return new(t=bg(t))((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return e.create=n=>new e(n),e})();function bg(e){var n;return null!==(n=e??Pr.Promise)&&void 0!==n?n:Promise}const sS=Do(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Ge=(()=>{class e extends Ae{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const r=new Eg(this,this);return r.operator=t,r}_throwIfClosed(){if(this.closed)throw new sS}next(t){fa(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(t)}})}error(t){fa(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:r}=this;for(;r.length;)r.shift().error(t)}})}complete(){fa(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:r,isStopped:i,observers:o}=this;return r||i?vg:(this.currentObservers=null,o.push(t),new Tt(()=>{this.currentObservers=null,wo(o,t)}))}_checkFinalizedStatuses(t){const{hasError:r,thrownError:i,isStopped:o}=this;r?t.error(i):o&&t.complete()}asObservable(){const t=new Ae;return t.source=this,t}}return e.create=(n,t)=>new Eg(n,t),e})();class Eg extends Ge{constructor(n,t){super(),this.destination=n,this.source=t}next(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,n)}error(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,n)}complete(){var n,t;null===(t=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===t||t.call(n)}_subscribe(n){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(n))&&void 0!==r?r:vg}}function Mg(e){return pe(e?.lift)}function Fe(e){return n=>{if(Mg(n))return n.lift(function(t){try{return e(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Re(e,n,t,r,i){return new aS(e,n,t,r,i)}class aS extends hu{constructor(n,t,r,i,o,s){super(n),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=t?function(a){try{t(a)}catch(l){n.error(l)}}:super._next,this._error=i?function(a){try{i(a)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:t}=this;super.unsubscribe(),!t&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function ie(e,n){return Fe((t,r)=>{let i=0;t.subscribe(Re(r,o=>{r.next(e.call(n,o,i++))}))})}function rr(e){return this instanceof rr?(this.v=e,this):new rr(e)}function Ag(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function Cu(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],r=0;if(t)return t.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(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(o){t[o]=e[o]&&function(s){return new Promise(function(a,l){!function i(o,s,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},s)}(a,l,(s=e[o](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const Pg=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function Og(e){return pe(e?.then)}function xg(e){return pe(e[mu])}function Ng(e){return Symbol.asyncIterator&&pe(e?.[Symbol.asyncIterator])}function Rg(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 kg=function AS(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Fg(e){return pe(e?.[kg])}function Lg(e){return function Tg(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=t.apply(e,n||[]),o=[];return i={},a("next"),a("throw"),a("return",function s(h){return function(p){return Promise.resolve(p).then(h,d)}}),i[Symbol.asyncIterator]=function(){return this},i;function a(h,p){r[h]&&(i[h]=function(g){return new Promise(function(y,w){o.push([h,g,y,w])>1||l(h,g)})},p&&(i[h]=p(i[h])))}function l(h,p){try{!function c(h){h.value instanceof rr?Promise.resolve(h.value.v).then(u,d):f(o[0][2],h)}(r[h](p))}catch(g){f(o[0][3],g)}}function u(h){l("next",h)}function d(h){l("throw",h)}function f(h,p){h(p),o.shift(),o.length&&l(o[0][0],o[0][1])}}(this,arguments,function*(){const t=e.getReader();try{for(;;){const{value:r,done:i}=yield rr(t.read());if(i)return yield rr(void 0);yield yield rr(r)}}finally{t.releaseLock()}})}function Vg(e){return pe(e?.getReader)}function At(e){if(e instanceof Ae)return e;if(null!=e){if(xg(e))return function PS(e){return new Ae(n=>{const t=e[mu]();if(pe(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Pg(e))return function OS(e){return new Ae(n=>{for(let t=0;t{e.then(t=>{n.closed||(n.next(t),n.complete())},t=>n.error(t)).then(null,Dg)})}(e);if(Ng(e))return jg(e);if(Fg(e))return function NS(e){return new Ae(n=>{for(const t of e)if(n.next(t),n.closed)return;n.complete()})}(e);if(Vg(e))return function RS(e){return jg(Lg(e))}(e)}throw Rg(e)}function jg(e){return new Ae(n=>{(function kS(e,n){var t,r,i,o;return function Sg(e,n,t,r){return new(t||(t=Promise))(function(o,s){function a(u){try{c(r.next(u))}catch(d){s(d)}}function l(u){try{c(r.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):function i(o){return o instanceof t?o:new t(function(s){s(o)})}(u.value).then(a,l)}c((r=r.apply(e,n||[])).next())})}(this,void 0,void 0,function*(){try{for(t=Ag(e);!(r=yield t.next()).done;)if(n.next(r.value),n.closed)return}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=t.return)&&(yield o.call(t))}finally{if(i)throw i.error}}n.complete()})})(e,n).catch(t=>n.error(t))})}function xn(e,n,t,r=0,i=!1){const o=n.schedule(function(){t(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function We(e,n,t=1/0){return pe(n)?We((r,i)=>ie((o,s)=>n(r,o,i,s))(At(e(r,i))),t):("number"==typeof n&&(t=n),Fe((r,i)=>function FS(e,n,t,r,i,o,s,a){const l=[];let c=0,u=0,d=!1;const f=()=>{d&&!l.length&&!c&&n.complete()},h=g=>c{o&&n.next(g),c++;let y=!1;At(t(g,u++)).subscribe(Re(n,w=>{i?.(w),o?h(w):n.next(w)},()=>{y=!0},void 0,()=>{if(y)try{for(c--;l.length&&cp(w)):p(w)}f()}catch(w){n.error(w)}}))};return e.subscribe(Re(n,h,()=>{d=!0,f()})),()=>{a?.()}}(r,i,e,t)))}function si(e=1/0){return We(nr,e)}const pn=new Ae(e=>e.complete());function Du(e){return e[e.length-1]}function Bg(e){return pe(Du(e))?e.pop():void 0}function Eo(e){return function VS(e){return e&&pe(e.schedule)}(Du(e))?e.pop():void 0}function $g(e,n=0){return Fe((t,r)=>{t.subscribe(Re(r,i=>xn(r,e,()=>r.next(i),n),()=>xn(r,e,()=>r.complete(),n),i=>xn(r,e,()=>r.error(i),n)))})}function Hg(e,n=0){return Fe((t,r)=>{r.add(e.schedule(()=>t.subscribe(r),n))})}function Ug(e,n){if(!e)throw new Error("Iterable cannot be null");return new Ae(t=>{xn(t,n,()=>{const r=e[Symbol.asyncIterator]();xn(t,n,()=>{r.next().then(i=>{i.done?t.complete():t.next(i.value)})},0,!0)})})}function Le(e,n){return n?function GS(e,n){if(null!=e){if(xg(e))return function BS(e,n){return At(e).pipe(Hg(n),$g(n))}(e,n);if(Pg(e))return function HS(e,n){return new Ae(t=>{let r=0;return n.schedule(function(){r===e.length?t.complete():(t.next(e[r++]),t.closed||this.schedule())})})}(e,n);if(Og(e))return function $S(e,n){return At(e).pipe(Hg(n),$g(n))}(e,n);if(Ng(e))return Ug(e,n);if(Fg(e))return function US(e,n){return new Ae(t=>{let r;return xn(t,n,()=>{r=e[kg](),xn(t,n,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){return void t.error(s)}o?t.complete():t.next(i)},0,!0)}),()=>pe(r?.return)&&r.return()})}(e,n);if(Vg(e))return function zS(e,n){return Ug(Lg(e),n)}(e,n)}throw Rg(e)}(e,n):At(e)}class Gt extends Ge{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const t=super._subscribe(n);return!t.closed&&n.next(this._value),t}getValue(){const{hasError:n,thrownError:t,_value:r}=this;if(n)throw t;return this._throwIfClosed(),r}next(n){super.next(this._value=n)}}function L(...e){return Le(e,Eo(e))}function zg(e={}){const{connector:n=(()=>new Ge),resetOnError:t=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=e;return o=>{let s,a,l,c=0,u=!1,d=!1;const f=()=>{a?.unsubscribe(),a=void 0},h=()=>{f(),s=l=void 0,u=d=!1},p=()=>{const g=s;h(),g?.unsubscribe()};return Fe((g,y)=>{c++,!d&&!u&&f();const w=l=l??n();y.add(()=>{c--,0===c&&!d&&!u&&(a=wu(p,i))}),w.subscribe(y),!s&&c>0&&(s=new bo({next:v=>w.next(v),error:v=>{d=!0,f(),a=wu(h,t,v),w.error(v)},complete:()=>{u=!0,f(),a=wu(h,r),w.complete()}}),At(g).subscribe(s))})(o)}}function wu(e,n,...t){if(!0===n)return void e();if(!1===n)return;const r=new bo({next:()=>{r.unsubscribe(),e()}});return At(n(...t)).subscribe(r)}function qt(e,n){return Fe((t,r)=>{let i=null,o=0,s=!1;const a=()=>s&&!i&&r.complete();t.subscribe(Re(r,l=>{i?.unsubscribe();let c=0;const u=o++;At(e(l,u)).subscribe(i=Re(r,d=>r.next(n?n(l,d,u,c++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function QS(e,n){return e===n}function ue(e){for(let n in e)if(e[n]===ue)return n;throw Error("Could not find renamed property on target object.")}function pa(e,n){for(const t in n)n.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=n[t])}function Ve(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Ve).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const n=e.toString();if(null==n)return""+n;const t=n.indexOf("\n");return-1===t?n:n.substring(0,t)}function bu(e,n){return null==e||""===e?null===n?"":n:null==n||""===n?e:e+" "+n}const ZS=ue({__forward_ref__:ue});function me(e){return e.__forward_ref__=me,e.toString=function(){return Ve(this())},e}function B(e){return Eu(e)?e():e}function Eu(e){return"function"==typeof e&&e.hasOwnProperty(ZS)&&e.__forward_ref__===me}function Mu(e){return e&&!!e.\u0275providers}const Gg="https://g.co/ng/security#xss";class C extends Error{constructor(n,t){super(function ga(e,n){return`NG0${Math.abs(e)}${n?": "+n:""}`}(n,t)),this.code=n}}function z(e){return"string"==typeof e?e:null==e?"":String(e)}function Su(e,n){throw new C(-201,!1)}function Wt(e,n){null==e&&function V(e,n,t,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${t} ${r} ${n} <=Actual]`))}(n,e,null,"!=")}function x(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Qe(e){return{providers:e.providers||[],imports:e.imports||[]}}function ma(e){return qg(e,va)||qg(e,Wg)}function qg(e,n){return e.hasOwnProperty(n)?e[n]:null}function ya(e){return e&&(e.hasOwnProperty(Iu)||e.hasOwnProperty(rI))?e[Iu]:null}const va=ue({\u0275prov:ue}),Iu=ue({\u0275inj:ue}),Wg=ue({ngInjectableDef:ue}),rI=ue({ngInjectorDef:ue});var X=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(X||{});let Tu;function Dt(e){const n=Tu;return Tu=e,n}function Zg(e,n,t){const r=ma(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:t&X.Optional?null:void 0!==n?n:void Su(Ve(e))}const ye=globalThis;class P{constructor(n,t){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=x({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const Mo={},Nu="__NG_DI_FLAG__",_a="ngTempTokenPath",sI=/\n/gm,Yg="__source";let ai;function ir(e){const n=ai;return ai=e,n}function cI(e,n=X.Default){if(void 0===ai)throw new C(-203,!1);return null===ai?Zg(e,void 0,n):ai.get(e,n&X.Optional?null:void 0,n)}function I(e,n=X.Default){return(function Qg(){return Tu}()||cI)(B(e),n)}function T(e,n=X.Default){return I(e,Ca(n))}function Ca(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Ru(e){const n=[];for(let t=0;tn){s=o-1;break}}}for(;oo?"":i[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==tm(h,c,0)||2&r&&c!==f){if(nn(r))return!1;s=!0}}}}else{if(!s&&!nn(r)&&!nn(l))return!1;if(s&&nn(l))continue;s=!1,r=l|1&r}}return nn(r)||s}function nn(e){return 0==(1&e)}function mI(e,n,t,r){if(null===n)return-1;let i=0;if(r||!t){let o=!1;for(;i-1)for(t++;t0?'="'+a+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""!==i&&!nn(s)&&(n+=lm(o,i),i=""),r=s,o=o||!nn(r);t++}return""!==i&&(n+=lm(o,i)),n}function ct(e){return Nn(()=>{const n=um(e),t={...n,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Da.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Qt.Emulated,styles:e.styles||re,_:null,schemas:e.schemas||null,tView:null,id:""};dm(t);const r=e.dependencies;return t.directiveDefs=ba(r,!1),t.pipeDefs=ba(r,!0),t.id=function AI(e){let n=0;const t=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const i of t)n=Math.imul(31,n)+i.charCodeAt(0)<<0;return n+=2147483648,"c"+n}(t),t})}function MI(e){return ee(e)||Ze(e)}function SI(e){return null!==e}function tt(e){return Nn(()=>({type:e.type,bootstrap:e.bootstrap||re,declarations:e.declarations||re,imports:e.imports||re,exports:e.exports||re,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function cm(e,n){if(null==e)return gn;const t={};for(const r in e)if(e.hasOwnProperty(r)){let i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),t[i]=r,n&&(n[i]=o)}return t}function $(e){return Nn(()=>{const n=um(e);return dm(n),n})}function ee(e){return e[wa]||null}function Ze(e){return e[ku]||null}function ut(e){return e[Fu]||null}function Ot(e,n){const t=e[Jg]||null;if(!t&&!0===n)throw new Error(`Type ${Ve(e)} does not have '\u0275mod' property.`);return t}function um(e){const n={};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:n,inputTransforms:null,inputConfig:e.inputs||gn,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||re,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:cm(e.inputs,n),outputs:cm(e.outputs)}}function dm(e){e.features?.forEach(n=>n(e))}function ba(e,n){if(!e)return null;const t=n?ut:MI;return()=>("function"==typeof e?e():e).map(r=>t(r)).filter(SI)}const Ie=0,A=1,W=2,be=3,rn=4,Ao=5,nt=6,ci=7,Pe=8,or=9,ui=10,G=11,Po=12,fm=13,di=14,Oe=15,Oo=16,fi=17,mn=18,xo=19,hm=20,sr=21,kn=22,No=23,Ro=24,J=25,Vu=1,pm=2,yn=7,hi=9,Ke=11;function bt(e){return Array.isArray(e)&&"object"==typeof e[Vu]}function dt(e){return Array.isArray(e)&&!0===e[Vu]}function ju(e){return 0!=(4&e.flags)}function Nr(e){return e.componentOffset>-1}function Ma(e){return 1==(1&e.flags)}function on(e){return!!e.template}function Bu(e){return 0!=(512&e[W])}function Rr(e,n){return e.hasOwnProperty(Rn)?e[Rn]:null}const ar=Symbol("SIGNAL");function RI(e,n){return(null===e||"object"!=typeof e)&&Object.is(e,n)}let Ye=null,Sa=!1;function Zt(e){const n=Ye;return Ye=e,n}const $u={version:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{}};function ym(e){if(Sa)throw new Error("");if(null===Ye)return;const n=Ye.nextProducerIndex++;pi(Ye),ne.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Dm(e){pi(e);for(let n=0;n0}function pi(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Em(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}let Mm=function LI(){throw new Error};function Gu(){Mm()}let qu=null;function Ta(e,n){const t=Object.create(jI);function r(){return ym(t),t.value}return t.value=e,n?.equal&&(t.equal=n.equal),r.set=Im,r.update=BI,r.mutate=$I,r.asReadonly=HI,r[ar]=t,r}const jI=(()=>({...$u,equal:RI,readonlyFn:void 0}))();function Sm(e){e.version++,_m(e),qu?.()}function Im(e){const n=this[ar];Hu()||Gu(),n.equal(n.value,e)||(n.value=e,Sm(n))}function BI(e){Hu()||Gu(),Im.call(this,e(this[ar].value))}function $I(e){const n=this[ar];Hu()||Gu(),e(n.value),Sm(n)}function HI(){const e=this[ar];if(void 0===e.readonlyFn){const n=()=>this();n[ar]=e,e.readonlyFn=n}return e.readonlyFn}const Am=()=>{},zI=(()=>({...$u,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule(e.ref)},hasRun:!1,cleanupFn:Am}))();class GI{constructor(n,t,r){this.previousValue=n,this.currentValue=t,this.firstChange=r}isFirstChange(){return this.firstChange}}function xt(){return Pm}function Pm(e){return e.type.prototype.ngOnChanges&&(e.setInput=WI),qI}function qI(){const e=xm(this),n=e?.current;if(n){const t=e.previous;if(t===gn)e.previous=n;else for(let r in n)t[r]=n[r];e.current=null,this.ngOnChanges(n)}}function WI(e,n,t,r){const i=this.declaredInputs[t],o=xm(e)||function QI(e,n){return e[Om]=n}(e,{previous:gn,current:null}),s=o.current||(o.current={}),a=o.previous,l=a[i];s[i]=new GI(l&&l.currentValue,n,a===gn),e[r]=n}xt.ngInherit=!0;const Om="__ngSimpleChanges__";function xm(e){return e[Om]||null}const vn=function(e,n,t){};function ve(e){for(;Array.isArray(e);)e=e[Ie];return e}function Aa(e,n){return ve(n[e])}function Et(e,n){return ve(n[e.index])}function km(e,n){return e.data[n]}function Nt(e,n){const t=n[e];return bt(t)?t:t[Ie]}function lr(e,n){return null==n?null:e[n]}function Fm(e){e[fi]=0}function eT(e){1024&e[W]||(e[W]|=1024,Vm(e,1))}function Lm(e){1024&e[W]&&(e[W]&=-1025,Vm(e,-1))}function Vm(e,n){let t=e[be];if(null===t)return;t[Ao]+=n;let r=t;for(t=t[be];null!==t&&(1===n&&1===r[Ao]||-1===n&&0===r[Ao]);)t[Ao]+=n,r=t,t=t[be]}const j={lFrame:Zm(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function $m(){return j.bindingsEnabled}function E(){return j.lFrame.lView}function te(){return j.lFrame.tView}function je(e){return j.lFrame.contextLView=e,e[Pe]}function Be(e){return j.lFrame.contextLView=null,e}function Xe(){let e=Hm();for(;null!==e&&64===e.type;)e=e.parent;return e}function Hm(){return j.lFrame.currentTNode}function _n(e,n){const t=j.lFrame;t.currentTNode=e,t.isParent=n}function Zu(){return j.lFrame.isParent}function Ku(){j.lFrame.isParent=!1}function ft(){const e=j.lFrame;let n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}function yi(){return j.lFrame.bindingIndex++}function Ln(e){const n=j.lFrame,t=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,t}function fT(e,n){const t=j.lFrame;t.bindingIndex=t.bindingRootIndex=e,Yu(n)}function Yu(e){j.lFrame.currentDirectiveIndex=e}function Xu(e){const n=j.lFrame.currentDirectiveIndex;return-1===n?null:e[n]}function qm(){return j.lFrame.currentQueryIndex}function Ju(e){j.lFrame.currentQueryIndex=e}function pT(e){const n=e[A];return 2===n.type?n.declTNode:1===n.type?e[nt]:null}function Wm(e,n,t){if(t&X.SkipSelf){let i=n,o=e;for(;!(i=i.parent,null!==i||t&X.Host||(i=pT(o),null===i||(o=o[di],10&i.type))););if(null===i)return!1;n=i,e=o}const r=j.lFrame=Qm();return r.currentTNode=n,r.lView=e,!0}function ed(e){const n=Qm(),t=e[A];j.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex,n.inI18n=!1}function Qm(){const e=j.lFrame,n=null===e?null:e.child;return null===n?Zm(e):n}function Zm(e){const n={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=n),n}function Km(){const e=j.lFrame;return j.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Ym=Km;function td(){const e=Km();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 ht(){return j.lFrame.selectedIndex}function kr(e){j.lFrame.selectedIndex=e}function Me(){const e=j.lFrame;return km(e.tView,e.selectedIndex)}let Jm=!0;function Pa(){return Jm}function cr(e){Jm=e}function Oa(e,n){for(let t=n.directiveStart,r=n.directiveEnd;t=r)break}else n[l]<0&&(e[fi]+=65536),(a>13>16&&(3&e[W])===n&&(e[W]+=8192,ty(a,o)):ty(a,o)}const vi=-1;class Vo{constructor(n,t,r){this.factory=n,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=r}}function id(e){return e!==vi}function jo(e){return 32767&e}function Bo(e,n){let t=function ST(e){return e>>16}(e),r=n;for(;t>0;)r=r[di],t--;return r}let od=!0;function Ra(e){const n=od;return od=e,n}const ny=255,ry=5;let IT=0;const Cn={};function ka(e,n){const t=iy(e,n);if(-1!==t)return t;const r=n[A];r.firstCreatePass&&(e.injectorIndex=n.length,sd(r.data,e),sd(n,null),sd(r.blueprint,null));const i=Fa(e,n),o=e.injectorIndex;if(id(i)){const s=jo(i),a=Bo(i,n),l=a[A].data;for(let c=0;c<8;c++)n[o+c]=a[s+c]|l[s+c]}return n[o+8]=i,o}function sd(e,n){e.push(0,0,0,0,0,0,0,0,n)}function iy(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function Fa(e,n){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let t=0,r=null,i=n;for(;null!==i;){if(r=dy(i),null===r)return vi;if(t++,i=i[di],-1!==r.injectorIndex)return r.injectorIndex|t<<16}return vi}function ad(e,n,t){!function TT(e,n,t){let r;"string"==typeof t?r=t.charCodeAt(0)||0:t.hasOwnProperty(Io)&&(r=t[Io]),null==r&&(r=t[Io]=IT++);const i=r&ny;n.data[e+(i>>ry)]|=1<=0?n&ny:NT:n}(t);if("function"==typeof o){if(!Wm(n,e,r))return r&X.Host?oy(i,0,r):sy(n,t,r,i);try{let s;if(s=o(r),null!=s||r&X.Optional)return s;Su()}finally{Ym()}}else if("number"==typeof o){let s=null,a=iy(e,n),l=vi,c=r&X.Host?n[Oe][nt]:null;for((-1===a||r&X.SkipSelf)&&(l=-1===a?Fa(e,n):n[a+8],l!==vi&&uy(r,!1)?(s=n[A],a=jo(l),n=Bo(l,n)):a=-1);-1!==a;){const u=n[A];if(cy(o,a,u.data)){const d=PT(a,n,t,s,r,c);if(d!==Cn)return d}l=n[a+8],l!==vi&&uy(r,n[A].data[a+8]===c)&&cy(o,a,n)?(s=u,a=jo(l),n=Bo(l,n)):a=-1}}return i}function PT(e,n,t,r,i,o){const s=n[A],a=s.data[e+8],u=La(a,s,t,null==r?Nr(a)&&od:r!=s&&0!=(3&a.type),i&X.Host&&o===a);return null!==u?Fr(n,s,u,a):Cn}function La(e,n,t,r,i){const o=e.providerIndexes,s=n.data,a=1048575&o,l=e.directiveStart,u=o>>20,f=i?a+u:e.directiveEnd;for(let h=r?a:a+u;h=l&&p.type===t)return h}if(i){const h=s[l];if(h&&on(h)&&h.type===t)return l}return null}function Fr(e,n,t,r){let i=e[t];const o=n.data;if(function bT(e){return e instanceof Vo}(i)){const s=i;s.resolving&&function KS(e,n){const t=n?`. Dependency path: ${n.join(" > ")} > ${e}`:"";throw new C(-200,`Circular dependency in DI detected for ${e}${t}`)}(function ae(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():z(e)}(o[t]));const a=Ra(s.canSeeViewProviders);s.resolving=!0;const c=s.injectImpl?Dt(s.injectImpl):null;Wm(e,r,X.Default);try{i=e[t]=s.factory(void 0,o,e,r),n.firstCreatePass&&t>=r.directiveStart&&function DT(e,n,t){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=n.type.prototype;if(r){const s=Pm(n);(t.preOrderHooks??=[]).push(e,s),(t.preOrderCheckHooks??=[]).push(e,s)}i&&(t.preOrderHooks??=[]).push(0-e,i),o&&((t.preOrderHooks??=[]).push(e,o),(t.preOrderCheckHooks??=[]).push(e,o))}(t,o[t],n)}finally{null!==c&&Dt(c),Ra(a),s.resolving=!1,Ym()}}return i}function cy(e,n,t){return!!(t[n+(e>>ry)]&1<{const n=e.prototype.constructor,t=n[Rn]||ld(n),r=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){const o=i[Rn]||ld(i);if(o&&o!==t)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function ld(e){return Eu(e)?()=>{const n=ld(B(e));return n&&n()}:Rr(e)}function dy(e){const n=e[A],t=n.type;return 2===t?n.declTNode:1===t?e[nt]:null}const Ci="__parameters__";function wi(e,n,t){return Nn(()=>{const r=function cd(e){return function(...t){if(e){const r=e(...t);for(const i in r)this[i]=r[i]}}}(n);function i(...o){if(this instanceof i)return r.apply(this,o),this;const s=new i(...o);return a.annotation=s,a;function a(l,c,u){const d=l.hasOwnProperty(Ci)?l[Ci]:Object.defineProperty(l,Ci,{value:[]})[Ci];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return t&&(i.prototype=Object.create(t.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}function Ei(e,n){e.forEach(t=>Array.isArray(t)?Ei(t,n):n(t))}function hy(e,n,t){n>=e.length?e.push(t):e.splice(n,0,t)}function ja(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function Rt(e,n,t){let r=Mi(e,n);return r>=0?e[1|r]=t:(r=~r,function $T(e,n,t,r){let i=e.length;if(i==n)e.push(t,r);else if(1===i)e.push(r,e[0]),e[0]=t;else{for(i--,e.push(e[i-1],e[i]);i>n;)e[i]=e[i-2],i--;e[n]=t,e[n+1]=r}}(e,r,n,t)),r}function ud(e,n){const t=Mi(e,n);if(t>=0)return e[1|t]}function Mi(e,n){return function py(e,n,t){let r=0,i=e.length>>t;for(;i!==r;){const o=r+(i-r>>1),s=e[o<n?i=o:r=o+1}return~(i<|^->||--!>|)/g,uA="\u200b$1\u200b";const gd=new Map;let dA=0;const yd="__ngContext__";function rt(e,n){bt(n)?(e[yd]=n[xo],function hA(e){gd.set(e[xo],e)}(n)):e[yd]=n}let vd;function _d(e,n){return vd(e,n)}function qo(e){const n=e[be];return dt(n)?n[be]:n}function Ry(e){return Fy(e[Po])}function ky(e){return Fy(e[rn])}function Fy(e){for(;null!==e&&!dt(e);)e=e[rn];return e}function Ti(e,n,t,r,i){if(null!=r){let o,s=!1;dt(r)?o=r:bt(r)&&(s=!0,r=r[Ie]);const a=ve(r);0===e&&null!==t?null==i?By(n,t,a):Lr(n,t,a,i||null,!0):1===e&&null!==t?Lr(n,t,a,i||null,!0):2===e?function el(e,n,t){const r=Xa(e,n);r&&function xA(e,n,t,r){e.removeChild(n,t,r)}(e,r,n,t)}(n,a,s):3===e&&n.destroyNode(a),null!=o&&function kA(e,n,t,r,i){const o=t[yn];o!==ve(t)&&Ti(n,e,r,o,i);for(let a=Ke;an.replace(cA,uA))}(n))}function Ka(e,n,t){return e.createElement(n,t)}function Vy(e,n){const t=e[hi],r=t.indexOf(n);Lm(n),t.splice(r,1)}function Ya(e,n){if(e.length<=Ke)return;const t=Ke+n,r=e[t];if(r){const i=r[Oo];null!==i&&i!==e&&Vy(i,r),n>0&&(e[t-1][rn]=r[rn]);const o=ja(e,Ke+n);!function EA(e,n){Qo(e,n,n[G],2,null,null),n[Ie]=null,n[nt]=null}(r[A],r);const s=o[mn];null!==s&&s.detachView(o[A]),r[be]=null,r[rn]=null,r[W]&=-129}return r}function Dd(e,n){if(!(256&n[W])){const t=n[G];n[No]&&wm(n[No]),n[Ro]&&wm(n[Ro]),t.destroyNode&&Qo(e,n,t,3,null,null),function IA(e){let n=e[Po];if(!n)return wd(e[A],e);for(;n;){let t=null;if(bt(n))t=n[Po];else{const r=n[Ke];r&&(t=r)}if(!t){for(;n&&!n[rn]&&n!==e;)bt(n)&&wd(n[A],n),n=n[be];null===n&&(n=e),bt(n)&&wd(n[A],n),t=n&&n[rn]}n=t}}(n)}}function wd(e,n){if(!(256&n[W])){n[W]&=-129,n[W]|=256,function OA(e,n){let t;if(null!=e&&null!=(t=e.destroyHooks))for(let r=0;r=0?r[s]():r[-s].unsubscribe(),o+=2}else t[o].call(r[t[o+1]]);null!==r&&(n[ci]=null);const i=n[sr];if(null!==i){n[sr]=null;for(let o=0;o-1){const{encapsulation:o}=e.data[r.directiveStart+i];if(o===Qt.None||o===Qt.Emulated)return null}return Et(r,t)}}(e,n.parent,t)}function Lr(e,n,t,r,i){e.insertBefore(n,t,r,i)}function By(e,n,t){e.appendChild(n,t)}function $y(e,n,t,r,i){null!==r?Lr(e,n,t,r,i):By(e,n,t)}function Xa(e,n){return e.parentNode(n)}let Ed,tl,Td,nl,zy=function Uy(e,n,t){return 40&e.type?Et(e,t):null};function Ja(e,n,t,r){const i=bd(e,r,n),o=n[G],a=function Hy(e,n,t){return zy(e,n,t)}(r.parent||n[nt],r,n);if(null!=i)if(Array.isArray(t))for(let l=0;le,createScript:e=>e,createScriptURL:e=>e})}catch{}return tl}()?.createHTML(e)||e}function Pi(){if(void 0!==Td)return Td;if(typeof document<"u")return document;throw new C(210,!1)}function Ad(){if(void 0===nl&&(nl=null,ye.trustedTypes))try{nl=ye.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return nl}function Yy(e){return Ad()?.createHTML(e)||e}function Jy(e){return Ad()?.createScriptURL(e)||e}class Vr{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Gg})`}}class HA extends Vr{getTypeName(){return"HTML"}}class UA extends Vr{getTypeName(){return"Style"}}class zA extends Vr{getTypeName(){return"Script"}}class GA extends Vr{getTypeName(){return"URL"}}class qA extends Vr{getTypeName(){return"ResourceURL"}}function kt(e){return e instanceof Vr?e.changingThisBreaksApplicationSecurity:e}function Dn(e,n){const t=function WA(e){return e instanceof Vr&&e.getTypeName()||null}(e);if(null!=t&&t!==n){if("ResourceURL"===t&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${t} (see ${Gg})`)}return t===n}class JA{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const t=(new window.DOMParser).parseFromString(Ai(n),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(n):(t.removeChild(t.firstChild),t)}catch{return null}}}class eP{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const t=this.inertDocument.createElement("template");return t.innerHTML=Ai(n),t}}const nP=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function rl(e){return(e=String(e)).match(nP)?e:"unsafe:"+e}function Vn(e){const n={};for(const t of e.split(","))n[t]=!0;return n}function Zo(...e){const n={};for(const t of e)for(const r in t)t.hasOwnProperty(r)&&(n[r]=!0);return n}const tv=Vn("area,br,col,hr,img,wbr"),nv=Vn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),rv=Vn("rp,rt"),Pd=Zo(tv,Zo(nv,Vn("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Zo(rv,Vn("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Zo(rv,nv)),Od=Vn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),iv=Zo(Od,Vn("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Vn("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),rP=Vn("script,style,template");class iP{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let t=n.firstChild,r=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?r=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,r&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let i=this.checkClobberedElement(t,t.nextSibling);if(i){t=i;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(n){const t=n.nodeName.toLowerCase();if(!Pd.hasOwnProperty(t))return this.sanitizedSomething=!0,!rP.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const r=n.attributes;for(let i=0;i"),!0}endElement(n){const t=n.nodeName.toLowerCase();Pd.hasOwnProperty(t)&&!tv.hasOwnProperty(t)&&(this.buf.push(""))}chars(n){this.buf.push(ov(n))}checkClobberedElement(n,t){if(t&&(n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return t}}const oP=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,sP=/([^\#-~ |!])/g;function ov(e){return e.replace(/&/g,"&").replace(oP,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(sP,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let il;function sv(e,n){let t=null;try{il=il||function ev(e){const n=new eP(e);return function tP(){try{return!!(new window.DOMParser).parseFromString(Ai(""),"text/html")}catch{return!1}}()?new JA(n):n}(e);let r=n?String(n):"";t=il.getInertBodyElement(r);let i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=t.innerHTML,t=il.getInertBodyElement(r)}while(r!==o);return Ai((new iP).sanitizeChildren(xd(t)||t))}finally{if(t){const r=xd(t)||t;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function xd(e){return"content"in e&&function aP(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Ft=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Ft||{});function Nd(e){const n=Ko();return n?Yy(n.sanitize(Ft.HTML,e)||""):Dn(e,"HTML")?Yy(kt(e)):sv(Pi(),z(e))}function dr(e){const n=Ko();return n?n.sanitize(Ft.URL,e)||"":Dn(e,"URL")?kt(e):rl(z(e))}function av(e){const n=Ko();if(n)return Jy(n.sanitize(Ft.RESOURCE_URL,e)||"");if(Dn(e,"ResourceURL"))return Jy(kt(e));throw new C(904,!1)}function Ko(){const e=E();return e&&e[ui].sanitizer}const Yo=new P("ENVIRONMENT_INITIALIZER"),cv=new P("INJECTOR",-1),uv=new P("INJECTOR_DEF_TYPES");class Rd{get(n,t=Mo){if(t===Mo){const r=new Error(`NullInjectorError: No provider for ${Ve(n)}!`);throw r.name="NullInjectorError",r}return t}}function ol(e){return{\u0275providers:e}}function hP(...e){return{\u0275providers:dv(0,e),\u0275fromNgModule:!0}}function dv(e,...n){const t=[],r=new Set;let i;const o=s=>{t.push(s)};return Ei(n,s=>{const a=s;sl(a,o,[],r)&&(i||=[],i.push(a))}),void 0!==i&&fv(i,o),t}function fv(e,n){for(let t=0;t{n(o,r)})}}function sl(e,n,t,r){if(!(e=B(e)))return!1;let i=null,o=ya(e);const s=!o&&ee(e);if(o||s){if(s&&!s.standalone)return!1;i=e}else{const l=e.ngModule;if(o=ya(l),!o)return!1;i=l}const a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)sl(c,n,t,r)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;r.add(i);try{Ei(o.imports,u=>{sl(u,n,t,r)&&(c||=[],c.push(u))})}finally{}void 0!==c&&fv(c,n)}if(!a){const c=Rr(i)||(()=>new i);n({provide:i,useFactory:c,deps:re},i),n({provide:uv,useValue:i,multi:!0},i),n({provide:Yo,useValue:()=>I(i),multi:!0},i)}const l=o.providers;if(null!=l&&!a){const c=e;kd(l,u=>{n(u,c)})}}}return i!==e&&void 0!==e.providers}function kd(e,n){for(let t of e)Mu(t)&&(t=t.\u0275providers),Array.isArray(t)?kd(t,n):n(t)}const pP=ue({provide:String,useValue:ue});function Fd(e){return null!==e&&"object"==typeof e&&pP in e}function jr(e){return"function"==typeof e}const Ld=new P("Set Injector scope."),al={},mP={};let Vd;function ll(){return void 0===Vd&&(Vd=new Rd),Vd}class Lt{}class Oi extends Lt{get destroyed(){return this._destroyed}constructor(n,t,r,i){super(),this.parent=t,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Bd(n,s=>this.processProvider(s)),this.records.set(cv,xi(void 0,this)),i.has("environment")&&this.records.set(Lt,xi(void 0,this));const o=this.records.get(Ld);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(uv.multi,re,X.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const t of n)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const t=ir(this),r=Dt(void 0);try{return n()}finally{ir(t),Dt(r)}}get(n,t=Mo,r=X.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(em))return n[em](this);r=Ca(r);const o=ir(this),s=Dt(void 0);try{if(!(r&X.SkipSelf)){let l=this.records.get(n);if(void 0===l){const c=function DP(e){return"function"==typeof e||"object"==typeof e&&e instanceof P}(n)&&ma(n);l=c&&this.injectableDefInScope(c)?xi(jd(n),al):null,this.records.set(n,l)}if(null!=l)return this.hydrate(n,l)}return(r&X.Self?ll():this.parent).get(n,t=r&X.Optional&&t===Mo?null:t)}catch(a){if("NullInjectorError"===a.name){if((a[_a]=a[_a]||[]).unshift(Ve(n)),o)throw a;return function dI(e,n,t,r){const i=e[_a];throw n[Yg]&&i.unshift(n[Yg]),e.message=function fI(e,n,t,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let i=Ve(n);if(Array.isArray(n))i=n.map(Ve).join(" -> ");else if("object"==typeof n){let o=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):Ve(a)))}i=`{${o.join(", ")}}`}return`${t}${r?"("+r+")":""}[${i}]: ${e.replace(sI,"\n ")}`}("\n"+e.message,i,t,r),e.ngTokenPath=i,e[_a]=null,e}(a,n,"R3InjectorError",this.source)}throw a}finally{Dt(s),ir(o)}}resolveInjectorInitializers(){const n=ir(this),t=Dt(void 0);try{const i=this.get(Yo.multi,re,X.Self);for(const o of i)o()}finally{ir(n),Dt(t)}}toString(){const n=[],t=this.records;for(const r of t.keys())n.push(Ve(r));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new C(205,!1)}processProvider(n){let t=jr(n=B(n))?n:B(n&&n.provide);const r=function vP(e){return Fd(e)?xi(void 0,e.useValue):xi(gv(e),al)}(n);if(jr(n)||!0!==n.multi)this.records.get(t);else{let i=this.records.get(t);i||(i=xi(void 0,al,!0),i.factory=()=>Ru(i.multi),this.records.set(t,i)),t=n,i.multi.push(n)}this.records.set(t,r)}hydrate(n,t){return t.value===al&&(t.value=mP,t.value=t.factory()),"object"==typeof t.value&&t.value&&function CP(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}injectableDefInScope(n){if(!n.providedIn)return!1;const t=B(n.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(n){const t=this._onDestroyHooks.indexOf(n);-1!==t&&this._onDestroyHooks.splice(t,1)}}function jd(e){const n=ma(e),t=null!==n?n.factory:Rr(e);if(null!==t)return t;if(e instanceof P)throw new C(204,!1);if(e instanceof Function)return function yP(e){const n=e.length;if(n>0)throw function Uo(e,n){const t=[];for(let r=0;rt.factory(e):()=>new e}(e);throw new C(204,!1)}function gv(e,n,t){let r;if(jr(e)){const i=B(e);return Rr(i)||jd(i)}if(Fd(e))r=()=>B(e.useValue);else if(function pv(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...Ru(e.deps||[]));else if(function hv(e){return!(!e||!e.useExisting)}(e))r=()=>I(B(e.useExisting));else{const i=B(e&&(e.useClass||e.provide));if(!function _P(e){return!!e.deps}(e))return Rr(i)||jd(i);r=()=>new i(...Ru(e.deps))}return r}function xi(e,n,t=!1){return{factory:e,value:n,multi:t?[]:void 0}}function Bd(e,n){for(const t of e)Array.isArray(t)?Bd(t,n):t&&Mu(t)?Bd(t.\u0275providers,n):n(t)}const cl=new P("AppId",{providedIn:"root",factory:()=>wP}),wP="ng",mv=new P("Platform Initializer"),Br=new P("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),yv=new P("AnimationModuleType"),vv=new P("CSP nonce",{providedIn:"root",factory:()=>Pi().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let _v=(e,n,t)=>null;function Qd(e,n,t=!1){return _v(e,n,t)}class xP{}class wv{}class RP{resolveComponentFactory(n){throw function NP(e){const n=Error(`No component factory found for ${Ve(e)}.`);return n.ngComponent=e,n}(n)}}let es=(()=>{class e{static#e=this.NULL=new RP}return e})();function kP(){return ki(Xe(),E())}function ki(e,n){return new Vt(Et(e,n))}let Vt=(()=>{class e{constructor(t){this.nativeElement=t}static#e=this.__NG_ELEMENT_ID__=kP}return e})();function FP(e){return e instanceof Vt?e.nativeElement:e}class ts{}let jn=(()=>{class e{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function LP(){const e=E(),t=Nt(Xe().index,e);return(bt(t)?t:e)[G]}()}return e})(),VP=(()=>{class e{static#e=this.\u0275prov=x({token:e,providedIn:"root",factory:()=>null})}return e})();class ns{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const jP=new ns("16.2.12"),Yd={};function Iv(e,n=null,t=null,r){const i=Tv(e,n,t,r);return i.resolveInjectorInitializers(),i}function Tv(e,n=null,t=null,r,i=new Set){const o=[t||re,hP(e)];return r=r||("object"==typeof e?void 0:Ve(e)),new Oi(o,n||ll(),r||null,i)}let it=(()=>{class e{static#e=this.THROW_IF_NOT_FOUND=Mo;static#t=this.NULL=new Rd;static create(t,r){if(Array.isArray(t))return Iv({name:""},r,t,"");{const i=t.name??"";return Iv({name:i},t.parent,t.providers,i)}}static#n=this.\u0275prov=x({token:e,providedIn:"any",factory:()=>I(cv)});static#r=this.__NG_ELEMENT_ID__=-1}return e})();function Jd(e){return e.ngOriginalError}class Bn{constructor(){this._console=console}handleError(n){const t=this._findOriginalError(n);this._console.error("ERROR",n),t&&this._console.error("ORIGINAL ERROR",t)}_findOriginalError(n){let t=n&&Jd(n);for(;t&&Jd(t);)t=Jd(t);return t||null}}function ef(e){return n=>{setTimeout(e,void 0,n)}}const _e=class WP extends Ge{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,t,r){let i=n,o=t||(()=>null),s=r;if(n&&"object"==typeof n){const l=n;i=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=ef(o),i&&(i=ef(i)),s&&(s=ef(s)));const a=super.subscribe({next:i,error:o,complete:s});return n instanceof Tt&&n.add(a),a}};function Pv(...e){}class le{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new _e(!1),this.onMicrotaskEmpty=new _e(!1),this.onStable=new _e(!1),this.onError=new _e(!1),typeof Zone>"u")throw new C(908,!1);Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&t,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function QP(){const e="function"==typeof ye.requestAnimationFrame;let n=ye[e?"requestAnimationFrame":"setTimeout"],t=ye[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&n&&t){const r=n[Zone.__symbol__("OriginalDelegate")];r&&(n=r);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function YP(e){const n=()=>{!function KP(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(ye,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,nf(e),e.isCheckStableRunning=!0,tf(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),nf(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,r,i,o,s,a)=>{if(function JP(e){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0].data?.__ignore_ng_zone__}(a))return t.invokeTask(i,o,s,a);try{return Ov(e),t.invokeTask(i,o,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&n(),xv(e)}},onInvoke:(t,r,i,o,s,a,l)=>{try{return Ov(e),t.invoke(i,o,s,a,l)}finally{e.shouldCoalesceRunChangeDetection&&n(),xv(e)}},onHasTask:(t,r,i,o)=>{t.hasTask(i,o),r===i&&("microTask"==o.change?(e._hasPendingMicrotasks=o.microTask,nf(e),tf(e)):"macroTask"==o.change&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(t,r,i,o)=>(t.handleError(i,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}(i)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!le.isInAngularZone())throw new C(909,!1)}static assertNotInAngularZone(){if(le.isInAngularZone())throw new C(909,!1)}run(n,t,r){return this._inner.run(n,t,r)}runTask(n,t,r,i){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,n,ZP,Pv,Pv);try{return o.runTask(s,t,r)}finally{o.cancelTask(s)}}runGuarded(n,t,r){return this._inner.runGuarded(n,t,r)}runOutsideAngular(n){return this._outer.run(n)}}const ZP={};function tf(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 nf(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Ov(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function xv(e){e._nesting--,tf(e)}class XP{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new _e,this.onMicrotaskEmpty=new _e,this.onStable=new _e,this.onError=new _e}run(n,t,r){return n.apply(t,r)}runGuarded(n,t,r){return n.apply(t,r)}runOutsideAngular(n){return n()}runTask(n,t,r,i){return n.apply(t,r)}}const Nv=new P("",{providedIn:"root",factory:Rv});function Rv(){const e=T(le);let n=!0;return function qS(...e){const n=Eo(e),t=function jS(e,n){return"number"==typeof Du(e)?e.pop():n}(e,1/0),r=e;return r.length?1===r.length?At(r[0]):si(t)(Le(r,n)):pn}(new Ae(i=>{n=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{i.next(n),i.complete()})}),new Ae(i=>{let o;e.runOutsideAngular(()=>{o=e.onStable.subscribe(()=>{le.assertNotInAngularZone(),queueMicrotask(()=>{!n&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(n=!0,i.next(!0))})})});const s=e.onUnstable.subscribe(()=>{le.assertInAngularZone(),n&&(n=!1,e.runOutsideAngular(()=>{i.next(!1)}))});return()=>{o.unsubscribe(),s.unsubscribe()}}).pipe(zg()))}function kv(e){return e.ownerDocument.defaultView}function $n(e){return e instanceof Function?e():e}let rf=(()=>{class e{constructor(){this.renderDepth=0,this.handler=null}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){this.renderDepth--,0===this.renderDepth&&this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null}static#e=this.\u0275prov=x({token:e,providedIn:"root",factory:()=>new e})}return e})();function rs(e){for(;e;){e[W]|=64;const n=qo(e);if(Bu(e)&&!n)return e;e=n}return null}const Bv=new P("",{providedIn:"root",factory:()=>!1});let yl=null;function zv(e,n){return e[n]??Wv()}function Gv(e,n){const t=Wv();t.producerNode?.length&&(e[n]=yl,t.lView=e,yl=qv())}const l1={...$u,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{rs(e.lView)},lView:null};function qv(){return Object.create(l1)}function Wv(){return yl??=qv(),yl}const q={};function M(e){Qv(te(),E(),ht()+e,!1)}function Qv(e,n,t,r){if(!r)if(3==(3&n[W])){const o=e.preOrderCheckHooks;null!==o&&xa(n,o,t)}else{const o=e.preOrderHooks;null!==o&&Na(n,o,0,t)}kr(t)}function D(e,n=X.Default){const t=E();return null===t?I(e,n):ay(Xe(),t,B(e),n)}function vl(e,n,t,r,i,o,s,a,l,c,u){const d=n.blueprint.slice();return d[Ie]=i,d[W]=140|r,(null!==c||e&&2048&e[W])&&(d[W]|=2048),Fm(d),d[be]=d[di]=e,d[Pe]=t,d[ui]=s||e&&e[ui],d[G]=a||e&&e[G],d[or]=l||e&&e[or]||null,d[nt]=o,d[xo]=function fA(){return dA++}(),d[kn]=u,d[hm]=c,d[Oe]=2==n.type?e[Oe]:d,d}function Vi(e,n,t,r,i){let o=e.data[n];if(null===o)o=function sf(e,n,t,r,i){const o=Hm(),s=Zu(),l=e.data[n]=function m1(e,n,t,r,i,o){let s=n?n.injectorIndex:-1,a=0;return function mi(){return null!==j.skipHydrationRootTNode}()&&(a|=128),{type:t,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?o:o&&o.parent,t,n,r,i);return null===e.firstChild&&(e.firstChild=l),null!==o&&(s?null==o.child&&null!==l.parent&&(o.child=l):null===o.next&&(o.next=l,l.prev=o)),l}(e,n,t,r,i),function dT(){return j.lFrame.inI18n}()&&(o.flags|=32);else if(64&o.type){o.type=t,o.value=r,o.attrs=i;const s=function Lo(){const e=j.lFrame,n=e.currentTNode;return e.isParent?n:n.parent}();o.injectorIndex=null===s?-1:s.injectorIndex}return _n(o,!0),o}function is(e,n,t,r){if(0===t)return-1;const i=n.length;for(let o=0;oJ&&Qv(e,n,J,!1),vn(a?2:0,i);const c=a?o:null,u=Uu(c);try{null!==c&&(c.dirty=!1),t(r,i)}finally{zu(c,u)}}finally{a&&null===n[No]&&Gv(n,No),kr(s),vn(a?3:1,i)}}function af(e,n,t){if(ju(n)){const r=Zt(null);try{const o=n.directiveEnd;for(let s=n.directiveStart;snull;function Jv(e,n,t,r){for(let i in e)if(e.hasOwnProperty(i)){t=null===t?{}:t;const o=e[i];null===r?e_(t,n,i,o):r.hasOwnProperty(i)&&e_(t,n,r[i],o)}return t}function e_(e,n,t,r){e.hasOwnProperty(t)?e[t].push(n,r):e[t]=[n,r]}function jt(e,n,t,r,i,o,s,a){const l=Et(n,t);let u,c=n.inputs;!a&&null!=c&&(u=c[r])?(gf(e,t,u,r,i),Nr(n)&&function _1(e,n){const t=Nt(n,e);16&t[W]||(t[W]|=64)}(t,n.index)):3&n.type&&(r=function v1(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),i=null!=s?s(i,n.value||"",r):i,o.setProperty(l,r,i))}function df(e,n,t,r){if($m()){const i=null===r?null:{"":-1},o=function M1(e,n){const t=e.directiveRegistry;let r=null,i=null;if(t)for(let o=0;o0;){const t=e[--n];if("number"==typeof t&&t<0)return t}return 0})(s)!=a&&s.push(a),s.push(t,r,o)}}(e,n,r,is(e,t,i.hostVars,q),i)}function wn(e,n,t,r,i,o){const s=Et(e,n);!function hf(e,n,t,r,i,o,s){if(null==o)e.removeAttribute(n,i,t);else{const a=null==s?z(o):s(o,r||"",i);e.setAttribute(n,i,a,t)}}(n[G],s,o,e.value,t,r,i)}function O1(e,n,t,r,i,o){const s=o[n];if(null!==s)for(let a=0;a{class e{constructor(){this.all=new Set,this.queue=new Map}create(t,r,i){const o=typeof Zone>"u"?null:Zone.current,s=function UI(e,n,t){const r=Object.create(zI);t&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=n;const i=s=>{r.cleanupFn=s};return r.ref={notify:()=>Cm(r),run:()=>{if(r.dirty=!1,r.hasRun&&!Dm(r))return;r.hasRun=!0;const s=Uu(r);try{r.cleanupFn(),r.cleanupFn=Am,r.fn(i)}finally{zu(r,s)}},cleanup:()=>r.cleanupFn()},r.ref}(t,c=>{this.all.has(c)&&this.queue.set(c,o)},i);let a;this.all.add(s),s.notify();const l=()=>{s.cleanup(),a?.(),this.all.delete(s),this.queue.delete(s)};return a=r?.onDestroy(l),{destroy:l}}flush(){if(0!==this.queue.size)for(const[t,r]of this.queue)this.queue.delete(t),r?r.run(()=>t.run()):t.run()}get isQueueEmpty(){return 0===this.queue.size}static#e=this.\u0275prov=x({token:e,providedIn:"root",factory:()=>new e})}return e})();function Cl(e,n,t){let r=t?e.styles:null,i=t?e.classes:null,o=0;if(null!==n)for(let s=0;s0){h_(e,1);const i=t.components;null!==i&&g_(e,i,1)}}function g_(e,n,t){for(let r=0;r-1&&(Ya(n,r),ja(t,r))}this._attachedToViewContainer=!1}Dd(this._lView[A],this._lView)}onDestroy(n){!function jm(e,n){if(256==(256&e[W]))throw new C(911,!1);null===e[sr]&&(e[sr]=[]),e[sr].push(n)}(this._lView,n)}markForCheck(){rs(this._cdRefInjectingView||this._lView)}detach(){this._lView[W]&=-129}reattach(){this._lView[W]|=128}detectChanges(){Dl(this._lView[A],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new C(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function SA(e,n){Qo(e,n,n[G],2,null,null)}(this._lView[A],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new C(902,!1);this._appRef=n}}class B1 extends ss{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;Dl(n[A],n,n[Pe],!1)}checkNoChanges(){}get context(){return null}}class m_ extends es{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const t=ee(n);return new as(t,this.ngModule)}}function y_(e){const n=[];for(let t in e)e.hasOwnProperty(t)&&n.push({propName:e[t],templateName:t});return n}class H1{constructor(n,t){this.injector=n,this.parentInjector=t}get(n,t,r){r=Ca(r);const i=this.injector.get(n,Yd,r);return i!==Yd||t===Yd?i:this.parentInjector.get(n,t,r)}}class as extends wv{get inputs(){const n=this.componentDef,t=n.inputTransforms,r=y_(n.inputs);if(null!==t)for(const i of r)t.hasOwnProperty(i.propName)&&(i.transform=t[i.propName]);return r}get outputs(){return y_(this.componentDef.outputs)}constructor(n,t){super(),this.componentDef=n,this.ngModule=t,this.componentType=n.type,this.selector=function wI(e){return e.map(DI).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!t}create(n,t,r,i){let o=(i=i||this.ngModule)instanceof Lt?i:i?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new H1(n,o):n,a=s.get(ts,null);if(null===a)throw new C(407,!1);const d={rendererFactory:a,sanitizer:s.get(VP,null),effectManager:s.get(u_,null),afterRenderEventManager:s.get(rf,null)},f=a.createRenderer(null,this.componentDef),h=this.componentDef.selectors[0][0]||"div",p=r?function d1(e,n,t,r){const o=r.get(Bv,!1)||t===Qt.ShadowDom,s=e.selectRootElement(n,o);return function f1(e){Xv(e)}(s),s}(f,r,this.componentDef.encapsulation,s):Ka(f,h,function $1(e){const n=e.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(h)),w=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let v=null;null!==p&&(v=Qd(p,s,!0));const S=uf(0,null,null,1,0,null,null,null,null,null,null),O=vl(null,S,null,w,null,null,d,f,s,null,v);let U,he;ed(O);try{const we=this.componentDef;let et,Ut=null;we.findHostDirectiveDefs?(et=[],Ut=new Map,we.findHostDirectiveDefs(we,et,Ut),et.push(we)):et=[we];const hn=function z1(e,n){const t=e[A],r=J;return e[r]=n,Vi(t,r,2,"#host",null)}(O,p),cu=function G1(e,n,t,r,i,o,s){const a=i[A];!function q1(e,n,t,r){for(const i of e)n.mergedAttrs=To(n.mergedAttrs,i.hostAttrs);null!==n.mergedAttrs&&(Cl(n,n.mergedAttrs,!0),null!==t&&Ky(r,t,n))}(r,e,n,s);let l=null;null!==n&&(l=Qd(n,i[or]));const c=o.rendererFactory.createRenderer(n,t);let u=16;t.signals?u=4096:t.onPush&&(u=64);const d=vl(i,Yv(t),null,u,i[e.index],e,o,c,null,null,l);return a.firstCreatePass&&ff(a,e,r.length-1),_l(i,d),i[e.index]=d}(hn,p,we,et,O,d,f);he=km(S,J),p&&function Q1(e,n,t,r){if(r)Lu(e,t,["ng-version",jP.full]);else{const{attrs:i,classes:o}=function bI(e){const n=[],t=[];let r=1,i=2;for(;r0&&Zy(e,t,o.join(" "))}}(f,we,p,r),void 0!==t&&function Z1(e,n,t){const r=e.projection=[];for(let i=0;i=0;r--){const i=e[r];i.hostVars=n+=i.hostVars,i.hostAttrs=To(i.hostAttrs,t=To(t,i.hostAttrs))}}(r)}function wl(e){return e===gn?{}:e===re?[]:e}function X1(e,n){const t=e.viewQuery;e.viewQuery=t?(r,i)=>{n(r,i),t(r,i)}:n}function J1(e,n){const t=e.contentQueries;e.contentQueries=t?(r,i,o)=>{n(r,i,o),t(r,i,o)}:n}function eO(e,n){const t=e.hostBindings;e.hostBindings=t?(r,i)=>{n(r,i),t(r,i)}:n}function w_(e){const n=e.inputConfig,t={};for(const r in n)if(n.hasOwnProperty(r)){const i=n[r];Array.isArray(i)&&i[2]&&(t[r]=i[2])}e.inputTransforms=t}function bl(e){return!!yf(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function yf(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function bn(e,n,t){return e[n]=t}function ot(e,n,t){return!Object.is(e[n],t)&&(e[n]=t,!0)}function gt(e,n,t,r){const i=E();return ot(i,yi(),n)&&(te(),wn(Me(),i,e,n,t,r)),gt}function Bi(e,n,t,r){return ot(e,yi(),t)?n+z(t)+r:q}function $i(e,n,t,r,i,o){const a=function $r(e,n,t,r){const i=ot(e,n,t);return ot(e,n+1,r)||i}(e,function Fn(){return j.lFrame.bindingIndex}(),t,i);return Ln(2),a?n+z(t)+r+z(i)+o:q}function K(e,n,t,r,i,o,s,a){const l=E(),c=te(),u=e+J,d=c.firstCreatePass?function MO(e,n,t,r,i,o,s,a,l){const c=n.consts,u=Vi(n,e,4,s||null,lr(c,a));df(n,t,u,lr(c,l)),Oa(n,u);const d=u.tView=uf(2,u,r,i,o,n.directiveRegistry,n.pipeRegistry,null,n.schemas,c,null);return null!==n.queries&&(n.queries.template(n,u),d.queries=n.queries.embeddedTView(u)),u}(u,c,l,n,t,r,i,o,s):c.data[u];_n(d,!1);const f=k_(c,l,d,e);Pa()&&Ja(c,l,f,d),rt(f,l),_l(l,l[u]=i_(f,l,f,d)),Ma(d)&&lf(c,l,d),null!=s&&cf(l,d,a)}let k_=function F_(e,n,t,r){return cr(!0),n[G].createComment("")};function N(e,n,t){const r=E();return ot(r,yi(),n)&&jt(te(),Me(),r,e,n,r[G],t,!1),N}function bf(e,n,t,r,i){const s=i?"class":"style";gf(e,t,n.inputs[s],s,r)}function m(e,n,t,r){const i=E(),o=te(),s=J+e,a=i[G],l=o.firstCreatePass?function PO(e,n,t,r,i,o){const s=n.consts,l=Vi(n,e,2,r,lr(s,i));return df(n,t,l,lr(s,o)),null!==l.attrs&&Cl(l,l.attrs,!1),null!==l.mergedAttrs&&Cl(l,l.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,l),l}(s,o,i,n,t,r):o.data[s],c=L_(o,i,l,a,n,e);i[s]=c;const u=Ma(l);return _n(l,!0),Ky(a,c,l),32!=(32&l.flags)&&Pa()&&Ja(o,i,c,l),0===function nT(){return j.lFrame.elementDepthCount}()&&rt(c,i),function rT(){j.lFrame.elementDepthCount++}(),u&&(lf(o,i,l),af(o,l,i)),null!==r&&cf(i,l),m}function _(){let e=Xe();Zu()?Ku():(e=e.parent,_n(e,!1));const n=e;(function oT(e){return j.skipHydrationRootTNode===e})(n)&&function cT(){j.skipHydrationRootTNode=null}(),function iT(){j.lFrame.elementDepthCount--}();const t=te();return t.firstCreatePass&&(Oa(t,e),ju(e)&&t.queries.elementEnd(e)),null!=n.classesWithoutHost&&function ET(e){return 0!=(8&e.flags)}(n)&&bf(t,n,E(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function MT(e){return 0!=(16&e.flags)}(n)&&bf(t,n,E(),n.stylesWithoutHost,!1),_}function Q(e,n,t,r){return m(e,n,t,r),_(),Q}let L_=(e,n,t,r,i,o)=>(cr(!0),Ka(r,i,function Xm(){return j.lFrame.currentNamespace}()));function fs(e,n,t){const r=E(),i=te(),o=e+J,s=i.firstCreatePass?function NO(e,n,t,r,i){const o=n.consts,s=lr(o,r),a=Vi(n,e,8,"ng-container",s);return null!==s&&Cl(a,s,!0),df(n,t,a,lr(o,i)),null!==n.queries&&n.queries.elementStart(n,a),a}(o,i,r,n,t):i.data[o];_n(s,!0);const a=j_(i,r,s,e);return r[o]=a,Pa()&&Ja(i,r,a,s),rt(a,r),Ma(s)&&(lf(i,r,s),af(i,s,r)),null!=t&&cf(r,s),fs}function hs(){let e=Xe();const n=te();return Zu()?Ku():(e=e.parent,_n(e,!1)),n.firstCreatePass&&(Oa(n,e),ju(e)&&n.queries.elementEnd(e)),hs}let j_=(e,n,t,r)=>(cr(!0),Cd(n[G],""));function mt(){return E()}function ps(e){return!!e&&"function"==typeof e.then}function B_(e){return!!e&&"function"==typeof e.subscribe}function Y(e,n,t,r){const i=E(),o=te(),s=Xe();return function H_(e,n,t,r,i,o,s){const a=Ma(r),c=e.firstCreatePass&&a_(e),u=n[Pe],d=s_(n);let f=!0;if(3&r.type||s){const g=Et(r,n),y=s?s(g):g,w=d.length,v=s?O=>s(ve(O[r.index])):r.index;let S=null;if(!s&&a&&(S=function FO(e,n,t,r){const i=e.cleanup;if(null!=i)for(let o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(e,n,i,r.index)),null!==S)(S.__ngLastListenerFn__||S).__ngNextListenerFn__=o,S.__ngLastListenerFn__=o,f=!1;else{o=z_(r,n,u,o,!1);const O=t.listen(y,i,o);d.push(o,O),c&&c.push(i,v,w,w+1)}}else o=z_(r,n,u,o,!1);const h=r.outputs;let p;if(f&&null!==h&&(p=h[i])){const g=p.length;if(g)for(let y=0;y-1?Nt(e.index,n):n);let l=U_(n,t,r,s),c=o.__ngNextListenerFn__;for(;c;)l=U_(n,t,c,s)&&l,c=c.__ngNextListenerFn__;return i&&!1===l&&s.preventDefault(),l}}function H(e=1){return function gT(e){return(j.lFrame.contextLView=function mT(e,n){for(;e>0;)n=n[di],e--;return n}(e,j.lFrame.contextLView))[Pe]}(e)}function Ef(e,n,t){return Mf(e,"",n,"",t),Ef}function Mf(e,n,t,r,i){const o=E(),s=Bi(o,n,t,r);return s!==q&&jt(te(),Me(),o,e,s,o[G],i,!1),Mf}function Tl(e,n){return e<<17|n<<2}function fr(e){return e>>17&32767}function Sf(e){return 2|e}function Hr(e){return(131068&e)>>2}function If(e,n){return-131069&e|n<<2}function Tf(e){return 1|e}function J_(e,n,t,r,i){const o=e[t+1],s=null===n;let a=r?fr(o):Hr(o),l=!1;for(;0!==a&&(!1===l||s);){const u=e[a+1];GO(e[a],n)&&(l=!0,e[a+1]=r?Tf(u):Sf(u)),a=r?fr(u):Hr(u)}l&&(e[t+1]=r?Sf(o):Tf(o))}function GO(e,n){return null===e||null==n||(Array.isArray(e)?e[1]:e)===n||!(!Array.isArray(e)||"string"!=typeof n)&&Mi(e,n)>=0}const He={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function eC(e){return e.substring(He.key,He.keyEnd)}function tC(e,n){const t=He.textEnd;return t===n?-1:(n=He.keyEnd=function ZO(e,n,t){for(;n32;)n++;return n}(e,He.key=n,t),Qi(e,n,t))}function Qi(e,n,t){for(;n=0;t=tC(n,t))Rt(e,eC(n),!0)}function sn(e,n,t,r){const i=E(),o=te(),s=Ln(2);o.firstUpdatePass&&aC(o,e,s,r),n!==q&&ot(i,s,n)&&cC(o,o.data[ht()],i,i[G],e,i[s+1]=function sx(e,n){return null==e||""===e||("string"==typeof n?e+=n:"object"==typeof e&&(e=Ve(kt(e)))),e}(n,t),r,s)}function sC(e,n){return n>=e.expandoStartIndex}function aC(e,n,t,r){const i=e.data;if(null===i[t+1]){const o=i[ht()],s=sC(e,t);dC(o,r)&&null===n&&!s&&(n=!1),n=function JO(e,n,t,r){const i=Xu(e);let o=r?n.residualClasses:n.residualStyles;if(null===i)0===(r?n.classBindings:n.styleBindings)&&(t=ms(t=Af(null,e,n,t,r),n.attrs,r),o=null);else{const s=n.directiveStylingLast;if(-1===s||e[s]!==i)if(t=Af(i,e,n,t,r),null===o){let l=function ex(e,n,t){const r=t?n.classBindings:n.styleBindings;if(0!==Hr(r))return e[fr(r)]}(e,n,r);void 0!==l&&Array.isArray(l)&&(l=Af(null,e,n,l[1],r),l=ms(l,n.attrs,r),function tx(e,n,t,r){e[fr(t?n.classBindings:n.styleBindings)]=r}(e,n,r,l))}else o=function nx(e,n,t){let r;const i=n.directiveEnd;for(let o=1+n.directiveStylingLast;o0)&&(c=!0)):u=t,i)if(0!==l){const f=fr(e[a+1]);e[r+1]=Tl(f,a),0!==f&&(e[f+1]=If(e[f+1],r)),e[a+1]=function $O(e,n){return 131071&e|n<<17}(e[a+1],r)}else e[r+1]=Tl(a,0),0!==a&&(e[a+1]=If(e[a+1],r)),a=r;else e[r+1]=Tl(l,0),0===a?a=r:e[l+1]=If(e[l+1],r),l=r;c&&(e[r+1]=Sf(e[r+1])),J_(e,u,r,!0),J_(e,u,r,!1),function zO(e,n,t,r,i){const o=i?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof n&&Mi(o,n)>=0&&(t[r+1]=Tf(t[r+1]))}(n,u,e,r,o),s=Tl(a,l),o?n.classBindings=s:n.styleBindings=s}(i,o,n,t,s,r)}}function Af(e,n,t,r,i){let o=null;const s=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a0;){const l=e[i],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let f=t[i+1];f===q&&(f=d?re:void 0);let h=d?ud(f,r):u===r?f:void 0;if(c&&!Al(h)&&(h=ud(l,r)),Al(h)&&(a=h,s))return a;const p=e[i+1];i=s?fr(p):Hr(p)}if(null!==n){let l=o?n.residualClasses:n.residualStyles;null!=l&&(a=ud(l,r))}return a}function Al(e){return void 0!==e}function dC(e,n){return 0!=(e.flags&(n?8:16))}function b(e,n=""){const t=E(),r=te(),i=e+J,o=r.firstCreatePass?Vi(r,i,1,n,null):r.data[i],s=fC(r,t,o,n,e);t[i]=s,Pa()&&Ja(r,t,s,o),_n(o,!1)}let fC=(e,n,t,r,i)=>(cr(!0),function Za(e,n){return e.createText(n)}(n[G],r));function xe(e){return ce("",e,""),xe}function ce(e,n,t){const r=E(),i=Bi(r,e,n,t);return i!==q&&Hn(r,ht(),i),ce}function Pl(e,n,t,r,i){const o=E(),s=$i(o,e,n,t,r,i);return s!==q&&Hn(o,ht(),s),Pl}function Pf(e,n,t){const r=E();if(ot(r,yi(),n)){const o=te(),s=Me();jt(o,s,r,e,n,l_(Xu(o.data),s,r),t,!0)}return Pf}const Yi="en-US";let xC=Yi;function Nf(e,n,t,r,i){if(e=B(e),Array.isArray(e))for(let o=0;o>20;if(jr(e)||!e.multi){const h=new Vo(c,i,D),p=kf(l,n,i?u:u+f,d);-1===p?(ad(ka(a,s),o,l),Rf(o,e,n.length),n.push(l),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),t.push(h),s.push(h)):(t[p]=h,s[p]=h)}else{const h=kf(l,n,u+f,d),p=kf(l,n,u,u+f),y=p>=0&&t[p];if(i&&!y||!i&&!(h>=0&&t[h])){ad(ka(a,s),o,l);const w=function IN(e,n,t,r,i){const o=new Vo(e,t,D);return o.multi=[],o.index=n,o.componentProviders=0,rD(o,i,r&&!t),o}(i?SN:MN,t.length,i,r,c);!i&&y&&(t[p].providerFactory=w),Rf(o,e,n.length,0),n.push(l),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),t.push(w),s.push(w)}else Rf(o,e,h>-1?h:p,rD(t[i?p:h],c,!i&&r));!i&&r&&y&&t[p].componentProviders++}}}function Rf(e,n,t,r){const i=jr(n),o=function gP(e){return!!e.useClass}(n);if(i||o){const l=(o?B(n.useClass):n).prototype.ngOnDestroy;if(l){const c=e.destroyHooks||(e.destroyHooks=[]);if(!i&&n.multi){const u=c.indexOf(t);-1===u?c.push(t,[r,l]):c[u+1].push(r,l)}else c.push(t,l)}}}function rD(e,n,t){return t&&e.componentProviders++,e.multi.push(n)-1}function kf(e,n,t,r){for(let i=t;i{t.providersResolver=(r,i)=>function EN(e,n,t){const r=te();if(r.firstCreatePass){const i=on(e);Nf(t,r.data,r.blueprint,i,!0),Nf(n,r.data,r.blueprint,i,!1)}}(r,i?i(e):e,n)}}class zr{}class iD{}class Lf extends zr{constructor(n,t,r){super(),this._parent=t,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new m_(this);const i=Ot(n);this._bootstrapComponents=$n(i.bootstrap),this._r3Injector=Tv(n,t,[{provide:zr,useValue:this},{provide:es,useValue:this.componentFactoryResolver},...r],Ve(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class Vf extends iD{constructor(n){super(),this.moduleType=n}create(n){return new Lf(this.moduleType,n,[])}}class oD extends zr{constructor(n){super(),this.componentFactoryResolver=new m_(this),this.instance=null;const t=new Oi([...n.providers,{provide:zr,useValue:this},{provide:es,useValue:this.componentFactoryResolver}],n.parent||ll(),n.debugName,new Set(["environment"]));this.injector=t,n.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function jf(e,n,t=null){return new oD({providers:e,parent:n,debugName:t,runEnvironmentInitializers:!0}).injector}let PN=(()=>{class e{constructor(t){this._injector=t,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t)){const r=dv(0,t.type),i=r.length>0?jf([r],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t,i)}return this.cachedInjectors.get(t)}ngOnDestroy(){try{for(const t of this.cachedInjectors.values())null!==t&&t.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=x({token:e,providedIn:"environment",factory:()=>new e(I(Lt))})}return e})();function kl(e){e.getStandaloneInjector=n=>n.get(PN).getOrCreateStandaloneInjector(e)}function $f(e,n,t,r){return function hD(e,n,t,r,i,o){const s=n+t;return ot(e,s,i)?bn(e,s+1,o?r.call(o,i):r(i)):function ws(e,n){const t=e[n];return t===q?void 0:t}(e,s+1)}(E(),ft(),e,n,t,r)}function eR(){return this._results[Symbol.iterator]()}class Hf{static#e=Symbol.iterator;get changes(){return this._changes||(this._changes=new _e)}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=Hf.prototype;t[Symbol.iterator]||(t[Symbol.iterator]=eR)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,t){return this._results.reduce(n,t)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,t){const r=this;r.dirty=!1;const i=function Kt(e){return e.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function jT(e,n,t){if(e.length!==n.length)return!1;for(let r=0;r0&&(t[i-1][rn]=n),r{class e{static#e=this.__NG_ELEMENT_ID__=oR}return e})();const rR=zn,iR=class extends rR{constructor(n,t,r){super(),this._declarationLView=n,this._declarationTContainer=t,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,t){return this.createEmbeddedViewImpl(n,t)}createEmbeddedViewImpl(n,t,r){const i=function tR(e,n,t,r){const i=n.tView,a=vl(e,i,t,4096&e[W]?4096:16,null,n,null,null,null,r?.injector??null,r?.hydrationInfo??null);a[Oo]=e[n.index];const c=e[mn];return null!==c&&(a[mn]=c.createEmbeddedView(i)),mf(i,a,t),a}(this._declarationLView,this._declarationTContainer,n,{injector:t,hydrationInfo:r});return new ss(i)}};function oR(){return Fl(Xe(),E())}function Fl(e,n){return 4&e.type?new iR(n,e,ki(e,n)):null}let ln=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=dR}return e})();function dR(){return ED(Xe(),E())}const fR=ln,wD=class extends fR{constructor(n,t,r){super(),this._lContainer=n,this._hostTNode=t,this._hostLView=r}get element(){return ki(this._hostTNode,this._hostLView)}get injector(){return new pt(this._hostTNode,this._hostLView)}get parentInjector(){const n=Fa(this._hostTNode,this._hostLView);if(id(n)){const t=Bo(n,this._hostLView),r=jo(n);return new pt(t[A].data[r+8],t)}return new pt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const t=bD(this._lContainer);return null!==t&&t[n]||null}get length(){return this._lContainer.length-Ke}createEmbeddedView(n,t,r){let i,o;"number"==typeof r?i=r:null!=r&&(i=r.index,o=r.injector);const a=n.createEmbeddedViewImpl(t||{},o,null);return this.insertImpl(a,i,false),a}createComponent(n,t,r,i,o){const s=n&&!function Ho(e){return"function"==typeof e}(n);let a;if(s)a=t;else{const g=t||{};a=g.index,r=g.injector,i=g.projectableNodes,o=g.environmentInjector||g.ngModuleRef}const l=s?n:new as(ee(n)),c=r||this.parentInjector;if(!o&&null==l.ngModule){const y=(s?c:this.parentInjector).get(Lt,null);y&&(o=y)}ee(l.componentType??{});const h=l.create(c,i,null,o);return this.insertImpl(h.hostView,a,false),h}insert(n,t){return this.insertImpl(n,t,!1)}insertImpl(n,t,r){const i=n._lView;if(function JI(e){return dt(e[be])}(i)){const l=this.indexOf(n);if(-1!==l)this.detach(l);else{const c=i[be],u=new wD(c,c[nt],c[be]);u.detach(u.indexOf(n))}}const s=this._adjustIndex(t),a=this._lContainer;return nR(a,i,s,!r),n.attachToViewContainerRef(),hy(Uf(a),s,n),n}move(n,t){return this.insert(n,t)}indexOf(n){const t=bD(this._lContainer);return null!==t?t.indexOf(n):-1}remove(n){const t=this._adjustIndex(n,-1),r=Ya(this._lContainer,t);r&&(ja(Uf(this._lContainer),t),Dd(r[A],r))}detach(n){const t=this._adjustIndex(n,-1),r=Ya(this._lContainer,t);return r&&null!=ja(Uf(this._lContainer),t)?new ss(r):null}_adjustIndex(n,t=0){return n??this.length+t}};function bD(e){return e[8]}function Uf(e){return e[8]||(e[8]=[])}function ED(e,n){let t;const r=n[e.index];return dt(r)?t=r:(t=i_(r,n,null,e),n[e.index]=t,_l(n,t)),MD(t,n,e,r),new wD(t,e,n)}let MD=function SD(e,n,t,r){if(e[yn])return;let i;i=8&t.type?ve(r):function hR(e,n){const t=e[G],r=t.createComment(""),i=Et(n,e);return Lr(t,Xa(t,i),r,function NA(e,n){return e.nextSibling(n)}(t,i),!1),r}(n,t),e[yn]=i};class zf{constructor(n){this.queryList=n,this.matches=null}clone(){return new zf(this.queryList)}setDirty(){this.queryList.setDirty()}}class Gf{constructor(n=[]){this.queries=n}createEmbeddedView(n){const t=n.queries;if(null!==t){const r=null!==n.contentQueries?n.contentQueries[0]:t.length,i=[];for(let o=0;o0)r.push(s[a/2]);else{const c=o[a+1],u=n[-l];for(let d=Ke;d{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,r)=>{this.resolve=t,this.reject=r}),this.appInits=T(nh,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const t=[];for(const i of this.appInits){const o=i();if(ps(o))t.push(o);else if(B_(o)){const s=new Promise((a,l)=>{o.subscribe({complete:a,error:l})});t.push(s)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(t).then(()=>{r()}).catch(i=>{this.reject(i)}),0===t.length&&r(),this.initialized=!0}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),KD=(()=>{class e{log(t){console.log(t)}warn(t){console.warn(t)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();const Gn=new P("LocaleId",{providedIn:"root",factory:()=>T(Gn,X.Optional|X.SkipSelf)||function UR(){return typeof $localize<"u"&&$localize.locale||Yi}()});let jl=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Gt(!1)}add(){this.hasPendingTasks.next(!0);const t=this.taskId++;return this.pendingTasks.add(t),t}remove(t){this.pendingTasks.delete(t),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class qR{constructor(n,t){this.ngModuleFactory=n,this.componentFactories=t}}let YD=(()=>{class e{compileModuleSync(t){return new Vf(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){const r=this.compileModuleSync(t),o=$n(Ot(t).declarations).reduce((s,a)=>{const l=ee(a);return l&&s.push(new as(l)),s},[]);return new qR(r,o)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const tw=new P(""),$l=new P("");let lh,sh=(()=>{class e{constructor(t,r,i){this._ngZone=t,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,lh||(function pk(e){lh=e}(i),i.addToWindow(r)),this._watchAngularEvents(),t.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:()=>{le.assertNotInAngularZone(),queueMicrotask(()=>{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())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(t)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,r,i){let o=-1;r&&r>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),t(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:t,timeoutId:o,updateCb:i})}whenStable(t,r,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,r,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,r,i){return[]}static#e=this.\u0275fac=function(r){return new(r||e)(I(le),I(ah),I($l))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})(),ah=(()=>{class e{constructor(){this._applications=new Map}registerApplication(t,r){this._applications.set(t,r)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,r=!0){return lh?.findTestabilityInTree(this,t,r)??null}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),hr=null;const nw=new P("AllowMultipleToken"),ch=new P("PlatformDestroyListeners"),uh=new P("appBootstrapListener");class iw{constructor(n,t){this.name=n,this.token=t}}function sw(e,n,t=[]){const r=`Platform: ${n}`,i=new P(r);return(o=[])=>{let s=dh();if(!s||s.injector.get(nw,!1)){const a=[...t,...o,{provide:i,useValue:!0}];e?e(a):function yk(e){if(hr&&!hr.get(nw,!1))throw new C(400,!1);(function rw(){!function VI(e){Mm=e}(()=>{throw new C(600,!1)})})(),hr=e;const n=e.get(lw);(function ow(e){e.get(mv,null)?.forEach(t=>t())})(e)}(function aw(e=[],n){return it.create({name:n,providers:[{provide:Ld,useValue:"platform"},{provide:ch,useValue:new Set([()=>hr=null])},...e]})}(a,r))}return function _k(e){const n=dh();if(!n)throw new C(401,!1);return n}()}}function dh(){return hr?.get(lw)??null}let lw=(()=>{class e{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,r){const i=function Ck(e="zone.js",n){return"noop"===e?new XP:"zone.js"===e?new le(n):e}(r?.ngZone,function cw(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return i.run(()=>{const o=function AN(e,n,t){return new Lf(e,n,t)}(t.moduleType,this.injector,function pw(e){return[{provide:le,useFactory:e},{provide:Yo,multi:!0,useFactory:()=>{const n=T(wk,{optional:!0});return()=>n.initialize()}},{provide:hw,useFactory:Dk},{provide:Nv,useFactory:Rv}]}(()=>i)),s=o.injector.get(Bn,null);return i.runOutsideAngular(()=>{const a=i.onError.subscribe({next:l=>{s.handleError(l)}});o.onDestroy(()=>{Hl(this._modules,o),a.unsubscribe()})}),function uw(e,n,t){try{const r=t();return ps(r)?r.catch(i=>{throw n.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw n.runOutsideAngular(()=>e.handleError(r)),r}}(s,i,()=>{const a=o.injector.get(rh);return a.runInitializers(),a.donePromise.then(()=>(function NC(e){Wt(e,"Expected localeId to be defined"),"string"==typeof e&&(xC=e.toLowerCase().replace(/_/g,"-"))}(o.injector.get(Gn,Yi)||Yi),this._moduleDoBootstrap(o),o))})})}bootstrapModule(t,r=[]){const i=dw({},r);return function gk(e,n,t){const r=new Vf(t);return Promise.resolve(r)}(0,0,t).then(o=>this.bootstrapModuleFactory(o,i))}_moduleDoBootstrap(t){const r=t.injector.get(qn);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!t.instance.ngDoBootstrap)throw new C(-403,!1);t.instance.ngDoBootstrap(r)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}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 t=this._injector.get(ch,null);t&&(t.forEach(r=>r()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(r){return new(r||e)(I(it))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function dw(e,n){return Array.isArray(n)?n.reduce(dw,e):{...e,...n}}let qn=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=T(hw),this.zoneIsStable=T(Nv),this.componentTypes=[],this.components=[],this.isStable=T(jl).hasPendingTasks.pipe(qt(t=>t?L(!1):this.zoneIsStable),function WS(e,n=nr){return e=e??QS,Fe((t,r)=>{let i,o=!0;t.subscribe(Re(r,s=>{const a=n(s);(o||!e(i,a))&&(o=!1,i=a,r.next(s))}))})}(),zg()),this._injector=T(Lt)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(t,r){const i=t instanceof wv;if(!this._injector.get(rh).done)throw!i&&function li(e){const n=ee(e)||Ze(e)||ut(e);return null!==n&&n.standalone}(t),new C(405,!1);let s;s=i?t:this._injector.get(es).resolveComponentFactory(t),this.componentTypes.push(s.componentType);const a=function mk(e){return e.isBoundToModule}(s)?void 0:this._injector.get(zr),c=s.create(it.NULL,[],r||s.selector,a),u=c.location.nativeElement,d=c.injector.get(tw,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),Hl(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new C(101,!1);try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this.internalErrorHandler(t)}finally{this._runningTick=!1}}attachView(t){const r=t;this._views.push(r),r.attachToAppRef(this)}detachView(t){const r=t;Hl(this._views,r),r.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t);const r=this._injector.get(uh,[]);r.push(...this._bootstrapListeners),r.forEach(i=>i(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>Hl(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new C(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Hl(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}const hw=new P("",{providedIn:"root",factory:()=>T(Bn).handleError.bind(void 0)});function Dk(){const e=T(le),n=T(Bn);return t=>e.runOutsideAngular(()=>n.handleError(t))}let wk=(()=>{class e{constructor(){this.zone=T(le),this.applicationRef=T(qn)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();let Ul=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=Ek}return e})();function Ek(e){return function Mk(e,n,t){if(Nr(e)&&!t){const r=Nt(e.index,n);return new ss(r,r)}return 47&e.type?new ss(n[Oe],n):null}(Xe(),E(),16==(16&e))}class _w{constructor(){}supports(n){return bl(n)}create(n){return new Pk(n)}}const Ak=(e,n)=>n;class Pk{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||Ak}forEachItem(n){let t;for(t=this._itHead;null!==t;t=t._next)n(t)}forEachOperation(n){let t=this._itHead,r=this._removalsHead,i=0,o=null;for(;t||r;){const s=!r||t&&t.currentIndex{s=this._trackByFn(i,a),null!==t&&Object.is(t.trackById,s)?(r&&(t=this._verifyReinsertion(t,a,s,i)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,s,i),r=!0),t=t._next,i++}),this.length=i;return this._truncate(t),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,t,r,i){let o;return null===n?o=this._itTail:(o=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._reinsertAfter(n,o,i)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(r,i))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._moveAfter(n,o,i)):n=this._addAfter(new Ok(t,r),o,i),n}_verifyReinsertion(n,t,r,i){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==o?n=this._reinsertAfter(o,n._prev,i):n.currentIndex!=i&&(n.currentIndex=i,this._addToMoves(n,i)),n}_truncate(n){for(;null!==n;){const t=n._next;this._addToRemovals(this._unlink(n)),n=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,t,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const i=n._prevRemoved,o=n._nextRemoved;return null===i?this._removalsHead=o:i._nextRemoved=o,null===o?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(n,t,r),this._addToMoves(n,r),n}_moveAfter(n,t,r){return this._unlink(n),this._insertAfter(n,t,r),this._addToMoves(n,r),n}_addAfter(n,t,r){return this._insertAfter(n,t,r),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,t,r){const i=null===t?this._itHead:t._next;return n._next=i,n._prev=t,null===i?this._itTail=n:i._prev=n,null===t?this._itHead=n:t._next=n,null===this._linkedRecords&&(this._linkedRecords=new Cw),this._linkedRecords.put(n),n.currentIndex=r,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const t=n._prev,r=n._next;return null===t?this._itHead=r:t._next=r,null===r?this._itTail=t:r._prev=t,n}_addToMoves(n,t){return n.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Cw),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,t){return n.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class Ok{constructor(n,t){this.item=n,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class xk{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,t){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===t||t<=r.currentIndex)&&Object.is(r.trackById,n))return r;return null}remove(n){const t=n._prevDup,r=n._nextDup;return null===t?this._head=r:t._nextDup=r,null===r?this._tail=t:r._prevDup=t,null===this._head}}class Cw{constructor(){this.map=new Map}put(n){const t=n.trackById;let r=this.map.get(t);r||(r=new xk,this.map.set(t,r)),r.add(n)}get(n,t){const i=this.map.get(n);return i?i.get(n,t):null}remove(n){const t=n.trackById;return this.map.get(t).remove(n)&&this.map.delete(t),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Dw(e,n,t){const r=e.previousIndex;if(null===r)return r;let i=0;return t&&r{if(t&&t.key===i)this._maybeAddToChanges(t,r),this._appendAfter=t,t=t._next;else{const o=this._getOrCreateRecordForKey(i,r);t=this._insertBeforeOrAppend(t,o)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let r=t;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,t){if(n){const r=n._prev;return t._next=n,t._prev=r,n._prev=t,r&&(r._next=t),n===this._mapHead&&(this._mapHead=t),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(n,t){if(this._records.has(n)){const i=this._records.get(n);this._maybeAddToChanges(i,t);const o=i._prev,s=i._next;return o&&(o._next=s),s&&(s._prev=o),i._next=null,i._prev=null,i}const r=new Rk(n);return this._records.set(n,r),r.currentValue=t,this._addToAdditions(r),r}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,t){Object.is(t,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=t,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,t){n instanceof Map?n.forEach(t):Object.keys(n).forEach(r=>t(n[r],r))}}class Rk{constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function bw(){return new ql([new _w])}let ql=(()=>{class e{static#e=this.\u0275prov=x({token:e,providedIn:"root",factory:bw});constructor(t){this.factories=t}static create(t,r){if(null!=r){const i=r.factories.slice();t=t.concat(i)}return new e(t)}static extend(t){return{provide:e,useFactory:r=>e.create(t,r||bw()),deps:[[e,new Ha,new $a]]}}find(t){const r=this.factories.find(i=>i.supports(t));if(null!=r)return r;throw new C(901,!1)}}return e})();function Ew(){return new Ss([new ww])}let Ss=(()=>{class e{static#e=this.\u0275prov=x({token:e,providedIn:"root",factory:Ew});constructor(t){this.factories=t}static create(t,r){if(r){const i=r.factories.slice();t=t.concat(i)}return new e(t)}static extend(t){return{provide:e,useFactory:r=>e.create(t,r||Ew()),deps:[[e,new Ha,new $a]]}}find(t){const r=this.factories.find(i=>i.supports(t));if(r)return r;throw new C(901,!1)}}return e})();const Lk=sw(null,"core",[]);let Vk=(()=>{class e{constructor(t){}static#e=this.\u0275fac=function(r){return new(r||e)(I(qn))};static#t=this.\u0275mod=tt({type:e});static#n=this.\u0275inj=Qe({})}return e})();function eo(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}let yh=null;function pr(){return yh}class Xk{}const Ue=new P("DocumentToken");let vh=(()=>{class e{historyGo(t){throw new Error("Not implemented")}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:function(){return T(eF)},providedIn:"platform"})}return e})();const Jk=new P("Location Initialized");let eF=(()=>{class e extends vh{constructor(){super(),this._doc=T(Ue),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return pr().getBaseHref(this._doc)}onPopState(t){const r=pr().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",t,!1),()=>r.removeEventListener("popstate",t)}onHashChange(t){const r=pr().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",t,!1),()=>r.removeEventListener("hashchange",t)}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(t){this._location.pathname=t}pushState(t,r,i){this._history.pushState(t,r,i)}replaceState(t,r,i){this._history.replaceState(t,r,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:function(){return new e},providedIn:"platform"})}return e})();function _h(e,n){if(0==e.length)return n;if(0==n.length)return e;let t=0;return e.endsWith("/")&&t++,n.startsWith("/")&&t++,2==t?e+n.substring(1):1==t?e+n:e+"/"+n}function Nw(e){const n=e.match(/#|\?|$/),t=n&&n.index||e.length;return e.slice(0,t-("/"===e[t-1]?1:0))+e.slice(t)}function Wn(e){return e&&"?"!==e[0]?"?"+e:e}let gr=(()=>{class e{historyGo(t){throw new Error("Not implemented")}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:function(){return T(kw)},providedIn:"root"})}return e})();const Rw=new P("appBaseHref");let kw=(()=>{class e extends gr{constructor(t,r){super(),this._platformLocation=t,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??T(Ue).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return _h(this._baseHref,t)}path(t=!1){const r=this._platformLocation.pathname+Wn(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?`${r}${i}`:r}pushState(t,r,i,o){const s=this.prepareExternalUrl(i+Wn(o));this._platformLocation.pushState(t,r,s)}replaceState(t,r,i,o){const s=this.prepareExternalUrl(i+Wn(o));this._platformLocation.replaceState(t,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static#e=this.\u0275fac=function(r){return new(r||e)(I(vh),I(Rw,8))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Fw=(()=>{class e extends gr{constructor(t,r){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(t){const r=_h(this._baseHref,t);return r.length>0?"#"+r:r}pushState(t,r,i,o){let s=this.prepareExternalUrl(i+Wn(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,r,s)}replaceState(t,r,i,o){let s=this.prepareExternalUrl(i+Wn(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static#e=this.\u0275fac=function(r){return new(r||e)(I(vh),I(Rw,8))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})(),Ch=(()=>{class e{constructor(t){this._subject=new _e,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=t;const r=this._locationStrategy.getBaseHref();this._basePath=function rF(e){if(new RegExp("^(https?:)?//").test(e)){const[,t]=e.split(/\/\/[^\/]+/);return t}return e}(Nw(Lw(r))),this._locationStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,r=""){return this.path()==this.normalize(t+Wn(r))}normalize(t){return e.stripTrailingSlash(function nF(e,n){if(!e||!n.startsWith(e))return n;const t=n.substring(e.length);return""===t||["/",";","?","#"].includes(t[0])?t:n}(this._basePath,Lw(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,r="",i=null){this._locationStrategy.pushState(i,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Wn(r)),i)}replaceState(t,r="",i=null){this._locationStrategy.replaceState(i,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Wn(r)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)})),()=>{const r=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",r){this._urlChangeListeners.forEach(i=>i(t,r))}subscribe(t,r,i){return this._subject.subscribe({next:t,error:r,complete:i})}static#e=this.normalizeQueryParams=Wn;static#t=this.joinWithSlash=_h;static#n=this.stripTrailingSlash=Nw;static#r=this.\u0275fac=function(r){return new(r||e)(I(gr))};static#i=this.\u0275prov=x({token:e,factory:function(){return function tF(){return new Ch(I(gr))}()},providedIn:"root"})}return e})();function Lw(e){return e.replace(/\/index.html$/,"")}function qw(e,n){n=encodeURIComponent(n);for(const t of e.split(";")){const r=t.indexOf("="),[i,o]=-1==r?[t,""]:[t.slice(0,r),t.slice(r+1)];if(i.trim()===n)return decodeURIComponent(o)}return null}class UF{constructor(n,t,r,i){this.$implicit=n,this.ngForOf=t,this.index=r,this.count=i}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let no=(()=>{class e{set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}constructor(t,r,i){this._viewContainer=t,this._template=r,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const r=this._viewContainer;t.forEachOperation((i,o,s)=>{if(null==i.previousIndex)r.createEmbeddedView(this._template,new UF(i.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)r.remove(null===o?void 0:o);else if(null!==o){const a=r.get(o);r.move(a,s),Zw(a,i)}});for(let i=0,o=r.length;i{Zw(r.get(i.currentIndex),i)})}static ngTemplateContextGuard(t,r){return!0}static#e=this.\u0275fac=function(r){return new(r||e)(D(ln),D(zn),D(ql))};static#t=this.\u0275dir=$({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return e})();function Zw(e,n){e.context.$implicit=n.item}let mr=(()=>{class e{constructor(t,r){this._viewContainer=t,this._context=new zF,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){Kw("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Kw("ngIfElse",t),this._elseTemplateRef=t,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(t,r){return!0}static#e=this.\u0275fac=function(r){return new(r||e)(D(ln),D(zn))};static#t=this.\u0275dir=$({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return e})();class zF{constructor(){this.$implicit=null,this.ngIf=null}}function Kw(e,n){if(n&&!n.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Ve(n)}'.`)}let Nh=(()=>{class e{constructor(t,r,i){this._ngEl=t,this._differs=r,this._renderer=i,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,r){const[i,o]=t.split("."),s=-1===i.indexOf("-")?void 0:ur.DashCase;null!=r?this._renderer.setStyle(this._ngEl.nativeElement,i,o?`${r}${o}`:r,s):this._renderer.removeStyle(this._ngEl.nativeElement,i,s)}_applyChanges(t){t.forEachRemovedItem(r=>this._setStyle(r.key,null)),t.forEachAddedItem(r=>this._setStyle(r.key,r.currentValue)),t.forEachChangedItem(r=>this._setStyle(r.key,r.currentValue))}static#e=this.\u0275fac=function(r){return new(r||e)(D(Vt),D(Ss),D(jn))};static#t=this.\u0275dir=$({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}return e})(),Fh=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=tt({type:e});static#n=this.\u0275inj=Qe({})}return e})();function eb(e){return"server"===e}let _2=(()=>{class e{static#e=this.\u0275prov=x({token:e,providedIn:"root",factory:()=>new C2(I(Ue),window)})}return e})();class C2{constructor(n,t){this.document=n,this.window=t,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const t=function D2(e,n){const t=e.getElementById(n)||e.getElementsByName(n)[0];if(t)return t;if("function"==typeof e.createTreeWalker&&e.body&&"function"==typeof e.body.attachShadow){const r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let i=r.currentNode;for(;i;){const o=i.shadowRoot;if(o){const s=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(s)return s}i=r.nextNode()}}return null}(this.document,n);t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(n){this.supportsScrolling()&&(this.window.history.scrollRestoration=n)}scrollToElement(n){const t=n.getBoundingClientRect(),r=t.left+this.window.pageXOffset,i=t.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(r-o[0],i-o[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class tb{}class z2 extends Xk{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class jh extends z2{static makeCurrent(){!function Yk(e){yh||(yh=e)}(new jh)}onAndCancel(n,t,r){return n.addEventListener(t,r),()=>{n.removeEventListener(t,r)}}dispatchEvent(n,t){n.dispatchEvent(t)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,t){return(t=t||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,t){return"window"===t?window:"document"===t?n:"body"===t?n.body:null}getBaseHref(n){const t=function G2(){return Ps=Ps||document.querySelector("base"),Ps?Ps.getAttribute("href"):null}();return null==t?null:function q2(e){sc=sc||document.createElement("a"),sc.setAttribute("href",e);const n=sc.pathname;return"/"===n.charAt(0)?n:`/${n}`}(t)}resetBaseElement(){Ps=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return qw(document.cookie,n)}}let sc,Ps=null,Q2=(()=>{class e{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})();const Bh=new P("EventManagerPlugins");let sb=(()=>{class e{constructor(t,r){this._zone=r,this._eventNameToPlugin=new Map,t.forEach(i=>{i.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,r,i){return this._findPluginFor(r).addEventListener(t,r,i)}getZone(){return this._zone}_findPluginFor(t){let r=this._eventNameToPlugin.get(t);if(r)return r;if(r=this._plugins.find(o=>o.supports(t)),!r)throw new C(5101,!1);return this._eventNameToPlugin.set(t,r),r}static#e=this.\u0275fac=function(r){return new(r||e)(I(Bh),I(le))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})();class ab{constructor(n){this._doc=n}}const $h="ng-app-id";let lb=(()=>{class e{constructor(t,r,i,o={}){this.doc=t,this.appId=r,this.nonce=i,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=eb(o),this.resetHostNodes()}addStyles(t){for(const r of t)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(t){for(const r of t)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const t=this.styleNodesInDOM;t&&(t.forEach(r=>r.remove()),t.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(const r of this.getAllStyles())this.addStyleToHost(t,r)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(const r of this.hostNodes)this.addStyleToHost(r,t)}onStyleRemoved(t){const r=this.styleRef;r.get(t)?.elements?.forEach(i=>i.remove()),r.delete(t)}collectServerRenderedStyles(){const t=this.doc.head?.querySelectorAll(`style[${$h}="${this.appId}"]`);if(t?.length){const r=new Map;return t.forEach(i=>{null!=i.textContent&&r.set(i.textContent,i)}),r}return null}changeUsageCount(t,r){const i=this.styleRef;if(i.has(t)){const o=i.get(t);return o.usage+=r,o.usage}return i.set(t,{usage:r,elements:[]}),r}getStyleElement(t,r){const i=this.styleNodesInDOM,o=i?.get(r);if(o?.parentNode===t)return i.delete(r),o.removeAttribute($h),o;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute($h,this.appId),s}}addStyleToHost(t,r){const i=this.getStyleElement(t,r);t.appendChild(i);const o=this.styleRef,s=o.get(r)?.elements;s?s.push(i):o.set(r,{elements:[i],usage:1})}resetHostNodes(){const t=this.hostNodes;t.clear(),t.add(this.doc.head)}static#e=this.\u0275fac=function(r){return new(r||e)(I(Ue),I(cl),I(vv,8),I(Br))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})();const Hh={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/"},Uh=/%COMP%/g,X2=new P("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function ub(e,n){return n.map(t=>t.replace(Uh,e))}let zh=(()=>{class e{constructor(t,r,i,o,s,a,l,c=null){this.eventManager=t,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=l,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=eb(a),this.defaultRenderer=new Gh(t,s,l,this.platformIsServer)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Qt.ShadowDom&&(r={...r,encapsulation:Qt.Emulated});const i=this.getOrCreateRenderer(t,r);return i instanceof fb?i.applyToHost(t):i instanceof qh&&i.applyStyles(),i}getOrCreateRenderer(t,r){const i=this.rendererByCompId;let o=i.get(r.id);if(!o){const s=this.doc,a=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case Qt.Emulated:o=new fb(l,c,r,this.appId,u,s,a,d);break;case Qt.ShadowDom:return new nL(l,c,t,r,s,a,this.nonce,d);default:o=new qh(l,c,r,u,s,a,d)}i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(r){return new(r||e)(I(sb),I(lb),I(cl),I(X2),I(Ue),I(Br),I(le),I(vv))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})();class Gh{constructor(n,t,r,i){this.eventManager=n,this.doc=t,this.ngZone=r,this.platformIsServer=i,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,t){return t?this.doc.createElementNS(Hh[t]||t,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,t){(db(n)?n.content:n).appendChild(t)}insertBefore(n,t,r){n&&(db(n)?n.content:n).insertBefore(t,r)}removeChild(n,t){n&&n.removeChild(t)}selectRootElement(n,t){let r="string"==typeof n?this.doc.querySelector(n):n;if(!r)throw new C(-5104,!1);return t||(r.textContent=""),r}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,t,r,i){if(i){t=i+":"+t;const o=Hh[i];o?n.setAttributeNS(o,t,r):n.setAttribute(t,r)}else n.setAttribute(t,r)}removeAttribute(n,t,r){if(r){const i=Hh[r];i?n.removeAttributeNS(i,t):n.removeAttribute(`${r}:${t}`)}else n.removeAttribute(t)}addClass(n,t){n.classList.add(t)}removeClass(n,t){n.classList.remove(t)}setStyle(n,t,r,i){i&(ur.DashCase|ur.Important)?n.style.setProperty(t,r,i&ur.Important?"important":""):n.style[t]=r}removeStyle(n,t,r){r&ur.DashCase?n.style.removeProperty(t):n.style[t]=""}setProperty(n,t,r){n[t]=r}setValue(n,t){n.nodeValue=t}listen(n,t,r){if("string"==typeof n&&!(n=pr().getGlobalEventTarget(this.doc,n)))throw new Error(`Unsupported event target ${n} for event ${t}`);return this.eventManager.addEventListener(n,t,this.decoratePreventDefault(r))}decoratePreventDefault(n){return t=>{if("__ngUnwrap__"===t)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(t)):n(t))&&t.preventDefault()}}}function db(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class nL extends Gh{constructor(n,t,r,i,o,s,a,l){super(n,o,s,l),this.sharedStylesHost=t,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const c=ub(i.id,i.styles);for(const u of c){const d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=u,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,t){return super.appendChild(this.nodeOrShadowRoot(n),t)}insertBefore(n,t,r){return super.insertBefore(this.nodeOrShadowRoot(n),t,r)}removeChild(n,t){return super.removeChild(this.nodeOrShadowRoot(n),t)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class qh extends Gh{constructor(n,t,r,i,o,s,a,l){super(n,o,s,a),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=i,this.styles=l?ub(l,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class fb extends qh{constructor(n,t,r,i,o,s,a,l){const c=i+"-"+r.id;super(n,t,r,o,s,a,l,c),this.contentAttr=function J2(e){return"_ngcontent-%COMP%".replace(Uh,e)}(c),this.hostAttr=function eL(e){return"_nghost-%COMP%".replace(Uh,e)}(c)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,t){const r=super.createElement(n,t);return super.setAttribute(r,this.contentAttr,""),r}}let rL=(()=>{class e extends ab{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,i){return t.addEventListener(r,i,!1),()=>this.removeEventListener(t,r,i)}removeEventListener(t,r,i){return t.removeEventListener(r,i)}static#e=this.\u0275fac=function(r){return new(r||e)(I(Ue))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})();const hb=["alt","control","meta","shift"],iL={"\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"},oL={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let sL=(()=>{class e extends ab{constructor(t){super(t)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,r,i){const o=e.parseEventName(r),s=e.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>pr().onAndCancel(t,o.domEventName,s))}static parseEventName(t){const r=t.toLowerCase().split("."),i=r.shift();if(0===r.length||"keydown"!==i&&"keyup"!==i)return null;const o=e._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),hb.forEach(c=>{const u=r.indexOf(c);u>-1&&(r.splice(u,1),s+=c+".")}),s+=o,0!=r.length||0===o.length)return null;const l={};return l.domEventName=i,l.fullKey=s,l}static matchEventFullKeyCode(t,r){let i=iL[t.key]||t.key,o="";return r.indexOf("code.")>-1&&(i=t.code,o="code."),!(null==i||!i)&&(i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),hb.forEach(s=>{s!==i&&(0,oL[s])(t)&&(o+=s+".")}),o+=i,o===r)}static eventCallback(t,r,i){return o=>{e.matchEventFullKeyCode(o,t)&&i.runGuarded(()=>r(o))}}static _normalizeKey(t){return"esc"===t?"escape":t}static#e=this.\u0275fac=function(r){return new(r||e)(I(Ue))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})();const uL=sw(Lk,"browser",[{provide:Br,useValue:"browser"},{provide:mv,useValue:function aL(){jh.makeCurrent()},multi:!0},{provide:Ue,useFactory:function cL(){return function $A(e){Td=e}(document),document},deps:[]}]),dL=new P(""),mb=[{provide:$l,useClass:class W2{addToWindow(n){ye.getAngularTestability=(r,i=!0)=>{const o=n.findTestabilityInTree(r,i);if(null==o)throw new C(5103,!1);return o},ye.getAllAngularTestabilities=()=>n.getAllTestabilities(),ye.getAllAngularRootElements=()=>n.getAllRootElements(),ye.frameworkStabilizers||(ye.frameworkStabilizers=[]),ye.frameworkStabilizers.push(r=>{const i=ye.getAllAngularTestabilities();let o=i.length,s=!1;const a=function(l){s=s||l,o--,0==o&&r(s)};i.forEach(l=>{l.whenStable(a)})})}findTestabilityInTree(n,t,r){return null==t?null:n.getTestability(t)??(r?pr().isShadowRoot(t)?this.findTestabilityInTree(n,t.host,!0):this.findTestabilityInTree(n,t.parentElement,!0):null)}},deps:[]},{provide:tw,useClass:sh,deps:[le,ah,$l]},{provide:sh,useClass:sh,deps:[le,ah,$l]}],yb=[{provide:Ld,useValue:"root"},{provide:Bn,useFactory:function lL(){return new Bn},deps:[]},{provide:Bh,useClass:rL,multi:!0,deps:[Ue,le,Br]},{provide:Bh,useClass:sL,multi:!0,deps:[Ue]},zh,lb,sb,{provide:ts,useExisting:zh},{provide:tb,useClass:Q2,deps:[]},[]];let vb=(()=>{class e{constructor(t){}static withServerTransition(t){return{ngModule:e,providers:[{provide:cl,useValue:t.appId}]}}static#e=this.\u0275fac=function(r){return new(r||e)(I(dL,12))};static#t=this.\u0275mod=tt({type:e});static#n=this.\u0275inj=Qe({providers:[...yb,...mb],imports:[Fh,Vk]})}return e})(),_b=(()=>{class e{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}static#e=this.\u0275fac=function(r){return new(r||e)(I(Ue))};static#t=this.\u0275prov=x({token:e,factory:function(r){let i=null;return i=r?new r:function hL(){return new _b(I(Ue))}(),i},providedIn:"root"})}return e})();typeof window<"u"&&window;let wb=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:function(r){let i=null;return i=r?new(r||e):I(bb),i},providedIn:"root"})}return e})(),bb=(()=>{class e extends wb{constructor(t){super(),this._doc=t}sanitize(t,r){if(null==r)return null;switch(t){case Ft.NONE:return r;case Ft.HTML:return Dn(r,"HTML")?kt(r):sv(this._doc,String(r)).toString();case Ft.STYLE:return Dn(r,"Style")?kt(r):r;case Ft.SCRIPT:if(Dn(r,"Script"))return kt(r);throw new C(5200,!1);case Ft.URL:return Dn(r,"URL")?kt(r):rl(String(r));case Ft.RESOURCE_URL:if(Dn(r,"ResourceURL"))return kt(r);throw new C(5201,!1);default:throw new C(5202,!1)}}bypassSecurityTrustHtml(t){return function QA(e){return new HA(e)}(t)}bypassSecurityTrustStyle(t){return function ZA(e){return new UA(e)}(t)}bypassSecurityTrustScript(t){return function KA(e){return new zA(e)}(t)}bypassSecurityTrustUrl(t){return function YA(e){return new GA(e)}(t)}bypassSecurityTrustResourceUrl(t){return function XA(e){return new qA(e)}(t)}static#e=this.\u0275fac=function(r){return new(r||e)(I(Ue))};static#t=this.\u0275prov=x({token:e,factory:function(r){let i=null;return i=r?new r:function yL(e){return new bb(e.get(Ue))}(I(it)),i},providedIn:"root"})}return e})();const{isArray:_L}=Array,{getPrototypeOf:CL,prototype:DL,keys:wL}=Object;function Mb(e){if(1===e.length){const n=e[0];if(_L(n))return{args:n,keys:null};if(function bL(e){return e&&"object"==typeof e&&CL(e)===DL}(n)){const t=wL(n);return{args:t.map(r=>n[r]),keys:t}}}return{args:e,keys:null}}const{isArray:EL}=Array;function Sb(e){return ie(n=>function ML(e,n){return EL(n)?e(...n):e(n)}(e,n))}function Ib(e,n){return e.reduce((t,r,i)=>(t[r]=n[i],t),{})}function Qh(...e){const n=Eo(e),t=Bg(e),{args:r,keys:i}=Mb(e);if(0===r.length)return Le([],n);const o=new Ae(function SL(e,n,t=nr){return r=>{Tb(n,()=>{const{length:i}=e,o=new Array(i);let s=i,a=i;for(let l=0;l{const c=Le(e[l],n);let u=!1;c.subscribe(Re(r,d=>{o[l]=d,u||(u=!0,a--),a||r.next(t(o.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,n,i?s=>Ib(i,s):nr));return t?o.pipe(Sb(t)):o}function Tb(e,n,t){e?xn(t,e,n):n()}const ac=Do(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Zh(...e){return function IL(){return si(1)}()(Le(e,Eo(e)))}function Ab(e){return new Ae(n=>{At(e()).subscribe(n)})}function qr(e,n){const t=pe(e)?e:()=>e,r=i=>i.error(t());return new Ae(n?i=>n.schedule(r,0,i):r)}function Kh(){return Fe((e,n)=>{let t=null;e._refCount++;const r=Re(n,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(t=null);const i=e._connection,o=t;t=null,i&&(!o||i===o)&&i.unsubscribe(),n.unsubscribe()});e.subscribe(r),r.closed||(t=e.connect())})}class Pb extends Ae{constructor(n,t){super(),this.source=n,this.subjectFactory=t,this._subject=null,this._refCount=0,this._connection=null,Mg(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new Tt;const t=this.getSubject();n.add(this.source.subscribe(Re(t,void 0,()=>{this._teardown(),t.complete()},r=>{this._teardown(),t.error(r)},()=>this._teardown()))),n.closed&&(this._connection=null,n=Tt.EMPTY)}return n}refCount(){return Kh()(this)}}function ro(e){return e<=0?()=>pn:Fe((n,t)=>{let r=0;n.subscribe(Re(t,i=>{++r<=e&&(t.next(i),e<=r&&t.complete())}))})}function Kn(e,n){return Fe((t,r)=>{let i=0;t.subscribe(Re(r,o=>e.call(n,o,i++)&&r.next(o)))})}function lc(e){return Fe((n,t)=>{let r=!1;n.subscribe(Re(t,i=>{r=!0,t.next(i)},()=>{r||t.next(e),t.complete()}))})}function Ob(e=AL){return Fe((n,t)=>{let r=!1;n.subscribe(Re(t,i=>{r=!0,t.next(i)},()=>r?t.complete():t.error(e())))})}function AL(){return new ac}function Wr(e,n){const t=arguments.length>=2;return r=>r.pipe(e?Kn((i,o)=>e(i,o,r)):nr,ro(1),t?lc(n):Ob(()=>new ac))}function io(e,n){return pe(n)?We(e,n,1):We(e,1)}function st(e,n,t){const r=pe(e)||n||t?{next:e,error:n,complete:t}:e;return r?Fe((i,o)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;i.subscribe(Re(o,l=>{var c;null===(c=r.next)||void 0===c||c.call(r,l),o.next(l)},()=>{var l;a=!1,null===(l=r.complete)||void 0===l||l.call(r),o.complete()},l=>{var c;a=!1,null===(c=r.error)||void 0===c||c.call(r,l),o.error(l)},()=>{var l,c;a&&(null===(l=r.unsubscribe)||void 0===l||l.call(r)),null===(c=r.finalize)||void 0===c||c.call(r)}))}):nr}function Yn(e){return Fe((n,t)=>{let o,r=null,i=!1;r=n.subscribe(Re(t,void 0,void 0,s=>{o=At(e(s,Yn(e)(n))),r?(r.unsubscribe(),r=null,o.subscribe(t)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(t))})}function Yh(e){return e<=0?()=>pn:Fe((n,t)=>{let r=[];n.subscribe(Re(t,i=>{r.push(i),e{for(const i of r)t.next(i);t.complete()},void 0,()=>{r=null}))})}function Os(e){return Fe((n,t)=>{try{n.subscribe(t)}finally{t.add(e)}})}const Z="primary",xs=Symbol("RouteTitle");class kL{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const t=this.params[n];return Array.isArray(t)?t[0]:t}return null}getAll(n){if(this.has(n)){const t=this.params[n];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function oo(e){return new kL(e)}function FL(e,n,t){const r=t.path.split("/");if(r.length>e.length||"full"===t.pathMatch&&(n.hasChildren()||r.lengthr[o]===i)}return e===n}function Nb(e){return e.length>0?e[e.length-1]:null}function vr(e){return function vL(e){return!!e&&(e instanceof Ae||pe(e.lift)&&pe(e.subscribe))}(e)?e:ps(e)?Le(Promise.resolve(e)):L(e)}const VL={exact:function Fb(e,n,t){if(!Qr(e.segments,n.segments)||!cc(e.segments,n.segments,t)||e.numberOfChildren!==n.numberOfChildren)return!1;for(const r in n.children)if(!e.children[r]||!Fb(e.children[r],n.children[r],t))return!1;return!0},subset:Lb},Rb={exact:function jL(e,n){return Sn(e,n)},subset:function BL(e,n){return Object.keys(n).length<=Object.keys(e).length&&Object.keys(n).every(t=>xb(e[t],n[t]))},ignored:()=>!0};function kb(e,n,t){return VL[t.paths](e.root,n.root,t.matrixParams)&&Rb[t.queryParams](e.queryParams,n.queryParams)&&!("exact"===t.fragment&&e.fragment!==n.fragment)}function Lb(e,n,t){return Vb(e,n,n.segments,t)}function Vb(e,n,t,r){if(e.segments.length>t.length){const i=e.segments.slice(0,t.length);return!(!Qr(i,t)||n.hasChildren()||!cc(i,t,r))}if(e.segments.length===t.length){if(!Qr(e.segments,t)||!cc(e.segments,t,r))return!1;for(const i in n.children)if(!e.children[i]||!Lb(e.children[i],n.children[i],r))return!1;return!0}{const i=t.slice(0,e.segments.length),o=t.slice(e.segments.length);return!!(Qr(e.segments,i)&&cc(e.segments,i,r)&&e.children[Z])&&Vb(e.children[Z],n,o,r)}}function cc(e,n,t){return n.every((r,i)=>Rb[t](e[i].parameters,r.parameters))}class so{constructor(n=new fe([],{}),t={},r=null){this.root=n,this.queryParams=t,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=oo(this.queryParams)),this._queryParamMap}toString(){return UL.serialize(this)}}class fe{constructor(n,t){this.segments=n,this.children=t,this.parent=null,Object.values(t).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return uc(this)}}class Ns{constructor(n,t){this.path=n,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=oo(this.parameters)),this._parameterMap}toString(){return $b(this)}}function Qr(e,n){return e.length===n.length&&e.every((t,r)=>t.path===n[r].path)}let Rs=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:function(){return new Xh},providedIn:"root"})}return e})();class Xh{parse(n){const t=new eV(n);return new so(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(n){const t=`/${ks(n.root,!0)}`,r=function qL(e){const n=Object.keys(e).map(t=>{const r=e[t];return Array.isArray(r)?r.map(i=>`${dc(t)}=${dc(i)}`).join("&"):`${dc(t)}=${dc(r)}`}).filter(t=>!!t);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${t}${r}${"string"==typeof n.fragment?`#${function zL(e){return encodeURI(e)}(n.fragment)}`:""}`}}const UL=new Xh;function uc(e){return e.segments.map(n=>$b(n)).join("/")}function ks(e,n){if(!e.hasChildren())return uc(e);if(n){const t=e.children[Z]?ks(e.children[Z],!1):"",r=[];return Object.entries(e.children).forEach(([i,o])=>{i!==Z&&r.push(`${i}:${ks(o,!1)}`)}),r.length>0?`${t}(${r.join("//")})`:t}{const t=function HL(e,n){let t=[];return Object.entries(e.children).forEach(([r,i])=>{r===Z&&(t=t.concat(n(i,r)))}),Object.entries(e.children).forEach(([r,i])=>{r!==Z&&(t=t.concat(n(i,r)))}),t}(e,(r,i)=>i===Z?[ks(e.children[Z],!1)]:[`${i}:${ks(r,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[Z]?`${uc(e)}/${t[0]}`:`${uc(e)}/(${t.join("//")})`}}function jb(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function dc(e){return jb(e).replace(/%3B/gi,";")}function Jh(e){return jb(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function fc(e){return decodeURIComponent(e)}function Bb(e){return fc(e.replace(/\+/g,"%20"))}function $b(e){return`${Jh(e.path)}${function GL(e){return Object.keys(e).map(n=>`;${Jh(n)}=${Jh(e[n])}`).join("")}(e.parameters)}`}const WL=/^[^\/()?;#]+/;function ep(e){const n=e.match(WL);return n?n[0]:""}const QL=/^[^\/()?;=#]+/,KL=/^[^=?&#]+/,XL=/^[^&#]+/;class eV{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new fe([],{}):new fe([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(n.length>0||Object.keys(t).length>0)&&(r[Z]=new fe(n,t)),r}parseSegment(){const n=ep(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new C(4009,!1);return this.capture(n),new Ns(fc(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const t=function ZL(e){const n=e.match(QL);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){const i=ep(this.remaining);i&&(r=i,this.capture(r))}n[fc(t)]=fc(r)}parseQueryParam(n){const t=function YL(e){const n=e.match(KL);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){const s=function JL(e){const n=e.match(XL);return n?n[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const i=Bb(t),o=Bb(r);if(n.hasOwnProperty(i)){let s=n[i];Array.isArray(s)||(s=[s],n[i]=s),s.push(o)}else n[i]=o}parseParens(n){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=ep(this.remaining),i=this.remaining[r.length];if("/"!==i&&")"!==i&&";"!==i)throw new C(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=Z);const s=this.parseChildren();t[o]=1===Object.keys(s).length?s[Z]:new fe([],s),this.consumeOptional("//")}return t}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new C(4011,!1)}}function Hb(e){return e.segments.length>0?new fe([],{[Z]:e}):e}function Ub(e){const n={};for(const r of Object.keys(e.children)){const o=Ub(e.children[r]);if(r===Z&&0===o.segments.length&&o.hasChildren())for(const[s,a]of Object.entries(o.children))n[s]=a;else(o.segments.length>0||o.hasChildren())&&(n[r]=o)}return function tV(e){if(1===e.numberOfChildren&&e.children[Z]){const n=e.children[Z];return new fe(e.segments.concat(n.segments),n.children)}return e}(new fe(e.segments,n))}function Zr(e){return e instanceof so}function zb(e){let n;const i=Hb(function t(o){const s={};for(const l of o.children){const c=t(l);s[l.outlet]=c}const a=new fe(o.url,s);return o===e&&(n=a),a}(e.root));return n??i}function Gb(e,n,t,r){let i=e;for(;i.parent;)i=i.parent;if(0===n.length)return tp(i,i,i,t,r);const o=function rV(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new Wb(!0,0,e);let n=0,t=!1;const r=e.reduce((i,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return Object.entries(o.outlets).forEach(([l,c])=>{a[l]="string"==typeof c?c.split("/"):c}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return"string"!=typeof o?[...i,o]:0===s?(o.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?t=!0:".."===a?n++:""!=a&&i.push(a))}),i):[...i,o]},[]);return new Wb(t,n,r)}(n);if(o.toRoot())return tp(i,i,new fe([],{}),t,r);const s=function iV(e,n,t){if(e.isAbsolute)return new pc(n,!0,0);if(!t)return new pc(n,!1,NaN);if(null===t.parent)return new pc(t,!0,0);const r=hc(e.commands[0])?0:1;return function oV(e,n,t){let r=e,i=n,o=t;for(;o>i;){if(o-=i,r=r.parent,!r)throw new C(4005,!1);i=r.segments.length}return new pc(r,!1,i-o)}(t,t.segments.length-1+r,e.numberOfDoubleDots)}(o,i,e),a=s.processChildren?Ls(s.segmentGroup,s.index,o.commands):Qb(s.segmentGroup,s.index,o.commands);return tp(i,s.segmentGroup,a,t,r)}function hc(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function Fs(e){return"object"==typeof e&&null!=e&&e.outlets}function tp(e,n,t,r,i){let s,o={};r&&Object.entries(r).forEach(([l,c])=>{o[l]=Array.isArray(c)?c.map(u=>`${u}`):`${c}`}),s=e===n?t:qb(e,n,t);const a=Hb(Ub(s));return new so(a,o,i)}function qb(e,n,t){const r={};return Object.entries(e.children).forEach(([i,o])=>{r[i]=o===n?t:qb(o,n,t)}),new fe(e.segments,r)}class Wb{constructor(n,t,r){if(this.isAbsolute=n,this.numberOfDoubleDots=t,this.commands=r,n&&r.length>0&&hc(r[0]))throw new C(4003,!1);const i=r.find(Fs);if(i&&i!==Nb(r))throw new C(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class pc{constructor(n,t,r){this.segmentGroup=n,this.processChildren=t,this.index=r}}function Qb(e,n,t){if(e||(e=new fe([],{})),0===e.segments.length&&e.hasChildren())return Ls(e,n,t);const r=function aV(e,n,t){let r=0,i=n;const o={match:!1,pathIndex:0,commandIndex:0};for(;i=t.length)return o;const s=e.segments[i],a=t[r];if(Fs(a))break;const l=`${a}`,c=r0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!Kb(l,c,s))return o;r+=2}else{if(!Kb(l,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(e,n,t),i=t.slice(r.commandIndex);if(r.match&&r.pathIndexo!==Z)&&e.children[Z]&&1===e.numberOfChildren&&0===e.children[Z].segments.length){const o=Ls(e.children[Z],n,t);return new fe(e.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{"string"==typeof s&&(s=[s]),null!==s&&(i[o]=Qb(e.children[o],n,s))}),Object.entries(e.children).forEach(([o,s])=>{void 0===r[o]&&(i[o]=s)}),new fe(e.segments,i)}}function np(e,n,t){const r=e.segments.slice(0,n);let i=0;for(;i{"string"==typeof r&&(r=[r]),null!==r&&(n[t]=np(new fe([],{}),0,r))}),n}function Zb(e){const n={};return Object.entries(e).forEach(([t,r])=>n[t]=`${r}`),n}function Kb(e,n,t){return e==t.path&&Sn(n,t.parameters)}const Vs="imperative";class In{constructor(n,t){this.id=n,this.url=t}}class gc extends In{constructor(n,t,r="imperative",i=null){super(n,t),this.type=0,this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class _r extends In{constructor(n,t,r){super(n,t),this.urlAfterRedirects=r,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class js extends In{constructor(n,t,r,i){super(n,t),this.reason=r,this.code=i,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class ao extends In{constructor(n,t,r,i){super(n,t),this.reason=r,this.code=i,this.type=16}}class mc extends In{constructor(n,t,r,i){super(n,t),this.error=r,this.target=i,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Yb extends In{constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class cV extends In{constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class uV extends In{constructor(n,t,r,i,o){super(n,t),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class dV extends In{constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class fV extends In{constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class hV{constructor(n){this.route=n,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class pV{constructor(n){this.route=n,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class gV{constructor(n){this.snapshot=n,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class mV{constructor(n){this.snapshot=n,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class yV{constructor(n){this.snapshot=n,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vV{constructor(n){this.snapshot=n,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Xb{constructor(n,t,r){this.routerEvent=n,this.position=t,this.anchor=r,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class rp{}class ip{constructor(n){this.url=n}}class _V{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Bs,this.attachRef=null}}let Bs=(()=>{class e{constructor(){this.contexts=new Map}onChildOutletCreated(t,r){const i=this.getOrCreateContext(t);i.outlet=r,this.contexts.set(t,i)}onChildOutletDestroyed(t){const r=this.getContext(t);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let r=this.getContext(t);return r||(r=new _V,this.contexts.set(t,r)),r}getContext(t){return this.contexts.get(t)||null}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class Jb{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const t=this.pathFromRoot(n);return t.length>1?t[t.length-2]:null}children(n){const t=op(n,this._root);return t?t.children.map(r=>r.value):[]}firstChild(n){const t=op(n,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(n){const t=sp(n,this._root);return t.length<2?[]:t[t.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return sp(n,this._root).map(t=>t.value)}}function op(e,n){if(e===n.value)return n;for(const t of n.children){const r=op(e,t);if(r)return r}return null}function sp(e,n){if(e===n.value)return[n];for(const t of n.children){const r=sp(e,t);if(r.length)return r.unshift(n),r}return[]}class Xn{constructor(n,t){this.value=n,this.children=t}toString(){return`TreeNode(${this.value})`}}function lo(e){const n={};return e&&e.children.forEach(t=>n[t.value.outlet]=t),n}class eE extends Jb{constructor(n,t){super(n),this.snapshot=t,ap(this,n)}toString(){return this.snapshot.toString()}}function tE(e,n){const t=function CV(e,n){const s=new yc([],{},{},"",{},Z,n,null,{});return new rE("",new Xn(s,[]))}(0,n),r=new Gt([new Ns("",{})]),i=new Gt({}),o=new Gt({}),s=new Gt({}),a=new Gt(""),l=new Cr(r,i,s,a,o,Z,n,t.root);return l.snapshot=t.root,new eE(new Xn(l,[]),t)}class Cr{constructor(n,t,r,i,o,s,a,l){this.urlSubject=n,this.paramsSubject=t,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(ie(c=>c[xs]))??L(void 0),this.url=n,this.params=t,this.queryParams=r,this.fragment=i,this.data=o}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(ie(n=>oo(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(ie(n=>oo(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function nE(e,n="emptyOnly"){const t=e.pathFromRoot;let r=0;if("always"!==n)for(r=t.length-1;r>=1;){const i=t[r],o=t[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(o.component)break;r--}}return function DV(e){return e.reduce((n,t)=>({params:{...n.params,...t.params},data:{...n.data,...t.data},resolve:{...t.data,...n.resolve,...t.routeConfig?.data,...t._resolvedData}}),{params:{},data:{},resolve:{}})}(t.slice(r))}class yc{get title(){return this.data?.[xs]}constructor(n,t,r,i,o,s,a,l,c){this.url=n,this.params=t,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=oo(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=oo(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class rE extends Jb{constructor(n,t){super(t),this.url=n,ap(this,t)}toString(){return iE(this._root)}}function ap(e,n){n.value._routerState=e,n.children.forEach(t=>ap(e,t))}function iE(e){const n=e.children.length>0?` { ${e.children.map(iE).join(", ")} } `:"";return`${e.value}${n}`}function lp(e){if(e.snapshot){const n=e.snapshot,t=e._futureSnapshot;e.snapshot=t,Sn(n.queryParams,t.queryParams)||e.queryParamsSubject.next(t.queryParams),n.fragment!==t.fragment&&e.fragmentSubject.next(t.fragment),Sn(n.params,t.params)||e.paramsSubject.next(t.params),function LL(e,n){if(e.length!==n.length)return!1;for(let t=0;tSn(t.parameters,n[r].parameters))}(e.url,n.url);return t&&!(!e.parent!=!n.parent)&&(!e.parent||cp(e.parent,n.parent))}let up=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=Z,this.activateEvents=new _e,this.deactivateEvents=new _e,this.attachEvents=new _e,this.detachEvents=new _e,this.parentContexts=T(Bs),this.location=T(ln),this.changeDetector=T(Ul),this.environmentInjector=T(Lt),this.inputBinder=T(vc,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(t){if(t.name){const{firstChange:r,previousValue:i}=t.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new C(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new C(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new C(4012,!1);this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,r){this.activated=t,this._activatedRoute=r,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,r){if(this.isActivated)throw new C(4013,!1);this._activatedRoute=t;const i=this.location,s=t.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new wV(t,a,i.injector);this.activated=i.createComponent(s,{index:i.length,injector:l,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275dir=$({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[xt]})}return e})();class wV{constructor(n,t,r){this.route=n,this.childContexts=t,this.parent=r}get(n,t){return n===Cr?this.route:n===Bs?this.childContexts:this.parent.get(n,t)}}const vc=new P("");let oE=(()=>{class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){const{activatedRoute:r}=t,i=Qh([r.queryParams,r.params,r.data]).pipe(qt(([o,s,a],l)=>(a={...o,...s,...a},0===l?L(a):Promise.resolve(a)))).subscribe(o=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==r||null===r.component)return void this.unsubscribeFromRouteData(t);const s=function Kk(e){const n=ee(e);if(!n)return null;const t=new as(n);return{get selector(){return t.selector},get type(){return t.componentType},get inputs(){return t.inputs},get outputs(){return t.outputs},get ngContentSelectors(){return t.ngContentSelectors},get isStandalone(){return n.standalone},get isSignal(){return n.signals}}}(r.component);if(s)for(const{templateName:a}of s.inputs)t.activatedComponentRef.setInput(a,o[a]);else this.unsubscribeFromRouteData(t)});this.outletDataSubscriptions.set(t,i)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})();function $s(e,n,t){if(t&&e.shouldReuseRoute(n.value,t.value.snapshot)){const r=t.value;r._futureSnapshot=n.value;const i=function EV(e,n,t){return n.children.map(r=>{for(const i of t.children)if(e.shouldReuseRoute(r.value,i.value.snapshot))return $s(e,r,i);return $s(e,r)})}(e,n,t);return new Xn(r,i)}{if(e.shouldAttach(n.value)){const o=e.retrieve(n.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>$s(e,a)),s}}const r=function MV(e){return new Cr(new Gt(e.url),new Gt(e.params),new Gt(e.queryParams),new Gt(e.fragment),new Gt(e.data),e.outlet,e.component,e)}(n.value),i=n.children.map(o=>$s(e,o));return new Xn(r,i)}}const dp="ngNavigationCancelingError";function sE(e,n){const{redirectTo:t,navigationBehaviorOptions:r}=Zr(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=aE(!1,0,n);return i.url=t,i.navigationBehaviorOptions=r,i}function aE(e,n,t){const r=new Error("NavigationCancelingError: "+(e||""));return r[dp]=!0,r.cancellationCode=n,t&&(r.url=t),r}function lE(e){return e&&e[dp]}let cE=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=ct({type:e,selectors:[["ng-component"]],standalone:!0,features:[kl],decls:1,vars:0,template:function(r,i){1&r&&Q(0,"router-outlet")},dependencies:[up],encapsulation:2})}return e})();function fp(e){const n=e.children&&e.children.map(fp),t=n?{...e,children:n}:{...e};return!t.component&&!t.loadComponent&&(n||t.loadChildren)&&t.outlet&&t.outlet!==Z&&(t.component=cE),t}function dn(e){return e.outlet||Z}function Hs(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let n=e.parent;n;n=n.parent){const t=n.routeConfig;if(t?._loadedInjector)return t._loadedInjector;if(t?._injector)return t._injector}return null}class NV{constructor(n,t,r,i,o){this.routeReuseStrategy=n,this.futureState=t,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(n){const t=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,r,n),lp(this.futureState.root),this.activateChildRoutes(t,r,n)}deactivateChildRoutes(n,t,r){const i=lo(t);n.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(n,t,r){const i=n.value,o=t?t.value:null;if(i===o)if(i.component){const s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(n,t,s.children)}else this.deactivateChildRoutes(n,t,r);else o&&this.deactivateRouteAndItsChildren(t,r)}deactivateRouteAndItsChildren(n,t){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,t):this.deactivateRouteAndOutlet(n,t)}detachAndStoreRouteSubtree(n,t){const r=t.getContext(n.value.outlet),i=r&&n.value.component?r.children:t,o=lo(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],i);if(r&&r.outlet){const s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,t){const r=t.getContext(n.value.outlet),i=r&&n.value.component?r.children:t,o=lo(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,t,r){const i=lo(t);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new vV(o.value.snapshot))}),n.children.length&&this.forwardEvent(new mV(n.value.snapshot))}activateRoutes(n,t,r){const i=n.value,o=t?t.value:null;if(lp(i),i===o)if(i.component){const s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,t,s.children)}else this.activateChildRoutes(n,t,r);else if(i.component){const s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.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),lp(a.route.value),this.activateChildRoutes(n,null,s.children)}else{const a=Hs(i.snapshot);s.attachRef=null,s.route=i,s.injector=a,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(n,null,s.children)}}else this.activateChildRoutes(n,null,r)}}class uE{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class _c{constructor(n,t){this.component=n,this.route=t}}function RV(e,n,t){const r=e._root;return Us(r,n?n._root:null,t,[r.value])}function co(e,n){const t=Symbol(),r=n.get(e,t);return r===t?"function"!=typeof e||function tI(e){return null!==ma(e)}(e)?n.get(e):e:r}function Us(e,n,t,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=lo(n);return e.children.forEach(s=>{(function FV(e,n,t,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,s=n?n.value:null,a=t?t.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function LV(e,n,t){if("function"==typeof t)return t(e,n);switch(t){case"pathParamsChange":return!Qr(e.url,n.url);case"pathParamsOrQueryParamsChange":return!Qr(e.url,n.url)||!Sn(e.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!cp(e,n)||!Sn(e.queryParams,n.queryParams);default:return!cp(e,n)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new uE(r)):(o.data=s.data,o._resolvedData=s._resolvedData),Us(e,n,o.component?a?a.children:null:t,r,i),l&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new _c(a.outlet.component,s))}else s&&zs(n,a,i),i.canActivateChecks.push(new uE(r)),Us(e,null,o.component?a?a.children:null:t,r,i)})(s,o[s.value.outlet],t,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>zs(a,t.getContext(s),i)),i}function zs(e,n,t){const r=lo(e),i=e.value;Object.entries(r).forEach(([o,s])=>{zs(s,i.component?n?n.children.getContext(o):null:n,t)}),t.canDeactivateChecks.push(new _c(i.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,i))}function Gs(e){return"function"==typeof e}function dE(e){return e instanceof ac||"EmptyError"===e?.name}const Cc=Symbol("INITIAL_VALUE");function uo(){return qt(e=>Qh(e.map(n=>n.pipe(ro(1),function TL(...e){const n=Eo(e);return Fe((t,r)=>{(n?Zh(e,t,n):Zh(e,t)).subscribe(r)})}(Cc)))).pipe(ie(n=>{for(const t of n)if(!0!==t){if(t===Cc)return Cc;if(!1===t||t instanceof so)return t}return!0}),Kn(n=>n!==Cc),ro(1)))}function fE(e){return function rS(...e){return wg(e)}(st(n=>{if(Zr(n))throw sE(0,n)}),ie(n=>!0===n))}class Dc{constructor(n){this.segmentGroup=n||null}}class hE{constructor(n){this.urlTree=n}}function fo(e){return qr(new Dc(e))}function pE(e){return qr(new hE(e))}class rj{constructor(n,t){this.urlSerializer=n,this.urlTree=t}noMatchError(n){return new C(4002,!1)}lineralizeSegments(n,t){let r=[],i=t.root;for(;;){if(r=r.concat(i.segments),0===i.numberOfChildren)return L(r);if(i.numberOfChildren>1||!i.children[Z])return qr(new C(4e3,!1));i=i.children[Z]}}applyRedirectCommands(n,t,r){return this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),n,r)}applyRedirectCreateUrlTree(n,t,r,i){const o=this.createSegmentGroup(n,t.root,r,i);return new so(o,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(n,t){const r={};return Object.entries(n).forEach(([i,o])=>{if("string"==typeof o&&o.startsWith(":")){const a=o.substring(1);r[i]=t[a]}else r[i]=o}),r}createSegmentGroup(n,t,r,i){const o=this.createSegments(n,t.segments,r,i);let s={};return Object.entries(t.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(n,l,r,i)}),new fe(o,s)}createSegments(n,t,r,i){return t.map(o=>o.path.startsWith(":")?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,t,r){const i=r[t.path.substring(1)];if(!i)throw new C(4001,!1);return i}findOrReturn(n,t){let r=0;for(const i of t){if(i.path===n.path)return t.splice(r),i;r++}return n}}const hp={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ij(e,n,t,r,i){const o=pp(e,n,t);return o.matched?(r=function IV(e,n){return e.providers&&!e._injector&&(e._injector=jf(e.providers,n,`Route: ${e.path}`)),e._injector??n}(n,r),function ej(e,n,t,r){const i=n.canMatch;return i&&0!==i.length?L(i.map(s=>{const a=co(s,e);return vr(function UV(e){return e&&Gs(e.canMatch)}(a)?a.canMatch(n,t):e.runInContext(()=>a(n,t)))})).pipe(uo(),fE()):L(!0)}(r,n,t).pipe(ie(s=>!0===s?o:{...hp}))):L(o)}function pp(e,n,t){if(""===n.path)return"full"===n.pathMatch&&(e.hasChildren()||t.length>0)?{...hp}:{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};const i=(n.matcher||FL)(t,e,n);if(!i)return{...hp};const o={};Object.entries(i.posParams??{}).forEach(([a,l])=>{o[a]=l.path});const s=i.consumed.length>0?{...o,...i.consumed[i.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:t.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function gE(e,n,t,r){return t.length>0&&function aj(e,n,t){return t.some(r=>wc(e,n,r)&&dn(r)!==Z)}(e,t,r)?{segmentGroup:new fe(n,sj(r,new fe(t,e.children))),slicedSegments:[]}:0===t.length&&function lj(e,n,t){return t.some(r=>wc(e,n,r))}(e,t,r)?{segmentGroup:new fe(e.segments,oj(e,0,t,r,e.children)),slicedSegments:t}:{segmentGroup:new fe(e.segments,e.children),slicedSegments:t}}function oj(e,n,t,r,i){const o={};for(const s of r)if(wc(e,t,s)&&!i[dn(s)]){const a=new fe([],{});o[dn(s)]=a}return{...i,...o}}function sj(e,n){const t={};t[Z]=n;for(const r of e)if(""===r.path&&dn(r)!==Z){const i=new fe([],{});t[dn(r)]=i}return t}function wc(e,n,t){return(!(e.hasChildren()||n.length>0)||"full"!==t.pathMatch)&&""===t.path}class fj{constructor(n,t,r,i,o,s,a){this.injector=n,this.configLoader=t,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.allowRedirects=!0,this.applyRedirects=new rj(this.urlSerializer,this.urlTree)}noMatchError(n){return new C(4002,!1)}recognize(){const n=gE(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,n,Z).pipe(Yn(t=>{if(t instanceof hE)return this.allowRedirects=!1,this.urlTree=t.urlTree,this.match(t.urlTree);throw t instanceof Dc?this.noMatchError(t):t}),ie(t=>{const r=new yc([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Z,this.rootComponentType,null,{}),i=new Xn(r,t),o=new rE("",i),s=function nV(e,n,t=null,r=null){return Gb(zb(e),n,t,r)}(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(o._root),{state:o,tree:s}}))}match(n){return this.processSegmentGroup(this.injector,this.config,n.root,Z).pipe(Yn(r=>{throw r instanceof Dc?this.noMatchError(r):r}))}inheritParamsAndData(n){const t=n.value,r=nE(t,this.paramsInheritanceStrategy);t.params=Object.freeze(r.params),t.data=Object.freeze(r.data),n.children.forEach(i=>this.inheritParamsAndData(i))}processSegmentGroup(n,t,r,i){return 0===r.segments.length&&r.hasChildren()?this.processChildren(n,t,r):this.processSegment(n,t,r,r.segments,i,!0)}processChildren(n,t,r){const i=[];for(const o of Object.keys(r.children))"primary"===o?i.unshift(o):i.push(o);return Le(i).pipe(io(o=>{const s=r.children[o],a=function OV(e,n){const t=e.filter(r=>dn(r)===n);return t.push(...e.filter(r=>dn(r)!==n)),t}(t,o);return this.processSegmentGroup(n,a,s,o)}),function OL(e,n){return Fe(function PL(e,n,t,r,i){return(o,s)=>{let a=t,l=n,c=0;o.subscribe(Re(s,u=>{const d=c++;l=a?e(l,u,d):(a=!0,u),r&&s.next(l)},i&&(()=>{a&&s.next(l),s.complete()})))}}(e,n,arguments.length>=2,!0))}((o,s)=>(o.push(...s),o)),lc(null),function xL(e,n){const t=arguments.length>=2;return r=>r.pipe(e?Kn((i,o)=>e(i,o,r)):nr,Yh(1),t?lc(n):Ob(()=>new ac))}(),We(o=>{if(null===o)return fo(r);const s=mE(o);return function hj(e){e.sort((n,t)=>n.value.outlet===Z?-1:t.value.outlet===Z?1:n.value.outlet.localeCompare(t.value.outlet))}(s),L(s)}))}processSegment(n,t,r,i,o,s){return Le(t).pipe(io(a=>this.processSegmentAgainstRoute(a._injector??n,t,a,r,i,o,s).pipe(Yn(l=>{if(l instanceof Dc)return L(null);throw l}))),Wr(a=>!!a),Yn(a=>{if(dE(a))return function uj(e,n,t){return 0===n.length&&!e.children[t]}(r,i,o)?L([]):fo(r);throw a}))}processSegmentAgainstRoute(n,t,r,i,o,s,a){return function cj(e,n,t,r){return!!(dn(e)===r||r!==Z&&wc(n,t,e))&&("**"===e.path||pp(n,e,t).matched)}(r,i,o,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(n,i,r,o,s,a):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,i,t,r,o,s):fo(i):fo(i)}expandSegmentAgainstRouteUsingRedirect(n,t,r,i,o,s){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,r,i,s):this.expandRegularSegmentAgainstRouteUsingRedirect(n,t,r,i,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,t,r,i){const o=this.applyRedirects.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?pE(o):this.applyRedirects.lineralizeSegments(r,o).pipe(We(s=>{const a=new fe(s,{});return this.processSegment(n,t,a,s,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,t,r,i,o,s){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=pp(t,i,o);if(!a)return fo(t);const d=this.applyRedirects.applyRedirectCommands(l,i.redirectTo,u);return i.redirectTo.startsWith("/")?pE(d):this.applyRedirects.lineralizeSegments(i,d).pipe(We(f=>this.processSegment(n,r,t,f.concat(c),s,!1)))}matchSegmentAgainstRoute(n,t,r,i,o,s){let a;if("**"===r.path){const l=i.length>0?Nb(i).parameters:{};a=L({snapshot:new yc(i,l,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,yE(r),dn(r),r.component??r._loadedComponent??null,r,vE(r)),consumedSegments:[],remainingSegments:[]}),t.children={}}else a=ij(t,r,i,n).pipe(ie(({matched:l,consumedSegments:c,remainingSegments:u,parameters:d})=>l?{snapshot:new yc(c,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,yE(r),dn(r),r.component??r._loadedComponent??null,r,vE(r)),consumedSegments:c,remainingSegments:u}:null));return a.pipe(qt(l=>null===l?fo(t):this.getChildConfig(n=r._injector??n,r,i).pipe(qt(({routes:c})=>{const u=r._loadedInjector??n,{snapshot:d,consumedSegments:f,remainingSegments:h}=l,{segmentGroup:p,slicedSegments:g}=gE(t,f,h,c);if(0===g.length&&p.hasChildren())return this.processChildren(u,c,p).pipe(ie(w=>null===w?null:[new Xn(d,w)]));if(0===c.length&&0===g.length)return L([new Xn(d,[])]);const y=dn(r)===o;return this.processSegment(u,c,p,g,y?Z:o,!0).pipe(ie(w=>[new Xn(d,w)]))}))))}getChildConfig(n,t,r){return t.children?L({routes:t.children,injector:n}):t.loadChildren?void 0!==t._loadedRoutes?L({routes:t._loadedRoutes,injector:t._loadedInjector}):function JV(e,n,t,r){const i=n.canLoad;return void 0===i||0===i.length?L(!0):L(i.map(s=>{const a=co(s,e);return vr(function jV(e){return e&&Gs(e.canLoad)}(a)?a.canLoad(n,t):e.runInContext(()=>a(n,t)))})).pipe(uo(),fE())}(n,t,r).pipe(We(i=>i?this.configLoader.loadChildren(n,t).pipe(st(o=>{t._loadedRoutes=o.routes,t._loadedInjector=o.injector})):function nj(e){return qr(aE(!1,3))}())):L({routes:[],injector:n})}}function pj(e){const n=e.value.routeConfig;return n&&""===n.path}function mE(e){const n=[],t=new Set;for(const r of e){if(!pj(r)){n.push(r);continue}const i=n.find(o=>r.value.routeConfig===o.value.routeConfig);void 0!==i?(i.children.push(...r.children),t.add(i)):n.push(r)}for(const r of t){const i=mE(r.children);n.push(new Xn(r.value,i))}return n.filter(r=>!t.has(r))}function yE(e){return e.data||{}}function vE(e){return e.resolve||{}}function _E(e){return"string"==typeof e.title||null===e.title}function gp(e){return qt(n=>{const t=e(n);return t?Le(t).pipe(ie(()=>n)):L(n)})}const ho=new P("ROUTES");let mp=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=T(YD)}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return L(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);const r=vr(t.loadComponent()).pipe(ie(CE),st(o=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=o}),Os(()=>{this.componentLoaders.delete(t)})),i=new Pb(r,()=>new Ge).pipe(Kh());return this.componentLoaders.set(t,i),i}loadChildren(t,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return L({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const o=function Dj(e,n,t,r){return vr(e.loadChildren()).pipe(ie(CE),We(i=>i instanceof iD||Array.isArray(i)?L(i):Le(n.compileModuleAsync(i))),ie(i=>{r&&r(e);let o,s,a=!1;return Array.isArray(i)?(s=i,!0):(o=i.create(t).injector,s=o.get(ho,[],{optional:!0,self:!0}).flat()),{routes:s.map(fp),injector:o}}))}(r,this.compiler,t,this.onLoadEndListener).pipe(Os(()=>{this.childrenLoaders.delete(r)})),s=new Pb(o,()=>new Ge).pipe(Kh());return this.childrenLoaders.set(r,s),s}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function CE(e){return function wj(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let bc=(()=>{class e{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Ge,this.transitionAbortSubject=new Ge,this.configLoader=T(mp),this.environmentInjector=T(Lt),this.urlSerializer=T(Rs),this.rootContexts=T(Bs),this.inputBindingEnabled=null!==T(vc,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>L(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=i=>this.events.next(new pV(i)),this.configLoader.onLoadStartListener=i=>this.events.next(new hV(i))}complete(){this.transitions?.complete()}handleNavigationRequest(t){const r=++this.navigationId;this.transitions?.next({...this.transitions.value,...t,id:r})}setupNavigations(t,r,i){return this.transitions=new Gt({id:0,currentUrlTree:r,currentRawUrl:r,currentBrowserUrl:r,extractedUrl:t.urlHandlingStrategy.extract(r),urlAfterRedirects:t.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Vs,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Kn(o=>0!==o.id),ie(o=>({...o,extractedUrl:t.urlHandlingStrategy.extract(o.rawUrl)})),qt(o=>{this.currentTransition=o;let s=!1,a=!1;return L(o).pipe(st(l=>{this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),qt(l=>{const c=l.currentBrowserUrl.toString(),u=!t.navigated||l.extractedUrl.toString()!==c||c!==l.currentUrlTree.toString();if(!u&&"reload"!==(l.extras.onSameUrlNavigation??t.onSameUrlNavigation)){const f="";return this.events.next(new ao(l.id,this.urlSerializer.serialize(l.rawUrl),f,0)),l.resolve(null),pn}if(t.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return L(l).pipe(qt(f=>{const h=this.transitions?.getValue();return this.events.next(new gc(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),h!==this.transitions?.getValue()?pn:Promise.resolve(f)}),function gj(e,n,t,r,i,o){return We(s=>function dj(e,n,t,r,i,o,s="emptyOnly"){return new fj(e,n,t,r,i,s,o).recognize()}(e,n,t,r,s.extractedUrl,i,o).pipe(ie(({state:a,tree:l})=>({...s,targetSnapshot:a,urlAfterRedirects:l}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,t.paramsInheritanceStrategy),st(f=>{o.targetSnapshot=f.targetSnapshot,o.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:f.urlAfterRedirects};const h=new Yb(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(h)}));if(u&&t.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){const{id:f,extractedUrl:h,source:p,restoredState:g,extras:y}=l,w=new gc(f,this.urlSerializer.serialize(h),p,g);this.events.next(w);const v=tE(0,this.rootComponentType).snapshot;return this.currentTransition=o={...l,targetSnapshot:v,urlAfterRedirects:h,extras:{...y,skipLocationChange:!1,replaceUrl:!1}},L(o)}{const f="";return this.events.next(new ao(l.id,this.urlSerializer.serialize(l.extractedUrl),f,1)),l.resolve(null),pn}}),st(l=>{const c=new cV(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}),ie(l=>(this.currentTransition=o={...l,guards:RV(l.targetSnapshot,l.currentSnapshot,this.rootContexts)},o)),function GV(e,n){return We(t=>{const{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=t;return 0===s.length&&0===o.length?L({...t,guardsResult:!0}):function qV(e,n,t,r){return Le(e).pipe(We(i=>function XV(e,n,t,r,i){const o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return o&&0!==o.length?L(o.map(a=>{const l=Hs(n)??i,c=co(a,l);return vr(function HV(e){return e&&Gs(e.canDeactivate)}(c)?c.canDeactivate(e,n,t,r):l.runInContext(()=>c(e,n,t,r))).pipe(Wr())})).pipe(uo()):L(!0)}(i.component,i.route,t,n,r)),Wr(i=>!0!==i,!0))}(s,r,i,e).pipe(We(a=>a&&function VV(e){return"boolean"==typeof e}(a)?function WV(e,n,t,r){return Le(n).pipe(io(i=>Zh(function ZV(e,n){return null!==e&&n&&n(new gV(e)),L(!0)}(i.route.parent,r),function QV(e,n){return null!==e&&n&&n(new yV(e)),L(!0)}(i.route,r),function YV(e,n,t){const r=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>function kV(e){const n=e.routeConfig?e.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:e,guards:n}:null}(s)).filter(s=>null!==s).map(s=>Ab(()=>L(s.guards.map(l=>{const c=Hs(s.node)??t,u=co(l,c);return vr(function $V(e){return e&&Gs(e.canActivateChild)}(u)?u.canActivateChild(r,e):c.runInContext(()=>u(r,e))).pipe(Wr())})).pipe(uo())));return L(o).pipe(uo())}(e,i.path,t),function KV(e,n,t){const r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||0===r.length)return L(!0);const i=r.map(o=>Ab(()=>{const s=Hs(n)??t,a=co(o,s);return vr(function BV(e){return e&&Gs(e.canActivate)}(a)?a.canActivate(n,e):s.runInContext(()=>a(n,e))).pipe(Wr())}));return L(i).pipe(uo())}(e,i.route,t))),Wr(i=>!0!==i,!0))}(r,o,e,n):L(a)),ie(a=>({...t,guardsResult:a})))})}(this.environmentInjector,l=>this.events.next(l)),st(l=>{if(o.guardsResult=l.guardsResult,Zr(l.guardsResult))throw sE(0,l.guardsResult);const c=new uV(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(c)}),Kn(l=>!!l.guardsResult||(this.cancelNavigationTransition(l,"",3),!1)),gp(l=>{if(l.guards.canActivateChecks.length)return L(l).pipe(st(c=>{const u=new dV(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),qt(c=>{let u=!1;return L(c).pipe(function mj(e,n){return We(t=>{const{targetSnapshot:r,guards:{canActivateChecks:i}}=t;if(!i.length)return L(t);let o=0;return Le(i).pipe(io(s=>function yj(e,n,t,r){const i=e.routeConfig,o=e._resolve;return void 0!==i?.title&&!_E(i)&&(o[xs]=i.title),function vj(e,n,t,r){const i=function _j(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===i.length)return L({});const o={};return Le(i).pipe(We(s=>function Cj(e,n,t,r){const i=Hs(n)??r,o=co(e,i);return vr(o.resolve?o.resolve(n,t):i.runInContext(()=>o(n,t)))}(e[s],n,t,r).pipe(Wr(),st(a=>{o[s]=a}))),Yh(1),function NL(e){return ie(()=>e)}(o),Yn(s=>dE(s)?pn:qr(s)))}(o,e,n,r).pipe(ie(s=>(e._resolvedData=s,e.data=nE(e,t).resolve,i&&_E(i)&&(e.data[xs]=i.title),null)))}(s.route,r,e,n)),st(()=>o++),Yh(1),We(s=>o===i.length?L(t):pn))})}(t.paramsInheritanceStrategy,this.environmentInjector),st({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(c,"",2)}}))}),st(c=>{const u=new fV(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}))}),gp(l=>{const c=u=>{const d=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(u.routeConfig).pipe(st(f=>{u.component=f}),ie(()=>{})));for(const f of u.children)d.push(...c(f));return d};return Qh(c(l.targetSnapshot.root)).pipe(lc(),ro(1))}),gp(()=>this.afterPreactivation()),ie(l=>{const c=function bV(e,n,t){const r=$s(e,n._root,t?t._root:void 0);return new eE(r,n)}(t.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=o={...l,targetRouterState:c},o}),st(()=>{this.events.next(new rp)}),((e,n,t,r)=>ie(i=>(new NV(n,i.targetRouterState,i.currentRouterState,t,r).activate(e),i)))(this.rootContexts,t.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),ro(1),st({next:l=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new _r(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),t.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{s=!0}}),function RL(e){return Fe((n,t)=>{At(e).subscribe(Re(t,()=>t.complete(),du)),!t.closed&&n.subscribe(t)})}(this.transitionAbortSubject.pipe(st(l=>{throw l}))),Os(()=>{s||a||this.cancelNavigationTransition(o,"",1),this.currentNavigation?.id===o.id&&(this.currentNavigation=null)}),Yn(l=>{if(a=!0,lE(l))this.events.next(new js(o.id,this.urlSerializer.serialize(o.extractedUrl),l.message,l.cancellationCode)),function SV(e){return lE(e)&&Zr(e.url)}(l)?this.events.next(new ip(l.url)):o.resolve(!1);else{this.events.next(new mc(o.id,this.urlSerializer.serialize(o.extractedUrl),l,o.targetSnapshot??void 0));try{o.resolve(t.errorHandler(l))}catch(c){o.reject(c)}}return pn}))}))}cancelNavigationTransition(t,r,i){const o=new js(t.id,this.urlSerializer.serialize(t.extractedUrl),r,i);this.events.next(o),t.resolve(!1)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function DE(e){return e!==Vs}let wE=(()=>{class e{buildTitle(t){let r,i=t.root;for(;void 0!==i;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===Z);return r}getResolvedTitleForRoute(t){return t.data[xs]}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:function(){return T(bj)},providedIn:"root"})}return e})(),bj=(()=>{class e extends wE{constructor(t){super(),this.title=t}updateTitle(t){const r=this.buildTitle(t);void 0!==r&&this.title.setTitle(r)}static#e=this.\u0275fac=function(r){return new(r||e)(I(_b))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Ej=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:function(){return T(Sj)},providedIn:"root"})}return e})();class Mj{shouldDetach(n){return!1}store(n,t){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,t){return n.routeConfig===t.routeConfig}}let Sj=(()=>{class e extends Mj{static#e=this.\u0275fac=function(){let t;return function(i){return(t||(t=Je(e)))(i||e)}}();static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Ec=new P("",{providedIn:"root",factory:()=>({})});let Ij=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:function(){return T(Tj)},providedIn:"root"})}return e})(),Tj=(()=>{class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,r){return t}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var qs=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(qs||{});function bE(e,n){e.events.pipe(Kn(t=>t instanceof _r||t instanceof js||t instanceof mc||t instanceof ao),ie(t=>t instanceof _r||t instanceof ao?qs.COMPLETE:t instanceof js&&(0===t.code||1===t.code)?qs.REDIRECTING:qs.FAILED),Kn(t=>t!==qs.REDIRECTING),ro(1)).subscribe(()=>{n()})}function Aj(e){throw e}function Pj(e,n,t){return n.parse("/")}const Oj={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},xj={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ze=(()=>{class e{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.location.getState()?.\u0275routerPageId??this.currentPageId}get events(){return this._events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=T(KD),this.isNgZoneEnabled=!1,this._events=new Ge,this.options=T(Ec,{optional:!0})||{},this.pendingTasks=T(jl),this.errorHandler=this.options.errorHandler||Aj,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||Pj,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=T(Ij),this.routeReuseStrategy=T(Ej),this.titleStrategy=T(wE),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=T(ho,{optional:!0})?.flat()??[],this.navigationTransitions=T(bc),this.urlSerializer=T(Rs),this.location=T(Ch),this.componentInputBindingEnabled=!!T(vc,{optional:!0}),this.eventsSubscription=new Tt,this.isNgZoneEnabled=T(le)instanceof le&&le.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new so,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=tE(0,null),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe(t=>{this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId},t=>{this.console.warn(`Unhandled Navigation Error: ${t}`)}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const t=this.navigationTransitions.events.subscribe(r=>{try{const{currentTransition:i}=this.navigationTransitions;if(null===i)return void(EE(r)&&this._events.next(r));if(r instanceof gc)DE(i.source)&&(this.browserUrlTree=i.extractedUrl);else if(r instanceof ao)this.rawUrlTree=i.rawUrl;else if(r instanceof Yb){if("eager"===this.urlUpdateStrategy){if(!i.extras.skipLocationChange){const o=this.urlHandlingStrategy.merge(i.urlAfterRedirects,i.rawUrl);this.setBrowserUrl(o,i)}this.browserUrlTree=i.urlAfterRedirects}}else if(r instanceof rp)this.currentUrlTree=i.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(i.urlAfterRedirects,i.rawUrl),this.routerState=i.targetRouterState,"deferred"===this.urlUpdateStrategy&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i),this.browserUrlTree=i.urlAfterRedirects);else if(r instanceof js)0!==r.code&&1!==r.code&&(this.navigated=!0),(3===r.code||2===r.code)&&this.restoreHistory(i);else if(r instanceof ip){const o=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),s={skipLocationChange:i.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||DE(i.source)};this.scheduleNavigation(o,Vs,null,s,{resolve:i.resolve,reject:i.reject,promise:i.promise})}r instanceof mc&&this.restoreHistory(i,!0),r instanceof _r&&(this.navigated=!0),EE(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const t=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Vs,t)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const r="popstate"===t.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{this.navigateToSyncWithBrowser(t.url,r,t.state)},0)}))}navigateToSyncWithBrowser(t,r,i){const o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){const l={...i};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(o.state=l)}const a=this.parseUrl(t);this.scheduleNavigation(a,r,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(fp),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,this.eventsSubscription.unsubscribe()}createUrlTree(t,r={}){const{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=r,c=l?this.currentUrlTree.fragment:s;let d,u=null;switch(a){case"merge":u={...this.currentUrlTree.queryParams,...o};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=o||null}null!==u&&(u=this.removeEmptyProps(u));try{d=zb(i?i.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof t[0]||!t[0].startsWith("/"))&&(t=[]),d=this.currentUrlTree.root}return Gb(d,t,u,c??null)}navigateByUrl(t,r={skipLocationChange:!1}){const i=Zr(t)?t:this.parseUrl(t),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Vs,null,r)}navigate(t,r={skipLocationChange:!1}){return function Nj(e){for(let n=0;n{const o=t[i];return null!=o&&(r[i]=o),r},{})}scheduleNavigation(t,r,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c;s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((d,f)=>{a=d,l=f});const u=this.pendingTasks.add();return bE(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,currentBrowserUrl:this.browserUrlTree,rawUrl:t,extras:o,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(d=>Promise.reject(d))}setBrowserUrl(t,r){const i=this.urlSerializer.serialize(t);if(this.location.isCurrentPathEqualTo(i)||r.extras.replaceUrl){const s={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId)};this.location.replaceState(i,"",s)}else{const o={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId+1)};this.location.go(i,"",o)}}restoreHistory(t,r=!1){if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-this.browserPageId;0!==o?this.location.historyGo(o):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===o&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,r){return"computed"===this.canceledNavigationResolution?{navigationId:t,\u0275routerPageId:r}:{navigationId:t}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function EE(e){return!(e instanceof rp||e instanceof ip)}let Kr=(()=>{class e{constructor(t,r,i,o,s,a){this.router=t,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=a,this.href=null,this.commands=null,this.onChanges=new Ge,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=t.events.subscribe(c=>{c instanceof _r&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(t){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(t){null!=t?(this.commands=Array.isArray(t)?t:[t],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(t,r,i,o,s){return!!(null===this.urlTree||this.isAnchorElement&&(0!==t||r||i||o||s||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const t=null===this.href?null:function lv(e,n,t){return function fP(e,n){return"src"===n&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===n&&("base"===e||"link"===e)?av:dr}(n,t)(e)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",t)}applyAttributeValue(t,r){const i=this.renderer,o=this.el.nativeElement;null!==r?i.setAttribute(o,t,r):i.removeAttribute(o,t)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static#e=this.\u0275fac=function(r){return new(r||e)(D(ze),D(Cr),function Va(e){return function AT(e,n){if("class"===n)return e.classes;if("style"===n)return e.styles;const t=e.attrs;if(t){const r=t.length;let i=0;for(;i{class e{constructor(t,r,i,o,s){this.router=t,this.injector=i,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(Kn(t=>t instanceof _r),io(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,r){const i=[];for(const o of r){o.providers&&!o._injector&&(o._injector=jf(o.providers,t,`Route: ${o.path}`));const s=o._injector??t,a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(a,o.children??o._loadedRoutes))}return Le(i).pipe(si())}preloadConfig(t,r){return this.preloadingStrategy.preload(r,()=>{let i;i=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(t,r):L(null);const o=i.pipe(We(s=>null===s?L(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??t,s.routes))));return r.loadComponent&&!r._loadedComponent?Le([o,this.loader.loadComponent(r)]).pipe(si()):o})}static#e=this.\u0275fac=function(r){return new(r||e)(I(ze),I(YD),I(Lt),I(ME),I(mp))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const yp=new P("");let SE=(()=>{class e{constructor(t,r,i,o,s={}){this.urlSerializer=t,this.transitions=r,this.viewportScroller=i,this.zone=o,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(t=>{t instanceof gc?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof _r?(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment)):t instanceof ao&&0===t.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof Xb&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Xb(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(r){!function Zv(){throw new Error("invalid")}()};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})();function Jn(e,n){return{\u0275kind:e,\u0275providers:n}}function TE(){const e=T(it);return n=>{const t=e.get(qn);if(n!==t.components[0])return;const r=e.get(ze),i=e.get(AE);1===e.get(vp)&&r.initialNavigation(),e.get(PE,null,X.Optional)?.setUpPreloading(),e.get(yp,null,X.Optional)?.init(),r.resetRootComponentType(t.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}const AE=new P("",{factory:()=>new Ge}),vp=new P("",{providedIn:"root",factory:()=>1}),PE=new P("");function Bj(e){return Jn(0,[{provide:PE,useExisting:Fj},{provide:ME,useExisting:e}])}const OE=new P("ROUTER_FORROOT_GUARD"),Hj=[Ch,{provide:Rs,useClass:Xh},ze,Bs,{provide:Cr,useFactory:function IE(e){return e.routerState.root},deps:[ze]},mp,[]];function Uj(){return new iw("Router",ze)}let xE=(()=>{class e{constructor(t){}static forRoot(t,r){return{ngModule:e,providers:[Hj,[],{provide:ho,multi:!0,useValue:t},{provide:OE,useFactory:Wj,deps:[[ze,new $a,new Ha]]},{provide:Ec,useValue:r||{}},r?.useHash?{provide:gr,useClass:Fw}:{provide:gr,useClass:kw},{provide:yp,useFactory:()=>{const e=T(_2),n=T(le),t=T(Ec),r=T(bc),i=T(Rs);return t.scrollOffset&&e.setOffset(t.scrollOffset),new SE(i,r,e,n,t)}},r?.preloadingStrategy?Bj(r.preloadingStrategy).\u0275providers:[],{provide:iw,multi:!0,useFactory:Uj},r?.initialNavigation?Qj(r):[],r?.bindToComponentInputs?Jn(8,[oE,{provide:vc,useExisting:oE}]).\u0275providers:[],[{provide:NE,useFactory:TE},{provide:uh,multi:!0,useExisting:NE}]]}}static forChild(t){return{ngModule:e,providers:[{provide:ho,multi:!0,useValue:t}]}}static#e=this.\u0275fac=function(r){return new(r||e)(I(OE,8))};static#t=this.\u0275mod=tt({type:e});static#n=this.\u0275inj=Qe({})}return e})();function Wj(e){return"guarded"}function Qj(e){return["disabled"===e.initialNavigation?Jn(3,[{provide:nh,multi:!0,useFactory:()=>{const n=T(ze);return()=>{n.setUpLocationChangeListener()}}},{provide:vp,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?Jn(2,[{provide:vp,useValue:0},{provide:nh,multi:!0,deps:[it],useFactory:n=>{const t=n.get(Jk,Promise.resolve());return()=>t.then(()=>new Promise(r=>{const i=n.get(ze),o=n.get(AE);bE(i,()=>{r(!0)}),n.get(bc).afterPreactivation=()=>(r(!0),o.closed?L(void 0):o),i.initialNavigation()}))}}]).\u0275providers:[]]}const NE=new P("");let RE=(()=>{class e{constructor(t,r){this._renderer=t,this._elementRef=r,this.onChange=i=>{},this.onTouched=()=>{}}setProperty(t,r){this._renderer.setProperty(this._elementRef.nativeElement,t,r)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}static#e=this.\u0275fac=function(r){return new(r||e)(D(jn),D(Vt))};static#t=this.\u0275dir=$({type:e})}return e})(),Yr=(()=>{class e extends RE{static#e=this.\u0275fac=function(){let t;return function(i){return(t||(t=Je(e)))(i||e)}}();static#t=this.\u0275dir=$({type:e,features:[de]})}return e})();const Tn=new P("NgValueAccessor"),Xj={provide:Tn,useExisting:me(()=>Dr),multi:!0},eB=new P("CompositionEventMode");let Dr=(()=>{class e extends RE{constructor(t,r,i){super(t,r),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function Jj(){const e=pr()?pr().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(t){this.setProperty("value",t??"")}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}static#e=this.\u0275fac=function(r){return new(r||e)(D(jn),D(Vt),D(eB,8))};static#t=this.\u0275dir=$({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(r,i){1&r&&Y("input",function(s){return i._handleInput(s.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(s){return i._compositionEnd(s.target.value)})},features:[Ee([Xj]),de]})}return e})();function wr(e){return null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}function FE(e){return null!=e&&"number"==typeof e.length}const at=new P("NgValidators"),br=new P("NgAsyncValidators"),tB=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class LE{static min(n){return function VE(e){return n=>{if(wr(n.value)||wr(e))return null;const t=parseFloat(n.value);return!isNaN(t)&&t{if(wr(n.value)||wr(e))return null;const t=parseFloat(n.value);return!isNaN(t)&&t>e?{max:{max:e,actual:n.value}}:null}}(n)}static required(n){return function BE(e){return wr(e.value)?{required:!0}:null}(n)}static requiredTrue(n){return function $E(e){return!0===e.value?null:{required:!0}}(n)}static email(n){return function HE(e){return wr(e.value)||tB.test(e.value)?null:{email:!0}}(n)}static minLength(n){return function UE(e){return n=>wr(n.value)||!FE(n.value)?null:n.value.lengthFE(n.value)&&n.value.length>e?{maxlength:{requiredLength:e,actualLength:n.value.length}}:null}(n)}static pattern(n){return function GE(e){if(!e)return Mc;let n,t;return"string"==typeof e?(t="","^"!==e.charAt(0)&&(t+="^"),t+=e,"$"!==e.charAt(e.length-1)&&(t+="$"),n=new RegExp(t)):(t=e.toString(),n=e),r=>{if(wr(r.value))return null;const i=r.value;return n.test(i)?null:{pattern:{requiredPattern:t,actualValue:i}}}}(n)}static nullValidator(n){return null}static compose(n){return YE(n)}static composeAsync(n){return XE(n)}}function Mc(e){return null}function qE(e){return null!=e}function WE(e){return ps(e)?Le(e):e}function QE(e){let n={};return e.forEach(t=>{n=null!=t?{...n,...t}:n}),0===Object.keys(n).length?null:n}function ZE(e,n){return n.map(t=>t(e))}function KE(e){return e.map(n=>function nB(e){return!e.validate}(n)?n:t=>n.validate(t))}function YE(e){if(!e)return null;const n=e.filter(qE);return 0==n.length?null:function(t){return QE(ZE(t,n))}}function _p(e){return null!=e?YE(KE(e)):null}function XE(e){if(!e)return null;const n=e.filter(qE);return 0==n.length?null:function(t){return function Kj(...e){const n=Bg(e),{args:t,keys:r}=Mb(e),i=new Ae(o=>{const{length:s}=t;if(!s)return void o.complete();const a=new Array(s);let l=s,c=s;for(let u=0;u{d||(d=!0,c--),a[u]=f},()=>l--,void 0,()=>{(!l||!d)&&(c||o.next(r?Ib(r,a):a),o.complete())}))}});return n?i.pipe(Sb(n)):i}(ZE(t,n).map(WE)).pipe(ie(QE))}}function Cp(e){return null!=e?XE(KE(e)):null}function JE(e,n){return null===e?[n]:Array.isArray(e)?[...e,n]:[e,n]}function eM(e){return e._rawValidators}function tM(e){return e._rawAsyncValidators}function Dp(e){return e?Array.isArray(e)?e:[e]:[]}function Sc(e,n){return Array.isArray(e)?e.includes(n):e===n}function nM(e,n){const t=Dp(n);return Dp(e).forEach(i=>{Sc(t,i)||t.push(i)}),t}function rM(e,n){return Dp(n).filter(t=>!Sc(e,t))}class iM{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=_p(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=Cp(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,t){return!!this.control&&this.control.hasError(n,t)}getError(n,t){return this.control?this.control.getError(n,t):null}}class Ct extends iM{get formDirective(){return null}get path(){return null}}class Er extends iM{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class oM{constructor(n){this._cd=n}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 po=(()=>{class e extends oM{constructor(t){super(t)}static#e=this.\u0275fac=function(r){return new(r||e)(D(Er,2))};static#t=this.\u0275dir=$({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,i){2&r&&gs("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[de]})}return e})(),wp=(()=>{class e extends oM{constructor(t){super(t)}static#e=this.\u0275fac=function(r){return new(r||e)(D(Ct,10))};static#t=this.\u0275dir=$({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,i){2&r&&gs("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},features:[de]})}return e})();const Ws="VALID",Tc="INVALID",go="PENDING",Qs="DISABLED";function Mp(e){return(Ac(e)?e.validators:e)||null}function Sp(e,n){return(Ac(n)?n.asyncValidators:e)||null}function Ac(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function aM(e,n,t){const r=e.controls;if(!(n?Object.keys(r):r).length)throw new C(1e3,"");if(!r[t])throw new C(1001,"")}function lM(e,n,t){e._forEachChild((r,i)=>{if(void 0===t[i])throw new C(1002,"")})}class Pc{constructor(n,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===Ws}get invalid(){return this.status===Tc}get pending(){return this.status==go}get disabled(){return this.status===Qs}get enabled(){return this.status!==Qs}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(nM(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(nM(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(rM(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(rM(n,this._rawAsyncValidators))}hasValidator(n){return Sc(this._rawValidators,n)}hasAsyncValidator(n){return Sc(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=go,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=Qs,this.errors=null,this._forEachChild(r=>{r.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:t}),this._onDisabledChange.forEach(r=>r(!0))}enable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=Ws,this._forEachChild(r=>{r.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:t}),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ws||this.status===go)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Qs:Ws}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=go,this._hasOwnPendingAsyncValidator=!0;const t=WE(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,t={}){this.errors=n,this._updateControlsErrors(!1!==t.emitEvent)}get(n){let t=n;return null==t||(Array.isArray(t)||(t=t.split(".")),0===t.length)?null:t.reduce((r,i)=>r&&r._find(i),this)}getError(n,t){const r=t?this.get(t):this;return r&&r.errors?r.errors[n]:null}hasError(n,t){return!!this.getError(n,t)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new _e,this.statusChanges=new _e}_calculateStatus(){return this._allControlsDisabled()?Qs:this.errors?Tc:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(go)?go:this._anyControlsHaveStatus(Tc)?Tc:Ws}_anyControlsHaveStatus(n){return this._anyControls(t=>t.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){Ac(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function sB(e){return Array.isArray(e)?_p(e):e||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function aB(e){return Array.isArray(e)?Cp(e):e||null}(this._rawAsyncValidators)}}class mo extends Pc{constructor(n,t,r){super(Mp(t),Sp(r,t)),this.controls=n,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,t){return this.controls[n]?this.controls[n]:(this.controls[n]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(n,t,r={}){this.registerControl(n,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(n,t={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(n,t,r={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],t&&this.registerControl(n,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,t={}){lM(this,0,n),Object.keys(n).forEach(r=>{aM(this,!0,r),this.controls[r].setValue(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(Object.keys(n).forEach(r=>{const i=this.controls[r];i&&i.patchValue(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n={},t={}){this._forEachChild((r,i)=>{r.reset(n?n[i]:null,{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(n,t,r)=>(n[r]=t.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(t,r)=>!!r._syncPendingControls()||t);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(t=>{const r=this.controls[t];r&&n(r,t)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[t,r]of Object.entries(this.controls))if(this.contains(t)&&n(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(t,r,i)=>((r.enabled||this.disabled)&&(t[i]=r.value),t))}_reduceChildren(n,t){let r=n;return this._forEachChild((i,o)=>{r=t(r,i,o)}),r}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}class cM extends mo{}const Xr=new P("CallSetDisabledState",{providedIn:"root",factory:()=>Zs}),Zs="always";function Oc(e,n){return[...n.path,e]}function Ks(e,n,t=Zs){Ip(e,n),n.valueAccessor.writeValue(e.value),(e.disabled||"always"===t)&&n.valueAccessor.setDisabledState?.(e.disabled),function cB(e,n){n.valueAccessor.registerOnChange(t=>{e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&uM(e,n)})}(e,n),function dB(e,n){const t=(r,i)=>{n.valueAccessor.writeValue(r),i&&n.viewToModelUpdate(r)};e.registerOnChange(t),n._registerOnDestroy(()=>{e._unregisterOnChange(t)})}(e,n),function uB(e,n){n.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&uM(e,n),"submit"!==e.updateOn&&e.markAsTouched()})}(e,n),function lB(e,n){if(n.valueAccessor.setDisabledState){const t=r=>{n.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(t),n._registerOnDestroy(()=>{e._unregisterOnDisabledChange(t)})}}(e,n)}function xc(e,n,t=!0){const r=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(r),n.valueAccessor.registerOnTouched(r)),Rc(e,n),e&&(n._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function Nc(e,n){e.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(n)})}function Ip(e,n){const t=eM(e);null!==n.validator?e.setValidators(JE(t,n.validator)):"function"==typeof t&&e.setValidators([t]);const r=tM(e);null!==n.asyncValidator?e.setAsyncValidators(JE(r,n.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const i=()=>e.updateValueAndValidity();Nc(n._rawValidators,i),Nc(n._rawAsyncValidators,i)}function Rc(e,n){let t=!1;if(null!==e){if(null!==n.validator){const i=eM(e);if(Array.isArray(i)&&i.length>0){const o=i.filter(s=>s!==n.validator);o.length!==i.length&&(t=!0,e.setValidators(o))}}if(null!==n.asyncValidator){const i=tM(e);if(Array.isArray(i)&&i.length>0){const o=i.filter(s=>s!==n.asyncValidator);o.length!==i.length&&(t=!0,e.setAsyncValidators(o))}}}const r=()=>{};return Nc(n._rawValidators,r),Nc(n._rawAsyncValidators,r),t}function uM(e,n){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function dM(e,n){Ip(e,n)}function Ap(e,n){if(!e.hasOwnProperty("model"))return!1;const t=e.model;return!!t.isFirstChange()||!Object.is(n,t.currentValue)}function fM(e,n){e._syncPendingControls(),n.forEach(t=>{const r=t.control;"submit"===r.updateOn&&r._pendingChange&&(t.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}function Pp(e,n){if(!n)return null;let t,r,i;return Array.isArray(n),n.forEach(o=>{o.constructor===Dr?t=o:function pB(e){return Object.getPrototypeOf(e.constructor)===Yr}(o)?r=o:i=o}),i||r||t||null}const mB={provide:Ct,useExisting:me(()=>kc)},Ys=(()=>Promise.resolve())();let kc=(()=>{class e extends Ct{constructor(t,r,i){super(),this.callSetDisabledState=i,this.submitted=!1,this._directives=new Set,this.ngSubmit=new _e,this.form=new mo({},_p(t),Cp(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Ys.then(()=>{const r=this._findContainer(t.path);t.control=r.registerControl(t.name,t.control),Ks(t.control,t,this.callSetDisabledState),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){Ys.then(()=>{const r=this._findContainer(t.path);r&&r.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){Ys.then(()=>{const r=this._findContainer(t.path),i=new mo({});dM(i,t),r.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Ys.then(()=>{const r=this._findContainer(t.path);r&&r.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,r){Ys.then(()=>{this.form.get(t.path).setValue(r)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,fM(this.form,this._directives),this.ngSubmit.emit(t),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}static#e=this.\u0275fac=function(r){return new(r||e)(D(at,10),D(br,10),D(Xr,8))};static#t=this.\u0275dir=$({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(r,i){1&r&&Y("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ee([mB]),de]})}return e})();function hM(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function pM(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const Xs=class extends Pc{constructor(n=null,t,r){super(Mp(t),Sp(r,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Ac(t)&&(t.nonNullable||t.initialValueIsDefault)&&(this.defaultValue=pM(n)?n.value:n)}setValue(n,t={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(n,t={}){this.setValue(n,t)}reset(n=this.defaultValue,t={}){this._applyFormState(n),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){hM(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){hM(this._onDisabledChange,n)}_forEachChild(n){}_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(n){pM(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}},_B={provide:Er,useExisting:me(()=>yo)},yM=(()=>Promise.resolve())();let yo=(()=>{class e extends Er{constructor(t,r,i,o,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new Xs,this._registered=!1,this.name="",this.update=new _e,this._parent=t,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=Pp(0,o)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){const r=t.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),Ap(t,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(t){this.viewModel=t,this.update.emit(t)}_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(){Ks(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(t){yM.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){const r=t.isDisabled.currentValue,i=0!==r&&eo(r);yM.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?Oc(t,this._parent):[t]}static#e=this.\u0275fac=function(r){return new(r||e)(D(Ct,9),D(at,10),D(br,10),D(Tn,10),D(Ul,8),D(Xr,8))};static#t=this.\u0275dir=$({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:[Ee([_B]),de,xt]})}return e})(),Op=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275dir=$({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return e})();const CB={provide:Tn,useExisting:me(()=>Fc),multi:!0};let Fc=(()=>{class e extends Yr{writeValue(t){this.setProperty("value",t??"")}registerOnChange(t){this.onChange=r=>{t(""==r?null:parseFloat(r))}}static#e=this.\u0275fac=function(){let t;return function(i){return(t||(t=Je(e)))(i||e)}}();static#t=this.\u0275dir=$({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(r,i){1&r&&Y("input",function(s){return i.onChange(s.target.value)})("blur",function(){return i.onTouched()})},features:[Ee([CB]),de]})}return e})();const DB={provide:Tn,useExisting:me(()=>xp),multi:!0};let vM=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=tt({type:e});static#n=this.\u0275inj=Qe({})}return e})(),wB=(()=>{class e{constructor(){this._accessors=[]}add(t,r){this._accessors.push([t,r])}remove(t){for(let r=this._accessors.length-1;r>=0;--r)if(this._accessors[r][1]===t)return void this._accessors.splice(r,1)}select(t){this._accessors.forEach(r=>{this._isSameGroup(r,t)&&r[1]!==t&&r[1].fireUncheck(t.value)})}_isSameGroup(t,r){return!!t[0].control&&t[0]._parent===r._control._parent&&t[1].name===r.name}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:vM})}return e})(),xp=(()=>{class e extends Yr{constructor(t,r,i,o){super(t,r),this._registry=i,this._injector=o,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=T(Xr,{optional:!0})??Zs}ngOnInit(){this._control=this._injector.get(Er),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this.setProperty("checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}setDisabledState(t){(this.setDisabledStateFired||t||"whenDisabledForLegacyCode"===this.callSetDisabledState)&&this.setProperty("disabled",t),this.setDisabledStateFired=!0}fireUncheck(t){this.writeValue(t)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}static#e=this.\u0275fac=function(r){return new(r||e)(D(jn),D(Vt),D(wB),D(it))};static#t=this.\u0275dir=$({type:e,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(r,i){1&r&&Y("change",function(){return i.onChange()})("blur",function(){return i.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[Ee([DB]),de]})}return e})();const Np=new P("NgModelWithFormControlWarning"),MB={provide:Ct,useExisting:me(()=>Lc)};let Lc=(()=>{class e extends Ct{constructor(t,r,i){super(),this.callSetDisabledState=i,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new _e,this._setValidators(t),this._setAsyncValidators(r)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Rc(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const r=this.form.get(t.path);return Ks(r,t,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),r}getControl(t){return this.form.get(t.path)}removeControl(t){xc(t.control||null,t,!1),function gB(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,r){this.form.get(t.path).setValue(r)}onSubmit(t){return this.submitted=!0,fM(this.form,this.directives),this.ngSubmit.emit(t),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const r=t.control,i=this.form.get(t.path);r!==i&&(xc(r||null,t),(e=>e instanceof Xs)(i)&&(Ks(i,t,this.callSetDisabledState),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const r=this.form.get(t.path);dM(r,t),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const r=this.form.get(t.path);r&&function fB(e,n){return Rc(e,n)}(r,t)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Ip(this.form,this),this._oldForm&&Rc(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(r){return new(r||e)(D(at,10),D(br,10),D(Xr,8))};static#t=this.\u0275dir=$({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,i){1&r&&Y("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ee([MB]),de,xt]})}return e})();const TB={provide:Er,useExisting:me(()=>Fp)};let Fp=(()=>{class e extends Er{set isDisabled(t){}static#e=this._ngModelWarningSentOnce=!1;constructor(t,r,i,o,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.name=null,this.update=new _e,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=Pp(0,o)}ngOnChanges(t){this._added||this._setUpControl(),Ap(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return Oc(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static#t=this.\u0275fac=function(r){return new(r||e)(D(Ct,13),D(at,10),D(br,10),D(Tn,10),D(Np,8))};static#n=this.\u0275dir=$({type:e,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[Ee([TB]),de,xt]})}return e})(),NM=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=tt({type:e});static#n=this.\u0275inj=Qe({imports:[vM]})}return e})();class RM extends Pc{constructor(n,t,r){super(Mp(t),Sp(r,t)),this.controls=n,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,t={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(n,t,r={}){this.controls.splice(n,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(n,t={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(n,t,r={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),t&&(this.controls.splice(i,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,t={}){lM(this,0,n),n.forEach((r,i)=>{aM(this,!1,i),this.at(i).setValue(r,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(n.forEach((r,i)=>{this.at(i)&&this.at(i).patchValue(r,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n=[],t={}){this._forEachChild((r,i)=>{r.reset(n[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((t,r)=>!!r._syncPendingControls()||t,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((t,r)=>{n(t,r)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(t=>t.enabled&&n(t))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}}function kM(e){return!!e&&(void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn)}let UB=(()=>{class e{constructor(){this.useNonNullable=!1}get nonNullable(){const t=new e;return t.useNonNullable=!0,t}group(t,r=null){const i=this._reduceControls(t);let o={};return kM(r)?o=r:null!==r&&(o.validators=r.validator,o.asyncValidators=r.asyncValidator),new mo(i,o)}record(t,r=null){const i=this._reduceControls(t);return new cM(i,r)}control(t,r,i){let o={};return this.useNonNullable?(kM(r)?o=r:(o.validators=r,o.asyncValidators=i),new Xs(t,{...o,nonNullable:!0})):new Xs(t,r,i)}array(t,r,i){const o=t.map(s=>this._createControl(s));return new RM(o,r,i)}_reduceControls(t){const r={};return Object.keys(t).forEach(i=>{r[i]=this._createControl(t[i])}),r}_createControl(t){return t instanceof Xs||t instanceof Pc?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),FM=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:Xr,useValue:t.callSetDisabledState??Zs}]}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=tt({type:e});static#n=this.\u0275inj=Qe({imports:[NM]})}return e})(),Vc=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:Np,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:Xr,useValue:t.callSetDisabledState??Zs}]}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=tt({type:e});static#n=this.\u0275inj=Qe({imports:[NM]})}return e})();class jc{}class Bc{}class An{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?"string"==typeof n?this.lazyInit=()=>{this.headers=new Map,n.split("\n").forEach(t=>{const r=t.indexOf(":");if(r>0){const i=t.slice(0,r),o=i.toLowerCase(),s=t.slice(r+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((t,r)=>{this.setHeaderEntries(r,t)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([t,r])=>{this.setHeaderEntries(t,r)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const t=this.headers.get(n.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,t){return this.clone({name:n,value:t,op:"a"})}set(n,t){return this.clone({name:n,value:t,op:"s"})}delete(n,t){return this.clone({name:n,value:t,op:"d"})}maybeSetNormalizedName(n,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,n)}init(){this.lazyInit&&(this.lazyInit instanceof An?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(t=>{this.headers.set(t,n.headers.get(t)),this.normalizedNames.set(t,n.normalizedNames.get(t))})}clone(n){const t=new An;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof An?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([n]),t}applyUpdate(n){const t=n.name.toLowerCase();switch(n.op){case"a":case"s":let r=n.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(n.name,t);const i=("a"===n.op?this.headers.get(t):void 0)||[];i.push(...r),this.headers.set(t,i);break;case"d":const o=n.value;if(o){let s=this.headers.get(t);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,s)}else this.headers.delete(t),this.normalizedNames.delete(t)}}setHeaderEntries(n,t){const r=(Array.isArray(t)?t:[t]).map(o=>o.toString()),i=n.toLowerCase();this.headers.set(i,r),this.maybeSetNormalizedName(n,i)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>n(this.normalizedNames.get(t),this.headers.get(t)))}}class zB{encodeKey(n){return LM(n)}encodeValue(n){return LM(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const qB=/%(\d[a-f0-9])/gi,WB={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function LM(e){return encodeURIComponent(e).replace(qB,(n,t)=>WB[t]??n)}function $c(e){return`${e}`}class Mr{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new zB,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function GB(e,n){const t=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(i=>{const o=i.indexOf("="),[s,a]=-1==o?[n.decodeKey(i),""]:[n.decodeKey(i.slice(0,o)),n.decodeValue(i.slice(o+1))],l=t.get(s)||[];l.push(a),t.set(s,l)}),t}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(t=>{const r=n.fromObject[t],i=Array.isArray(r)?r.map($c):[$c(r)];this.map.set(t,i)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const t=this.map.get(n);return t?t[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,t){return this.clone({param:n,value:t,op:"a"})}appendAll(n){const t=[];return Object.keys(n).forEach(r=>{const i=n[r];Array.isArray(i)?i.forEach(o=>{t.push({param:r,value:o,op:"a"})}):t.push({param:r,value:i,op:"a"})}),this.clone(t)}set(n,t){return this.clone({param:n,value:t,op:"s"})}delete(n,t){return this.clone({param:n,value:t,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const t=this.encoder.encodeKey(n);return this.map.get(n).map(r=>t+"="+this.encoder.encodeValue(r)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const t=new Mr({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(n),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const t=("a"===n.op?this.map.get(n.param):void 0)||[];t.push($c(n.value)),this.map.set(n.param,t);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let r=this.map.get(n.param)||[];const i=r.indexOf($c(n.value));-1!==i&&r.splice(i,1),r.length>0?this.map.set(n.param,r):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class QB{constructor(){this.map=new Map}set(n,t){return this.map.set(n,t),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function VM(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function jM(e){return typeof Blob<"u"&&e instanceof Blob}function BM(e){return typeof FormData<"u"&&e instanceof FormData}class Js{constructor(n,t,r,i){let o;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function ZB(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==r?r:null,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new An),this.context||(this.context=new QB),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=t;else{const a=t.indexOf("?");this.urlWithParams=t+(-1===a?"?":ad.set(f,n.setHeaders[f]),l)),n.setParams&&(c=Object.keys(n.setParams).reduce((d,f)=>d.set(f,n.setParams[f]),c)),new Js(t,r,o,{params:c,headers:l,context:u,reportProgress:a,responseType:i,withCredentials:s})}}var vo=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(vo||{});class Bp{constructor(n,t=200,r="OK"){this.headers=n.headers||new An,this.status=void 0!==n.status?n.status:t,this.statusText=n.statusText||r,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class $p extends Bp{constructor(n={}){super(n),this.type=vo.ResponseHeader}clone(n={}){return new $p({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class _o extends Bp{constructor(n={}){super(n),this.type=vo.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new _o({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class $M extends Bp{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function Hp(e,n){return{body:n,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let Hc=(()=>{class e{constructor(t){this.handler=t}request(t,r,i={}){let o;if(t instanceof Js)o=t;else{let l,c;l=i.headers instanceof An?i.headers:new An(i.headers),i.params&&(c=i.params instanceof Mr?i.params:new Mr({fromObject:i.params})),o=new Js(t,r,void 0!==i.body?i.body:null,{headers:l,context:i.context,params:c,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const s=L(o).pipe(io(l=>this.handler.handle(l)));if(t instanceof Js||"events"===i.observe)return s;const a=s.pipe(Kn(l=>l instanceof _o));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(ie(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(ie(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(ie(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(ie(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(t,r={}){return this.request("DELETE",t,r)}get(t,r={}){return this.request("GET",t,r)}head(t,r={}){return this.request("HEAD",t,r)}jsonp(t,r){return this.request("JSONP",t,{params:(new Mr).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,r={}){return this.request("OPTIONS",t,r)}patch(t,r,i={}){return this.request("PATCH",t,Hp(i,r))}post(t,r,i={}){return this.request("POST",t,Hp(i,r))}put(t,r,i={}){return this.request("PUT",t,Hp(i,r))}static#e=this.\u0275fac=function(r){return new(r||e)(I(jc))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})();function zM(e,n){return n(e)}function XB(e,n){return(t,r)=>n.intercept(t,{handle:i=>e(i,r)})}const GM=new P(""),ea=new P(""),qM=new P("");function e$(){let e=null;return(n,t)=>{null===e&&(e=(T(GM,{optional:!0})??[]).reduceRight(XB,zM));const r=T(jl),i=r.add();return e(n,t).pipe(Os(()=>r.remove(i)))}}let WM=(()=>{class e extends jc{constructor(t,r){super(),this.backend=t,this.injector=r,this.chain=null,this.pendingTasks=T(jl)}handle(t){if(null===this.chain){const i=Array.from(new Set([...this.injector.get(ea),...this.injector.get(qM,[])]));this.chain=i.reduceRight((o,s)=>function JB(e,n,t){return(r,i)=>t.runInContext(()=>n(r,o=>e(o,i)))}(o,s,this.injector),zM)}const r=this.pendingTasks.add();return this.chain(t,i=>this.backend.handle(i)).pipe(Os(()=>this.pendingTasks.remove(r)))}static#e=this.\u0275fac=function(r){return new(r||e)(I(Bc),I(Lt))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})();const i$=/^\)\]\}',?\n/;let ZM=(()=>{class e{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new C(-2800,!1);const r=this.xhrFactory;return(r.\u0275loadImpl?Le(r.\u0275loadImpl()):L(null)).pipe(qt(()=>new Ae(o=>{const s=r.build();if(s.open(t.method,t.urlWithParams),t.withCredentials&&(s.withCredentials=!0),t.headers.forEach((g,y)=>s.setRequestHeader(g,y.join(","))),t.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const g=t.detectContentTypeHeader();null!==g&&s.setRequestHeader("Content-Type",g)}if(t.responseType){const g=t.responseType.toLowerCase();s.responseType="json"!==g?g:"text"}const a=t.serializeBody();let l=null;const c=()=>{if(null!==l)return l;const g=s.statusText||"OK",y=new An(s.getAllResponseHeaders()),w=function o$(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(s)||t.url;return l=new $p({headers:y,status:s.status,statusText:g,url:w}),l},u=()=>{let{headers:g,status:y,statusText:w,url:v}=c(),S=null;204!==y&&(S=typeof s.response>"u"?s.responseText:s.response),0===y&&(y=S?200:0);let O=y>=200&&y<300;if("json"===t.responseType&&"string"==typeof S){const U=S;S=S.replace(i$,"");try{S=""!==S?JSON.parse(S):null}catch(he){S=U,O&&(O=!1,S={error:he,text:S})}}O?(o.next(new _o({body:S,headers:g,status:y,statusText:w,url:v||void 0})),o.complete()):o.error(new $M({error:S,headers:g,status:y,statusText:w,url:v||void 0}))},d=g=>{const{url:y}=c(),w=new $M({error:g,status:s.status||0,statusText:s.statusText||"Unknown Error",url:y||void 0});o.error(w)};let f=!1;const h=g=>{f||(o.next(c()),f=!0);let y={type:vo.DownloadProgress,loaded:g.loaded};g.lengthComputable&&(y.total=g.total),"text"===t.responseType&&s.responseText&&(y.partialText=s.responseText),o.next(y)},p=g=>{let y={type:vo.UploadProgress,loaded:g.loaded};g.lengthComputable&&(y.total=g.total),o.next(y)};return s.addEventListener("load",u),s.addEventListener("error",d),s.addEventListener("timeout",d),s.addEventListener("abort",d),t.reportProgress&&(s.addEventListener("progress",h),null!==a&&s.upload&&s.upload.addEventListener("progress",p)),s.send(a),o.next({type:vo.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",u),s.removeEventListener("timeout",d),t.reportProgress&&(s.removeEventListener("progress",h),null!==a&&s.upload&&s.upload.removeEventListener("progress",p)),s.readyState!==s.DONE&&s.abort()}})))}static#e=this.\u0275fac=function(r){return new(r||e)(I(tb))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})();const Up=new P("XSRF_ENABLED"),KM=new P("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),YM=new P("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class XM{}let l$=(()=>{class e{constructor(t,r,i){this.doc=t,this.platform=r,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=qw(t,this.cookieName),this.lastCookieString=t),this.lastToken}static#e=this.\u0275fac=function(r){return new(r||e)(I(Ue),I(Br),I(KM))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})();function c$(e,n){const t=e.url.toLowerCase();if(!T(Up)||"GET"===e.method||"HEAD"===e.method||t.startsWith("http://")||t.startsWith("https://"))return n(e);const r=T(XM).getToken(),i=T(YM);return null!=r&&!e.headers.has(i)&&(e=e.clone({headers:e.headers.set(i,r)})),n(e)}var Sr=function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e}(Sr||{});function u$(...e){const n=[Hc,ZM,WM,{provide:jc,useExisting:WM},{provide:Bc,useExisting:ZM},{provide:ea,useValue:c$,multi:!0},{provide:Up,useValue:!0},{provide:XM,useClass:l$}];for(const t of e)n.push(...t.\u0275providers);return ol(n)}const JM=new P("LEGACY_INTERCEPTOR_FN");function d$(){return function ei(e,n){return{\u0275kind:e,\u0275providers:n}}(Sr.LegacyInterceptors,[{provide:JM,useFactory:e$},{provide:ea,useExisting:JM,multi:!0}])}let e0=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=tt({type:e});static#n=this.\u0275inj=Qe({providers:[u$(d$())]})}return e})(),ta=(()=>{class e{constructor(t){this.http=t,this.LogInapiUrl="https://dummyjson.com/auth/login",this.authMe="https://dummyjson.com/auth/me",this.refreshTokenApi="https://dummyjson.com/auth/refresh"}onLogin(t){return this.http.post(this.LogInapiUrl,t)}getAndAuthorizeCurrentUser(){const t=localStorage.getItem("token");return this.http.get(this.authMe,{headers:{Authorization:`Bearer ${t}`}})}refreshToken(){const t=localStorage.getItem("refreshToken");return this.http.post(this.refreshTokenApi,{refreshToken:t,expiresInMins:30})}static#e=this.\u0275fac=function(r){return new(r||e)(I(Hc))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),y$=(()=>{class e{constructor(){this.searchText="",this.text=new _e}onSearch(t){this.searchText=t.target.value,this.text.emit(this.searchText)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=ct({type:e,selectors:[["app-search"]],outputs:{text:"text"},decls:2,vars:1,consts:[["role","search",1,"d-flex"],["type","search","placeholder","Search","aria-label","Search",1,"form-control","me-2",3,"ngModel","ngModelChange","keyup.enter"]],template:function(r,i){1&r&&(m(0,"form",0)(1,"input",1),Y("ngModelChange",function(s){return i.searchText=s})("keyup.enter",function(s){return i.onSearch(s)}),_()()),2&r&&(M(1),N("ngModel",i.searchText))},dependencies:[Op,Dr,po,wp,yo,kc],styles:["form.d-flex[_ngcontent-%COMP%]{display:flex;align-items:center}form.d-flex[_ngcontent-%COMP%] input.form-control[_ngcontent-%COMP%]{width:400px;padding:6px;transition:width .3s ease-in-out}form.d-flex[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:8px}@media (max-width: 1200px){form.d-flex[_ngcontent-%COMP%] input.form-control[_ngcontent-%COMP%]{width:350px}}@media (max-width: 992px){.rows[_ngcontent-%COMP%]{width:90%}.actions[_ngcontent-%COMP%]{justify-content:end}form.d-flex[_ngcontent-%COMP%] input.form-control[_ngcontent-%COMP%]{width:350px;padding:5px}form.d-flex[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:5px}}@media (max-width: 768px){.rows[_ngcontent-%COMP%]{width:95%}.links[_ngcontent-%COMP%] .home[_ngcontent-%COMP%]{margin-left:15px}.actions[_ngcontent-%COMP%]{width:100%;margin-left:15px}form.d-flex[_ngcontent-%COMP%] input.form-control[_ngcontent-%COMP%]{width:100%}}@media (max-width: 576px){.rows[_ngcontent-%COMP%]{width:98%;flex-direction:column;align-items:flex-start}.actions[_ngcontent-%COMP%]{width:90%;margin-left:15px}form.d-flex[_ngcontent-%COMP%]{width:300px;justify-content:space-between}form.d-flex[_ngcontent-%COMP%] input.form-control[_ngcontent-%COMP%]{width:100%}.logo[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:16px;padding:5px}.logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:34px;height:34px}.links[_ngcontent-%COMP%]{justify-content:space-evenly;width:200px;margin-bottom:10px}.home[_ngcontent-%COMP%]{padding:5px}}"]})}return e})();function v$(e,n){if(1&e&&(m(0,"span",20),b(1),_()),2&e){const t=H(2);M(1),xe(t.countOfCart)}}function _$(e,n){1&e&&(m(0,"p",21),b(1,"Oops! Your cart is empty"),_())}function C$(e,n){if(1&e){const t=mt();m(0,"div",22)(1,"div",23),Q(2,"img",24),_(),m(3,"div",4)(4,"p",25),b(5),_(),m(6,"p",26),b(7," Quantity: "),m(8,"span"),b(9),_()()(),m(10,"div",4)(11,"div")(12,"input",27),Y("ngModelChange",function(i){return Be(je(t).$implicit.quantity=i)}),_(),m(13,"button",28),Y("click",function(){return je(t),Be(H(2).setQuantity())}),b(14,"set quantity"),_()()()()}if(2&e){const t=n.$implicit;M(2),N("src",t.product.images[0],dr),M(3),xe(t.product.title),M(4),xe(t.quantity),M(3),N("value",t.quantity)("ngModel",t.quantity)}}function D$(e,n){if(1&e){const t=mt();m(0,"div",29)(1,"button",30),Y("click",function(){return je(t),Be(H(2).deleteCart())}),b(2,"Delete Cart"),_(),m(3,"button",31),Y("click",function(){return je(t),Be(H(2).checkout())}),b(4,"Review and checkout"),_()()}}function w$(e,n){if(1&e){const t=mt();m(0,"div",7)(1,"app-search",8),Y("text",function(i){return je(t),Be(H().onSearch(i))}),_(),m(2,"button",9)(3,"i",10),K(4,v$,2,1,"span",11),_()(),m(5,"div",12)(6,"div",13)(7,"h5",14),b(8,"Cart"),_(),Q(9,"button",15),_(),m(10,"div",16),K(11,_$,2,0,"p",17),K(12,C$,15,5,"div",18),_(),K(13,D$,5,0,"div",19),_()()}if(2&e){const t=H();M(4),N("ngIf",t.countOfCart),M(7),N("ngIf",!t.emptyCart),M(1),N("ngForOf",t.cartProducts),M(1),N("ngIf",t.emptyCart)}}let zc=(()=>{class e{constructor(t,r){this.route=t,this.auth=r,this.logedIn=!1,this.text=new _e,this.searchText="",this.cartProducts=[],this.emptyCart=!1,this.quantity=1}ngOnChanges(t){this.getCartProducts(),this.quantity=1}ngOnInit(){this.getUserId(),this.logedIn=!!localStorage.getItem("token"),console.log(this.countOfCart)}getUserId(){this.auth.getAndAuthorizeCurrentUser().subscribe(t=>{console.log(t),this.user=t,localStorage.setItem("userId",this.user.id)})}onSearch(t){this.searchText=t,this.text.emit(this.searchText)}getCartProducts(){"cart"in localStorage&&(this.emptyCart=!0,this.cartProducts=JSON.parse(localStorage.getItem("cart")),console.log(this.cartProducts))}setQuantity(){localStorage.setItem("cart",JSON.stringify(this.cartProducts)),this.quantity=1}deleteCart(){localStorage.removeItem("cart"),this.cartProducts=[]}checkout(){this.route.navigateByUrl("cart"),this.quantity=1}static#e=this.\u0275fac=function(r){return new(r||e)(D(ze),D(ta))};static#t=this.\u0275cmp=ct({type:e,selectors:[["app-header"]],inputs:{countOfCart:"countOfCart"},outputs:{text:"text"},features:[xt],decls:10,vars:1,consts:[[1,"rows"],[1,"links"],["routerLink","home/products/9/0/All",1,"logo"],["src","assets/images/Logomark.png","alt","Logomark-ClickTik"],[1,"title"],["routerLink","home/products/9/0/All",1,"home"],["class","actions",4,"ngIf"],[1,"actions"],[3,"text"],["type","button","data-bs-toggle","offcanvas","data-bs-target","#cart","aria-controls","offcanvasScrolling",1,"btn","btnCategories"],[1,"fas","fa-shopping-cart","cart-icon"],["class","child",4,"ngIf"],["data-bs-scroll","true","data-bs-backdrop","true","tabindex","-1","id","cart","aria-labelledby","offcanvasScrollingLabel",1,"offcanvas","offcanvas-end"],[1,"offcanvas-header"],["id","offcanvasScrollingLabel",1,"offcanvas-title"],["type","button","data-bs-dismiss","offcanvas","aria-label","Close",1,"btn-close"],[1,"offcanvas-body"],["class","empty",4,"ngIf"],["class","product",4,"ngFor","ngForOf"],["class","offcanvas-footer",4,"ngIf"],[1,"child"],[1,"empty"],[1,"product"],[1,"image"],["alt","product's image",3,"src"],[1,"title1"],[1,"title2"],["type","number",1,"form-control","quantityinput",3,"value","ngModel","ngModelChange"],[1,"setQuality",3,"click"],[1,"offcanvas-footer"],[1,"deleteCart",3,"click"],[1,"checkout",3,"click"]],template:function(r,i){1&r&&(m(0,"div",0)(1,"div",1)(2,"div",2),Q(3,"img",3),m(4,"h1",4),b(5,"ClickTik"),_()(),m(6,"div",5),b(7,"Home"),_()(),K(8,w$,14,4,"div",6),Q(9,"hr"),_()),2&r&&(M(8),N("ngIf",i.logedIn))},dependencies:[no,mr,Dr,Fc,po,yo,Kr,y$],styles:["*[_ngcontent-%COMP%]{margin:0;padding:0}.headerContainer[_ngcontent-%COMP%]{grid-column:span 12 / span 12}.rows[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:85%;margin:0 auto;padding:15px 0}.links[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:250px}.logo[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;cursor:pointer}.logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:36px;height:36px}.logo[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:18px;color:#000;font-weight:500;padding:10px}.home[_ngcontent-%COMP%], .login[_ngcontent-%COMP%]{color:#667085;font-weight:500;padding:10px;cursor:pointer}.actions[_ngcontent-%COMP%]{display:flex;align-items:center;width:90%;margin-right:20px}.cart-icon[_ngcontent-%COMP%]{font-size:22px;color:#667085;margin-left:12px;cursor:pointer;position:relative}.child[_ngcontent-%COMP%]{position:absolute;background-color:#41cccc;border-radius:50%;font-size:12px;padding:2px 4px;top:-10px;left:15px;color:#34405488;gap:0px;border:2px 0px 0px 0px;opacity:0px}.offcanvas-header[_ngcontent-%COMP%]{color:#1e1e1e;font-weight:700;padding:15px;background-color:#f6f6f6}.offcanvas-body[_ngcontent-%COMP%]{color:#222d41;font-weight:400;padding:15px 5px;background-color:#f6f6f6}.product[_ngcontent-%COMP%]{background-color:#fff;display:flex;flex-direction:row;justify-content:space-between;align-items:center;margin-bottom:10px;padding:10px 20px;border-radius:20px}.product[_ngcontent-%COMP%] .image[_ngcontent-%COMP%]{width:70px;height:50px;margin-right:10px}.image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%}.title1[_ngcontent-%COMP%]{font-size:16px;color:#222d41;font-weight:500}.title2[_ngcontent-%COMP%]{font-size:14px;color:#222d41}.title2[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#667085;font-weight:700}.empty[_ngcontent-%COMP%]{background-color:#8c2020;color:#fff;padding:5px 10px;border-radius:5px}.offcanvas-footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:50%;padding:10px;outline:0;border:0}.quantityinput[_ngcontent-%COMP%]{width:100px;text-align:center}.setQuality[_ngcontent-%COMP%]{outline:0;border:0;font-size:16px;background-color:#41cccc;color:#222d41;border-radius:4px;padding:4px 8px;margin-top:5px}.offcanvas-footer[_ngcontent-%COMP%] .checkout[_ngcontent-%COMP%]{background-color:#41cccc;color:#222d41}.offcanvas-footer[_ngcontent-%COMP%] .deleteCart[_ngcontent-%COMP%]{background-color:#dc3545;color:#f6f6f6}form.d-flex[_ngcontent-%COMP%]{display:flex;align-items:center}form.d-flex[_ngcontent-%COMP%] input.form-control[_ngcontent-%COMP%]{width:400px;padding:6px;transition:width .3s ease-in-out}form.d-flex[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:8px}@media (max-width:1800px){.rows[_ngcontent-%COMP%]{width:90%;display:flex;justify-content:space-between;align-items:center}.actions[_ngcontent-%COMP%]{justify-content:end}}@media (max-width: 1200px){.rows[_ngcontent-%COMP%]{width:90%}.actions[_ngcontent-%COMP%]{justify-content:end}}@media (max-width: 992px){.rows[_ngcontent-%COMP%]{width:90%}.actions[_ngcontent-%COMP%]{justify-content:end}form.d-flex[_ngcontent-%COMP%] input.form-control[_ngcontent-%COMP%]{width:350px;padding:5px}form.d-flex[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:5px}}@media (max-width: 768px){.rows[_ngcontent-%COMP%]{width:95%}.links[_ngcontent-%COMP%] .home[_ngcontent-%COMP%]{margin-left:15px}.actions[_ngcontent-%COMP%]{width:100%;margin-left:15px}form.d-flex[_ngcontent-%COMP%] input.form-control[_ngcontent-%COMP%]{width:100%}}@media (max-width: 576px){.rows[_ngcontent-%COMP%]{width:98%;flex-direction:column;align-items:flex-start}.actions[_ngcontent-%COMP%]{width:90%;margin-left:15px}form.d-flex[_ngcontent-%COMP%]{width:100%;justify-content:space-between}form.d-flex[_ngcontent-%COMP%] input.form-control[_ngcontent-%COMP%]{width:100%;margin-bottom:10px}.logo[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:16px;padding:5px}.logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:34px;height:34px}.links[_ngcontent-%COMP%]{justify-content:space-evenly;width:200px;margin-bottom:10px}.home[_ngcontent-%COMP%]{padding:5px}}"]})}return e})(),Gc=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=ct({type:e,selectors:[["app-footer"]],decls:9,vars:0,consts:[[1,"footer"],[1,"container"],[1,"left"],["src","assets/images/Logomark.png","alt","Logomark-ClickTik"],[1,"title2"],["routerLink","home/products/9/0/All",2,"text-decoration","none","color","white"],[1,"right"]],template:function(r,i){1&r&&(m(0,"div",0)(1,"div",1)(2,"div",2),Q(3,"img",3),m(4,"p",4)(5,"a",5),b(6,"ClickTik"),_()()(),m(7,"div",6),b(8," \xa9 2022 ClickTik "),_()()())},dependencies:[Kr],styles:["*[_ngcontent-%COMP%]{margin:0;padding:0}.parent[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(12,1fr);grid-template-rows:repeat(9,1fr);gap:8px;height:100vh}.headerContainer[_ngcontent-%COMP%]{grid-column:span 12 / span 12}.rows[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:85%;margin:20px auto}.links[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:250px}.logo[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;cursor:pointer}.logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:36px;height:36px}.home[_ngcontent-%COMP%]{color:#667085;font-weight:500;padding:10px;cursor:pointer}.logo[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:18px;color:#000;font-weight:500;padding:10px}.login[_ngcontent-%COMP%]{color:#667085;font-weight:500;padding:10px;cursor:pointer}.main[_ngcontent-%COMP%]{grid-column:span 4 / span 4;grid-row:span 5 / span 5;grid-column-start:5;grid-row-start:2;margin-top:20px;width:100%;display:flex;flex-direction:column;justify-content:space-evenly;align-items:center;box-sizing:border-box}.main[_ngcontent-%COMP%] .logoMark[_ngcontent-%COMP%], .main[_ngcontent-%COMP%] .header[_ngcontent-%COMP%], .main[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{width:100%;text-align:center}.signBtn[_ngcontent-%COMP%]{width:100%;padding:8px;margin-top:20px;background-color:#41cccc;color:#344054;border:0px;font-weight:500}.card[_ngcontent-%COMP%]{width:100%;padding:10px}.logedInImg[_ngcontent-%COMP%]{width:50px}.goHomeLink[_ngcontent-%COMP%]{padding:4px;cursor:pointer;font-size:16px;color:#fff;background-color:#344054;border-radius:5px;text-align:center;width:80%;margin:5px auto}.footer[_ngcontent-%COMP%]{grid-column:span 12 / span 12;grid-column-start:1;grid-row-start:9;background-color:#1d2939}.footer[_ngcontent-%COMP%] .container[_ngcontent-%COMP%]{color:#fff;width:80%;margin:0 auto;display:flex;flex-direction:row;justify-content:space-between;align-items:center;font-size:16px}.footer[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;margin-top:20px}.footer[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:34px;margin-right:5px}.footer[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{margin-top:20px;color:#98a2b3}@media (max-width: 1200px){.main[_ngcontent-%COMP%]{grid-column:span 6 / span 6;grid-column-start:4}}@media (min-width: 768px){.goHomeLink[_ngcontent-%COMP%]{margin:5px 0}}@media (max-width: 992px){.rows[_ngcontent-%COMP%]{width:90%}.main[_ngcontent-%COMP%]{grid-column:span 8 / span 8;grid-column-start:3}.footer[_ngcontent-%COMP%] .container[_ngcontent-%COMP%]{font-size:14px}}@media (max-width: 768px){.rows[_ngcontent-%COMP%]{width:90%}.main[_ngcontent-%COMP%]{grid-column:span 10 / span 10;grid-column-start:2;padding:15px}}.logedIn[_ngcontent-%COMP%]{cursor:pointer}@media (max-width: 576px){.rows[_ngcontent-%COMP%]{width:98%}.logo[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:16px;padding:5px}.logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:34px;height:34px}.links[_ngcontent-%COMP%]{justify-content:space-evenly;width:200px}.home[_ngcontent-%COMP%]{padding:5px}.main[_ngcontent-%COMP%]{grid-column:span 12 / span 12;grid-column-start:1;padding:10px}}"]})}return e})();function b$(e,n){1&e&&(m(0,"span"),b(1,"Please enter your details"),_())}function E$(e,n){if(1&e&&(m(0,"span",11),b(1),_()),2&e){const t=H();M(1),Pl("",t.currentUser.firstName," ",t.currentUser.lastName,"")}}function M$(e,n){if(1&e&&(m(0,"div",12)(1,"div",13)(2,"div",14)(3,"div",15)(4,"div",16),Q(5,"img",17),_(),m(6,"div",18)(7,"div",19)(8,"h5",20),b(9),_(),m(10,"p",21)(11,"small",22),b(12),_()()(),m(13,"p",23),b(14,"Go to the home page"),_()()()()()()),2&e){const t=H();M(5),Ef("src",t.currentUser.image,dr),M(4),Pl("",t.currentUser.firstName," ",t.currentUser.lastName,""),M(3),xe(t.currentUser.email)}}function S$(e,n){if(1&e){const t=mt();m(0,"form",24),Y("ngSubmit",function(){return je(t),Be(H().onSubmit())}),m(1,"div",25),Q(2,"input",26),m(3,"label",27),b(4,"Username"),_()(),m(5,"div",28),Q(6,"input",29),m(7,"label",30),b(8,"Password"),_()(),m(9,"div",31)(10,"button",32),b(11,"Sign in"),_()()()}if(2&e){const t=H();N("formGroup",t.loginForm),M(10),N("disabled",t.loginForm.invalid)}}let I$=(()=>{class e{constructor(t,r,i){this.http=t,this.fb=r,this.route=i,this.loginForm=mo,this.logedIn=!1}ngOnInit(){this.loginForm=this.fb.group({username:["",[LE.required]],password:["",[LE.required]]}),localStorage.getItem("token")?(this.getUser(),this.logedIn=!0):this.logedIn=!1}onSubmit(){this.http.onLogin(this.loginForm.value).subscribe(s=>{localStorage.setItem("token",s.accessToken),console.log(s.accessToken),localStorage.setItem("refreshToken",s.refreshToken),this.route.navigateByUrl("home/products/9/0/All")}),this.authUser()}authUser(){this.http.getAndAuthorizeCurrentUser().subscribe({next:t=>{this.logedIn=!0,this.logedIn&&this.route.navigateByUrl("home/products/:limit/:skip/:category")},error:t=>{this.logedIn=!1,console.log(this.logedIn)}})}getUser(){this.http.getAndAuthorizeCurrentUser().subscribe(t=>{this.currentUser=t,console.log(this.currentUser)})}static#e=this.\u0275fac=function(r){return new(r||e)(D(ta),D(UB),D(ze))};static#t=this.\u0275cmp=ct({type:e,selectors:[["login"]],decls:17,vars:4,consts:[[1,"parent"],[1,"headerContainer"],[1,"main"],[1,"logoMark"],["src","assets/images/Logomark.png","alt",""],[1,"header"],[4,"ngIf"],["style","font-weight: bold;",4,"ngIf"],["class","","style","width: 80%;",4,"ngIf"],[3,"formGroup","ngSubmit",4,"ngIf"],[1,"footer"],[2,"font-weight","bold"],[1,"",2,"width","80%"],[1,"container","mt-5"],[1,"card"],[1,"row","g-0",2,"justify-content","center","align-items","center"],[1,"col-md-4"],["alt","User Image",1,"img-fluid","rounded-start","logedInImg",3,"src"],[1,"col-md-8"],[1,"card-body"],[1,"card-title"],[1,"card-text"],[1,"text-muted"],["routerLink","clickTik.com/home/9/0",1,"goHomeLink"],[3,"formGroup","ngSubmit"],[1,"form-floating","mb-3"],["type","text","formControlName","username","id","floatingInput","placeholder","Username",1,"form-control"],["for","floatingInput"],[1,"form-floating"],["type","password","formControlName","password","id","floatingPassword","placeholder","Password",1,"form-control"],["for","floatingPassword"],[1,"col-12"],["type","submit",1,"btn","btn-primary","signBtn",3,"disabled"]],template:function(r,i){1&r&&(m(0,"div",0)(1,"div",1),Q(2,"app-header"),_(),m(3,"div",2)(4,"div",3),Q(5,"img",4),_(),m(6,"div",5)(7,"h1"),b(8,"Log in to your account"),_(),m(9,"p"),b(10,"Welcome back! "),K(11,b$,2,0,"span",6),K(12,E$,2,2,"span",7),_()(),K(13,M$,15,4,"div",8),K(14,S$,12,2,"form",9),_(),m(15,"div",10),Q(16,"app-footer"),_()()),2&r&&(M(11),N("ngIf",!i.logedIn),M(1),N("ngIf",i.logedIn),M(1),N("ngIf",i.logedIn),M(1),N("ngIf",!i.logedIn))},dependencies:[mr,Op,Dr,po,wp,Lc,Fp,Kr,zc,Gc],styles:["*[_ngcontent-%COMP%]{margin:0;padding:0}.parent[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(12,1fr);grid-template-rows:repeat(9,1fr);gap:8px;height:100vh}.headerContainer[_ngcontent-%COMP%]{grid-column:span 12 / span 12}.rows[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:85%;margin:20px auto}.links[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:250px}.logo[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;cursor:pointer}.logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:36px;height:36px}.home[_ngcontent-%COMP%]{color:#667085;font-weight:500;padding:10px;cursor:pointer}.logo[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:18px;color:#000;font-weight:500;padding:10px}.login[_ngcontent-%COMP%]{color:#667085;font-weight:500;padding:10px;cursor:pointer}.main[_ngcontent-%COMP%]{grid-column:span 4 / span 4;grid-row:span 5 / span 5;grid-column-start:5;grid-row-start:2;margin-top:20px;width:100%;display:flex;flex-direction:column;justify-content:space-evenly;align-items:center;box-sizing:border-box}.main[_ngcontent-%COMP%] .logoMark[_ngcontent-%COMP%], .main[_ngcontent-%COMP%] .header[_ngcontent-%COMP%], .main[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{width:100%;text-align:center}.signBtn[_ngcontent-%COMP%]{width:100%;padding:8px;margin-top:20px;background-color:#41cccc;color:#344054;border:0px;font-weight:500}.card[_ngcontent-%COMP%]{width:100%;padding:10px}.logedInImg[_ngcontent-%COMP%]{width:50px}.goHomeLink[_ngcontent-%COMP%]{padding:4px;cursor:pointer;font-size:16px;color:#fff;background-color:#344054;border-radius:5px;text-align:center;width:80%;margin:5px auto}.footer[_ngcontent-%COMP%]{grid-column:span 12 / span 12;grid-column-start:1;grid-row-start:9;background-color:#1d2939}.footer[_ngcontent-%COMP%] .container[_ngcontent-%COMP%]{color:#fff;width:80%;margin:0 auto;display:flex;flex-direction:row;justify-content:space-between;align-items:center;font-size:16px}.footer[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;margin-top:20px}.footer[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:34px;margin-right:5px}.footer[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{margin-top:20px;color:#98a2b3}@media (max-width: 1200px){.main[_ngcontent-%COMP%]{grid-column:span 6 / span 6;grid-column-start:4}}@media (min-width: 768px){.goHomeLink[_ngcontent-%COMP%]{margin:5px 0}}@media (max-width: 992px){.rows[_ngcontent-%COMP%]{width:90%}.main[_ngcontent-%COMP%]{grid-column:span 8 / span 8;grid-column-start:3}.footer[_ngcontent-%COMP%] .container[_ngcontent-%COMP%]{font-size:14px}}@media (max-width: 768px){.rows[_ngcontent-%COMP%]{width:90%}.main[_ngcontent-%COMP%]{grid-column:span 10 / span 10;grid-column-start:2;padding:15px}}.logedIn[_ngcontent-%COMP%]{cursor:pointer}@media (max-width: 576px){.rows[_ngcontent-%COMP%]{width:98%}.logo[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:16px;padding:5px}.logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:34px;height:34px}.links[_ngcontent-%COMP%]{justify-content:space-evenly;width:200px}.home[_ngcontent-%COMP%]{padding:5px}.main[_ngcontent-%COMP%]{grid-column:span 12 / span 12;grid-column-start:1;padding:10px}}"]})}return e})(),qc=(()=>{class e{constructor(t,r){this.http=t,this.route=r,this.allProductsURL="https://dummyjson.com/products",this.addCartURL="https://dummyjson.com/carts/add",this.productByIdURL="https://dummyjson.com/products/"}getProducts(t,r){return this.http.get(`${this.allProductsURL}?limit=${t}&skip=${r}`)}addCart(t){return this.http.post(this.addCartURL,t)}getProductById(t){return this.http.get(this.productByIdURL+t)}static#e=this.\u0275fac=function(r){return new(r||e)(I(Hc),I(ze))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),t0=(()=>{class e{constructor(t){this.http=t}getCategoryList(){return this.http.get("https://dummyjson.com/products/category-list")}getProductsByCategory(t){return this.http.get(`https://dummyjson.com/products/category/${t}`)}SearchProducts(t){return this.http.get(`https://dummyjson.com/products/search?q=${t}`)}static#e=this.\u0275fac=function(r){return new(r||e)(I(Hc))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class n0{}class T${}const er="*";function A$(e,n){return{type:7,name:e,definitions:n,options:{}}}function r0(e,n=null){return{type:4,styles:n,timings:e}}function o0(e,n=null){return{type:2,steps:e,options:n}}function na(e){return{type:6,styles:e,offset:null}}function zp(e,n,t){return{type:0,name:e,styles:n,options:t}}function s0(e,n,t=null){return{type:1,expr:e,animation:n,options:t}}class ra{constructor(n=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const t="start"==n?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}}class a0{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let t=0,r=0,i=0;const o=this.players.length;0==o?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++t==o&&this._onFinish()}),s.onDestroy(()=>{++r==o&&this._onDestroy()}),s.onStart(()=>{++i==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const t=n*this.totalTime;this.players.forEach(r=>{const i=r.totalTime?Math.min(1,t/r.totalTime):1;r.setPosition(i)})}getPosition(){const n=this.players.reduce((t,r)=>null===t||r.totalTime>t.totalTime?r:t,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const t="start"==n?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}}const l0=["toast-component",""];function P$(e,n){if(1&e){const t=mt();m(0,"button",5),Y("click",function(){return je(t),Be(H().remove())}),m(1,"span",6),b(2,"\xd7"),_()()}}function O$(e,n){if(1&e&&(fs(0),b(1),hs()),2&e){const t=H(2);M(1),ce("[",t.duplicatesCount+1,"]")}}function x$(e,n){if(1&e&&(m(0,"div"),b(1),K(2,O$,2,1,"ng-container",4),_()),2&e){const t=H();Un(t.options.titleClass),gt("aria-label",t.title),M(1),ce(" ",t.title," "),M(1),N("ngIf",t.duplicatesCount)}}function N$(e,n){if(1&e&&Q(0,"div",7),2&e){const t=H();Un(t.options.messageClass),N("innerHTML",t.message,Nd)}}function R$(e,n){if(1&e&&(m(0,"div",8),b(1),_()),2&e){const t=H();Un(t.options.messageClass),gt("aria-label",t.message),M(1),ce(" ",t.message," ")}}function k$(e,n){if(1&e&&(m(0,"div"),Q(1,"div",9),_()),2&e){const t=H();M(1),Zi("width",t.width()+"%")}}class H${_attachedHost;component;viewContainerRef;injector;constructor(n,t){this.component=n,this.injector=t}attach(n,t){return this._attachedHost=n,n.attach(this,t)}detach(){const n=this._attachedHost;if(n)return this._attachedHost=void 0,n.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(n){this._attachedHost=n}}class U${_attachedPortal;_disposeFn;attach(n,t){return this._attachedPortal=n,this.attachComponentPortal(n,t)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(n){this._disposeFn=n}}class z${_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new Ge;_activate=new Ge;_manualClose=new Ge;_resetTimeout=new Ge;_countDuplicate=new Ge;constructor(n){this._overlayRef=n}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(n,t){n&&this._resetTimeout.next(),t&&this._countDuplicate.next(++this.duplicatesCount)}}class Wc{toastId;config;message;title;toastType;toastRef;_onTap=new Ge;_onAction=new Ge;constructor(n,t,r,i,o,s){this.toastId=n,this.config=t,this.message=r,this.title=i,this.toastType=o,this.toastRef=s,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(n){this._onAction.next(n)}onAction(){return this._onAction.asObservable()}}const u0=new P("ToastConfig");class G$ extends U${_hostDomElement;_componentFactoryResolver;_appRef;constructor(n,t,r){super(),this._hostDomElement=n,this._componentFactoryResolver=t,this._appRef=r}attachComponentPortal(n,t){const r=this._componentFactoryResolver.resolveComponentFactory(n.component);let i;return i=r.create(n.injector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()}),t?this._hostDomElement.insertBefore(this._getComponentRootNode(i),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(i)),i}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}let q$=(()=>{class e{_document=T(Ue);_containerElement;ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t=this._document.createElement("div");t.classList.add("overlay-container"),t.setAttribute("aria-live","polite"),this._document.body.appendChild(t),this._containerElement=t}static \u0275fac=function(r){return new(r||e)};static \u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class W${_portalHost;constructor(n){this._portalHost=n}attach(n,t=!0){return this._portalHost.attach(n,t)}detach(){return this._portalHost.detach()}}let Q$=(()=>{class e{_overlayContainer=T(q$);_componentFactoryResolver=T(es);_appRef=T(qn);_document=T(Ue);_paneElements=new Map;create(t,r){return this._createOverlayRef(this.getPaneElement(t,r))}getPaneElement(t="",r){return this._paneElements.get(r)||this._paneElements.set(r,{}),this._paneElements.get(r)[t]||(this._paneElements.get(r)[t]=this._createPaneElement(t,r)),this._paneElements.get(r)[t]}_createPaneElement(t,r){const i=this._document.createElement("div");return i.id="toast-container",i.classList.add(t),i.classList.add("toast-container"),r?r.getContainerElement().appendChild(i):this._overlayContainer.getContainerElement().appendChild(i),i}_createPortalHost(t){return new G$(t,this._componentFactoryResolver,this._appRef)}_createOverlayRef(t){return new W$(this._createPortalHost(t))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),ia=(()=>{class e{overlay;_injector;sanitizer;ngZone;toastrConfig;currentlyActive=0;toasts=[];overlayContainer;previousToastMessage;index=0;constructor(t,r,i,o,s){this.overlay=r,this._injector=i,this.sanitizer=o,this.ngZone=s,this.toastrConfig={...t.default,...t.config},t.config.iconClasses&&(this.toastrConfig.iconClasses={...t.default.iconClasses,...t.config.iconClasses})}show(t,r,i={},o=""){return this._preBuildNotification(o,t,r,this.applyConfig(i))}success(t,r,i={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",t,r,this.applyConfig(i))}error(t,r,i={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",t,r,this.applyConfig(i))}info(t,r,i={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",t,r,this.applyConfig(i))}warning(t,r,i={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",t,r,this.applyConfig(i))}clear(t){for(const r of this.toasts)if(void 0!==t){if(r.toastId===t)return void r.toastRef.manualClose()}else r.toastRef.manualClose()}remove(t){const r=this._findToast(t);if(!r||(r.activeToast.toastRef.close(),this.toasts.splice(r.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActivethis._buildNotification(t,r,i,o)):this._buildNotification(t,r,i,o)}_buildNotification(t,r,i,o){if(!o.toastComponent)throw new Error("toastComponent required");const s=this.findDuplicate(i,r,this.toastrConfig.resetTimeoutOnDuplicate&&o.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&i||r)&&this.toastrConfig.preventDuplicates&&null!==s)return s;this.previousToastMessage=r;let a=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(a=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const l=this.overlay.create(o.positionClass,this.overlayContainer);this.index=this.index+1;let c=r;r&&o.enableHtml&&(c=this.sanitizer.sanitize(Ft.HTML,r));const u=new z$(l),d=new Wc(this.index,o,c,i,t,u),h=it.create({providers:[{provide:Wc,useValue:d}],parent:this._injector}),p=new H$(o.toastComponent,h),g=l.attach(p,o.newestOnTop);u.componentInstance=g.instance;const y={toastId:this.index,title:i||"",message:r||"",toastRef:u,onShown:u.afterActivate(),onHidden:u.afterClosed(),onTap:d.onTap(),onAction:d.onAction(),portal:g};return a||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{y.toastRef.activate()})),this.toasts.push(y),y}static \u0275fac=function(r){return new(r||e)(I(u0),I(Q$),I(it),I(wb),I(le))};static \u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Z$={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing",toastComponent:(()=>{class e{toastrService;toastPackage;ngZone;message;title;options;duplicatesCount;originalTimeout;width=Ta(-1);toastClasses="";state;get _state(){return this.state()}get displayStyle(){if("inactive"===this.state().value)return"none"}timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(t,r,i){this.toastrService=t,this.toastPackage=r,this.ngZone=i,this.message=r.message,this.title=r.title,this.options=r.config,this.originalTimeout=r.config.timeOut,this.toastClasses=`${r.toastType} ${r.config.toastClass}`,this.sub=r.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=r.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=r.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=r.toastRef.countDuplicate().subscribe(o=>{this.duplicatesCount=o}),this.state=Ta({value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}})}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state.update(t=>({...t,value:"active"})),!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width()||100===this.width()||!this.options.timeOut)return;const t=(new Date).getTime();this.width.set((this.hideTime-t)/this.options.timeOut*100),"increasing"===this.options.progressAnimation&&this.width.update(i=>100-i),this.width()<=0&&this.width.set(0),this.width()>=100&&this.width.set(100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state.update(t=>({...t,value:"active"})),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state().value&&(clearTimeout(this.timeout),this.state.update(t=>({...t,value:"removed"})),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state().value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state().value&&"extendedTimeOut"!==this.options.disableTimeOut&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width.set(0))}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state().value||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(t,r){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(t),r)):this.timeout=setTimeout(()=>t(),r)}outsideInterval(t,r){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(t),r)):this.intervalId=setInterval(()=>t(),r)}runInsideAngular(t){this.ngZone?this.ngZone.run(()=>t()):t()}static \u0275fac=function(r){return new(r||e)(D(ia),D(Wc),D(le))};static \u0275cmp=ct({type:e,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(r,i){1&r&&Y("click",function(){return i.tapToast()})("mouseenter",function(){return i.stickAround()})("mouseleave",function(){return i.delayedHideToast()}),2&r&&(Pf("@flyInOut",i._state),Un(i.toastClasses),Zi("display",i.displayStyle))},standalone:!0,features:[kl],attrs:l0,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(r,i){1&r&&(K(0,P$,3,0,"button",0),K(1,x$,3,5,"div",1),K(2,N$,1,3,"div",2),K(3,R$,2,4,"div",3),K(4,k$,2,2,"div",4)),2&r&&(N("ngIf",i.options.closeButton),M(1),N("ngIf",i.title),M(1),N("ngIf",i.message&&i.options.enableHtml),M(1),N("ngIf",i.message&&!i.options.enableHtml),M(1),N("ngIf",i.options.progressBar))},dependencies:[mr],encapsulation:2,data:{animation:[A$("flyInOut",[zp("inactive",na({opacity:0})),zp("active",na({opacity:1})),zp("removed",na({opacity:0})),s0("inactive => active",r0("{{ easeTime }}ms {{ easing }}")),s0("active => removed",r0("{{ easeTime }}ms {{ easing }}"))])]},changeDetection:0})}return e})()},K$=(e={})=>ol([{provide:u0,useValue:{default:Z$,config:e}}]);let qp=(()=>{class e{static forRoot(t={}){return{ngModule:e,providers:[K$(t)]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=tt({type:e});static \u0275inj=Qe({})}return e})(),Y$=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=ct({type:e,selectors:[["app-spinner"]],decls:10,vars:0,consts:[[1,"lds-roller"]],template:function(r,i){1&r&&(m(0,"div")(1,"div",0),Q(2,"div")(3,"div")(4,"div")(5,"div")(6,"div")(7,"div")(8,"div")(9,"div"),_()())},styles:['.lds-roller[_ngcontent-%COMP%], .lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%], .lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:after{box-sizing:border-box}.lds-roller[_ngcontent-%COMP%]{display:inline-block;position:relative;width:80px;height:80px}.lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_lds-roller 1.2s cubic-bezier(.5,0,.5,1) infinite;transform-origin:40px 40px}.lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:after{content:" ";display:block;position:absolute;width:7.2px;height:7.2px;border-radius:50%;background:currentColor;margin:-3.6px 0 0 -3.6px}.lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(1){animation-delay:-36ms}.lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(1):after{top:62.62742px;left:62.62742px}.lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(2){animation-delay:-72ms}.lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(2):after{top:67.71281px;left:56px}.lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(3){animation-delay:-.108s}.lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(3):after{top:70.90963px;left:48.28221px}.lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(4){animation-delay:-.144s}.lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(4):after{top:72px;left:40px}.lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(5){animation-delay:-.18s}.lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(5):after{top:70.90963px;left:31.71779px}.lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(6){animation-delay:-.216s}.lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(6):after{top:67.71281px;left:24px}.lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(7){animation-delay:-.252s}.lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(7):after{top:62.62742px;left:17.37258px}.lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(8){animation-delay:-.288s}.lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(8):after{top:56px;left:12.28719px}@keyframes _ngcontent-%COMP%_lds-roller{0%{transform:rotate(0)}to{transform:rotate(360deg)}}']})}return e})();function X$(e,n){if(1&e){const t=mt();m(0,"div",0)(1,"input",4),Y("ngModelChange",function(i){return je(t),Be(H().selectedCategory=i)})("change",function(){const o=je(t).$implicit;return Be(H().onCategoryChange(o))}),_(),m(2,"label",5),b(3),_()()}if(2&e){const t=n.$implicit,r=H();M(1),N("value",t)("ngModel",r.selectedCategory)("checked",r.selectedCategory===t),M(2),ce(" ",t," ")}}let J$=(()=>{class e{constructor(t){this.http=t,this.allCategories=[],this.selectedCategory="All",this.categoryChange=new _e}ngOnInit(){this.getAllCategories()}onCategoryChange(t){this.selectedCategory=t,this.categoryChange.emit(this.selectedCategory)}getAllCategories(){this.http.getCategoryList().subscribe(t=>{this.allCategories=t,console.log(this.allCategories)})}static#e=this.\u0275fac=function(r){return new(r||e)(D(t0))};static#t=this.\u0275cmp=ct({type:e,selectors:[["app-filter-products"]],outputs:{categoryChange:"categoryChange"},decls:5,vars:2,consts:[[1,"form-check","option"],["type","radio","name","categoryRadios","id","All","value","All","routerLink","/home/products/9/0/All",1,"form-check-input",2,"background-color","#667085",3,"ngModel","ngModelChange","change"],["for","All",1,"form-check-label"],["class","form-check option",4,"ngFor","ngForOf"],["type","radio","name","categoryRadios",1,"form-check-input",2,"background-color","#667085",3,"value","ngModel","checked","ngModelChange","change"],[1,"form-check-label"]],template:function(r,i){1&r&&(m(0,"div",0)(1,"input",1),Y("ngModelChange",function(s){return i.selectedCategory=s})("change",function(){return i.onCategoryChange("All")}),_(),m(2,"label",2),b(3," All "),_()(),K(4,X$,4,4,"div",3)),2&r&&(M(1),N("ngModel",i.selectedCategory),M(3),N("ngForOf",i.allCategories))},dependencies:[no,Dr,xp,po,yo,Kr]})}return e})();function eH(e,n){1&e&&(m(0,"span"),b(1,"\u2605"),_())}const tH=function(e){return{color:e}};let nH=(()=>{class e{constructor(t,r,i){this.service=t,this.toastr=r,this.route=i,this.product={},this.currentUser={},this.cartProducts=[],this.added=!1,this.countCart=new _e}goToProductDetails(){this.route.navigateByUrl(`products/${this.product.title}/${this.product.id}/${this.cartCount}`)}ngOnInit(){"cart"in localStorage&&(this.cartProducts=JSON.parse(localStorage.getItem("cart")),this.cartCount=this.cartProducts.length)}getDiscountPrice(t,r){return(t-t*r/100).toFixed(2)}getBrand(t,r){return null==t&&(t=r),t}toggleAddedToCart(){this.added=!this.added}addToCartItem(t){"cart"in localStorage?(this.cartProducts=JSON.parse(localStorage.getItem("cart")),this.cartProducts.find(o=>o.product.id==t.id)?(this.added=!0,this.toastr.error("You already added the product to cart")):(this.cartProducts.push({product:t,quantity:1}),this.cartCount=this.cartProducts.length,this.countCart.emit(this.cartCount),localStorage.setItem("cart",JSON.stringify(this.cartProducts)),this.added=!0,this.toastr.success("Product is added to your cart"))):(this.cartProducts.push({product:t,quantity:1}),this.cartCount=this.cartProducts.length,this.countCart.emit(this.cartCount),this.toastr.success("Product is added to your cart"),localStorage.setItem("cart",JSON.stringify(this.cartProducts)),this.added=!0),this.added=!1}static#e=this.\u0275fac=function(r){return new(r||e)(D(qc),D(ia),D(ze))};static#t=this.\u0275cmp=ct({type:e,selectors:[["app-product"]],inputs:{product:"product",currentUser:"currentUser"},outputs:{countCart:"countCart"},decls:40,vars:18,consts:[[1,"card","item"],[1,"card-body"],[1,"discPercentage"],[1,"cardImage",2,"width","100%",3,"src"],[1,"card-title"],[1,"card-text"],[1,"price"],[1,"orignalPrice"],[1,"numberP"],[1,"values"],[1,"rating",3,"ngStyle"],[4,"ngIf"],[1,"revLength"],[1,"row","btnBox",2,"display","flex","justify-content","center","align-items","center"],["type","button",1,"addToCart1",3,"ariaHidden","click"],["type","button",1,"addToCart2",3,"click"]],template:function(r,i){1&r&&(m(0,"div",0)(1,"div",1)(2,"p",2),b(3),_(),Q(4,"img",3),m(5,"h5",4),b(6),_(),m(7,"p",5)(8,"span"),b(9),_()(),m(10,"p",6)(11,"span",7)(12,"span",8),b(13),_(),b(14," USD "),_(),m(15,"span",8),b(16),_(),b(17," USD "),_(),m(18,"p",9),b(19,"Brand: "),m(20,"span",9),b(21),_()(),m(22,"p",9),b(23,"Category: "),m(24,"span"),b(25),_()(),m(26,"p",9),b(27,"In stock: "),m(28,"span"),b(29),_()(),m(30,"p",10),K(31,eH,2,0,"span",11),b(32),m(33,"span",12),b(34),_()(),m(35,"div",13)(36,"button",14),Y("click",function(){return i.addToCartItem(i.product)})("click",function(){return i.toggleAddedToCart()}),b(37,"ADD TO CART"),_(),m(38,"button",15),Y("click",function(){return i.goToProductDetails()}),b(39,"VIEW PRODUCT"),_()()()()),2&r&&(M(3),ce("- ",i.product.discountPercentage,"%"),M(1),N("src",i.product.images[0],dr),M(2),xe(i.product.title),M(3),xe(i.product.description),M(4),ce("",i.product.price," "),M(3),ce(" ",i.getDiscountPrice(i.product.price,i.product.discountPercentage)," "),M(5),xe(i.getBrand(i.product.brand,i.product.category)),M(4),xe(i.product.category),M(4),xe(i.product.stock),M(1),N("ngStyle",$f(16,tH,i.product.rating>3.5?"#F4B000":"#1e1e1eb0")),M(1),N("ngIf",i.product.rating>3.5),M(1),ce(" ",i.product.rating," "),M(2),ce("(",i.product.reviews.length,")"),M(2),gs("active",i.added),N("ariaHidden",i.added))},dependencies:[mr,Nh],styles:[".card[_ngcontent-%COMP%]{height:100%}.cardImage[_ngcontent-%COMP%]{width:100%;height:250px;border-radius:10px}.pricespan[_ngcontent-%COMP%]{background-color:#1d2939;padding:6px;color:#fff;border-radius:4px}.item[_ngcontent-%COMP%]:hover{transform:scale(1.03);transition:.3s all}.discPercentage[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;background:#41CCCC;border-radius:5px;padding:4px 8px;color:#344054;font-size:14px;font-weight:500;line-height:14.52px;text-align:center}.card-title[_ngcontent-%COMP%]{text-align:left;color:#344054;font-size:18px;font-weight:700;height:40px;margin-bottom:10px}.card-text[_ngcontent-%COMP%]{color:#344054;font-size:15px;font-weight:400;line-height:17px;text-align:left;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-overflow:ellipsis;max-height:4.5em}.price[_ngcontent-%COMP%]{font-size:15px}.orignalPrice[_ngcontent-%COMP%]{text-decoration:line-through;text-decoration-color:#64676ad0}.numberP[_ngcontent-%COMP%]{font-weight:700;line-height:16.94px;text-align:left;color:#344054}.values[_ngcontent-%COMP%]{font-size:14px;font-weight:400;line-height:16.94px;text-align:left;color:#344054}.values[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:14px;font-weight:600;line-height:16.94px;text-align:left;color:#344054}.rating[_ngcontent-%COMP%]{text-align:end;font-size:16px}.revLength[_ngcontent-%COMP%]{font-size:16px;font-weight:400;line-height:21.79px;text-align:center;color:#1e1e1ebc}.addToCart2[_ngcontent-%COMP%], .addToCart1[_ngcontent-%COMP%]{color:#344054e0;background-color:#41cccc;font-size:14px;font-weight:700;line-height:21.79px;text-align:center;width:100%;border:0;outline:0;padding:10px 15px;border-radius:5px;width:45%;margin-right:4px;font-weight:500}.addToCart2[_ngcontent-%COMP%]{background-color:#344054;color:#fff;font-weight:500}.active[_ngcontent-%COMP%]{background-color:gray;color:#00000095}@media (max-width: 968px){.addToCart1[_ngcontent-%COMP%], .addToCart2[_ngcontent-%COMP%]{width:80%}.addToCart1[_ngcontent-%COMP%]{margin-bottom:8px}}"]})}return e})();function rH(e,n){1&e&&Q(0,"app-spinner",19)}function iH(e,n){if(1&e&&(m(0,"span",20),b(1),_()),2&e){const t=H();M(1),ce(" / ",t.selectedCategory,"")}}function oH(e,n){if(1&e&&(m(0,"span",20),b(1),_()),2&e){const t=H();M(1),ce(" / ",t.searchText,"")}}function sH(e,n){if(1&e){const t=mt();m(0,"div",23)(1,"app-product",24),Y("countCart",function(i){return je(t),Be(H(2).getCartCount(i))}),_()()}if(2&e){const t=n.$implicit,r=H(2);M(1),N("product",t)("currentUser",r.currentUser)}}function aH(e,n){if(1&e&&(m(0,"div",21),K(1,sH,2,2,"div",22),_()),2&e){const t=H();M(1),N("ngForOf",t.allProducts)}}function lH(e,n){if(1&e){const t=mt();m(0,"li",27)(1,"a",32),Y("click",function(){je(t);const i=H(2);return Be(i.getAllProducts(i.urlLimit,0,i.selectedCategory))}),b(2,"1"),_()()}}function cH(e,n){1&e&&(m(0,"li",27)(1,"span",33),b(2,"..."),_()())}const uH=function(e){return{"background-color":e}};function dH(e,n){if(1&e){const t=mt();m(0,"a",35),Y("click",function(){je(t);const i=H().index,o=H(2);return Be(o.getAllProducts(o.limit,i*o.limit,o.selectedCategory))}),b(1),_()}if(2&e){const t=H().index,r=H(2);N("ngStyle",$f(2,uH,r.skip/r.limit===t?"#41CCCC":"#fff")),M(1),ce(" ",t+1," ")}}function fH(e,n){if(1&e&&(m(0,"li",27),K(1,dH,2,4,"a",34),_()),2&e){const t=n.index,r=H(2);M(1),N("ngIf",t>=r.skip/r.limit-1&&t9),M(1),N("ngIf",t.skip>3*t.limit),M(1),N("ngForOf",function fD(e,n,t){const r=ft()+e,i=E();return i[r]===q?bn(i,r,t?n.call(t):n()):function ls(e,n){return e[n]}(i,r)}(7,gH).constructor(t.totalPages)),M(1),N("ngIf",t.skip=(t.totalPages-1)*t.limit)}}let yH=(()=>{class e{constructor(t,r,i,o,s,a){this.http=t,this.sharedService=r,this.route=i,this.router=o,this.auth=s,this.toastr=a,this.urlLimit=9,this.urlSkip=0,this.selectedCategory="All",this.allProducts=[],this.allCategories=[],this.loadingSpinner=!1,this.totalPages=0,this.currentPage=1,this.limit=9,this.skip=0,this.searchText="",console.log("he"),this.urlLimit=Number(this.route.snapshot.paramMap.get("limit")),this.urlSkip=Number(this.route.snapshot.paramMap.get("skip")),console.log(this.urlLimit,this.urlSkip)}ngOnInit(){console.log("hel"),this.getUser(),this.refreshPage(),this.cartCount()}cartCount(){if("cart"in localStorage){let t=JSON.parse(localStorage.getItem("cart"));this.cartCountAll=t.length}}getCartCount(t){this.cartCountAll=t,console.log(this.cartCountAll)}refreshPage(){this.route.paramMap.subscribe(t=>{this.urlLimit=Number(t.get("limit")),this.urlSkip=Number(t.get("skip")),this.selectedCategory=t.get("category")||"All",this.getAllProducts(this.urlLimit,this.urlSkip,this.selectedCategory)})}getAllProducts(t,r,i){this.skip=r,this.urlSkip=this.skip,this.loadingSpinner=!0,"All"===i?this.http.getProducts(this.urlLimit,this.urlSkip).subscribe(o=>{9===o.limit&&(this.totalPages=Math.ceil(o.total/o.limit)),this.searchText="",this.allProducts=o.products,this.router.navigateByUrl(`home/products/${this.urlLimit}/${this.skip}/${this.selectedCategory}`),this.loadingSpinner=!1},o=>{this.loadingSpinner=!1}):this.sharedService.getProductsByCategory(i).subscribe(o=>{this.allProducts=o.products,this.router.navigateByUrl(`home/products/${this.urlLimit}/${this.skip}/${this.selectedCategory}`),this.loadingSpinner=!1},o=>{this.loadingSpinner=!1})}onCategorySelected(t){this.selectedCategory=t,this.getAllProducts(this.urlLimit,this.urlSkip,this.selectedCategory)}PreviousPage(){this.skip>=9&&(this.skip-=9,this.getAllProducts(this.limit,Number(this.skip),this.selectedCategory))}nextPage(){this.skip<189&&(this.skip+=9,this.getAllProducts(this.limit,Number(this.skip),this.selectedCategory))}onSearchText(t){console.log(t),this.searchText=t,this.selectedCategory="All",console.log(this.searchText),this.sharedService.SearchProducts(t).subscribe(r=>{this.allProducts=r.products,console.log(this.allProducts.length),this.searchText=""})}getUser(){this.auth.getAndAuthorizeCurrentUser().subscribe(t=>{this.currentUser=t,console.log(this.currentUser)})}static#e=this.\u0275fac=function(r){return new(r||e)(D(qc),D(t0),D(Cr),D(ze),D(ta),D(ia))};static#t=this.\u0275cmp=ct({type:e,selectors:[["app-all-products"]],decls:26,vars:6,consts:[[1,"headerContainer"],[3,"countOfCart","text"],[1,"text-center","w-100",2,"margin-top","50px"],["style","color: #41CCCC;",4,"ngIf"],[1,"labels"],["class","categoryLabel",4,"ngIf"],["type","button","data-bs-toggle","offcanvas","data-bs-target","#offcanvasScrolling","aria-controls","offcanvasScrolling",1,"btn","btnCategories"],["data-bs-scroll","true","data-bs-backdrop","true","tabindex","-1","id","offcanvasScrolling","aria-labelledby","offcanvasScrollingLabel",1,"offcanvas","offcanvas-end"],[1,"offcanvas-header"],["id","offcanvasScrollingLabel",1,"offcanvas-title"],["type","button","data-bs-dismiss","offcanvas","aria-label","Close",1,"btn-close"],[1,"offcanvas-body"],[3,"categoryChange"],[1,"box","mt-4"],[1,"select","slectList"],[1,"container","productsall"],["class","row ",4,"ngIf"],["aria-label","Page navigation example",4,"ngIf"],[1,"footer",2,"padding-bottom","20px"],[2,"color","#41CCCC"],[1,"categoryLabel"],[1,"row"],["class","item col-md-3 col-sm-12 ","style","margin-bottom: 30px;",4,"ngFor","ngForOf"],[1,"item","col-md-3","col-sm-12",2,"margin-bottom","30px"],[3,"product","currentUser","countCart"],["aria-label","Page navigation example"],[1,"pagination","justify-content-center"],[1,"page-item"],[1,"page-link",3,"disabled","click"],["aria-hidden","true"],["class","page-item",4,"ngIf"],["class","page-item",4,"ngFor","ngForOf"],[1,"page-link",3,"click"],[1,"page-link"],["class","page-link",3,"ngStyle","click",4,"ngIf"],[1,"page-link",3,"ngStyle","click"]],template:function(r,i){1&r&&(m(0,"div",0)(1,"app-header",1),Y("text",function(s){return i.onSearchText(s)}),_()(),m(2,"div",2),K(3,rH,1,0,"app-spinner",3),_(),m(4,"div",4)(5,"p"),b(6,"Home / Products "),K(7,iH,2,1,"span",5),K(8,oH,2,1,"span",5),_(),m(9,"button",6),b(10,"Select category \xbb"),_(),m(11,"div",7)(12,"div",8)(13,"h5",9),b(14,"Select Category :"),_(),Q(15,"button",10),_(),m(16,"div",11)(17,"app-filter-products",12),Y("categoryChange",function(s){return i.onCategorySelected(s)}),_()()()(),m(18,"div",13)(19,"div",14)(20,"app-filter-products",12),Y("categoryChange",function(s){return i.onCategorySelected(s)}),_()(),m(21,"div",15),K(22,aH,2,1,"div",16),K(23,mH,15,8,"nav",17),_()(),m(24,"div",18),Q(25,"app-footer"),_()),2&r&&(M(1),N("countOfCart",i.cartCountAll),M(2),N("ngIf",i.loadingSpinner),M(4),N("ngIf","All"!==i.selectedCategory),M(1),N("ngIf","All"==i.selectedCategory),M(14),N("ngIf",!i.loadingSpinner),M(1),N("ngIf","All"===i.selectedCategory&&""===i.searchText))},dependencies:[no,mr,Nh,zc,Y$,Gc,J$,nH],styles:["*[_ngcontent-%COMP%]{margin:0;padding:0}.container[_ngcontent-%COMP%]{max-width:100%}.box[_ngcontent-%COMP%]{display:flex;justify-content:center}.labels[_ngcontent-%COMP%]{width:90%;margin:auto;display:flex;justify-content:space-between;align-items:center}.btnCategories[_ngcontent-%COMP%]{background-color:#dedede;color:#344054;padding:4px 8px;display:none}.btnCategories[_ngcontent-%COMP%]:hover{background-color:#41cccc;color:#1e1e1e}.offcanvas-header[_ngcontent-%COMP%]{color:#1e1e1e;font-weight:700;padding:15px;background-color:#f6f6f6}.offcanvas-body[_ngcontent-%COMP%]{color:#222d41;font-weight:400;padding:15px;background-color:#f6f6f6}.categoryLabel[_ngcontent-%COMP%]{font-size:18px;font-weight:700;line-height:21.78px;text-align:left;color:#344054}.labels[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#1e1e1e;font-size:18px;font-weight:400;line-height:21.78px;text-align:left}.slectList[_ngcontent-%COMP%]{width:25%;border:1px solid #6c757d;border-radius:10px;padding:20px 35px;margin-top:30px;margin-left:40px;height:100%;box-sizing:border-box}.productsall[_ngcontent-%COMP%]{margin-top:30px}.list-group-item[_ngcontent-%COMP%]:hover{background-color:#f8f9fa}.card[_ngcontent-%COMP%]{box-shadow:0 4px 8px #0000001a;transition:transform .2s ease-in-out}.card[_ngcontent-%COMP%]:hover{transform:scale(1.05)}.cardImage[_ngcontent-%COMP%]{height:200px;object-fit:cover}.pagination[_ngcontent-%COMP%]{justify-content:center;width:400px;margin:30px auto}.page-link[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #F6F6F6;width:32px;margin:5px;color:#1e1e1e;border-radius:5px;cursor:pointer;text-align:center}.page-link[_ngcontent-%COMP%]:hover{background-color:#41cccc}.headerContainer[_ngcontent-%COMP%]{margin-top:0;z-index:999;position:sticky;top:0;left:0;background-color:#f6f6f6}.row[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:stretch;gap:15px}.item[_ngcontent-%COMP%]{width:28%}@media (max-width: 1200px){.item[_ngcontent-%COMP%]{width:45%}}@media (max-width: 992px){.list-group[_ngcontent-%COMP%]{margin-bottom:20px}.slectList[_ngcontent-%COMP%]{display:none}.footer[_ngcontent-%COMP%] .container[_ngcontent-%COMP%]{font-size:14px}.btnCategories[_ngcontent-%COMP%]{display:block;font-size:16px}.cardImage[_ngcontent-%COMP%]{height:180px}.item[_ngcontent-%COMP%]{width:45%}}@media (max-width: 768px){.cardImage[_ngcontent-%COMP%]{height:160px}.col-md-4[_ngcontent-%COMP%]{flex:0 0 50%;max-width:50%}.item[_ngcontent-%COMP%]{width:40%}}@media (max-width: 576px){.cardImage[_ngcontent-%COMP%]{height:140px}.labels[_ngcontent-%COMP%]{flex-wrap:wrap;flex-direction:column;text-align:left;align-items:start;justify-content:space-between}.labels[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:10px}.col-md-4[_ngcontent-%COMP%]{flex:0 0 100%;max-width:100%}.item[_ngcontent-%COMP%]{width:90%}}.footer[_ngcontent-%COMP%]{grid-column:span 12 / span 12;grid-column-start:1;grid-row-start:9;background-color:#1d2939}.footer[_ngcontent-%COMP%] .container[_ngcontent-%COMP%]{color:#fff;width:80%;margin:0 auto;display:flex;flex-direction:row;justify-content:space-between;align-items:center;font-size:16px}.footer[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;margin-top:20px}.footer[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:34px;margin-right:5px}.footer[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{margin-top:20px;color:#98a2b3}"]})}return e})();const d0=(e,n)=>!!localStorage.getItem("token")||(T(ze).navigateByUrl("login"),!1);function vH(e,n){if(1&e){const t=mt();m(0,"div",22)(1,"div",23),Q(2,"img",24),_(),m(3,"div",25)(4,"div",2)(5,"div",26)(6,"h1",27),b(7),_(),m(8,"p",28),b(9),_(),m(10,"p",28),b(11,"Price: "),m(12,"span",29),b(13),_()(),m(14,"p",30),b(15),_(),m(16,"p",30),b(17),_(),m(18,"button",31),Y("click",function(){const o=je(t).$implicit;return Be(H().goToProductDetails(o))}),b(19,"View product"),_()()(),m(20,"div",32)(21,"div",33)(22,"h3",34)(23,"span",35),b(24),_()()()()()()}if(2&e){const t=n.$implicit;M(2),N("src",t.thumbnail,dr),M(5),xe(t.title),M(2),ce("Discount: ",t.discountPercentage,"%"),M(4),xe(t.price),M(2),ce("Price (mulitiply quantity): ",t.total.toFixed(2)," "),M(2),ce("Quantity: ",t.quantity," "),M(7),ce("Total: ",t.discountedPrice.toFixed(2),"$")}}let _H=(()=>{class e{constructor(t,r,i){this.auth=t,this.service=r,this.route=i,this.user={},this.response={},this.getUserId()}getUserId(){this.auth.getAndAuthorizeCurrentUser().subscribe(t=>{console.log(t),this.user=t,localStorage.setItem("userId",this.user.id)})}ngOnInit(){this.getUserId(),this.addToCart()}pushCart(){const t=JSON.parse(localStorage.getItem("userId")),r=JSON.parse(localStorage.getItem("cart"));let i=[];this.cartLength=r.length,console.log(r);for(let o of r)i.push({id:o.product.id,quantity:o.quantity}),console.log(i);this.service.addCart({userId:t,products:i}).subscribe(o=>{console.log(o),this.response=o},o=>{console.log(o)})}addToCart(){"cart"in localStorage&&"userId"in localStorage||this.getUserId(),this.pushCart()}goToProductDetails(t){console.log(t),this.route.navigateByUrl(`products/${t.title}/${t.id}/${this.response.products.length}`)}static#e=this.\u0275fac=function(r){return new(r||e)(D(ta),D(qc),D(ze))};static#t=this.\u0275cmp=ct({type:e,selectors:[["app-cart"]],decls:54,vars:5,consts:[[1,"bg-light","ContainerPage"],[1,"container-fluid"],[1,"row"],[1,"col-md-10","col-11","mx-auto"],[1,"row","mt-5","gx-3","bigBox",2,"position","relative"],[1,"col-md-8","col-12","mx-auto","main_cart","mb-md-0","mb-5","shadow","ss"],[1,"card","p-4","cards"],[1,"py-3","font-weight-bold",2,"color","#222d41"],["class","row","style","margin-bottom: 15px; padding: 20px; border-radius: 10px;",4,"ngFor","ngForOf"],[1,"col-md-4","col-12","mx-auto","mt-md-0","mt-2","bigBox2",2,"height","fit-content","position","sticky","top","10px","left","0"],[1,"right_side","p-3","shadow","bg-white"],[1,"product_name","mb-2",2,"color","#222d41"],[1,"price_indiv","d-flex","justify-content-between"],["id","product_total_amt"],["id","shipping_charge"],[1,"total-amt","d-flex","justify-content-between","font-weight-bold"],["id","total_cart_amt"],[1,"btn","btn-primary","text-uppercase","btnView","mt-2","mb-2"],[1,"mt-3","shadow","p-3","bg-white"],[1,"pt-4"],[1,"mb-4"],[1,"footer",2,"padding-bottom","20px"],[1,"row",2,"margin-bottom","15px","padding","20px","border-radius","10px"],[1,"col-md-5","col-11","mx-auto","bg-light","d-flex","justify-content-center","align-items-center","shadow","product_img"],["alt","cart img",1,"img-fluid",3,"src"],[1,"col-md-7","col-11","mx-auto","mt-2","z"],[1,"col-6","card-title"],[1,"mb-4","product_name",2,"color","#222d41"],[1,"mb-2"],[2,"text-decoration","line-through"],[1,"mb-2",2,"font-weight","700"],[1,"btnView",3,"click"],[1,"row","total"],[1,"col-4","d-flex","justify-content-end","price_money"],[2,"color","#222d41"],[1,"h3"]],template:function(r,i){1&r&&(Q(0,"app-header"),m(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"div",5)(7,"div",6)(8,"h2",7),b(9),_(),K(10,vH,25,7,"div",8),_(),Q(11,"hr"),_(),m(12,"div",9)(13,"div",10)(14,"h2",11),b(15,"Total"),_(),m(16,"div",12)(17,"p"),b(18,"Products total"),_(),m(19,"p"),b(20,"$"),m(21,"span",13),b(22),_()()(),m(23,"div",12)(24,"p"),b(25,"Total quantity"),_(),m(26,"p")(27,"span",13),b(28),_()()(),m(29,"div",12)(30,"p"),b(31,"Shipping Charge"),_(),m(32,"p"),b(33,"$"),m(34,"span",14),b(35,"50.0"),_()()(),Q(36,"hr"),m(37,"div",15)(38,"p"),b(39,"The total amount of (including VAT)"),_(),m(40,"p"),b(41,"$"),m(42,"span",16),b(43),_()()(),m(44,"button",17),b(45,"Checkout"),_()(),m(46,"div",18)(47,"div",19)(48,"h5",20),b(49,"Expected delivery date"),_(),m(50,"p"),b(51,"July 27th 2020 - July 29th 2020"),_()()()()()()()()(),m(52,"div",21),Q(53,"app-footer"),_()),2&r&&(M(9),ce("Cart Items (",i.cartLength,")"),M(1),N("ngForOf",i.response.products),M(12),xe(i.response.total.toFixed(2)),M(6),xe(i.response.totalQuantity),M(15),xe((i.response.total+50).toFixed(2)))},dependencies:[no,zc,Gc],styles:['*[_ngcontent-%COMP%]{margin:0;padding:0;box-sizing:border-box;font-family:Mulish,sans-serif}[_ngcontent-%COMP%]:root{--text-clr: #4f4f4f}p[_ngcontent-%COMP%]{color:#6c757d}a[_ngcontent-%COMP%], a[_ngcontent-%COMP%]:hover{text-decoration:none;color:var(--text-clr)}h2[_ngcontent-%COMP%]{color:var(--text-clr);font-size:1.5rem}.main_cart[_ngcontent-%COMP%]{background:#fff}.card[_ngcontent-%COMP%]{border:none}.product_img[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{min-width:200px;max-height:200px}.product_name[_ngcontent-%COMP%]{color:#000;font-size:1.4rem;text-transform:capitalize;font-weight:500}.card-title[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:.9rem;font-weight:500}.remove-and-wish[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:.8rem;margin-bottom:0}.price-money[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:1rem;font-weight:600}.set_quantity[_ngcontent-%COMP%]{position:relative}.set_quantity[_ngcontent-%COMP%]:after{content:"(Note, 1 piece)";width:auto;height:auto;text-align:center;position:absolute;bottom:-20px;right:1.5rem;font-size:.8rem}.page-link[_ngcontent-%COMP%]{line-height:16px;width:45px;font-size:1rem;display:flex;justify-content:center;align-items:center;color:#495057}.page-item[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{line-height:22px;padding:3px;font-size:15px;display:flex;justify-content:center;align-items:center;text-align:center}.page-link[_ngcontent-%COMP%]:hover{text-decoration:none;color:#495057;outline:none!important}.page-link[_ngcontent-%COMP%]:focus{box-shadow:none}.price_indiv[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:1.1rem}.fa-heart[_ngcontent-%COMP%]:hover{color:red}.btnView[_ngcontent-%COMP%]{display:block;background-color:#41cccc;color:#141d30;border-radius:5px;padding:4px 8px;border:0;outline:0;font-weight:500}.ss[_ngcontent-%COMP%]{width:65%}.total[_ngcontent-%COMP%]{margin-left:20px}.card-title[_ngcontent-%COMP%]{width:100%;margin-left:20px}@media (min-width:992px){.ContainerPage[_ngcontent-%COMP%]{height:100vh}}@media (max-width: 992px){*[_ngcontent-%COMP%]{font-size:16px}.bigBox[_ngcontent-%COMP%], .bigBox2[_ngcontent-%COMP%]{width:100%}.footer[_ngcontent-%COMP%] .container[_ngcontent-%COMP%]{font-size:14px}.bigBox2[_ngcontent-%COMP%]{margin-top:20px}.h3[_ngcontent-%COMP%]{font-weight:700}.z[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{width:100%;margin-left:5px;margin-right:0;padding-left:0;padding-right:0;text-align:start}.card-title[_ngcontent-%COMP%]{width:100%;text-align:start;padding:0;margin:0}.product_name[_ngcontent-%COMP%]{width:100%;text-align:start}.ss[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]{width:100%;margin-left:0;margin-right:0;padding-left:0;padding-right:0}.btnView[_ngcontent-%COMP%]{width:80%;margin:auto}}@media (max-width: 525px){.h3[_ngcontent-%COMP%]{margin-left:10px}}.footer[_ngcontent-%COMP%]{margin-top:20px;grid-column:span 12 / span 12;grid-column-start:1;grid-row-start:9;background-color:#1d2939}.footer[_ngcontent-%COMP%] .container[_ngcontent-%COMP%]{color:#fff;width:80%;margin:0 auto;display:flex;flex-direction:row;justify-content:space-between;align-items:center;font-size:16px}.footer[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;margin-top:20px}.footer[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:34px;margin-right:5px}.footer[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{margin-top:20px;color:#98a2b3}']})}return e})();const CH=["imgShowcase"];function DH(e,n){1&e&&Q(0,"img",37),2&e&&N("src",n.$implicit,dr)}function wH(e,n){if(1&e){const t=mt();m(0,"a",40),Y("click",function(i){je(t);const o=H().index;return Be(H().onImgClick(i,o+1))}),Q(1,"img",41),_()}if(2&e){const t=H(),i=t.$implicit;gt("data-id",t.index+1),M(1),N("src",i,dr)}}function bH(e,n){if(1&e&&(m(0,"div",38),K(1,wH,2,2,"a",39),_()),2&e){const t=H();M(1),N("ngIf",t.product.images.length>1)}}function EH(e,n){1&e&&Q(0,"i",42)}const MH=[{path:"login",component:I$},{path:"home/products/:limit/:skip/:category",component:yH,canActivate:[d0]},{path:"products/:product/:id/:countCart",component:(()=>{class e{constructor(t,r,i){this.route=t,this.service=r,this.toastr=i,this.product={},this.cartProducts=[],this.quantity=1,this.imgId=1,this.productImages={images:[]},this.id=this.route.snapshot.paramMap.get("id"),console.log(Number(this.id)),this.countCart=this.route.snapshot.paramMap.get("countCart"),console.log(this.countCart)}ngOnInit(){this.getProductById(this.id)}getProductById(t){this.service.getProductById(t).subscribe(r=>{this.product=r,console.log(this.product)})}getDiscountPrice(t,r){return(t-t*r/100).toFixed(2)}addToCartItem(){"cart"in localStorage?(this.cartProducts=JSON.parse(localStorage.getItem("cart")),this.cartProducts.find(r=>r.product.id==this.product.id)?this.toastr.error("You already added the product to cart"):(this.cartProducts.push({product:this.product,quantity:this.quantity}),this.countCart=this.cartProducts.length,localStorage.setItem("cart",JSON.stringify(this.cartProducts)),this.toastr.success("Product is added to your cart"))):(this.cartProducts.push({product:this.product,quantity:this.quantity}),this.countCart=this.cartProducts.length,this.toastr.success("Product is added to your cart"),localStorage.setItem("cart",JSON.stringify(this.cartProducts)))}ngAfterViewChecked(){this.slideImage()}onImgClick(t,r){t.preventDefault(),this.imgId=r,this.slideImage()}slideImage(){if(!this.imgShowcase||!this.imgShowcase.nativeElement)return;const t=this.imgShowcase.nativeElement.querySelector("img:first-child")?.clientWidth;t&&(this.imgShowcase.nativeElement.style.transform=`translateX(${-(this.imgId-1)*t}px)`)}onResize(t){this.slideImage()}static#e=this.\u0275fac=function(r){return new(r||e)(D(Cr),D(qc),D(ia))};static#t=this.\u0275cmp=ct({type:e,selectors:[["app-product-details"]],viewQuery:function(r,i){if(1&r&&AD(CH,5),2&r){let o;Zf(o=function Kf(){return function CR(e,n){return e[mn].queries[n].queryList}(E(),qm())}())&&(i.imgShowcase=o.first)}},hostBindings:function(r,i){1&r&&Y("resize",function(s){return i.onResize(s)},0,kv)},decls:90,vars:16,consts:[["charset","utf-8"],["http-equiv","X-UA-Compatible","content","IE=edge"],["name","viewport","content","width=device-width, initial-scale=1"],["rel","stylesheet","href","https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css","integrity","sha512-+4zCK9k+qNFUR5X+cKL9EIR+ZOhtIloNl9GIKS57V1MyNsYpYcUrUeQc9vNfzsWfV28IaLL3i96P9sdNyeRssA==","crossorigin","anonymous"],[1,"card-wrapper",2,"margin-top","60px","margin-bottom","65px","width","80%"],[1,"card"],[1,"product-imgs"],[1,"img-display"],[1,"img-showcase",2,"transform","translateX(0px)"],["imgShowcase",""],["alt","productImg",3,"src",4,"ngFor","ngForOf"],[1,"img-select"],["class","img-item",4,"ngFor","ngForOf"],[1,"product-content"],[1,"product-title"],["href","https://www.linkedin.com/in/ibrahim-salah-94417921b/",1,"product-link",2,"background-color","#41CCCC","color","#252525","padding","2px 5px"],[1,"product-rating"],["class","fas fa-star",4,"ngIf"],[2,"color","#7e8288b8","font-weight","500"],[1,"product-price"],[1,"last-price"],[1,"new-price"],[2,"font-weight","700"],[2,"color","green"],[1,"product-detail"],[1,"purchase-info"],["type","number",1,"form-control","quantityinput",2,"text-align","center",3,"value","ngModel","ngModelChange"],["type","button",1,"btn",3,"click"],[1,"fas","fa-shopping-cart"],[1,"social-links"],["href","https://www.linkedin.com/in/ibrahim-salah-94417921b/"],[1,"fab","fa-facebook-f"],[1,"fab","fa-twitter"],[1,"fab","fa-instagram"],[1,"fab","fa-whatsapp"],[1,"fab","fa-pinterest"],[1,"footer",2,"padding-bottom","20px"],["alt","productImg",3,"src"],[1,"img-item"],[3,"click",4,"ngIf"],[3,"click"],["alt","productImg",1,"sss",3,"src"],[1,"fas","fa-star"]],template:function(r,i){1&r&&(m(0,"head"),Q(1,"meta",0)(2,"meta",1),m(3,"title"),b(4,"Product Card/Page"),_(),Q(5,"meta",2)(6,"link",3),_(),Q(7,"app-header"),m(8,"body")(9,"div",4)(10,"div",5)(11,"div",6)(12,"div",7)(13,"div",8,9),K(15,DH,1,1,"img",10),_()(),m(16,"div",11),K(17,bH,2,1,"div",12),_()(),m(18,"div",13)(19,"h2",14),b(20),_(),m(21,"a",15),b(22,"visit original store"),_(),m(23,"div",16),K(24,EH,1,0,"i",17),m(25,"span"),b(26),m(27,"span",18),b(28),_()()(),m(29,"div",19)(30,"p",20),b(31,"Old Price: "),m(32,"span"),b(33),_()(),m(34,"p",21),b(35,"New Price: "),m(36,"span",22),b(37),m(38,"span",23),b(39),_()()()(),m(40,"div",24)(41,"h2"),b(42,"about Product: "),_(),m(43,"p"),b(44),_(),m(45,"ul")(46,"li"),b(47,"Brand: "),m(48,"span"),b(49),_()(),m(50,"li"),b(51,"Available: "),m(52,"span",23),b(53),_()(),m(54,"li"),b(55,"Category: "),m(56,"span"),b(57),_()(),m(58,"li"),b(59,"Shipping Area: "),m(60,"span"),b(61,"All over the world"),_()(),m(62,"li"),b(63,"Shipping Fee: "),m(64,"span"),b(65,"Free"),_()(),m(66,"li"),b(67,"Warranty Information: "),m(68,"span"),b(69),_()()()(),m(70,"div",25)(71,"input",26),Y("ngModelChange",function(s){return i.quantity=s}),_(),m(72,"button",27),Y("click",function(){return i.addToCartItem()}),b(73," Add to Cart "),Q(74,"i",28),_()(),m(75,"div",29)(76,"p"),b(77,"Share At : "),_(),m(78,"a",30),Q(79,"i",31),_(),m(80,"a",30),Q(81,"i",32),_(),m(82,"a",30),Q(83,"i",33),_(),m(84,"a",30),Q(85,"i",34),_(),m(86,"a",30),Q(87,"i",35),_()()()()()(),m(88,"div",36),Q(89,"app-footer"),_()),2&r&&(M(15),N("ngForOf",i.product.images),M(2),N("ngForOf",i.product.images),M(3),xe(i.product.title),M(4),N("ngIf",i.product.rating>3.5),M(2),ce(" Rating: ",i.product.rating," "),M(2),ce(" (",i.product.reviews.length," reviews)"),M(5),xe(i.product.price),M(4),ce("",i.getDiscountPrice(i.product.price,i.product.discountPercentage),"$ "),M(2),ce("(",i.product.discountPercentage,"%)"),M(5),ce("",i.product.description," "),M(5),xe(i.product.brand),M(4),ce("in stock (",i.product.stock,")"),M(4),xe(i.product.category),M(12),xe(i.product.warrantyInformation),M(2),N("value",i.quantity)("ngModel",i.quantity))},dependencies:[no,mr,Dr,Fc,po,yo,zc,Gc],styles:['*[_ngcontent-%COMP%]{box-sizing:border-box;padding:0;margin:0;font-family:Open Sans,sans-serif}body[_ngcontent-%COMP%]{line-height:1.5}.card-wrapper[_ngcontent-%COMP%]{max-width:1100px;margin:0 auto}img[_ngcontent-%COMP%]{width:100%;display:block}.img-display[_ngcontent-%COMP%]{overflow:hidden}.img-showcase[_ngcontent-%COMP%]{display:flex;width:100%;transition:all .5s ease}.img-showcase[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{min-width:100%}.img-select[_ngcontent-%COMP%]{display:flex}.img-item[_ngcontent-%COMP%]{margin:.3rem}.img-item[_ngcontent-%COMP%]:nth-child(1), .img-item[_ngcontent-%COMP%]:nth-child(2), .img-item[_ngcontent-%COMP%]:nth-child(3){margin-right:0}.img-item[_ngcontent-%COMP%]:hover{opacity:.8}.product-content[_ngcontent-%COMP%]{padding:2rem 1rem}.product-title[_ngcontent-%COMP%]{font-size:3rem;text-transform:capitalize;font-weight:700;position:relative;color:#12263a;margin:1rem 0}.product-title[_ngcontent-%COMP%]:after{content:"";position:absolute;left:0;bottom:0;height:4px;width:80px;background:#12263a}.product-link[_ngcontent-%COMP%]{text-decoration:none;text-transform:uppercase;font-weight:400;font-size:.9rem;display:inline-block;margin-bottom:.5rem;background:#256eff;color:#fff;padding:0 .3rem;transition:all .5s ease}.sss[_ngcontent-%COMP%]{width:100%;height:100%}.img-showcase[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:400px}.product-link[_ngcontent-%COMP%]:hover{opacity:.9}.product-rating[_ngcontent-%COMP%]{color:#ffc107}.product-rating[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:600;color:#252525}.product-price[_ngcontent-%COMP%]{margin:1rem 0;font-size:1rem;font-weight:700}.product-price[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:400}.last-price[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#767778;text-decoration:line-through}.new-price[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#256eff}.product-detail[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{text-transform:capitalize;color:#12263a;padding-bottom:.6rem}.product-detail[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:.9rem;padding:.3rem;opacity:.8}.product-detail[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:1rem 0;font-size:.9rem}.product-detail[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:0;list-style:none;background:url(checked.f56bc21dc859c096.png) left center no-repeat;background-size:18px;padding-left:1.7rem;margin:.4rem 0;font-weight:600;opacity:.9}.product-detail[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:400}.purchase-info[_ngcontent-%COMP%]{margin:1.5rem 0}.purchase-info[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .purchase-info[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{border:1.5px solid #ddd;border-radius:25px;text-align:center;padding:.45rem .8rem;outline:0;margin-right:.2rem;margin-bottom:1rem}.purchase-info[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:60px}.purchase-info[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{cursor:pointer;color:#fff;margin-top:12px;margin-right:5px}.purchase-info[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]:last-of-type{background-color:#41cccc;color:#252525}.purchase-info[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]:hover{opacity:.9}.social-links[_ngcontent-%COMP%]{display:flex;align-items:center}.social-links[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:32px;height:32px;color:#000;border:1px solid #000;margin:0 .2rem;border-radius:50%;text-decoration:none;font-size:.8rem;transition:all .5s ease}.social-links[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background:#000;border-color:transparent;color:#fff}@media screen and (min-width: 992px){.card[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);grid-gap:1.5rem}.card-wrapper[_ngcontent-%COMP%]{height:100vh;display:flex;justify-content:center;align-items:center}.product-imgs[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center}.product-content[_ngcontent-%COMP%]{padding-top:0}}.footer[_ngcontent-%COMP%]{grid-column:span 12 / span 12;grid-column-start:1;grid-row-start:9;background-color:#1d2939}.footer[_ngcontent-%COMP%] .container[_ngcontent-%COMP%]{color:#fff;width:80%;margin:0 auto;display:flex;flex-direction:row;justify-content:space-between;align-items:center;font-size:16px}.footer[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;margin-top:20px}.footer[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:34px;margin-right:5px}.footer[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{margin-top:20px;color:#98a2b3}']})}return e})()},{path:"cart",component:_H,canActivate:[d0]},{path:"**",redirectTo:"home/products/9/0/All",pathMatch:"full"}];let Qc=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=tt({type:e});static#n=this.\u0275inj=Qe({imports:[xE.forRoot(MH),xE]})}return e})(),SH=(()=>{class e{constructor(){this.title="Outtick"}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=ct({type:e,selectors:[["app-root"]],decls:1,vars:0,template:function(r,i){1&r&&Q(0,"router-outlet")},dependencies:[up]})}return e})(),IH=(()=>{class e{constructor(t){this.authService=t}intercept(t,r){const i=localStorage.getItem("token");return i&&(t=t.clone({setHeaders:{Authorization:`Bearer ${i}`}})),r.handle(t).pipe(Yn(o=>401===o.status?this.authService.refreshToken().pipe(qt(s=>{localStorage.setItem("token",s.accessToken),localStorage.setItem("refreshToken",s.refreshToken);const a=t.clone({setHeaders:{Authorization:`Bearer ${s.token}`}});return r.handle(a)}),Yn(s=>(console.error("Refresh token failed",s),qr(s)))):qr(o)))}static#e=this.\u0275fac=function(r){return new(r||e)(I(ta))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})();function f0(e){return new C(3e3,!1)}function Ir(e){switch(e.length){case 0:return new ra;case 1:return e[0];default:return new a0(e)}}function h0(e,n,t=new Map,r=new Map){const i=[],o=[];let s=-1,a=null;if(n.forEach(l=>{const c=l.get("offset"),u=c==s,d=u&&a||new Map;l.forEach((f,h)=>{let p=h,g=f;if("offset"!==h)switch(p=e.normalizePropertyName(p,i),g){case"!":g=t.get(h);break;case er:g=r.get(h);break;default:g=e.normalizeStyleValue(h,p,g,i)}d.set(p,g)}),u||o.push(d),a=d,s=c}),i.length)throw function KH(e){return new C(3502,!1)}();return o}function Wp(e,n,t,r){switch(n){case"start":e.onStart(()=>r(t&&Qp(t,"start",e)));break;case"done":e.onDone(()=>r(t&&Qp(t,"done",e)));break;case"destroy":e.onDestroy(()=>r(t&&Qp(t,"destroy",e)))}}function Qp(e,n,t){const o=Zp(e.element,e.triggerName,e.fromState,e.toState,n||e.phaseName,t.totalTime??e.totalTime,!!t.disabled),s=e._data;return null!=s&&(o._data=s),o}function Zp(e,n,t,r,i="",o=0,s){return{element:e,triggerName:n,fromState:t,toState:r,phaseName:i,totalTime:o,disabled:!!s}}function $t(e,n,t){let r=e.get(n);return r||e.set(n,r=t),r}function p0(e){const n=e.indexOf(":");return[e.substring(1,n),e.slice(n+1)]}const lU=(()=>typeof document>"u"?null:document.documentElement)();function Kp(e){const n=e.parentNode||e.host||null;return n===lU?null:n}let ti=null,g0=!1;function m0(e,n){for(;n;){if(n===e)return!0;n=Kp(n)}return!1}function y0(e,n,t){if(t)return Array.from(e.querySelectorAll(n));const r=e.querySelector(n);return r?[r]:[]}let v0=(()=>{class e{validateStyleProperty(t){return function uU(e){ti||(ti=function dU(){return typeof document<"u"?document.body:null}()||{},g0=!!ti.style&&"WebkitAppearance"in ti.style);let n=!0;return ti.style&&!function cU(e){return"ebkit"==e.substring(1,6)}(e)&&(n=e in ti.style,!n&&g0&&(n="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in ti.style)),n}(t)}matchesElement(t,r){return!1}containsElement(t,r){return m0(t,r)}getParentElement(t){return Kp(t)}query(t,r,i){return y0(t,r,i)}computeStyle(t,r,i){return i||""}animate(t,r,i,o,s,a=[],l){return new ra(i,o)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})(),Yp=(()=>{class e{static#e=this.NOOP=new v0}return e})();const fU=1e3,Xp="ng-enter",Zc="ng-leave",Kc="ng-trigger",Yc=".ng-trigger",C0="ng-animating",Jp=".ng-animating";function tr(e){if("number"==typeof e)return e;const n=e.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:eg(parseFloat(n[1]),n[2])}function eg(e,n){return"s"===n?e*fU:e}function Xc(e,n,t){return e.hasOwnProperty("duration")?e:function pU(e,n,t){let i,o=0,s="";if("string"==typeof e){const a=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return n.push(f0()),{duration:0,delay:0,easing:""};i=eg(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=eg(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else i=e;if(!t){let a=!1,l=n.length;i<0&&(n.push(function TH(){return new C(3100,!1)}()),a=!0),o<0&&(n.push(function AH(){return new C(3101,!1)}()),a=!0),a&&n.splice(l,0,f0())}return{duration:i,delay:o,easing:s}}(e,n,t)}function oa(e,n={}){return Object.keys(e).forEach(t=>{n[t]=e[t]}),n}function D0(e){const n=new Map;return Object.keys(e).forEach(t=>{n.set(t,e[t])}),n}function Tr(e,n=new Map,t){if(t)for(let[r,i]of t)n.set(r,i);for(let[r,i]of e)n.set(r,i);return n}function Pn(e,n,t){n.forEach((r,i)=>{const o=ng(i);t&&!t.has(i)&&t.set(i,e.style[o]),e.style[o]=r})}function ni(e,n){n.forEach((t,r)=>{const i=ng(r);e.style[i]=""})}function sa(e){return Array.isArray(e)?1==e.length?e[0]:o0(e):e}const tg=new RegExp("{{\\s*(.+?)\\s*}}","g");function b0(e){let n=[];if("string"==typeof e){let t;for(;t=tg.exec(e);)n.push(t[1]);tg.lastIndex=0}return n}function aa(e,n,t){const r=e.toString(),i=r.replace(tg,(o,s)=>{let a=n[s];return null==a&&(t.push(function OH(e){return new C(3003,!1)}()),a=""),a.toString()});return i==r?e:i}function Jc(e){const n=[];let t=e.next();for(;!t.done;)n.push(t.value),t=e.next();return n}const yU=/-+([a-z0-9])/g;function ng(e){return e.replace(yU,(...n)=>n[1].toUpperCase())}function Ht(e,n,t){switch(n.type){case 7:return e.visitTrigger(n,t);case 0:return e.visitState(n,t);case 1:return e.visitTransition(n,t);case 2:return e.visitSequence(n,t);case 3:return e.visitGroup(n,t);case 4:return e.visitAnimate(n,t);case 5:return e.visitKeyframes(n,t);case 6:return e.visitStyle(n,t);case 8:return e.visitReference(n,t);case 9:return e.visitAnimateChild(n,t);case 10:return e.visitAnimateRef(n,t);case 11:return e.visitQuery(n,t);case 12:return e.visitStagger(n,t);default:throw function xH(e){return new C(3004,!1)}()}}function E0(e,n){return window.getComputedStyle(e)[n]}const eu="*";function CU(e,n){const t=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(r=>function DU(e,n,t){if(":"==e[0]){const l=function wU(e,n){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,r)=>parseFloat(r)>parseFloat(t);case":decrement":return(t,r)=>parseFloat(r) *"}}(e,t);if("function"==typeof l)return void n.push(l);e=l}const r=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return t.push(function GH(e){return new C(3015,!1)}()),n;const i=r[1],o=r[2],s=r[3];n.push(M0(i,s));"<"==o[0]&&!(i==eu&&s==eu)&&n.push(M0(s,i))}(r,t,n)):t.push(e),t}const tu=new Set(["true","1"]),nu=new Set(["false","0"]);function M0(e,n){const t=tu.has(e)||nu.has(e),r=tu.has(n)||nu.has(n);return(i,o)=>{let s=e==eu||e==i,a=n==eu||n==o;return!s&&t&&"boolean"==typeof i&&(s=i?tu.has(e):nu.has(e)),!a&&r&&"boolean"==typeof o&&(a=o?tu.has(n):nu.has(n)),s&&a}}const bU=new RegExp("s*:selfs*,?","g");function rg(e,n,t,r){return new EU(e).build(n,t,r)}class EU{constructor(n){this._driver=n}build(n,t,r){const i=new IU(t);return this._resetContextStyleTimingState(i),Ht(this,sa(n),i)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,t){let r=t.queryCount=0,i=t.depCount=0;const o=[],s=[];return"@"==n.name.charAt(0)&&t.errors.push(function RH(){return new C(3006,!1)}()),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,o.push(this.visitState(l,t))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,t);r+=l.queryCount,i+=l.depCount,s.push(l)}else t.errors.push(function kH(){return new C(3007,!1)}())}),{type:7,name:n.name,states:o,transitions:s,queryCount:r,depCount:i,options:null}}visitState(n,t){const r=this.visitStyle(n.styles,t),i=n.options&&n.options.params||null;if(r.containsDynamicStyles){const o=new Set,s=i||{};r.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{b0(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&(Jc(o.values()),t.errors.push(function FH(e,n){return new C(3008,!1)}()))}return{type:0,name:n.name,style:r,options:i?{params:i}:null}}visitTransition(n,t){t.queryCount=0,t.depCount=0;const r=Ht(this,sa(n.animation),t);return{type:1,matchers:CU(n.expr,t.errors),animation:r,queryCount:t.queryCount,depCount:t.depCount,options:ri(n.options)}}visitSequence(n,t){return{type:2,steps:n.steps.map(r=>Ht(this,r,t)),options:ri(n.options)}}visitGroup(n,t){const r=t.currentTime;let i=0;const o=n.steps.map(s=>{t.currentTime=r;const a=Ht(this,s,t);return i=Math.max(i,t.currentTime),a});return t.currentTime=i,{type:3,steps:o,options:ri(n.options)}}visitAnimate(n,t){const r=function AU(e,n){if(e.hasOwnProperty("duration"))return e;if("number"==typeof e)return ig(Xc(e,n).duration,0,"");const t=e;if(t.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=ig(0,0,"");return o.dynamic=!0,o.strValue=t,o}const i=Xc(t,n);return ig(i.duration,i.delay,i.easing)}(n.timings,t.errors);t.currentAnimateTimings=r;let i,o=n.styles?n.styles:na({});if(5==o.type)i=this.visitKeyframes(o,t);else{let s=n.styles,a=!1;if(!s){a=!0;const c={};r.easing&&(c.easing=r.easing),s=na(c)}t.currentTime+=r.duration+r.delay;const l=this.visitStyle(s,t);l.isEmptyStep=a,i=l}return t.currentAnimateTimings=null,{type:4,timings:r,style:i,options:null}}visitStyle(n,t){const r=this._makeStyleAst(n,t);return this._validateStyleAst(r,t),r}_makeStyleAst(n,t){const r=[],i=Array.isArray(n.styles)?n.styles:[n.styles];for(let a of i)"string"==typeof a?a===er?r.push(a):t.errors.push(new C(3002,!1)):r.push(D0(a));let o=!1,s=null;return r.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o))for(let l of a.values())if(l.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:r,easing:s,offset:n.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(n,t){const r=t.currentAnimateTimings;let i=t.currentTime,o=t.currentTime;r&&o>0&&(o-=r.duration+r.delay),n.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const c=t.collectedStyles.get(t.currentQuerySelector),u=c.get(l);let d=!0;u&&(o!=i&&o>=u.startTime&&i<=u.endTime&&(t.errors.push(function VH(e,n,t,r,i){return new C(3010,!1)}()),d=!1),o=u.startTime),d&&c.set(l,{startTime:o,endTime:i}),t.options&&function mU(e,n,t){const r=n.params||{},i=b0(e);i.length&&i.forEach(o=>{r.hasOwnProperty(o)||t.push(function PH(e){return new C(3001,!1)}())})}(a,t.options,t.errors)})})}visitKeyframes(n,t){const r={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function jH(){return new C(3011,!1)}()),r;let o=0;const s=[];let a=!1,l=!1,c=0;const u=n.steps.map(w=>{const v=this._makeStyleAst(w,t);let S=null!=v.offset?v.offset:function TU(e){if("string"==typeof e)return null;let n=null;if(Array.isArray(e))e.forEach(t=>{if(t instanceof Map&&t.has("offset")){const r=t;n=parseFloat(r.get("offset")),r.delete("offset")}});else if(e instanceof Map&&e.has("offset")){const t=e;n=parseFloat(t.get("offset")),t.delete("offset")}return n}(v.styles),O=0;return null!=S&&(o++,O=v.offset=S),l=l||O<0||O>1,a=a||O0&&o{const S=f>0?v==h?1:f*v:s[v],O=S*y;t.currentTime=p+g.delay+O,g.duration=O,this._validateStyleAst(w,t),w.offset=S,r.styles.push(w)}),r}visitReference(n,t){return{type:8,animation:Ht(this,sa(n.animation),t),options:ri(n.options)}}visitAnimateChild(n,t){return t.depCount++,{type:9,options:ri(n.options)}}visitAnimateRef(n,t){return{type:10,animation:this.visitReference(n.animation,t),options:ri(n.options)}}visitQuery(n,t){const r=t.currentQuerySelector,i=n.options||{};t.queryCount++,t.currentQuery=n;const[o,s]=function MU(e){const n=!!e.split(/\s*,\s*/).find(t=>":self"==t);return n&&(e=e.replace(bU,"")),e=e.replace(/@\*/g,Yc).replace(/@\w+/g,t=>Yc+"-"+t.slice(1)).replace(/:animating/g,Jp),[e,n]}(n.selector);t.currentQuerySelector=r.length?r+" "+o:o,$t(t.collectedStyles,t.currentQuerySelector,new Map);const a=Ht(this,sa(n.animation),t);return t.currentQuery=null,t.currentQuerySelector=r,{type:11,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:a,originalSelector:n.selector,options:ri(n.options)}}visitStagger(n,t){t.currentQuery||t.errors.push(function UH(){return new C(3013,!1)}());const r="full"===n.timings?{duration:0,delay:0,easing:"full"}:Xc(n.timings,t.errors,!0);return{type:12,animation:Ht(this,sa(n.animation),t),timings:r,options:null}}}class IU{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function ri(e){return e?(e=oa(e)).params&&(e.params=function SU(e){return e?oa(e):null}(e.params)):e={},e}function ig(e,n,t){return{duration:e,delay:n,easing:t}}function og(e,n,t,r,i,o,s=null,a=!1){return{type:1,element:e,keyframes:n,preStyleProps:t,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:s,subTimeline:a}}class ru{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,t){let r=this._map.get(n);r||this._map.set(n,r=[]),r.push(...t)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const xU=new RegExp(":enter","g"),RU=new RegExp(":leave","g");function sg(e,n,t,r,i,o=new Map,s=new Map,a,l,c=[]){return(new kU).buildKeyframes(e,n,t,r,i,o,s,a,l,c)}class kU{buildKeyframes(n,t,r,i,o,s,a,l,c,u=[]){c=c||new ru;const d=new ag(n,t,c,i,o,u,[]);d.options=l;const f=l.delay?tr(l.delay):0;d.currentTimeline.delayNextStep(f),d.currentTimeline.setStyles([s],null,d.errors,l),Ht(this,r,d);const h=d.timelines.filter(p=>p.containsAnimation());if(h.length&&a.size){let p;for(let g=h.length-1;g>=0;g--){const y=h[g];if(y.element===t){p=y;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,d.errors,l)}return h.length?h.map(p=>p.buildKeyframes()):[og(t,[],[],[],0,f,"",!1)]}visitTrigger(n,t){}visitState(n,t){}visitTransition(n,t){}visitAnimateChild(n,t){const r=t.subInstructions.get(t.element);if(r){const i=t.createSubContext(n.options),o=t.currentTimeline.currentTime,s=this._visitSubInstructions(r,i,i.options);o!=s&&t.transformIntoNewTimeline(s)}t.previousNode=n}visitAnimateRef(n,t){const r=t.createSubContext(n.options);r.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],t,r),this.visitReference(n.animation,r),t.transformIntoNewTimeline(r.currentTimeline.currentTime),t.previousNode=n}_applyAnimationRefDelays(n,t,r){for(const i of n){const o=i?.delay;if(o){const s="number"==typeof o?o:tr(aa(o,i?.params??{},t.errors));r.delayNextStep(s)}}}_visitSubInstructions(n,t,r){let o=t.currentTimeline.currentTime;const s=null!=r.duration?tr(r.duration):null,a=null!=r.delay?tr(r.delay):null;return 0!==s&&n.forEach(l=>{const c=t.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(n,t){t.updateOptions(n.options,!0),Ht(this,n.animation,t),t.previousNode=n}visitSequence(n,t){const r=t.subContextCount;let i=t;const o=n.options;if(o&&(o.params||o.delay)&&(i=t.createSubContext(o),i.transformIntoNewTimeline(),null!=o.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=iu);const s=tr(o.delay);i.delayNextStep(s)}n.steps.length&&(n.steps.forEach(s=>Ht(this,s,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),t.previousNode=n}visitGroup(n,t){const r=[];let i=t.currentTimeline.currentTime;const o=n.options&&n.options.delay?tr(n.options.delay):0;n.steps.forEach(s=>{const a=t.createSubContext(n.options);o&&a.delayNextStep(o),Ht(this,s,a),i=Math.max(i,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(s=>t.currentTimeline.mergeTimelineCollectedStyles(s)),t.transformIntoNewTimeline(i),t.previousNode=n}_visitTiming(n,t){if(n.dynamic){const r=n.strValue;return Xc(t.params?aa(r,t.params,t.errors):r,t.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,t){const r=t.currentAnimateTimings=this._visitTiming(n.timings,t),i=t.currentTimeline;r.delay&&(t.incrementTime(r.delay),i.snapshotCurrentStyles());const o=n.style;5==o.type?this.visitKeyframes(o,t):(t.incrementTime(r.duration),this.visitStyle(o,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=n}visitStyle(n,t){const r=t.currentTimeline,i=t.currentAnimateTimings;!i&&r.hasCurrentStyleProperties()&&r.forwardFrame();const o=i&&i.easing||n.easing;n.isEmptyStep?r.applyEmptyStep(o):r.setStyles(n.styles,o,t.errors,t.options),t.previousNode=n}visitKeyframes(n,t){const r=t.currentAnimateTimings,i=t.currentTimeline.duration,o=r.duration,a=t.createSubContext().currentTimeline;a.easing=r.easing,n.styles.forEach(l=>{a.forwardTime((l.offset||0)*o),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(i+o),t.previousNode=n}visitQuery(n,t){const r=t.currentTimeline.currentTime,i=n.options||{},o=i.delay?tr(i.delay):0;o&&(6===t.previousNode.type||0==r&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=iu);let s=r;const a=t.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{t.currentQueryIndex=u;const d=t.createSubContext(n.options,c);o&&d.delayNextStep(o),c===t.element&&(l=d.currentTimeline),Ht(this,n.animation,d),d.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,d.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(s),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=n}visitStagger(n,t){const r=t.parentContext,i=t.currentTimeline,o=n.timings,s=Math.abs(o.duration),a=s*(t.currentQueryTotal-1);let l=s*t.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=r.currentStaggerTime}const u=t.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;Ht(this,n.animation,t),t.previousNode=n,r.currentStaggerTime=i.currentTime-d+(i.startTime-r.currentTimeline.startTime)}}const iu={};class ag{constructor(n,t,r,i,o,s,a,l){this._driver=n,this.element=t,this.subInstructions=r,this._enterClassName=i,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=iu,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new ou(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,t){if(!n)return;const r=n;let i=this.options;null!=r.duration&&(i.duration=tr(r.duration)),null!=r.delay&&(i.delay=tr(r.delay));const o=r.params;if(o){let s=i.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!t||!s.hasOwnProperty(a))&&(s[a]=aa(o[a],s,this.errors))})}}_copyOptions(){const n={};if(this.options){const t=this.options.params;if(t){const r=n.params={};Object.keys(t).forEach(i=>{r[i]=t[i]})}}return n}createSubContext(n=null,t,r){const i=t||this.element,o=new ag(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(n),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(n){return this.previousNode=iu,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,t,r){const i={duration:t??n.duration,delay:this.currentTimeline.currentTime+(r??0)+n.delay,easing:""},o=new FU(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,i,n.stretchStartingKeyframe);return this.timelines.push(o),i}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,t,r,i,o,s){let a=[];if(i&&a.push(this.element),n.length>0){n=(n=n.replace(xU,"."+this._enterClassName)).replace(RU,"."+this._leaveClassName);let c=this._driver.query(this.element,n,1!=r);0!==r&&(c=r<0?c.slice(c.length+r,c.length):c.slice(0,r)),a.push(...c)}return!o&&0==a.length&&s.push(function zH(e){return new C(3014,!1)}()),a}}class ou{constructor(n,t,r,i){this._driver=n,this.element=t,this.startTime=r,this._elementTimelineStylesLookup=i,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const t=1===this._keyframes.size&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+n),t&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,t){return this.applyStylesToKeyframe(),new ou(this._driver,n,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,t){this._localTimelineStyles.set(n,t),this._globalTimelineStyles.set(n,t),this._styleSummary.set(n,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[t,r]of this._globalTimelineStyles)this._backFill.set(t,r||er),this._currentKeyframe.set(t,er);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,t,r,i){t&&this._previousKeyframe.set("easing",t);const o=i&&i.params||{},s=function LU(e,n){const t=new Map;let r;return e.forEach(i=>{if("*"===i){r=r||n.keys();for(let o of r)t.set(o,er)}else Tr(i,t)}),t}(n,this._globalTimelineStyles);for(let[a,l]of s){const c=aa(l,o,r);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??er),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,t)=>{this._currentKeyframe.set(t,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,n)}))}snapshotCurrentStyles(){for(let[n,t]of this._localTimelineStyles)this._pendingStyles.set(n,t),this._updateStyle(n,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let t in this._currentKeyframe)n.push(t);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((t,r)=>{const i=this._styleSummary.get(r);(!i||t.time>i.time)&&this._updateStyle(r,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,t=new Set,r=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((a,l)=>{const c=Tr(a,new Map,this._backFill);c.forEach((u,d)=>{"!"===u?n.add(d):u===er&&t.add(d)}),r||c.set("offset",l/this.duration),i.push(c)});const o=n.size?Jc(n.values()):[],s=t.size?Jc(t.values()):[];if(r){const a=i[0],l=new Map(a);a.set("offset",0),l.set("offset",1),i=[a,l]}return og(this.element,i,o,s,this.duration,this.startTime,this.easing,!1)}}class FU extends ou{constructor(n,t,r,i,o,s,a=!1){super(n,t,s.delay),this.keyframes=r,this.preStyleProps=i,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:t,duration:r,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){const o=[],s=r+t,a=t/s,l=Tr(n[0]);l.set("offset",0),o.push(l);const c=Tr(n[0]);c.set("offset",T0(a)),o.push(c);const u=n.length-1;for(let d=1;d<=u;d++){let f=Tr(n[d]);const h=f.get("offset");f.set("offset",T0((t+h*r)/s)),o.push(f)}r=s,t=0,i="",n=o}return og(this.element,n,this.preStyleProps,this.postStyleProps,r,t,i,!0)}}function T0(e,n=3){const t=Math.pow(10,n-1);return Math.round(e*t)/t}class lg{}const VU=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class jU extends lg{normalizePropertyName(n,t){return ng(n)}normalizeStyleValue(n,t,r,i){let o="";const s=r.toString().trim();if(VU.has(t)&&0!==r&&"0"!==r)if("number"==typeof r)o="px";else{const a=r.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push(function NH(e,n){return new C(3005,!1)}())}return s+o}}function A0(e,n,t,r,i,o,s,a,l,c,u,d,f){return{type:0,element:e,triggerName:n,isRemovalTransition:i,fromState:t,fromStyles:o,toState:r,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:f}}const cg={};class P0{constructor(n,t,r){this._triggerName=n,this.ast=t,this._stateStyles=r}match(n,t,r,i){return function BU(e,n,t,r,i){return e.some(o=>o(n,t,r,i))}(this.ast.matchers,n,t,r,i)}buildStyles(n,t,r){let i=this._stateStyles.get("*");return void 0!==n&&(i=this._stateStyles.get(n?.toString())||i),i?i.buildStyles(t,r):new Map}build(n,t,r,i,o,s,a,l,c,u){const d=[],f=this.ast.options&&this.ast.options.params||cg,p=this.buildStyles(r,a&&a.params||cg,d),g=l&&l.params||cg,y=this.buildStyles(i,g,d),w=new Set,v=new Map,S=new Map,O="void"===i,U={params:$U(g,f),delay:this.ast.options?.delay},he=u?[]:sg(n,t,this.ast.animation,o,s,p,y,U,c,d);let we=0;if(he.forEach(Ut=>{we=Math.max(Ut.duration+Ut.delay,we)}),d.length)return A0(t,this._triggerName,r,i,O,p,y,[],[],v,S,we,d);he.forEach(Ut=>{const hn=Ut.element,cu=$t(v,hn,new Set);Ut.preStyleProps.forEach(ii=>cu.add(ii));const ca=$t(S,hn,new Set);Ut.postStyleProps.forEach(ii=>ca.add(ii)),hn!==t&&w.add(hn)});const et=Jc(w.values());return A0(t,this._triggerName,r,i,O,p,y,he,et,v,S,we)}}function $U(e,n){const t=oa(n);for(const r in e)e.hasOwnProperty(r)&&null!=e[r]&&(t[r]=e[r]);return t}class HU{constructor(n,t,r){this.styles=n,this.defaultParams=t,this.normalizer=r}buildStyles(n,t){const r=new Map,i=oa(this.defaultParams);return Object.keys(n).forEach(o=>{const s=n[o];null!==s&&(i[o]=s)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=aa(s,i,t));const l=this.normalizer.normalizePropertyName(a,t);s=this.normalizer.normalizeStyleValue(a,l,s,t),r.set(a,s)})}),r}}class zU{constructor(n,t,r){this.name=n,this.ast=t,this._normalizer=r,this.transitionFactories=[],this.states=new Map,t.states.forEach(i=>{this.states.set(i.name,new HU(i.style,i.options&&i.options.params||{},r))}),O0(this.states,"true","1"),O0(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new P0(n,i,this.states))}),this.fallbackTransition=function GU(e,n,t){return new P0(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,t,r,i){return this.transitionFactories.find(s=>s.match(n,t,r,i))||null}matchStyles(n,t,r){return this.fallbackTransition.buildStyles(n,t,r)}}function O0(e,n,t){e.has(n)?e.has(t)||e.set(t,e.get(n)):e.has(t)&&e.set(n,e.get(t))}const qU=new ru;class WU{constructor(n,t,r){this.bodyNode=n,this._driver=t,this._normalizer=r,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,t){const r=[],o=rg(this._driver,t,r,[]);if(r.length)throw function YH(e){return new C(3503,!1)}();this._animations.set(n,o)}_buildPlayer(n,t,r){const i=n.element,o=h0(this._normalizer,n.keyframes,t,r);return this._driver.animate(i,o,n.duration,n.delay,n.easing,[],!0)}create(n,t,r={}){const i=[],o=this._animations.get(n);let s;const a=new Map;if(o?(s=sg(this._driver,t,o,Xp,Zc,new Map,new Map,r,qU,i),s.forEach(u=>{const d=$t(a,u.element,new Map);u.postStyleProps.forEach(f=>d.set(f,null))})):(i.push(function XH(){return new C(3300,!1)}()),s=[]),i.length)throw function JH(e){return new C(3504,!1)}();a.forEach((u,d)=>{u.forEach((f,h)=>{u.set(h,this._driver.computeStyle(d,h,er))})});const c=Ir(s.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(n,c),c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){const t=this._getPlayer(n);t.destroy(),this._playersById.delete(n);const r=this.players.indexOf(t);r>=0&&this.players.splice(r,1)}_getPlayer(n){const t=this._playersById.get(n);if(!t)throw function eU(e){return new C(3301,!1)}();return t}listen(n,t,r,i){const o=Zp(t,"","","");return Wp(this._getPlayer(n),r,o,i),()=>{}}command(n,t,r,i){if("register"==r)return void this.register(n,i[0]);if("create"==r)return void this.create(n,t,i[0]||{});const o=this._getPlayer(n);switch(r){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(n)}}}const x0="ng-animate-queued",ug="ng-animate-disabled",XU=[],N0={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},JU={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},fn="__ng_removed";class dg{get params(){return this.options.params}constructor(n,t=""){this.namespaceId=t;const r=n&&n.hasOwnProperty("value");if(this.value=function r3(e){return e??null}(r?n.value:n),r){const o=oa(n);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){const t=n.params;if(t){const r=this.options.params;Object.keys(t).forEach(i=>{null==r[i]&&(r[i]=t[i])})}}}const la="void",fg=new dg(la);class e3{constructor(n,t,r){this.id=n,this.hostElement=t,this._engine=r,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,en(t,this._hostClassName)}listen(n,t,r,i){if(!this._triggers.has(t))throw function tU(e,n){return new C(3302,!1)}();if(null==r||0==r.length)throw function nU(e){return new C(3303,!1)}();if(!function i3(e){return"start"==e||"done"==e}(r))throw function rU(e,n){return new C(3400,!1)}();const o=$t(this._elementListeners,n,[]),s={name:t,phase:r,callback:i};o.push(s);const a=$t(this._engine.statesByElement,n,new Map);return a.has(t)||(en(n,Kc),en(n,Kc+"-"+t),a.set(t,fg)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(t)||a.delete(t)})}}register(n,t){return!this._triggers.has(n)&&(this._triggers.set(n,t),!0)}_getTrigger(n){const t=this._triggers.get(n);if(!t)throw function iU(e){return new C(3401,!1)}();return t}trigger(n,t,r,i=!0){const o=this._getTrigger(t),s=new hg(this.id,t,n);let a=this._engine.statesByElement.get(n);a||(en(n,Kc),en(n,Kc+"-"+t),this._engine.statesByElement.set(n,a=new Map));let l=a.get(t);const c=new dg(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=fg),c.value!==la&&l.value===c.value){if(!function a3(e,n){const t=Object.keys(e),r=Object.keys(n);if(t.length!=r.length)return!1;for(let i=0;i{ni(n,y),Pn(n,w)})}return}const f=$t(this._engine.playersByElement,n,[]);f.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy()});let h=o.matchTransition(l.value,c.value,n,c.params),p=!1;if(!h){if(!i)return;h=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:t,transition:h,fromState:l,toState:c,player:s,isFallbackTransition:p}),p||(en(n,x0),s.onStart(()=>{Co(n,x0)})),s.onDone(()=>{let g=this.players.indexOf(s);g>=0&&this.players.splice(g,1);const y=this._engine.playersByElement.get(n);if(y){let w=y.indexOf(s);w>=0&&y.splice(w,1)}}),this.players.push(s),f.push(s),s}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(t=>t.delete(n)),this._elementListeners.forEach((t,r)=>{this._elementListeners.set(r,t.filter(i=>i.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const t=this._engine.playersByElement.get(n);t&&(t.forEach(r=>r.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,t){const r=this._engine.driver.query(n,Yc,!0);r.forEach(i=>{if(i[fn])return;const o=this._engine.fetchNamespacesByElement(i);o.size?o.forEach(s=>s.triggerLeaveAnimation(i,t,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(n,t,r,i){const o=this._engine.statesByElement.get(n),s=new Map;if(o){const a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){const u=this.trigger(n,c,la,i);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,t,s),r&&Ir(a).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const t=this._elementListeners.get(n),r=this._engine.statesByElement.get(n);if(t&&r){const i=new Set;t.forEach(o=>{const s=o.name;if(i.has(s))return;i.add(s);const l=this._triggers.get(s).fallbackTransition,c=r.get(s)||fg,u=new dg(la),d=new hg(this.id,s,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:s,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(n,t){const r=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,t),this.triggerLeaveAnimation(n,t,!0))return;let i=!1;if(r.totalAnimations){const o=r.players.length?r.playersByQueriedElement.get(n):[];if(o&&o.length)i=!0;else{let s=n;for(;s=s.parentNode;)if(r.statesByElement.get(s)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(n),i)r.markElementAsRemoved(this.id,n,!1,t);else{const o=n[fn];(!o||o===N0)&&(r.afterFlush(()=>this.clearElementCache(n)),r.destroyInnerAnimations(n),r._onRemovalComplete(n,t))}}insertNode(n,t){en(n,this._hostClassName)}drainQueuedTransitions(n){const t=[];return this._queue.forEach(r=>{const i=r.player;if(i.destroyed)return;const o=r.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==r.triggerName){const l=Zp(o,r.triggerName,r.fromState.value,r.toState.value);l._data=n,Wp(r.player,a.phase,l,a.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(r)}),this._queue=[],t.sort((r,i)=>{const o=r.transition.ast.depCount,s=i.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(r.element,i.element)?1:-1})}destroy(n){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}}class t3{_onRemovalComplete(n,t){this.onRemovalComplete(n,t)}constructor(n,t,r){this.bodyNode=n,this.driver=t,this._normalizer=r,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(i,o)=>{}}get queuedPlayers(){const n=[];return this._namespaceList.forEach(t=>{t.players.forEach(r=>{r.queued&&n.push(r)})}),n}createNamespace(n,t){const r=new e3(n,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(r,t):(this.newHostElements.set(t,r),this.collectEnterElement(t)),this._namespaceLookup[n]=r}_balanceNamespaceList(n,t){const r=this._namespaceList,i=this.namespacesByHostElement;if(r.length-1>=0){let s=!1,a=this.driver.getParentElement(t);for(;a;){const l=i.get(a);if(l){const c=r.indexOf(l);r.splice(c+1,0,n),s=!0;break}a=this.driver.getParentElement(a)}s||r.unshift(n)}else r.push(n);return i.set(t,n),n}register(n,t){let r=this._namespaceLookup[n];return r||(r=this.createNamespace(n,t)),r}registerTrigger(n,t,r){let i=this._namespaceLookup[n];i&&i.register(t,r)&&this.totalAnimations++}destroy(n,t){n&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const r=this._fetchNamespace(n);this.namespacesByHostElement.delete(r.hostElement);const i=this._namespaceList.indexOf(r);i>=0&&this._namespaceList.splice(i,1),r.destroy(t),delete this._namespaceLookup[n]}))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const t=new Set,r=this.statesByElement.get(n);if(r)for(let i of r.values())if(i.namespaceId){const o=this._fetchNamespace(i.namespaceId);o&&t.add(o)}return t}trigger(n,t,r,i){if(su(t)){const o=this._fetchNamespace(n);if(o)return o.trigger(t,r,i),!0}return!1}insertNode(n,t,r,i){if(!su(t))return;const o=t[fn];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(t);s>=0&&this.collectedLeaveElements.splice(s,1)}if(n){const s=this._fetchNamespace(n);s&&s.insertNode(t,r)}i&&this.collectEnterElement(t)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,t){t?this.disabledNodes.has(n)||(this.disabledNodes.add(n),en(n,ug)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),Co(n,ug))}removeNode(n,t,r){if(su(t)){const i=n?this._fetchNamespace(n):null;i?i.removeNode(t,r):this.markElementAsRemoved(n,t,!1,r);const o=this.namespacesByHostElement.get(t);o&&o.id!==n&&o.removeNode(t,r)}else this._onRemovalComplete(t,r)}markElementAsRemoved(n,t,r,i,o){this.collectedLeaveElements.push(t),t[fn]={namespaceId:n,setForRemoval:i,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:o}}listen(n,t,r,i,o){return su(t)?this._fetchNamespace(n).listen(t,r,i,o):()=>{}}_buildInstruction(n,t,r,i,o){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,r,i,n.fromState.options,n.toState.options,t,o)}destroyInnerAnimations(n){let t=this.driver.query(n,Yc,!0);t.forEach(r=>this.destroyActiveAnimationsForElement(r)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(n,Jp,!0),t.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(n){const t=this.playersByElement.get(n);t&&t.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(n){const t=this.playersByQueriedElement.get(n);t&&t.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return Ir(this.players).onDone(()=>n());n()})}processLeaveNode(n){const t=n[fn];if(t&&t.setForRemoval){if(n[fn]=N0,t.namespaceId){this.destroyInnerAnimations(n);const r=this._fetchNamespace(t.namespaceId);r&&r.clearElementCache(n)}this._onRemovalComplete(n,t.setForRemoval)}n.classList?.contains(ug)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(n=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((r,i)=>this._balanceNamespaceList(r,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;rr()),this._flushFns=[],this._whenQuietFns.length){const r=this._whenQuietFns;this._whenQuietFns=[],t.length?Ir(t).onDone(()=>{r.forEach(i=>i())}):r.forEach(i=>i())}}reportError(n){throw function oU(e){return new C(3402,!1)}()}_flushAnimations(n,t){const r=new ru,i=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(R=>{u.add(R);const k=this.driver.query(R,".ng-animate-queued",!0);for(let F=0;F{const F=Xp+g++;p.set(k,F),R.forEach(ne=>en(ne,F))});const y=[],w=new Set,v=new Set;for(let R=0;Rw.add(ne)):v.add(k))}const S=new Map,O=F0(f,Array.from(w));O.forEach((R,k)=>{const F=Zc+g++;S.set(k,F),R.forEach(ne=>en(ne,F))}),n.push(()=>{h.forEach((R,k)=>{const F=p.get(k);R.forEach(ne=>Co(ne,F))}),O.forEach((R,k)=>{const F=S.get(k);R.forEach(ne=>Co(ne,F))}),y.forEach(R=>{this.processLeaveNode(R)})});const U=[],he=[];for(let R=this._namespaceList.length-1;R>=0;R--)this._namespaceList[R].drainQueuedTransitions(t).forEach(F=>{const ne=F.player,qe=F.element;if(U.push(ne),this.collectedEnterElements.length){const lt=qe[fn];if(lt&<.setForMove){if(lt.previousTriggersValues&<.previousTriggersValues.has(F.triggerName)){const oi=lt.previousTriggersValues.get(F.triggerName),tn=this.statesByElement.get(F.element);if(tn&&tn.has(F.triggerName)){const uu=tn.get(F.triggerName);uu.value=oi,tn.set(F.triggerName,uu)}}return void ne.destroy()}}const On=!d||!this.driver.containsElement(d,qe),zt=S.get(qe),Ar=p.get(qe),Se=this._buildInstruction(F,r,Ar,zt,On);if(Se.errors&&Se.errors.length)return void he.push(Se);if(On)return ne.onStart(()=>ni(qe,Se.fromStyles)),ne.onDestroy(()=>Pn(qe,Se.toStyles)),void i.push(ne);if(F.isFallbackTransition)return ne.onStart(()=>ni(qe,Se.fromStyles)),ne.onDestroy(()=>Pn(qe,Se.toStyles)),void i.push(ne);const Q0=[];Se.timelines.forEach(lt=>{lt.stretchStartingKeyframe=!0,this.disabledNodes.has(lt.element)||Q0.push(lt)}),Se.timelines=Q0,r.append(qe,Se.timelines),s.push({instruction:Se,player:ne,element:qe}),Se.queriedElements.forEach(lt=>$t(a,lt,[]).push(ne)),Se.preStyleProps.forEach((lt,oi)=>{if(lt.size){let tn=l.get(oi);tn||l.set(oi,tn=new Set),lt.forEach((uu,yg)=>tn.add(yg))}}),Se.postStyleProps.forEach((lt,oi)=>{let tn=c.get(oi);tn||c.set(oi,tn=new Set),lt.forEach((uu,yg)=>tn.add(yg))})});if(he.length){const R=[];he.forEach(k=>{R.push(function sU(e,n){return new C(3505,!1)}())}),U.forEach(k=>k.destroy()),this.reportError(R)}const we=new Map,et=new Map;s.forEach(R=>{const k=R.element;r.has(k)&&(et.set(k,k),this._beforeAnimationBuild(R.player.namespaceId,R.instruction,we))}),i.forEach(R=>{const k=R.element;this._getPreviousPlayers(k,!1,R.namespaceId,R.triggerName,null).forEach(ne=>{$t(we,k,[]).push(ne),ne.destroy()})});const Ut=y.filter(R=>V0(R,l,c)),hn=new Map;k0(hn,this.driver,v,c,er).forEach(R=>{V0(R,l,c)&&Ut.push(R)});const ca=new Map;h.forEach((R,k)=>{k0(ca,this.driver,new Set(R),l,"!")}),Ut.forEach(R=>{const k=hn.get(R),F=ca.get(R);hn.set(R,new Map([...k?.entries()??[],...F?.entries()??[]]))});const ii=[],q0=[],W0={};s.forEach(R=>{const{element:k,player:F,instruction:ne}=R;if(r.has(k)){if(u.has(k))return F.onDestroy(()=>Pn(k,ne.toStyles)),F.disabled=!0,F.overrideTotalTime(ne.totalTime),void i.push(F);let qe=W0;if(et.size>1){let zt=k;const Ar=[];for(;zt=zt.parentNode;){const Se=et.get(zt);if(Se){qe=Se;break}Ar.push(zt)}Ar.forEach(Se=>et.set(Se,qe))}const On=this._buildAnimation(F.namespaceId,ne,we,o,ca,hn);if(F.setRealPlayer(On),qe===W0)ii.push(F);else{const zt=this.playersByElement.get(qe);zt&&zt.length&&(F.parentPlayer=Ir(zt)),i.push(F)}}else ni(k,ne.fromStyles),F.onDestroy(()=>Pn(k,ne.toStyles)),q0.push(F),u.has(k)&&i.push(F)}),q0.forEach(R=>{const k=o.get(R.element);if(k&&k.length){const F=Ir(k);R.setRealPlayer(F)}}),i.forEach(R=>{R.parentPlayer?R.syncPlayerEvents(R.parentPlayer):R.destroy()});for(let R=0;R!On.destroyed);qe.length?o3(this,k,qe):this.processLeaveNode(k)}return y.length=0,ii.forEach(R=>{this.players.push(R),R.onDone(()=>{R.destroy();const k=this.players.indexOf(R);this.players.splice(k,1)}),R.play()}),ii}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,t,r,i,o){let s=[];if(t){const a=this.playersByQueriedElement.get(n);a&&(s=a)}else{const a=this.playersByElement.get(n);if(a){const l=!o||o==la;a.forEach(c=>{c.queued||!l&&c.triggerName!=i||s.push(c)})}}return(r||i)&&(s=s.filter(a=>!(r&&r!=a.namespaceId||i&&i!=a.triggerName))),s}_beforeAnimationBuild(n,t,r){const o=t.element,s=t.isRemovalTransition?void 0:n,a=t.isRemovalTransition?void 0:t.triggerName;for(const l of t.timelines){const c=l.element,u=c!==o,d=$t(r,c,[]);this._getPreviousPlayers(c,u,s,a,t.toState).forEach(h=>{const p=h.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),h.destroy(),d.push(h)})}ni(o,t.fromStyles)}_buildAnimation(n,t,r,i,o,s){const a=t.triggerName,l=t.element,c=[],u=new Set,d=new Set,f=t.timelines.map(p=>{const g=p.element;u.add(g);const y=g[fn];if(y&&y.removedBeforeQueried)return new ra(p.duration,p.delay);const w=g!==l,v=function s3(e){const n=[];return L0(e,n),n}((r.get(g)||XU).map(we=>we.getRealPlayer())).filter(we=>!!we.element&&we.element===g),S=o.get(g),O=s.get(g),U=h0(this._normalizer,p.keyframes,S,O),he=this._buildPlayer(p,U,v);if(p.subTimeline&&i&&d.add(g),w){const we=new hg(n,a,g);we.setRealPlayer(he),c.push(we)}return he});c.forEach(p=>{$t(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function n3(e,n,t){let r=e.get(n);if(r){if(r.length){const i=r.indexOf(t);r.splice(i,1)}0==r.length&&e.delete(n)}return r}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>en(p,C0));const h=Ir(f);return h.onDestroy(()=>{u.forEach(p=>Co(p,C0)),Pn(l,t.toStyles)}),d.forEach(p=>{$t(i,p,[]).push(h)}),h}_buildPlayer(n,t,r){return t.length>0?this.driver.animate(n.element,t,n.duration,n.delay,n.easing,r):new ra(n.duration,n.delay)}}class hg{constructor(n,t,r){this.namespaceId=n,this.triggerName=t,this.element=r,this._player=new ra,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((t,r)=>{t.forEach(i=>Wp(n,r,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const t=this._player;t.triggerCallback&&n.onStart(()=>t.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,t){$t(this._queuedCallbacks,n,[]).push(t)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const t=this._player;t.triggerCallback&&t.triggerCallback(n)}}function su(e){return e&&1===e.nodeType}function R0(e,n){const t=e.style.display;return e.style.display=n??"none",t}function k0(e,n,t,r,i){const o=[];t.forEach(l=>o.push(R0(l)));const s=[];r.forEach((l,c)=>{const u=new Map;l.forEach(d=>{const f=n.computeStyle(c,d,i);u.set(d,f),(!f||0==f.length)&&(c[fn]=JU,s.push(c))}),e.set(c,u)});let a=0;return t.forEach(l=>R0(l,o[a++])),s}function F0(e,n){const t=new Map;if(e.forEach(a=>t.set(a,[])),0==n.length)return t;const i=new Set(n),o=new Map;function s(a){if(!a)return 1;let l=o.get(a);if(l)return l;const c=a.parentNode;return l=t.has(c)?c:i.has(c)?1:s(c),o.set(a,l),l}return n.forEach(a=>{const l=s(a);1!==l&&t.get(l).push(a)}),t}function en(e,n){e.classList?.add(n)}function Co(e,n){e.classList?.remove(n)}function o3(e,n,t){Ir(t).onDone(()=>e.processLeaveNode(n))}function L0(e,n){for(let t=0;ti.add(o)):n.set(e,r),t.delete(e),!0}class au{constructor(n,t,r){this.bodyNode=n,this._driver=t,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(i,o)=>{},this._transitionEngine=new t3(n,t,r),this._timelineEngine=new WU(n,t,r),this._transitionEngine.onRemovalComplete=(i,o)=>this.onRemovalComplete(i,o)}registerTrigger(n,t,r,i,o){const s=n+"-"+i;let a=this._triggerCache[s];if(!a){const l=[],u=rg(this._driver,o,l,[]);if(l.length)throw function ZH(e,n){return new C(3404,!1)}();a=function UU(e,n,t){return new zU(e,n,t)}(i,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(t,i,a)}register(n,t){this._transitionEngine.register(n,t)}destroy(n,t){this._transitionEngine.destroy(n,t)}onInsert(n,t,r,i){this._transitionEngine.insertNode(n,t,r,i)}onRemove(n,t,r){this._transitionEngine.removeNode(n,t,r)}disableAnimations(n,t){this._transitionEngine.markElementAsDisabled(n,t)}process(n,t,r,i){if("@"==r.charAt(0)){const[o,s]=p0(r);this._timelineEngine.command(o,t,s,i)}else this._transitionEngine.trigger(n,t,r,i)}listen(n,t,r,i,o){if("@"==r.charAt(0)){const[s,a]=p0(r);return this._timelineEngine.listen(s,t,a,o)}return this._transitionEngine.listen(n,t,r,i,o)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(n){this._transitionEngine.afterFlushAnimationsDone(n)}}let c3=(()=>{class e{static#e=this.initialStylesByElement=new WeakMap;constructor(t,r,i){this._element=t,this._startStyles=r,this._endStyles=i,this._state=0;let o=e.initialStylesByElement.get(t);o||e.initialStylesByElement.set(t,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Pn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Pn(this._element,this._initialStyles),this._endStyles&&(Pn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(ni(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ni(this._element,this._endStyles),this._endStyles=null),Pn(this._element,this._initialStyles),this._state=3)}}return e})();function pg(e){let n=null;return e.forEach((t,r)=>{(function u3(e){return"display"===e||"position"===e})(r)&&(n=n||new Map,n.set(r,t))}),n}class j0{constructor(n,t,r,i){this.element=n,this.keyframes=t,this.options=r,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map;const t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const t=[];return n.forEach(r=>{t.push(Object.fromEntries(r))}),t}_triggerWebAnimation(n,t,r){return n.animate(this._convertKeyframesToObject(t),r)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((r,i)=>{"offset"!==i&&n.set(i,this._finished?r:E0(this.element,i))}),this.currentSnapshot=n}triggerCallback(n){const t="start"===n?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}}class d3{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}matchesElement(n,t){return!1}containsElement(n,t){return m0(n,t)}getParentElement(n){return Kp(n)}query(n,t,r){return y0(n,t,r)}computeStyle(n,t,r){return window.getComputedStyle(n)[t]}animate(n,t,r,i,o,s=[]){const l={duration:r,delay:i,fill:0==i?"both":"forwards"};o&&(l.easing=o);const c=new Map,u=s.filter(h=>h instanceof j0);(function vU(e,n){return 0===e||0===n})(r,i)&&u.forEach(h=>{h.currentSnapshot.forEach((p,g)=>c.set(g,p))});let d=function gU(e){return e.length?e[0]instanceof Map?e:e.map(n=>D0(n)):[]}(t).map(h=>Tr(h));d=function _U(e,n,t){if(t.size&&n.length){let r=n[0],i=[];if(t.forEach((o,s)=>{r.has(s)||i.push(s),r.set(s,o)}),i.length)for(let o=1;os.set(a,E0(e,a)))}}return n}(n,d,c);const f=function l3(e,n){let t=null,r=null;return Array.isArray(n)&&n.length?(t=pg(n[0]),n.length>1&&(r=pg(n[n.length-1]))):n instanceof Map&&(t=pg(n)),t||r?new c3(e,t,r):null}(n,d);return new j0(n,d,l,f)}}let f3=(()=>{class e extends n0{constructor(t,r){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(r.body,{id:"0",encapsulation:Qt.None,styles:[],data:{animation:[]}})}build(t){const r=this._nextAnimationId.toString();this._nextAnimationId++;const i=Array.isArray(t)?o0(t):t;return B0(this._renderer,null,r,"register",[i]),new h3(r,this._renderer)}static#e=this.\u0275fac=function(r){return new(r||e)(I(ts),I(Ue))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})();class h3 extends T${constructor(n,t){super(),this._id=n,this._renderer=t}create(n,t){return new p3(this._id,n,t||{},this._renderer)}}class p3{constructor(n,t,r,i){this.id=n,this.element=t,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",r)}_listen(n,t){return this._renderer.listen(this.element,`@@${this.id}:${n}`,t)}_command(n,...t){return B0(this._renderer,this.element,this.id,n,t)}onDone(n){this._listen("done",n)}onStart(n){this._listen("start",n)}onDestroy(n){this._listen("destroy",n)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(n){this._command("setPosition",n)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function B0(e,n,t,r,i){return e.setProperty(n,`@@${t}:${r}`,i)}const $0="@.disabled";let g3=(()=>{class e{constructor(t,r,i){this.delegate=t,this.engine=r,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,r.onRemovalComplete=(o,s)=>{const a=s?.parentNode(o);a&&s.removeChild(a,o)}}createRenderer(t,r){const o=this.delegate.createRenderer(t,r);if(!(t&&r&&r.data&&r.data.animation)){let u=this._rendererCache.get(o);return u||(u=new H0("",o,this.engine,()=>this._rendererCache.delete(o)),this._rendererCache.set(o,u)),u}const s=r.id,a=r.id+"-"+this._currentId;this._currentId++,this.engine.register(a,t);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(s,a,t,u.name,u)};return r.data.animation.forEach(l),new m3(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(t,r,i){t>=0&&tr(i)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([r,i]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}static#e=this.\u0275fac=function(r){return new(r||e)(I(ts),I(au),I(le))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})();class H0{constructor(n,t,r,i){this.namespaceId=n,this.delegate=t,this.engine=r,this._onDestroy=i}get data(){return this.delegate.data}destroyNode(n){this.delegate.destroyNode?.(n)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(n,t){return this.delegate.createElement(n,t)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,t){this.delegate.appendChild(n,t),this.engine.onInsert(this.namespaceId,t,n,!1)}insertBefore(n,t,r,i=!0){this.delegate.insertBefore(n,t,r),this.engine.onInsert(this.namespaceId,t,n,i)}removeChild(n,t,r){this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(n,t){return this.delegate.selectRootElement(n,t)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,t,r,i){this.delegate.setAttribute(n,t,r,i)}removeAttribute(n,t,r){this.delegate.removeAttribute(n,t,r)}addClass(n,t){this.delegate.addClass(n,t)}removeClass(n,t){this.delegate.removeClass(n,t)}setStyle(n,t,r,i){this.delegate.setStyle(n,t,r,i)}removeStyle(n,t,r){this.delegate.removeStyle(n,t,r)}setProperty(n,t,r){"@"==t.charAt(0)&&t==$0?this.disableAnimations(n,!!r):this.delegate.setProperty(n,t,r)}setValue(n,t){this.delegate.setValue(n,t)}listen(n,t,r){return this.delegate.listen(n,t,r)}disableAnimations(n,t){this.engine.disableAnimations(n,t)}}class m3 extends H0{constructor(n,t,r,i,o){super(t,r,i,o),this.factory=n,this.namespaceId=t}setProperty(n,t,r){"@"==t.charAt(0)?"."==t.charAt(1)&&t==$0?this.disableAnimations(n,r=void 0===r||!!r):this.engine.process(this.namespaceId,n,t.slice(1),r):this.delegate.setProperty(n,t,r)}listen(n,t,r){if("@"==t.charAt(0)){const i=function y3(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(n);let o=t.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function v3(e){const n=e.indexOf(".");return[e.substring(0,n),e.slice(n+1)]}(o)),this.engine.listen(this.namespaceId,i,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,r,a)})}return this.delegate.listen(n,t,r)}}const U0=[{provide:n0,useClass:f3},{provide:lg,useFactory:function C3(){return new jU}},{provide:au,useClass:(()=>{class e extends au{constructor(t,r,i,o){super(t.body,r,i)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(r){return new(r||e)(I(Ue),I(Yp),I(lg),I(qn))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})()},{provide:ts,useFactory:function D3(e,n,t){return new g3(e,n,t)},deps:[zh,au,le]}],gg=[{provide:Yp,useFactory:()=>new d3},{provide:yv,useValue:"BrowserAnimations"},...U0],z0=[{provide:Yp,useClass:v0},{provide:yv,useValue:"NoopAnimations"},...U0];let mg=(()=>{class e{static withConfig(t){return{ngModule:e,providers:t.disableAnimations?z0:gg}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=tt({type:e});static#n=this.\u0275inj=Qe({providers:gg,imports:[vb]})}return e})(),w3=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=tt({type:e});static#n=this.\u0275inj=Qe({imports:[Fh,e0,Vc,FM,Qc,mg,qp.forRoot()]})}return e})(),G0=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=tt({type:e});static#n=this.\u0275inj=Qe({providers:[{provide:GM,useClass:IH,multi:!0}],imports:[Fh,Vc,Qc,e0,w3,qp.forRoot(),mg]})}return e})(),b3=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=tt({type:e,bootstrap:[SH]});static#n=this.\u0275inj=Qe({providers:[{provide:gr,useClass:Fw}],imports:[vb,Qc,G0,Vc,FM,mg,qp.forRoot({positionClass:"toast-top-right",preventDuplicates:!0,timeOut:3e3,closeButton:!0,progressBar:!0,tapToDismiss:!0,easeTime:300}),Vc,Qc,G0]})}return e})();uL().bootstrapModule(b3).catch(e=>console.error(e))}},pe=>{pe(pe.s=372)}]); \ No newline at end of file diff --git a/src/app/products/components/cart/cart.component.css b/src/app/products/components/cart/cart.component.css index f38f344..fc6461d 100644 --- a/src/app/products/components/cart/cart.component.css +++ b/src/app/products/components/cart/cart.component.css @@ -14,7 +14,13 @@ width: 100%; margin-left: 20px; } -@media (max-width: 968px) { + +@media (min-width:992px){ + .ContainerPage{ + height: 100vh; + } +} +@media (max-width: 992px) { *{ font-size: 16px; } @@ -22,6 +28,9 @@ width: 100%; } + .footer .container{ + font-size: 14px; + } .bigBox2{ margin-top: 20px; } diff --git a/src/app/products/components/cart/cart.component.html b/src/app/products/components/cart/cart.component.html index fabc316..cbd33b3 100644 --- a/src/app/products/components/cart/cart.component.html +++ b/src/app/products/components/cart/cart.component.html @@ -1,5 +1,5 @@ -
+
@@ -31,9 +31,8 @@

{{product.title}}

Quantity: {{product.quantity}}

-

Quantity: {{product.quantity}} - +