1 line
338 KiB
JavaScript
1 line
338 KiB
JavaScript
"use strict";(self.webpackChunkfamilySite1=self.webpackChunkfamilySite1||[]).push([[179],{282:()=>{function ce(e){return"function"==typeof e}function Zo(e){const n=e(r=>{Error.call(r),r.stack=(new Error).stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}const ws=Zo(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((r,o)=>`${o+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n});function Yo(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class Tt{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(const i of n)i.remove(this);else n.remove(this);const{initialTeardown:r}=this;if(ce(r))try{r()}catch(i){t=i instanceof ws?i.errors:[i]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const i of o)try{Eh(i)}catch(s){t=t??[],s instanceof ws?t=[...t,...s.errors]:t.push(s)}}if(t)throw new ws(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Eh(t);else{if(t instanceof Tt){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}}_hasParent(t){const{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){const{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){const{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&Yo(n,t)}remove(t){const{_finalizers:n}=this;n&&Yo(n,t),t instanceof Tt&&t._removeParent(this)}}Tt.EMPTY=(()=>{const e=new Tt;return e.closed=!0,e})();const Dh=Tt.EMPTY;function wh(e){return e instanceof Tt||e&&"closed"in e&&ce(e.remove)&&ce(e.add)&&ce(e.unsubscribe)}function Eh(e){ce(e)?e():e.unsubscribe()}const fr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Es={setTimeout(e,t,...n){const{delegate:r}=Es;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=Es;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Mh(e){Es.setTimeout(()=>{const{onUnhandledError:t}=fr;if(!t)throw e;t(e)})}function bh(){}const zw=Gl("C",void 0,void 0);function Gl(e,t,n){return{kind:e,value:t,error:n}}let hr=null;function Ms(e){if(fr.useDeprecatedSynchronousErrorHandling){const t=!hr;if(t&&(hr={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=hr;if(hr=null,n)throw r}}else e()}class Wl extends Tt{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,wh(t)&&t.add(this)):this.destination=Qw}static create(t,n,r){return new Xo(t,n,r)}next(t){this.isStopped?Zl(function Ww(e){return Gl("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?Zl(function Gw(e){return Gl("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Zl(zw,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Zw=Function.prototype.bind;function ql(e,t){return Zw.call(e,t)}class Yw{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){bs(r)}}error(t){const{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){bs(r)}else bs(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){bs(n)}}}class Xo extends Wl{constructor(t,n,r){let o;if(super(),ce(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&fr.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&ql(t.next,i),error:t.error&&ql(t.error,i),complete:t.complete&&ql(t.complete,i)}):o=t}this.destination=new Yw(o)}}function bs(e){fr.useDeprecatedSynchronousErrorHandling?function qw(e){fr.useDeprecatedSynchronousErrorHandling&&hr&&(hr.errorThrown=!0,hr.error=e)}(e):Mh(e)}function Zl(e,t){const{onStoppedNotification:n}=fr;n&&Es.setTimeout(()=>n(e,t))}const Qw={closed:!0,next:bh,error:function Xw(e){throw e},complete:bh},Yl="function"==typeof Symbol&&Symbol.observable||"@@observable";function pr(e){return e}function Sh(e){return 0===e.length?pr:1===e.length?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}let be=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){const r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){const i=function e1(e){return e&&e instanceof Wl||function Jw(e){return e&&ce(e.next)&&ce(e.error)&&ce(e.complete)}(e)&&wh(e)}(n)?n:new Xo(n,r,o);return Ms(()=>{const{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return new(r=Ih(r))((o,i)=>{const s=new Xo({next:a=>{try{n(a)}catch(l){i(l),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(n)}[Yl](){return this}pipe(...n){return Sh(n)(this)}toPromise(n){return new(n=Ih(n))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function Ih(e){var t;return null!==(t=e??fr.Promise)&&void 0!==t?t:Promise}const t1=Zo(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let bn=(()=>{class e extends be{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new Th(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new t1}next(n){Ms(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){Ms(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;const{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Ms(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return(null===(n=this.observers)||void 0===n?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){const{hasError:r,isStopped:o,observers:i}=this;return r||o?Dh:(this.currentObservers=null,i.push(n),new Tt(()=>{this.currentObservers=null,Yo(i,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){const n=new be;return n.source=this,n}}return e.create=(t,n)=>new Th(t,n),e})();class Th extends bn{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===r||r.call(n,t)}error(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===r||r.call(n,t)}complete(){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===n||n.call(t)}_subscribe(t){var n,r;return null!==(r=null===(n=this.source)||void 0===n?void 0:n.subscribe(t))&&void 0!==r?r:Dh}}function Ah(e){return ce(e?.lift)}function ze(e){return t=>{if(Ah(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function He(e,t,n,r,o){return new n1(e,t,n,r,o)}class n1 extends Wl{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(l){t.error(l)}}:super._next,this._error=o?function(a){try{o(a)}catch(l){t.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:n}=this;super.unsubscribe(),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function ne(e,t){return ze((n,r)=>{let o=0;n.subscribe(He(r,i=>{r.next(e.call(t,i,o++))}))})}function gr(e){return this instanceof gr?(this.v=e,this):new gr(e)}function s1(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,t=e[Symbol.asyncIterator];return t?t.call(e):(e=function Oh(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,l){!function o(i,s,a,l){Promise.resolve(l).then(function(u){i({value:u,done:a})},s)}(a,l,(s=e[i](s)).done,s.value)})}}}const Ph=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function xh(e){return ce(e?.then)}function kh(e){return ce(e[Yl])}function Fh(e){return Symbol.asyncIterator&&ce(e?.[Symbol.asyncIterator])}function Lh(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 Vh=function l1(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function $h(e){return ce(e?.[Vh])}function Hh(e){return function i1(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=n.apply(e,t||[]),i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(f){r[f]&&(o[f]=function(h){return new Promise(function(p,v){i.push([f,h,p,v])>1||a(f,h)})})}function a(f,h){try{!function l(f){f.value instanceof gr?Promise.resolve(f.value.v).then(u,c):d(i[0][2],f)}(r[f](h))}catch(p){d(i[0][3],p)}}function u(f){a("next",f)}function c(f){a("throw",f)}function d(f,h){f(h),i.shift(),i.length&&a(i[0][0],i[0][1])}}(this,arguments,function*(){const n=e.getReader();try{for(;;){const{value:r,done:o}=yield gr(n.read());if(o)return yield gr(void 0);yield yield gr(r)}}finally{n.releaseLock()}})}function jh(e){return ce(e?.getReader)}function At(e){if(e instanceof be)return e;if(null!=e){if(kh(e))return function u1(e){return new be(t=>{const n=e[Yl]();if(ce(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Ph(e))return function c1(e){return new be(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}(e);if(xh(e))return function d1(e){return new be(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Mh)})}(e);if(Fh(e))return Bh(e);if($h(e))return function f1(e){return new be(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if(jh(e))return function h1(e){return Bh(Hh(e))}(e)}throw Lh(e)}function Bh(e){return new be(t=>{(function p1(e,t){var n,r,o,i;return function r1(e,t,n,r){return new(n||(n=Promise))(function(i,s){function a(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?i(c.value):function o(i){return i instanceof n?i:new n(function(s){s(i)})}(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){try{for(n=s1(e);!(r=yield n.next()).done;)if(t.next(r.value),t.closed)return}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})})(e,t).catch(n=>t.error(n))})}function Sn(e,t,n,r=0,o=!1){const i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function Ge(e,t,n=1/0){return ce(t)?Ge((r,o)=>ne((i,s)=>t(r,i,o,s))(At(e(r,o))),n):("number"==typeof t&&(n=t),ze((r,o)=>function g1(e,t,n,r,o,i,s,a){const l=[];let u=0,c=0,d=!1;const f=()=>{d&&!l.length&&!u&&t.complete()},h=v=>u<r?p(v):l.push(v),p=v=>{i&&t.next(v),u++;let w=!1;At(n(v,c++)).subscribe(He(t,b=>{o?.(b),i?h(b):t.next(b)},()=>{w=!0},void 0,()=>{if(w)try{for(u--;l.length&&u<r;){const b=l.shift();s?Sn(t,s,()=>p(b)):p(b)}f()}catch(b){t.error(b)}}))};return e.subscribe(He(t,h,()=>{d=!0,f()})),()=>{a?.()}}(r,o,e,n)))}function Hr(e=1/0){return Ge(pr,e)}const en=new be(e=>e.complete());function Ql(e){return e[e.length-1]}function Uh(e){return ce(Ql(e))?e.pop():void 0}function Qo(e){return function y1(e){return e&&ce(e.schedule)}(Ql(e))?e.pop():void 0}function zh(e,t=0){return ze((n,r)=>{n.subscribe(He(r,o=>Sn(r,e,()=>r.next(o),t),()=>Sn(r,e,()=>r.complete(),t),o=>Sn(r,e,()=>r.error(o),t)))})}function Gh(e,t=0){return ze((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Wh(e,t){if(!e)throw new Error("Iterable cannot be null");return new be(n=>{Sn(n,t,()=>{const r=e[Symbol.asyncIterator]();Sn(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function xe(e,t){return t?function M1(e,t){if(null!=e){if(kh(e))return function C1(e,t){return At(e).pipe(Gh(t),zh(t))}(e,t);if(Ph(e))return function D1(e,t){return new be(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(xh(e))return function _1(e,t){return At(e).pipe(Gh(t),zh(t))}(e,t);if(Fh(e))return Wh(e,t);if($h(e))return function w1(e,t){return new be(n=>{let r;return Sn(n,t,()=>{r=e[Vh](),Sn(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){return void n.error(s)}i?n.complete():n.next(o)},0,!0)}),()=>ce(r?.return)&&r.return()})}(e,t);if(jh(e))return function E1(e,t){return Wh(Hh(e),t)}(e,t)}throw Lh(e)}(e,t):At(e)}function Kl(e,t,...n){if(!0===t)return void e();if(!1===t)return;const r=new Xo({next:()=>{r.unsubscribe(),e()}});return At(t(...n)).subscribe(r)}function ae(e){for(let t in e)if(e[t]===ae)return t;throw Error("Could not find renamed property on target object.")}function Jl(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function ke(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(ke).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function eu(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const I1=ae({__forward_ref__:ae});function fe(e){return e.__forward_ref__=fe,e.toString=function(){return ke(this())},e}function B(e){return tu(e)?e():e}function tu(e){return"function"==typeof e&&e.hasOwnProperty(I1)&&e.__forward_ref__===fe}function nu(e){return e&&!!e.\u0275providers}const qh="https://g.co/ng/security#xss";class M extends Error{constructor(t,n){super(function ru(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function U(e){return"string"==typeof e?e:null==e?"":String(e)}function Ss(e,t){throw new M(-201,!1)}function Nt(e,t){null==e&&function se(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function x(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Rt(e){return{providers:e.providers||[],imports:e.imports||[]}}function Is(e){return Zh(e,Ts)||Zh(e,Xh)}function Zh(e,t){return e.hasOwnProperty(t)?e[t]:null}function Yh(e){return e&&(e.hasOwnProperty(ou)||e.hasOwnProperty(k1))?e[ou]:null}const Ts=ae({\u0275prov:ae}),ou=ae({\u0275inj:ae}),Xh=ae({ngInjectableDef:ae}),k1=ae({ngInjectorDef:ae});var L=(()=>((L=L||{})[L.Default=0]="Default",L[L.Host=1]="Host",L[L.Self=2]="Self",L[L.SkipSelf=4]="SkipSelf",L[L.Optional=8]="Optional",L))();let iu;function at(e){const t=iu;return iu=e,t}function Kh(e,t,n){const r=Is(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&L.Optional?null:void 0!==t?t:void Ss(ke(e))}const he=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Ko={},su="__NG_DI_FLAG__",As="ngTempTokenPath",L1=/\n/gm,Jh="__source";let jr;function Gn(e){const t=jr;return jr=e,t}function H1(e,t=L.Default){if(void 0===jr)throw new M(-203,!1);return null===jr?Kh(e,void 0,t):jr.get(e,t&L.Optional?null:void 0,t)}function R(e,t=L.Default){return(function Qh(){return iu}()||H1)(B(e),t)}function I(e,t=L.Default){return R(e,Ns(t))}function Ns(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function au(e){const t=[];for(let n=0;n<e.length;n++){const r=B(e[n]);if(Array.isArray(r)){if(0===r.length)throw new M(900,!1);let o,i=L.Default;for(let s=0;s<r.length;s++){const a=r[s],l=j1(a);"number"==typeof l?-1===l?o=a.token:i|=l:o=a}t.push(R(o,i))}else t.push(R(r))}return t}function Jo(e,t){return e[su]=t,e.prototype[su]=t,e}function j1(e){return e[su]}function In(e){return{toString:e}.toString()}var tn=(()=>((tn=tn||{})[tn.OnPush=0]="OnPush",tn[tn.Default=1]="Default",tn))(),Ct=(()=>{return(e=Ct||(Ct={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",Ct;var e})();const Tn={},te=[],Rs=ae({\u0275cmp:ae}),lu=ae({\u0275dir:ae}),uu=ae({\u0275pipe:ae}),tp=ae({\u0275mod:ae}),An=ae({\u0275fac:ae}),ei=ae({__NG_ELEMENT_ID__:ae}),np=ae({__NG_ENV_ID__:ae});function rp(e,t,n){let r=e.length;for(;;){const o=e.indexOf(t,n);if(-1===o)return o;if(0===o||e.charCodeAt(o-1)<=32){const i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}function cu(e,t,n){let r=0;for(;r<n.length;){const o=n[r];if("number"==typeof o){if(0!==o)break;r++;const i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i)}else{const i=o,s=n[++r];ip(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function op(e){return 3===e||4===e||6===e}function ip(e){return 64===e.charCodeAt(0)}function ti(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){const o=t[r];"number"==typeof o?n=o:0===n||sp(e,n,o,null,-1===n||2===n?t[++r]:null)}}return e}function sp(e,t,n,r,o){let i=0,s=e.length;if(-1===t)s=-1;else for(;i<e.length;){const a=e[i++];if("number"==typeof a){if(a===t){s=-1;break}if(a>t){s=i-1;break}}}for(;i<e.length;){const a=e[i];if("number"==typeof a)break;if(a===n){if(null===r)return void(null!==o&&(e[i+1]=o));if(r===e[i+1])return void(e[i+2]=o)}i++,null!==r&&i++,null!==o&&i++}-1!==s&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),null!==r&&e.splice(i++,0,r),null!==o&&e.splice(i++,0,o)}const ap="ng-template";function z1(e,t,n){let r=0,o=!0;for(;r<e.length;){let i=e[r++];if("string"==typeof i&&o){const s=e[r++];if(n&&"class"===i&&-1!==rp(s.toLowerCase(),t,0))return!0}else{if(1===i){for(;r<e.length&&"string"==typeof(i=e[r++]);)if(i.toLowerCase()===t)return!0;return!1}"number"==typeof i&&(o=!1)}}return!1}function lp(e){return 4===e.type&&e.value!==ap}function G1(e,t,n){return t===(4!==e.type||n?e.value:ap)}function W1(e,t,n){let r=4;const o=e.attrs||[],i=function Y1(e){for(let t=0;t<e.length;t++)if(op(e[t]))return t;return e.length}(o);let s=!1;for(let a=0;a<t.length;a++){const l=t[a];if("number"!=typeof l){if(!s)if(4&r){if(r=2|1&r,""!==l&&!G1(e,l,n)||""===l&&1===t.length){if(Vt(r))return!1;s=!0}}else{const u=8&r?l:t[++a];if(8&r&&null!==e.attrs){if(!z1(e.attrs,u,n)){if(Vt(r))return!1;s=!0}continue}const d=q1(8&r?"class":l,o,lp(e),n);if(-1===d){if(Vt(r))return!1;s=!0;continue}if(""!==u){let f;f=d>i?"":o[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==rp(h,u,0)||2&r&&u!==f){if(Vt(r))return!1;s=!0}}}}else{if(!s&&!Vt(r)&&!Vt(l))return!1;if(s&&Vt(l))continue;s=!1,r=l|1&r}}return Vt(r)||s}function Vt(e){return 0==(1&e)}function q1(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){const s=t[o];if(s===e)return o;if(3===s||6===s)i=!0;else{if(1===s||2===s){let a=t[++o];for(;"string"==typeof a;)a=t[++o];continue}if(4===s)break;if(0===s){o+=4;continue}}o+=i?1:2}return-1}return function X1(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const r=e[n];if("number"==typeof r)return-1;if(r===t)return n;n++}return-1}(t,e)}function up(e,t,n=!1){for(let r=0;r<t.length;r++)if(W1(e,t[r],n))return!0;return!1}function cp(e,t){return e?":not("+t.trim()+")":t}function K1(e){let t=e[0],n=1,r=2,o="",i=!1;for(;n<e.length;){let s=e[n];if("string"==typeof s)if(2&r){const a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!Vt(s)&&(t+=cp(i,o),o=""),r=s,i=i||!Vt(r);n++}return""!==o&&(t+=cp(i,o)),t}function _t(e){return In(()=>{const t=fp(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===tn.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,data:e.data||{},encapsulation:e.encapsulation||Ct.Emulated,styles:e.styles||te,_:null,schemas:e.schemas||null,tView:null,id:""};hp(n);const r=e.dependencies;return n.directiveDefs=Os(r,!1),n.pipeDefs=Os(r,!0),n.id=function sE(e){let t=0;const n=JSON.stringify([e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.exportAs,e.inputs,e.outputs,Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery]);for(const o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}(n),n})}function nE(e){return re(e)||Xe(e)}function rE(e){return null!==e}function $t(e){return In(()=>({type:e.type,bootstrap:e.bootstrap||te,declarations:e.declarations||te,imports:e.imports||te,exports:e.exports||te,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function dp(e,t){if(null==e)return Tn;const n={};for(const r in e)if(e.hasOwnProperty(r)){let o=e[r],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),n[o]=r,t&&(t[o]=i)}return n}function H(e){return In(()=>{const t=fp(e);return hp(t),t})}function lt(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function re(e){return e[Rs]||null}function Xe(e){return e[lu]||null}function ut(e){return e[uu]||null}function Dt(e,t){const n=e[tp]||null;if(!n&&!0===t)throw new Error(`Type ${ke(e)} does not have '\u0275mod' property.`);return n}function fp(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,exportAs:e.exportAs||null,standalone:!0===e.standalone,selectors:e.selectors||te,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:dp(e.inputs,t),outputs:dp(e.outputs)}}function hp(e){e.features?.forEach(t=>t(e))}function Os(e,t){if(!e)return null;const n=t?ut:nE;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(rE)}const Fe=0,T=1,W=2,Ce=3,Ht=4,mr=5,Qe=6,Ur=7,we=8,zr=9,yr=10,z=11,ni=12,pp=13,Gr=14,Ae=15,ri=16,Wr=17,nn=18,oi=19,gp=20,Wn=21,Nn=22,Ps=23,xs=24,Q=25,du=1,mp=2,rn=7,ks=8,qr=9,We=11;function wt(e){return Array.isArray(e)&&"object"==typeof e[du]}function ct(e){return Array.isArray(e)&&!0===e[du]}function fu(e){return 0!=(4&e.flags)}function vr(e){return e.componentOffset>-1}function Fs(e){return 1==(1&e.flags)}function jt(e){return!!e.template}function hu(e){return 0!=(512&e[W])}function Cr(e,t){return e.hasOwnProperty(An)?e[An]:null}let dE=he.WeakRef??class cE{constructor(t){this.ref=t}deref(){return this.ref}},hE=0,on=null,Ls=!1;function je(e){const t=on;return on=e,t}class Dp{constructor(){this.id=hE++,this.ref=function fE(e){return new dE(e)}(this),this.producers=new Map,this.consumers=new Map,this.trackingVersion=0,this.valueVersion=0}consumerPollProducersForChange(){for(const[t,n]of this.producers){const r=n.producerNode.deref();if(void 0!==r&&n.atTrackingVersion===this.trackingVersion){if(r.producerPollStatus(n.seenValueVersion))return!0}else this.producers.delete(t),r?.consumers.delete(this.id)}return!1}producerMayHaveChanged(){const t=Ls;Ls=!0;try{for(const[n,r]of this.consumers){const o=r.consumerNode.deref();void 0!==o&&o.trackingVersion===r.atTrackingVersion?o.onConsumerDependencyMayHaveChanged():(this.consumers.delete(n),o?.producers.delete(this.id))}}finally{Ls=t}}producerAccessed(){if(Ls)throw new Error("");if(null===on)return;let t=on.producers.get(this.id);void 0===t?(t={consumerNode:on.ref,producerNode:this.ref,seenValueVersion:this.valueVersion,atTrackingVersion:on.trackingVersion},on.producers.set(this.id,t),this.consumers.set(on.id,t)):(t.seenValueVersion=this.valueVersion,t.atTrackingVersion=on.trackingVersion)}get hasProducers(){return this.producers.size>0}get producerUpdatesAllowed(){return!1!==on?.consumerAllowSignalWrites}producerPollStatus(t){return this.valueVersion!==t||(this.onProducerUpdateValueVersion(),this.valueVersion!==t)}}let wp=null;const Ep=()=>{};class yE extends Dp{constructor(t,n,r){super(),this.watch=t,this.schedule=n,this.dirty=!1,this.cleanupFn=Ep,this.registerOnCleanup=o=>{this.cleanupFn=o},this.consumerAllowSignalWrites=r}notify(){this.dirty||this.schedule(this),this.dirty=!0}onConsumerDependencyMayHaveChanged(){this.notify()}onProducerUpdateValueVersion(){}run(){if(this.dirty=!1,0!==this.trackingVersion&&!this.consumerPollProducersForChange())return;const t=je(this);this.trackingVersion++;try{this.cleanupFn(),this.cleanupFn=Ep,this.watch(this.registerOnCleanup)}finally{je(t)}}cleanup(){this.cleanupFn()}}class vE{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Ot(){return Mp}function Mp(e){return e.type.prototype.ngOnChanges&&(e.setInput=_E),CE}function CE(){const e=Sp(this),t=e?.current;if(t){const n=e.previous;if(n===Tn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function _E(e,t,n,r){const o=this.declaredInputs[n],i=Sp(e)||function DE(e,t){return e[bp]=t}(e,{previous:Tn,current:null}),s=i.current||(i.current={}),a=i.previous,l=a[o];s[o]=new vE(l&&l.currentValue,t,a===Tn),e[r]=t}Ot.ngInherit=!0;const bp="__ngSimpleChanges__";function Sp(e){return e[bp]||null}const sn=function(e,t,n){};function me(e){for(;Array.isArray(e);)e=e[Fe];return e}function Hs(e,t){return me(t[e])}function dt(e,t){return me(t[e.index])}function Ap(e,t){return e.data[t]}function ft(e,t){const n=t[e];return wt(n)?n:n[Fe]}function js(e){return 128==(128&e[W])}function qn(e,t){return null==t?null:e[t]}function Np(e){e[Wr]=0}function IE(e){1024&e[W]||(e[W]|=1024,Op(e,1))}function Rp(e){1024&e[W]&&(e[W]&=-1025,Op(e,-1))}function Op(e,t){let n=e[Ce];if(null===n)return;n[mr]+=t;let r=n;for(n=n[Ce];null!==n&&(1===t&&1===r[mr]||-1===t&&0===r[mr]);)n[mr]+=t,r=n,n=n[Ce]}const $={lFrame:Up(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function kp(){return $.bindingsEnabled}function E(){return $.lFrame.lView}function ee(){return $.lFrame.tView}function Zn(e){return $.lFrame.contextLView=e,e[we]}function Yn(e){return $.lFrame.contextLView=null,e}function qe(){let e=Fp();for(;null!==e&&64===e.type;)e=e.parent;return e}function Fp(){return $.lFrame.currentTNode}function an(e,t){const n=$.lFrame;n.currentTNode=e,n.isParent=t}function Cu(){return $.lFrame.isParent}function nt(){const e=$.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Xr(){return $.lFrame.bindingIndex++}function On(e){const t=$.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function $E(e,t){const n=$.lFrame;n.bindingIndex=n.bindingRootIndex=e,Du(t)}function Du(e){$.lFrame.currentDirectiveIndex=e}function Hp(){return $.lFrame.currentQueryIndex}function Eu(e){$.lFrame.currentQueryIndex=e}function jE(e){const t=e[T];return 2===t.type?t.declTNode:1===t.type?e[Qe]:null}function jp(e,t,n){if(n&L.SkipSelf){let o=t,i=e;for(;!(o=o.parent,null!==o||n&L.Host||(o=jE(i),null===o||(i=i[Gr],10&o.type))););if(null===o)return!1;t=o,e=i}const r=$.lFrame=Bp();return r.currentTNode=t,r.lView=e,!0}function Mu(e){const t=Bp(),n=e[T];$.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Bp(){const e=$.lFrame,t=null===e?null:e.child;return null===t?Up(e):t}function Up(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function zp(){const e=$.lFrame;return $.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Gp=zp;function bu(){const e=zp();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 rt(){return $.lFrame.selectedIndex}function _r(e){$.lFrame.selectedIndex=e}function _e(){const e=$.lFrame;return Ap(e.tView,e.selectedIndex)}let qp=!0;function Bs(){return qp}function Xn(e){qp=e}function Us(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){const i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:u,ngOnDestroy:c}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),l&&(e.viewHooks??=[]).push(-n,l),u&&((e.viewHooks??=[]).push(n,u),(e.viewCheckHooks??=[]).push(n,u)),null!=c&&(e.destroyHooks??=[]).push(n,c)}}function zs(e,t,n){Zp(e,t,3,n)}function Gs(e,t,n,r){(3&e[W])===n&&Zp(e,t,n,r)}function Su(e,t){let n=e[W];(3&n)===t&&(n&=4095,n+=1,e[W]=n)}function Zp(e,t,n,r){const i=r??-1,s=t.length-1;let a=0;for(let l=void 0!==r?65535&e[Wr]:0;l<s;l++)if("number"==typeof t[l+1]){if(a=t[l],null!=r&&a>=r)break}else t[l]<0&&(e[Wr]+=65536),(a<i||-1==i)&&(YE(e,n,t,l),e[Wr]=(4294901760&e[Wr])+l+2),l++}function Yp(e,t){sn(4,e,t);const n=je(null);try{t.call(e)}finally{je(n),sn(5,e,t)}}function YE(e,t,n,r){const o=n[r]<0,i=n[r+1],a=e[o?-n[r]:n[r]];o?e[W]>>12<e[Wr]>>16&&(3&e[W])===t&&(e[W]+=4096,Yp(a,i)):Yp(a,i)}const Qr=-1;class ai{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Xp(e){return e!==Qr}function Ws(e){return 32767&e}function qs(e,t){let n=function JE(e){return e>>16}(e),r=t;for(;n>0;)r=r[Gr],n--;return r}let Tu=!0;function Zs(e){const t=Tu;return Tu=e,t}const Qp=255,Kp=5;let eM=0;const ln={};function Ys(e,t){const n=Jp(e,t);if(-1!==n)return n;const r=t[T];r.firstCreatePass&&(e.injectorIndex=t.length,Au(r.data,e),Au(t,null),Au(r.blueprint,null));const o=Nu(e,t),i=e.injectorIndex;if(Xp(o)){const s=Ws(o),a=qs(o,t),l=a[T].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|l[s+u]}return t[i+8]=o,i}function Au(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Jp(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Nu(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;null!==o;){if(r=sg(o),null===r)return Qr;if(n++,o=o[Gr],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return Qr}function Ru(e,t,n){!function tM(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(ei)&&(r=n[ei]),null==r&&(r=n[ei]=eM++);const o=r&Qp;t.data[e+(o>>Kp)]|=1<<o}(e,t,n)}function eg(e,t,n){if(n&L.Optional||void 0!==e)return e;Ss()}function tg(e,t,n,r){if(n&L.Optional&&void 0===r&&(r=null),!(n&(L.Self|L.Host))){const o=e[zr],i=at(void 0);try{return o?o.get(t,r,n&L.Optional):Kh(t,r,n&L.Optional)}finally{at(i)}}return eg(r,0,n)}function ng(e,t,n,r=L.Default,o){if(null!==e){if(2048&t[W]){const s=function sM(e,t,n,r,o){let i=e,s=t;for(;null!==i&&null!==s&&2048&s[W]&&!(512&s[W]);){const a=rg(i,s,n,r|L.Self,ln);if(a!==ln)return a;let l=i.parent;if(!l){const u=s[gp];if(u){const c=u.get(n,ln,r);if(c!==ln)return c}l=sg(s),s=s[Gr]}i=l}return o}(e,t,n,r,ln);if(s!==ln)return s}const i=rg(e,t,n,r,ln);if(i!==ln)return i}return tg(t,n,r,o)}function rg(e,t,n,r,o){const i=function oM(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(ei)?e[ei]:void 0;return"number"==typeof t?t>=0?t&Qp:iM:t}(n);if("function"==typeof i){if(!jp(t,e,r))return r&L.Host?eg(o,0,r):tg(t,n,r,o);try{const s=i(r);if(null!=s||r&L.Optional)return s;Ss()}finally{Gp()}}else if("number"==typeof i){let s=null,a=Jp(e,t),l=Qr,u=r&L.Host?t[Ae][Qe]:null;for((-1===a||r&L.SkipSelf)&&(l=-1===a?Nu(e,t):t[a+8],l!==Qr&&ig(r,!1)?(s=t[T],a=Ws(l),t=qs(l,t)):a=-1);-1!==a;){const c=t[T];if(og(i,a,c.data)){const d=rM(a,t,n,s,r,u);if(d!==ln)return d}l=t[a+8],l!==Qr&&ig(r,t[T].data[a+8]===u)&&og(i,a,t)?(s=c,a=Ws(l),t=qs(l,t)):a=-1}}return o}function rM(e,t,n,r,o,i){const s=t[T],a=s.data[e+8],c=Xs(a,s,n,null==r?vr(a)&&Tu:r!=s&&0!=(3&a.type),o&L.Host&&i===a);return null!==c?Dr(t,s,c,a):ln}function Xs(e,t,n,r,o){const i=e.providerIndexes,s=t.data,a=1048575&i,l=e.directiveStart,c=i>>20,f=o?a+c:e.directiveEnd;for(let h=r?a:a+c;h<f;h++){const p=s[h];if(h<l&&n===p||h>=l&&p.type===n)return h}if(o){const h=s[l];if(h&&jt(h)&&h.type===n)return l}return null}function Dr(e,t,n,r){let o=e[n];const i=t.data;if(function XE(e){return e instanceof ai}(o)){const s=o;s.resolving&&function T1(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new M(-200,`Circular dependency in DI detected for ${e}${n}`)}(function ie(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():U(e)}(i[n]));const a=Zs(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?at(s.injectImpl):null;jp(e,r,L.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&function ZE(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){const s=Mp(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}(n,i[n],t)}finally{null!==l&&at(l),Zs(a),s.resolving=!1,Gp()}}return o}function og(e,t,n){return!!(n[t+(e>>Kp)]&1<<e)}function ig(e,t){return!(e&L.Self||e&L.Host&&t)}class Kr{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return ng(this._tNode,this._lView,t,Ns(r),n)}}function iM(){return new Kr(qe(),E())}function Ze(e){return In(()=>{const t=e.prototype.constructor,n=t[An]||Ou(t),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const i=o[An]||Ou(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Ou(e){return tu(e)?()=>{const t=Ou(B(e));return t&&t()}:Cr(e)}function sg(e){const t=e[T],n=t.type;return 2===n?t.declTNode:1===n?e[Qe]:null}const eo="__parameters__";function no(e,t,n){return In(()=>{const r=function Pu(e){return function(...n){if(e){const r=e(...n);for(const o in r)this[o]=r[o]}}}(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;const s=new o(...i);return a.annotation=s,a;function a(l,u,c){const d=l.hasOwnProperty(eo)?l[eo]:Object.defineProperty(l,eo,{value:[]})[eo];for(;d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(s),l}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function ci(e,t){e.forEach(n=>Array.isArray(n)?ci(n,t):t(n))}function lg(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Ks(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Et(e,t,n){let r=ro(e,t);return r>=0?e[1|r]=n:(r=~r,function dM(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(1===o)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function xu(e,t){const n=ro(e,t);if(n>=0)return e[1|n]}function ro(e,t){return function ug(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){const i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1}return~(o<<n)}(e,t,1)}const ea=Jo(no("Optional"),8),ta=Jo(no("SkipSelf"),4);function oa(e){return 128==(128&e.flags)}var ht=(()=>((ht=ht||{})[ht.Important=1]="Important",ht[ht.DashCase=2]="DashCase",ht))();const ju=new Map;let kM=0;const Uu="__ngContext__";function Ke(e,t){wt(t)?(e[Uu]=t[oi],function LM(e){ju.set(e[oi],e)}(t)):e[Uu]=t}let zu;function Gu(e,t){return zu(e,t)}function pi(e){const t=e[Ce];return ct(t)?t[Ce]:t}function Wu(e){return Tg(e[ni])}function qu(e){return Tg(e[Ht])}function Tg(e){for(;null!==e&&!ct(e);)e=e[Ht];return e}function so(e,t,n,r,o){if(null!=r){let i,s=!1;ct(r)?i=r:wt(r)&&(s=!0,r=r[Fe]);const a=me(r);0===e&&null!==n?null==o?Pg(t,n,a):wr(t,n,a,o||null,!0):1===e&&null!==n?wr(t,n,a,o||null,!0):2===e?function ca(e,t,n){const r=la(e,t);r&&function nb(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=i&&function ib(e,t,n,r,o){const i=n[rn];i!==me(n)&&so(t,e,r,i,o);for(let a=We;a<n.length;a++){const l=n[a];mi(l[T],l,e,t,r,i)}}(t,e,i,n,o)}}function aa(e,t,n){return e.createElement(t,n)}function Ng(e,t){const n=e[qr],r=n.indexOf(t);Rp(t),n.splice(r,1)}function Yu(e,t){if(e.length<=We)return;const n=We+t,r=e[n];if(r){const o=r[ri];null!==o&&o!==e&&Ng(o,r),t>0&&(e[n-1][Ht]=r[Ht]);const i=Ks(e,We+t);!function ZM(e,t){mi(e,t,t[z],2,null,null),t[Fe]=null,t[Qe]=null}(r[T],r);const s=i[nn];null!==s&&s.detachView(i[T]),r[Ce]=null,r[Ht]=null,r[W]&=-129}return r}function Rg(e,t){if(!(256&t[W])){const n=t[z];t[Ps]?.destroy(),t[xs]?.destroy(),n.destroyNode&&mi(e,t,n,3,null,null),function QM(e){let t=e[ni];if(!t)return Xu(e[T],e);for(;t;){let n=null;if(wt(t))n=t[ni];else{const r=t[We];r&&(n=r)}if(!n){for(;t&&!t[Ht]&&t!==e;)wt(t)&&Xu(t[T],t),t=t[Ce];null===t&&(t=e),wt(t)&&Xu(t[T],t),n=t&&t[Ht]}t=n}}(t)}}function Xu(e,t){if(!(256&t[W])){t[W]&=-129,t[W]|=256,function tb(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r<n.length;r+=2){const o=t[n[r]];if(!(o instanceof ai)){const i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){const a=o[i[s]],l=i[s+1];sn(4,a,l);try{l.call(a)}finally{sn(5,a,l)}}else{sn(4,o,i);try{i.call(o)}finally{sn(5,o,i)}}}}}(e,t),function eb(e,t){const n=e.cleanup,r=t[Ur];if(null!==n)for(let i=0;i<n.length-1;i+=2)if("string"==typeof n[i]){const s=n[i+3];s>=0?r[s]():r[-s].unsubscribe(),i+=2}else n[i].call(r[n[i+1]]);null!==r&&(t[Ur]=null);const o=t[Wn];if(null!==o){for(let i=0;i<o.length;i++)(0,o[i])();t[Wn]=null}}(e,t),1===t[T].type&&t[z].destroy();const n=t[ri];if(null!==n&&ct(t[Ce])){n!==t[Ce]&&Ng(n,t);const r=t[nn];null!==r&&r.detachView(e)}!function VM(e){ju.delete(e[oi])}(t)}}function Qu(e,t,n){return function Og(e,t,n){let r=t;for(;null!==r&&40&r.type;)r=(t=r).parent;if(null===r)return n[Fe];{const{componentOffset:o}=r;if(o>-1){const{encapsulation:i}=e.data[r.directiveStart+o];if(i===Ct.None||i===Ct.Emulated)return null}return dt(r,n)}}(e,t.parent,n)}function wr(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Pg(e,t,n){e.appendChild(t,n)}function xg(e,t,n,r,o){null!==r?wr(e,t,n,r,o):Pg(e,t,n)}function la(e,t){return e.parentNode(t)}let Ku,nc,fa,Lg=function Fg(e,t,n){return 40&e.type?dt(e,n):null};function ua(e,t,n,r){const o=Qu(e,r,t),i=t[z],a=function kg(e,t,n){return Lg(e,t,n)}(r.parent||t[Qe],r,t);if(null!=o)if(Array.isArray(n))for(let l=0;l<n.length;l++)xg(i,o,n[l],a,!1);else xg(i,o,n,a,!1);void 0!==Ku&&Ku(i,r,t,n,o)}function gi(e,t){if(null!==t){const n=t.type;if(3&n)return dt(t,e);if(4&n)return Ju(-1,e[t.index]);if(8&n){const r=t.child;if(null!==r)return gi(e,r);{const o=e[t.index];return ct(o)?Ju(-1,o):me(o)}}if(32&n)return Gu(t,e)()||me(e[t.index]);{const r=$g(e,t);return null!==r?Array.isArray(r)?r[0]:gi(pi(e[Ae]),r):gi(e,t.next)}}return null}function $g(e,t){return null!==t?e[Ae][Qe].projection[t.projection]:null}function Ju(e,t){const n=We+e+1;if(n<t.length){const r=t[n],o=r[T].firstChild;if(null!==o)return gi(r,o)}return t[rn]}function ec(e,t,n,r,o,i,s){for(;null!=n;){const a=r[n.index],l=n.type;if(s&&0===t&&(a&&Ke(me(a),r),n.flags|=2),32!=(32&n.flags))if(8&l)ec(e,t,n.child,r,o,i,!1),so(t,e,o,a,i);else if(32&l){const u=Gu(n,r);let c;for(;c=u();)so(t,e,o,c,i);so(t,e,o,a,i)}else 16&l?jg(e,t,r,n,o,i):so(t,e,o,a,i);n=s?n.projectionNext:n.next}}function mi(e,t,n,r,o,i){ec(n,r,e.firstChild,t,o,i,!1)}function jg(e,t,n,r,o,i){const s=n[Ae],l=s[Qe].projection[r.projection];if(Array.isArray(l))for(let u=0;u<l.length;u++)so(t,e,o,l[u],i);else{let u=l;const c=s[Ce];oa(r)&&(u.flags|=128),ec(e,t,u,c,o,i,!0)}}function Bg(e,t,n){""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Ug(e,t,n){const{mergedAttrs:r,classes:o,styles:i}=n;null!==r&&cu(e,t,r),null!==o&&Bg(e,t,o),null!==i&&function ab(e,t,n){e.setAttribute(t,"style",n)}(e,t,i)}function Wg(e){return function rc(){if(void 0===fa&&(fa=null,he.trustedTypes))try{fa=he.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return fa}()?.createScriptURL(e)||e}class qg{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${qh})`}}function Qn(e){return e instanceof qg?e.changingThisBreaksApplicationSecurity:e}function vi(e,t){const n=function yb(e){return e instanceof qg&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${qh})`)}return n===t}const Db=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;var Ne=(()=>((Ne=Ne||{})[Ne.NONE=0]="NONE",Ne[Ne.HTML=1]="HTML",Ne[Ne.STYLE=2]="STYLE",Ne[Ne.SCRIPT=3]="SCRIPT",Ne[Ne.URL=4]="URL",Ne[Ne.RESOURCE_URL=5]="RESOURCE_URL",Ne))();function lc(e){const t=_i();return t?t.sanitize(Ne.URL,e)||"":vi(e,"URL")?Qn(e):function oc(e){return(e=String(e)).match(Db)?e:"unsafe:"+e}(U(e))}function em(e){const t=_i();if(t)return Wg(t.sanitize(Ne.RESOURCE_URL,e)||"");if(vi(e,"ResourceURL"))return Wg(Qn(e));throw new M(904,!1)}function _i(){const e=E();return e&&e[yr].sanitizer}class O{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=x({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const Di=new O("ENVIRONMENT_INITIALIZER"),nm=new O("INJECTOR",-1),rm=new O("INJECTOR_DEF_TYPES");class om{get(t,n=Ko){if(n===Ko){const r=new Error(`NullInjectorError: No provider for ${ke(t)}!`);throw r.name="NullInjectorError",r}return n}}function xb(...e){return{\u0275providers:im(0,e),\u0275fromNgModule:!0}}function im(e,...t){const n=[],r=new Set;let o;return ci(t,i=>{const s=i;cc(s,n,[],r)&&(o||=[],o.push(s))}),void 0!==o&&sm(o,n),n}function sm(e,t){for(let n=0;n<e.length;n++){const{providers:o}=e[n];dc(o,i=>{t.push(i)})}}function cc(e,t,n,r){if(!(e=B(e)))return!1;let o=null,i=Yh(e);const s=!i&&re(e);if(i||s){if(s&&!s.standalone)return!1;o=e}else{const l=e.ngModule;if(i=Yh(l),!i)return!1;o=l}const a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const u of l)cc(u,t,n,r)}}else{if(!i)return!1;{if(null!=i.imports&&!a){let u;r.add(o);try{ci(i.imports,c=>{cc(c,t,n,r)&&(u||=[],u.push(c))})}finally{}void 0!==u&&sm(u,t)}if(!a){const u=Cr(o)||(()=>new o);t.push({provide:o,useFactory:u,deps:te},{provide:rm,useValue:o,multi:!0},{provide:Di,useValue:()=>R(o),multi:!0})}const l=i.providers;null==l||a||dc(l,c=>{t.push(c)})}}return o!==e&&void 0!==e.providers}function dc(e,t){for(let n of e)nu(n)&&(n=n.\u0275providers),Array.isArray(n)?dc(n,t):t(n)}const kb=ae({provide:String,useValue:ae});function fc(e){return null!==e&&"object"==typeof e&&kb in e}function Er(e){return"function"==typeof e}const hc=new O("Set Injector scope."),pa={},Lb={};let pc;function ga(){return void 0===pc&&(pc=new om),pc}class un{}class gc extends un{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,yc(t,s=>this.processProvider(s)),this.records.set(nm,lo(void 0,this)),o.has("environment")&&this.records.set(un,lo(void 0,this));const i=this.records.get(hc);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(rm.multi,te,L.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const n=Gn(this),r=at(void 0);try{return t()}finally{Gn(n),at(r)}}get(t,n=Ko,r=L.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(np))return t[np](this);r=Ns(r);const o=Gn(this),i=at(void 0);try{if(!(r&L.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function Bb(e){return"function"==typeof e||"object"==typeof e&&e instanceof O}(t)&&Is(t);a=l&&this.injectableDefInScope(l)?lo(mc(t),pa):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&L.Self?ga():this.parent).get(t,n=r&L.Optional&&n===Ko?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[As]=s[As]||[]).unshift(ke(t)),o)throw s;return function B1(e,t,n,r){const o=e[As];throw t[Jh]&&o.unshift(t[Jh]),e.message=function U1(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=ke(t);if(Array.isArray(t))o=t.map(ke).join(" -> ");else if("object"==typeof t){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+("string"==typeof a?JSON.stringify(a):ke(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(L1,"\n ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e[As]=null,e}(s,t,"R3InjectorError",this.source)}throw s}finally{at(i),Gn(o)}}resolveInjectorInitializers(){const t=Gn(this),n=at(void 0);try{const r=this.get(Di.multi,te,L.Self);for(const o of r)o()}finally{Gn(t),at(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(ke(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new M(205,!1)}processProvider(t){let n=Er(t=B(t))?t:B(t&&t.provide);const r=function $b(e){return fc(e)?lo(void 0,e.useValue):lo(um(e),pa)}(t);if(Er(t)||!0!==t.multi)this.records.get(n);else{let o=this.records.get(n);o||(o=lo(void 0,pa,!0),o.factory=()=>au(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===pa&&(n.value=Lb,n.value=n.factory()),"object"==typeof n.value&&n.value&&function jb(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=B(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){const n=this._onDestroyHooks.indexOf(t);-1!==n&&this._onDestroyHooks.splice(n,1)}}function mc(e){const t=Is(e),n=null!==t?t.factory:Cr(e);if(null!==n)return n;if(e instanceof O)throw new M(204,!1);if(e instanceof Function)return function Vb(e){const t=e.length;if(t>0)throw function di(e,t){const n=[];for(let r=0;r<e;r++)n.push(t);return n}(t,"?"),new M(204,!1);const n=function x1(e){return e&&(e[Ts]||e[Xh])||null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new M(204,!1)}function um(e,t,n){let r;if(Er(e)){const o=B(e);return Cr(o)||mc(o)}if(fc(e))r=()=>B(e.useValue);else if(function lm(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...au(e.deps||[]));else if(function am(e){return!(!e||!e.useExisting)}(e))r=()=>R(B(e.useExisting));else{const o=B(e&&(e.useClass||e.provide));if(!function Hb(e){return!!e.deps}(e))return Cr(o)||mc(o);r=()=>new o(...au(e.deps))}return r}function lo(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function yc(e,t){for(const n of e)Array.isArray(n)?yc(n,t):n&&nu(n)?yc(n.\u0275providers,t):t(n)}const ma=new O("AppId",{providedIn:"root",factory:()=>Ub}),Ub="ng",cm=new O("Platform Initializer"),Mr=new O("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),dm=new O("CSP nonce",{providedIn:"root",factory:()=>function yi(){if(void 0!==nc)return nc;if(typeof document<"u")return document;throw new M(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let hm=(e,t)=>null;function pm(e,t){return hm(e,t)}class Jb{}class ym{}class tS{resolveComponentFactory(t){throw function eS(e){const t=Error(`No component factory found for ${ke(e)}.`);return t.ngComponent=e,t}(t)}}let Da=(()=>{class e{}return e.NULL=new tS,e})();function nS(){return uo(qe(),E())}function uo(e,t){return new Mt(dt(e,t))}let Mt=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=nS,e})();function rS(e){return e instanceof Mt?e.nativeElement:e}class Cm{}let xn=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function oS(){const e=E(),n=ft(qe().index,e);return(wt(n)?n:e)[z]}(),e})(),iS=(()=>{class e{}return e.\u0275prov=x({token:e,providedIn:"root",factory:()=>null}),e})();class bi{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const sS=new bi("16.0.1"),Tc={};function Si(e){for(;e;){e[W]|=64;const t=pi(e);if(hu(e)&&!t)return e;e=t}return null}function Ac(e){return e.ngOriginalError}class br{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Ac(t);for(;n&&Ac(n);)n=Ac(n);return n||null}}const wm=new O("",{providedIn:"root",factory:()=>!1});function kn(e){return e instanceof Function?e():e}class bm extends Dp{constructor(){super(...arguments),this.consumerAllowSignalWrites=!1,this._lView=null}set lView(t){this._lView=t}onConsumerDependencyMayHaveChanged(){Si(this._lView)}onProducerUpdateValueVersion(){}get hasReadASignal(){return this.hasProducers}runInContext(t,n,r){const o=je(this);this.trackingVersion++;try{t(n,r)}finally{je(o)}}destroy(){this.trackingVersion++}}let Ea=null;function Sm(){return Ea??=new bm,Ea}function Im(e,t){return e[t]??Sm()}function Tm(e,t){const n=Sm();n.hasReadASignal&&(e[t]=Ea,n.lView=e,Ea=new bm)}const G={};function _(e){Am(ee(),E(),rt()+e,!1)}function Am(e,t,n,r){if(!r)if(3==(3&t[W])){const i=e.preOrderCheckHooks;null!==i&&zs(t,i,n)}else{const i=e.preOrderHooks;null!==i&&Gs(t,i,0,n)}_r(n)}function Pm(e,t=null,n=null,r){const o=xm(e,t,n,r);return o.resolveInjectorInitializers(),o}function xm(e,t=null,n=null,r,o=new Set){const i=[n||te,xb(e)];return r=r||("object"==typeof e?void 0:ke(e)),new gc(i,t||ga(),r||null,o)}let cn=(()=>{class e{static create(n,r){if(Array.isArray(n))return Pm({name:""},r,n,"");{const o=n.name??"";return Pm({name:o},n.parent,n.providers,o)}}}return e.THROW_IF_NOT_FOUND=Ko,e.NULL=new om,e.\u0275prov=x({token:e,providedIn:"any",factory:()=>R(nm)}),e.__NG_ELEMENT_ID__=-1,e})();function D(e,t=L.Default){const n=E();return null===n?R(e,t):ng(qe(),n,B(e),t)}function Ma(e,t,n,r,o,i,s,a,l,u,c){const d=t.blueprint.slice();return d[Fe]=o,d[W]=140|r,(null!==u||e&&2048&e[W])&&(d[W]|=2048),Np(d),d[Ce]=d[Gr]=e,d[we]=n,d[yr]=s||e&&e[yr],d[z]=a||e&&e[z],d[zr]=l||e&&e[zr]||null,d[Qe]=i,d[oi]=function FM(){return kM++}(),d[Nn]=c,d[gp]=u,d[Ae]=2==t.type?e[Ae]:d,d}function fo(e,t,n,r,o){let i=e.data[t];if(null===i)i=function Nc(e,t,n,r,o){const i=Fp(),s=Cu(),l=e.data[t]=function IS(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return function Yr(){return null!==$.skipHydrationRootTNode}()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?i:i&&i.parent,n,t,r,o);return null===e.firstChild&&(e.firstChild=l),null!==i&&(s?null==i.child&&null!==l.parent&&(i.child=l):null===i.next&&(i.next=l,l.prev=i)),l}(e,t,n,r,o),function VE(){return $.lFrame.inI18n}()&&(i.flags|=32);else if(64&i.type){i.type=n,i.value=r,i.attrs=o;const s=function si(){const e=$.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();i.injectorIndex=null===s?-1:s.injectorIndex}return an(i,!0),i}function Ii(e,t,n,r){if(0===n)return-1;const o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function Fm(e,t,n,r,o){const i=Im(t,Ps),s=rt(),a=2&r;try{if(_r(-1),a&&t.length>Q&&Am(e,t,Q,!1),sn(a?2:0,o),a)i.runInContext(n,r,o);else{const u=je(null);try{n(r,o)}finally{je(u)}}}finally{a&&null===t[Ps]&&Tm(t,Ps),_r(s),sn(a?3:1,o)}}function Rc(e,t,n){if(fu(t)){const r=je(null);try{const i=t.directiveEnd;for(let s=t.directiveStart;s<i;s++){const a=e.data[s];a.contentQueries&&a.contentQueries(1,n[s],s)}}finally{je(r)}}}function Oc(e,t,n){kp()&&(function xS(e,t,n,r){const o=n.directiveStart,i=n.directiveEnd;vr(n)&&function jS(e,t,n){const r=dt(t,e),s=ba(e,Ma(e,Lm(n),null,n.onPush?64:16,r,t,null,e[yr].rendererFactory.createRenderer(r,n),null,null,null));e[t.index]=s}(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||Ys(n,t),Ke(r,t);const s=n.initialInputs;for(let a=o;a<i;a++){const l=e.data[a],u=Dr(t,e,a,n);Ke(u,t),null!==s&&BS(0,a-o,u,l,0,s),jt(l)&&(ft(n.index,t)[we]=Dr(t,e,a,n))}}(e,t,n,dt(n,t)),64==(64&n.flags)&&Bm(e,t,n))}function Pc(e,t,n=dt){const r=t.localNames;if(null!==r){let o=t.index+1;for(let i=0;i<r.length;i+=2){const s=r[i+1],a=-1===s?n(t,e):e[s];e[o++]=a}}}function Lm(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=xc(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function xc(e,t,n,r,o,i,s,a,l,u,c){const d=Q+r,f=d+o,h=function DS(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:G);return n}(d,f),p="function"==typeof u?u():u;return h[T]={type:e,blueprint:h,template:n,queries:null,viewQuery:a,declTNode:t,data:h.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:f,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof i?i():i,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:l,consts:p,incompleteFirstPass:!1,ssrId:c}}let Vm=e=>null;function $m(e,t,n,r){for(let o in e)if(e.hasOwnProperty(o)){n=null===n?{}:n;const i=e[o];null===r?Hm(n,t,o,i):r.hasOwnProperty(o)&&Hm(n,t,r[o],i)}return n}function Hm(e,t,n,r){e.hasOwnProperty(n)?e[n].push(t,r):e[n]=[t,r]}function bt(e,t,n,r,o,i,s,a){const l=dt(t,n);let c,u=t.inputs;!a&&null!=u&&(c=u[r])?($c(e,n,c,r,o),vr(t)&&function NS(e,t){const n=ft(t,e);16&n[W]||(n[W]|=64)}(n,t.index)):3&t.type&&(r=function AS(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),o=null!=s?s(o,t.value||"",r):o,i.setProperty(l,r,o))}function kc(e,t,n,r){if(kp()){const o=null===r?null:{"":-1},i=function FS(e,t){const n=e.directiveRegistry;let r=null,o=null;if(n)for(let i=0;i<n.length;i++){const s=n[i];if(up(t,s.selectors,!1))if(r||(r=[]),jt(s))if(null!==s.findHostDirectiveDefs){const a=[];o=o||new Map,s.findHostDirectiveDefs(s,a,o),r.unshift(...a,s),Fc(e,t,a.length)}else r.unshift(s),Fc(e,t,0);else o=o||new Map,s.findHostDirectiveDefs?.(s,r,o),r.push(s)}return null===r?null:[r,o]}(e,n);let s,a;null===i?s=a=null:[s,a]=i,null!==s&&jm(e,t,n,s,o,a),o&&function LS(e,t,n){if(t){const r=e.localNames=[];for(let o=0;o<t.length;o+=2){const i=n[t[o+1]];if(null==i)throw new M(-301,!1);r.push(t[o],i)}}}(n,r,o)}n.mergedAttrs=ti(n.mergedAttrs,n.attrs)}function jm(e,t,n,r,o,i){for(let u=0;u<r.length;u++)Ru(Ys(n,t),e,r[u].type);!function $S(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}(n,e.data.length,r.length);for(let u=0;u<r.length;u++){const c=r[u];c.providersResolver&&c.providersResolver(c)}let s=!1,a=!1,l=Ii(e,t,r.length,null);for(let u=0;u<r.length;u++){const c=r[u];n.mergedAttrs=ti(n.mergedAttrs,c.hostAttrs),HS(e,n,t,l,c),VS(l,c,o),null!==c.contentQueries&&(n.flags|=4),(null!==c.hostBindings||null!==c.hostAttrs||0!==c.hostVars)&&(n.flags|=64);const d=c.type.prototype;!s&&(d.ngOnChanges||d.ngOnInit||d.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),s=!0),!a&&(d.ngOnChanges||d.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),a=!0),l++}!function TS(e,t,n){const o=t.directiveEnd,i=e.data,s=t.attrs,a=[];let l=null,u=null;for(let c=t.directiveStart;c<o;c++){const d=i[c],f=n?n.get(d):null,p=f?f.outputs:null;l=$m(d.inputs,c,l,f?f.inputs:null),u=$m(d.outputs,c,u,p);const v=null===l||null===s||lp(t)?null:US(l,c,s);a.push(v)}null!==l&&(l.hasOwnProperty("class")&&(t.flags|=8),l.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=a,t.inputs=l,t.outputs=u}(e,n,i)}function Bm(e,t,n){const r=n.directiveStart,o=n.directiveEnd,i=n.index,s=function HE(){return $.lFrame.currentDirectiveIndex}();try{_r(i);for(let a=r;a<o;a++){const l=e.data[a],u=t[a];Du(a),(null!==l.hostBindings||0!==l.hostVars||null!==l.hostAttrs)&&kS(l,u)}}finally{_r(-1),Du(s)}}function kS(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Fc(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function VS(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;jt(t)&&(n[""]=e)}}function HS(e,t,n,r,o){e.data[r]=o;const i=o.factory||(o.factory=Cr(o.type)),s=new ai(i,jt(o),D);e.blueprint[r]=s,n[r]=s,function OS(e,t,n,r,o){const i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;null===s&&(s=e.hostBindingOpCodes=[]);const a=~t.index;(function PS(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=a&&s.push(a),s.push(n,r,i)}}(e,t,r,Ii(e,n,o.hostVars,G),o)}function dn(e,t,n,r,o,i){const s=dt(e,t);!function Lc(e,t,n,r,o,i,s){if(null==i)e.removeAttribute(t,o,n);else{const a=null==s?U(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}(t[z],s,i,e.value,n,r,o)}function BS(e,t,n,r,o,i){const s=i[t];if(null!==s)for(let a=0;a<s.length;)Um(r,n,s[a++],s[a++],s[a++])}function Um(e,t,n,r,o){const i=je(null);try{null!==e.setInput?e.setInput(t,o,n,r):t[r]=o}finally{je(i)}}function US(e,t,n){let r=null,o=0;for(;o<n.length;){const i=n[o];if(0!==i)if(5!==i){if("number"==typeof i)break;if(e.hasOwnProperty(i)){null===r&&(r=[]);const s=e[i];for(let a=0;a<s.length;a+=2)if(s[a]===t){r.push(i,s[a+1],n[o+1]);break}}o+=2}else o+=2;else o+=4}return r}function zm(e,t,n,r){return[e,!0,!1,t,null,0,r,n,null,null,null]}function Gm(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const i=n[r+1];if(-1!==i){const s=e.data[i];Eu(n[r]),s.contentQueries(2,t[i],i)}}}function ba(e,t){return e[ni]?e[pp][Ht]=t:e[ni]=t,e[pp]=t,t}function Vc(e,t,n){Eu(0);const r=je(null);try{t(e,n)}finally{je(r)}}function Wm(e){return e[Ur]||(e[Ur]=[])}function qm(e){return e.cleanup||(e.cleanup=[])}function Ym(e,t){const n=e[zr],r=n?n.get(br,null):null;r&&r.handleError(t)}function $c(e,t,n,r,o){for(let i=0;i<n.length;){const s=n[i++],a=n[i++];Um(e.data[s],t[s],r,a,o)}}function Fn(e,t,n){const r=Hs(t,e);!function Ag(e,t,n){e.setValue(t,n)}(e[z],r,n)}function zS(e,t){const n=ft(t,e),r=n[T];!function GS(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(r,n);const o=n[Fe];null!==o&&null===n[Nn]&&(n[Nn]=pm(o,n[zr])),Hc(r,n,n[we])}function Hc(e,t,n){Mu(t);try{const r=e.viewQuery;null!==r&&Vc(1,r,n);const o=e.template;null!==o&&Fm(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Gm(e,t),e.staticViewQueries&&Vc(2,e.viewQuery,n);const i=e.components;null!==i&&function WS(e,t){for(let n=0;n<t.length;n++)zS(e,t[n])}(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[W]&=-5,bu()}}let Xm=(()=>{class e{constructor(){this.all=new Set,this.queue=new Map}create(n,r,o){const i=typeof Zone>"u"?null:Zone.current,s=new yE(n,u=>{this.all.has(u)&&this.queue.set(u,i)},o);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[n,r]of this.queue)this.queue.delete(n),r?r.run(()=>n.run()):n.run()}get isQueueEmpty(){return 0===this.queue.size}}return e.\u0275prov=x({token:e,providedIn:"root",factory:()=>new e}),e})();function Sa(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(null!==t)for(let s=0;s<t.length;s++){const a=t[s];"number"==typeof a?i=a:1==i?o=eu(o,a):2==i&&(r=eu(r,a+": "+t[++s]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function Ti(e,t,n,r,o=!1){for(;null!==n;){const i=t[n.index];if(null!==i&&r.push(me(i)),ct(i)){for(let a=We;a<i.length;a++){const l=i[a],u=l[T].firstChild;null!==u&&Ti(l[T],l,u,r)}i[rn]!==i[Fe]&&r.push(i[rn])}const s=n.type;if(8&s)Ti(e,t,n.child,r);else if(32&s){const a=Gu(n,t);let l;for(;l=a();)r.push(l)}else if(16&s){const a=$g(t,n);if(Array.isArray(a))r.push(...a);else{const l=pi(t[Ae]);Ti(l[T],l,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function Ia(e,t,n,r=!0){const o=t[yr].rendererFactory;o.begin&&o.begin();try{Ta(e,t,e.template,n)}catch(s){throw r&&Ym(t,s),s}finally{o.end&&o.end(),t[yr].effectManager?.flush()}}function Ta(e,t,n,r){const o=t[W];if(256!=(256&o)){t[yr].effectManager?.flush(),Mu(t);try{Np(t),function Vp(e){return $.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&Fm(e,t,n,2,r);const s=3==(3&o);if(s){const u=e.preOrderCheckHooks;null!==u&&zs(t,u,null)}else{const u=e.preOrderHooks;null!==u&&Gs(t,u,0,null),Su(t,0)}if(function KS(e){for(let t=Wu(e);null!==t;t=qu(t)){if(!t[mp])continue;const n=t[qr];for(let r=0;r<n.length;r++){IE(n[r])}}}(t),function QS(e){for(let t=Wu(e);null!==t;t=qu(t))for(let n=We;n<t.length;n++){const r=t[n],o=r[T];js(r)&&Ta(o,r,o.template,r[we])}}(t),null!==e.contentQueries&&Gm(e,t),s){const u=e.contentCheckHooks;null!==u&&zs(t,u)}else{const u=e.contentHooks;null!==u&&Gs(t,u,1),Su(t,1)}!function _S(e,t){const n=e.hostBindingOpCodes;if(null===n)return;const r=Im(t,xs);try{for(let o=0;o<n.length;o++){const i=n[o];if(i<0)_r(~i);else{const s=i,a=n[++o],l=n[++o];$E(a,s),r.runInContext(l,2,t[s])}}}finally{null===t[xs]&&Tm(t,xs),_r(-1)}}(e,t);const a=e.components;null!==a&&function eI(e,t){for(let n=0;n<t.length;n++)JS(e,t[n])}(t,a);const l=e.viewQuery;if(null!==l&&Vc(2,l,r),s){const u=e.viewCheckHooks;null!==u&&zs(t,u)}else{const u=e.viewHooks;null!==u&&Gs(t,u,2),Su(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),t[W]&=-73,Rp(t)}finally{bu()}}}function JS(e,t){const n=ft(t,e);if(js(n)){const r=n[T];80&n[W]?Ta(r,n,r.template,n[we]):n[mr]>0&&jc(n)}}function jc(e){for(let r=Wu(e);null!==r;r=qu(r))for(let o=We;o<r.length;o++){const i=r[o];if(js(i))if(1024&i[W]){const s=i[T];Ta(s,i,s.template,i[we])}else i[mr]>0&&jc(i)}const n=e[T].components;if(null!==n)for(let r=0;r<n.length;r++){const o=ft(n[r],e);js(o)&&o[mr]>0&&jc(o)}}class Ai{get rootNodes(){const t=this._lView,n=t[T];return Ti(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[we]}set context(t){this._lView[we]=t}get destroyed(){return 256==(256&this._lView[W])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[Ce];if(ct(t)){const n=t[ks],r=n?n.indexOf(this):-1;r>-1&&(Yu(t,r),Ks(n,r))}this._attachedToViewContainer=!1}Rg(this._lView[T],this._lView)}onDestroy(t){!function Pp(e,t){if(256==(256&e[W]))throw new M(911,!1);null===e[Wn]&&(e[Wn]=[]),e[Wn].push(t)}(this._lView,t)}markForCheck(){Si(this._cdRefInjectingView||this._lView)}detach(){this._lView[W]&=-129}reattach(){this._lView[W]|=128}detectChanges(){Ia(this._lView[T],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new M(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function XM(e,t){mi(e,t,t[z],2,null,null)}(this._lView[T],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new M(902,!1);this._appRef=t}}class tI extends Ai{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;Ia(t[T],t,t[we],!1)}checkNoChanges(){}get context(){return null}}class Qm extends Da{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=re(t);return new Ni(n,this.ngModule)}}function Km(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class rI{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=Ns(r);const o=this.injector.get(t,Tc,r);return o!==Tc||n===Tc?o:this.parentInjector.get(t,n,r)}}class Ni extends ym{get inputs(){return Km(this.componentDef.inputs)}get outputs(){return Km(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function J1(e){return e.map(K1).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,o){let i=(o=o||this.ngModule)instanceof un?o:o?.injector;i&&null!==this.componentDef.getStandaloneInjector&&(i=this.componentDef.getStandaloneInjector(i)||i);const s=i?new rI(t,i):t,a=s.get(Cm,null);if(null===a)throw new M(407,!1);const c={rendererFactory:a,sanitizer:s.get(iS,null),effectManager:s.get(Xm,null)},d=a.createRenderer(null,this.componentDef),f=this.componentDef.selectors[0][0]||"div",h=r?function wS(e,t,n,r){const i=r.get(wm,!1)||n===Ct.ShadowDom,s=e.selectRootElement(t,i);return function ES(e){Vm(e)}(s),s}(d,r,this.componentDef.encapsulation,s):aa(d,f,function nI(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(f)),p=this.componentDef.onPush?576:528,v=xc(0,null,null,1,0,null,null,null,null,null,null),w=Ma(null,v,null,p,null,null,c,d,s,null,null);let b,y;Mu(w);try{const S=this.componentDef;let k,Y=null;S.findHostDirectiveDefs?(k=[],Y=new Map,S.findHostDirectiveDefs(S,k,Y),k.push(S)):k=[S];const ge=function iI(e,t){const n=e[T],r=Q;return e[r]=t,fo(n,r,2,"#host",null)}(w,h),qo=function sI(e,t,n,r,o,i,s){const a=o[T];!function aI(e,t,n,r){for(const o of e)t.mergedAttrs=ti(t.mergedAttrs,o.hostAttrs);null!==t.mergedAttrs&&(Sa(t,t.mergedAttrs,!0),null!==n&&Ug(r,n,t))}(r,e,t,s);let l=null;null!==t&&(l=pm(t,o[zr]));const u=i.rendererFactory.createRenderer(t,n),c=Ma(o,Lm(n),null,n.onPush?64:16,o[e.index],e,i,u,null,null,l);return a.firstCreatePass&&Fc(a,e,r.length-1),ba(o,c),o[e.index]=c}(ge,h,S,k,w,c,d);y=Ap(v,Q),h&&function uI(e,t,n,r){if(r)cu(e,n,["ng-version",sS.full]);else{const{attrs:o,classes:i}=function eE(e){const t=[],n=[];let r=1,o=2;for(;r<e.length;){let i=e[r];if("string"==typeof i)2===o?""!==i&&t.push(i,e[++r]):8===o&&n.push(i);else{if(!Vt(o))break;o=i}r++}return{attrs:t,classes:n}}(t.selectors[0]);o&&cu(e,n,o),i&&i.length>0&&Bg(e,n,i.join(" "))}}(d,S,h,r),void 0!==n&&function cI(e,t,n){const r=e.projection=[];for(let o=0;o<t.length;o++){const i=n[o];r.push(null!=i?Array.from(i):null)}}(y,this.ngContentSelectors,n),b=function lI(e,t,n,r,o,i){const s=qe(),a=o[T],l=dt(s,o);jm(a,o,s,n,null,r);for(let c=0;c<n.length;c++)Ke(Dr(o,a,s.directiveStart+c,s),o);Bm(a,o,s),l&&Ke(l,o);const u=Dr(o,a,s.directiveStart+s.componentOffset,s);if(e[we]=o[we]=u,null!==i)for(const c of i)c(u,t);return Rc(a,s,e),u}(qo,S,k,Y,w,[dI]),Hc(v,w,null)}finally{bu()}return new oI(this.componentType,b,uo(y,w),w,y)}}class oI extends Jb{constructor(t,n,r,o,i){super(),this.location=r,this._rootLView=o,this._tNode=i,this.previousInputValues=null,this.instance=n,this.hostView=this.changeDetectorRef=new tI(o),this.componentType=t}setInput(t,n){const r=this._tNode.inputs;let o;if(null!==r&&(o=r[t])){if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;const i=this._rootLView;$c(i[T],i,o,t,n),this.previousInputValues.set(t,n),Si(ft(this._tNode.index,i))}}get injector(){return new Kr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function dI(){const e=qe();Us(E()[T],e)}function le(e){let t=function Jm(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const r=[e];for(;t;){let o;if(jt(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new M(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);const s=e;s.inputs=Bc(e.inputs),s.declaredInputs=Bc(e.declaredInputs),s.outputs=Bc(e.outputs);const a=o.hostBindings;a&&gI(e,a);const l=o.viewQuery,u=o.contentQueries;if(l&&hI(e,l),u&&pI(e,u),Jl(e.inputs,o.inputs),Jl(e.declaredInputs,o.declaredInputs),Jl(e.outputs,o.outputs),jt(o)&&o.data.animation){const c=e.data;c.animation=(c.animation||[]).concat(o.data.animation)}}const i=o.features;if(i)for(let s=0;s<i.length;s++){const a=i[s];a&&a.ngInherit&&a(e),a===le&&(n=!1)}}t=Object.getPrototypeOf(t)}!function fI(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){const o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=ti(o.hostAttrs,n=ti(n,o.hostAttrs))}}(r)}function Bc(e){return e===Tn?{}:e===te?[]:e}function hI(e,t){const n=e.viewQuery;e.viewQuery=n?(r,o)=>{t(r,o),n(r,o)}:t}function pI(e,t){const n=e.contentQueries;e.contentQueries=n?(r,o,i)=>{t(r,o,i),n(r,o,i)}:t}function gI(e,t){const n=e.hostBindings;e.hostBindings=n?(r,o)=>{t(r,o),n(r,o)}:t}function Aa(e){return!!Uc(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function Uc(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function fn(e,t,n){return e[t]=n}function Je(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Sr(e,t,n,r){const o=Je(e,t,n);return Je(e,t+1,r)||o}function hn(e,t,n,r){const o=E();return Je(o,Xr(),t)&&(ee(),dn(_e(),o,e,t,n,r)),hn}function po(e,t,n,r){return Je(e,Xr(),n)?t+U(n)+r:G}function go(e,t,n,r,o,i){const a=Sr(e,function Rn(){return $.lFrame.bindingIndex}(),n,o);return On(2),a?t+U(n)+r+U(o)+i:G}function Bt(e,t,n,r,o,i,s,a){const l=E(),u=ee(),c=e+Q,d=u.firstCreatePass?function HI(e,t,n,r,o,i,s,a,l){const u=t.consts,c=fo(t,e,4,s||null,qn(u,a));kc(t,n,c,qn(u,l)),Us(t,c);const d=c.tView=xc(2,c,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u,null);return null!==t.queries&&(t.queries.template(t,c),d.queries=t.queries.embeddedTView(c)),c}(c,u,l,t,n,r,o,i,s):u.data[c];an(d,!1);const f=gy(u,l,d,e);Bs()&&ua(u,l,f,d),Ke(f,l),ba(l,l[c]=zm(f,l,f,d)),Fs(d)&&Oc(u,l,d),null!=s&&Pc(l,d,a)}let gy=function my(e,t,n,r){return Xn(!0),t[z].createComment("")};function A(e,t,n){const r=E();return Je(r,Xr(),t)&&bt(ee(),_e(),r,e,t,r[z],n,!1),A}function Yc(e,t,n,r,o){const s=o?"class":"style";$c(e,n,t.inputs[s],s,r)}function g(e,t,n,r){const o=E(),i=ee(),s=Q+e,a=o[z],l=i.firstCreatePass?function GI(e,t,n,r,o,i){const s=t.consts,l=fo(t,e,2,r,qn(s,o));return kc(t,n,l,qn(s,i)),null!==l.attrs&&Sa(l,l.attrs,!1),null!==l.mergedAttrs&&Sa(l,l.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,l),l}(s,i,o,t,n,r):i.data[s],u=yy(i,o,l,a,t,e);o[s]=u;const c=Fs(l);return an(l,!0),Ug(a,u,l),32!=(32&l.flags)&&Bs()&&ua(i,o,u,l),0===function AE(){return $.lFrame.elementDepthCount}()&&Ke(u,o),function NE(){$.lFrame.elementDepthCount++}(),c&&(Oc(i,o,l),Rc(i,l,o)),null!==r&&Pc(o,l),g}function m(){let e=qe();Cu()?function _u(){$.lFrame.isParent=!1}():(e=e.parent,an(e,!1));const t=e;(function OE(e){return $.skipHydrationRootTNode===e})(t)&&function FE(){$.skipHydrationRootTNode=null}(),function RE(){$.lFrame.elementDepthCount--}();const n=ee();return n.firstCreatePass&&(Us(n,e),fu(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function QE(e){return 0!=(8&e.flags)}(t)&&Yc(n,t,E(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function KE(e){return 0!=(16&e.flags)}(t)&&Yc(n,t,E(),t.stylesWithoutHost,!1),m}function oe(e,t,n,r){return g(e,t,n,r),m(),oe}let yy=(e,t,n,r,o,i)=>(Xn(!0),aa(r,o,function Wp(){return $.lFrame.currentNamespace}()));function ki(){return E()}function Fi(e){return!!e&&"function"==typeof e.then}function _y(e){return!!e&&"function"==typeof e.subscribe}function P(e,t,n,r){const o=E(),i=ee(),s=qe();return function wy(e,t,n,r,o,i,s){const a=Fs(r),u=e.firstCreatePass&&qm(e),c=t[we],d=Wm(t);let f=!0;if(3&r.type||s){const v=dt(r,t),w=s?s(v):v,b=d.length,y=s?k=>s(me(k[r.index])):r.index;let S=null;if(!s&&a&&(S=function QI(e,t,n,r){const o=e.cleanup;if(null!=o)for(let i=0;i<o.length-1;i+=2){const s=o[i];if(s===n&&o[i+1]===r){const a=t[Ur],l=o[i+2];return a.length>l?a[l]:null}"string"==typeof s&&(i+=2)}return null}(e,t,o,r.index)),null!==S)(S.__ngLastListenerFn__||S).__ngNextListenerFn__=i,S.__ngLastListenerFn__=i,f=!1;else{i=My(r,t,c,i,!1);const k=n.listen(w,o,i);d.push(i,k),u&&u.push(o,y,b,b+1)}}else i=My(r,t,c,i,!1);const h=r.outputs;let p;if(f&&null!==h&&(p=h[o])){const v=p.length;if(v)for(let w=0;w<v;w+=2){const Y=t[p[w]][p[w+1]].subscribe(i),ge=d.length;d.push(i,Y),u&&u.push(o,r.index,ge,-(ge+1))}}}(i,o,o[z],s,e,t,r),P}function Ey(e,t,n,r){try{return sn(6,t,n),!1!==n(r)}catch(o){return Ym(e,o),!1}finally{sn(7,t,n)}}function My(e,t,n,r,o){return function i(s){if(s===Function)return r;Si(e.componentOffset>-1?ft(e.index,t):t);let l=Ey(t,n,r,s),u=i.__ngNextListenerFn__;for(;u;)l=Ey(t,n,u,s)&&l,u=u.__ngNextListenerFn__;return o&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function pn(e=1){return function BE(e){return($.lFrame.contextLView=function UE(e,t){for(;e>0;)t=t[Gr],e--;return t}(e,$.lFrame.contextLView))[we]}(e)}function xa(e,t,n,r,o){const i=E(),s=po(i,t,n,r);return s!==G&&bt(ee(),_e(),i,e,s,i[z],o,!1),xa}function ka(e,t){return e<<17|t<<2}function Kn(e){return e>>17&32767}function Kc(e){return 2|e}function Ir(e){return(131068&e)>>2}function Jc(e,t){return-131069&e|t<<2}function ed(e){return 1|e}function xy(e,t,n,r,o){const i=e[n+1],s=null===t;let a=r?Kn(i):Ir(i),l=!1;for(;0!==a&&(!1===l||s);){const c=e[a+1];sT(e[a],t)&&(l=!0,e[a+1]=r?ed(c):Kc(c)),a=r?Kn(c):Ir(c)}l&&(e[n+1]=r?Kc(i):ed(i))}function sT(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&ro(e,t)>=0}function Fa(e,t){return function Ut(e,t,n,r){const o=E(),i=ee(),s=On(2);i.firstUpdatePass&&function Uy(e,t,n,r){const o=e.data;if(null===o[n+1]){const i=o[rt()],s=function By(e,t){return t>=e.expandoStartIndex}(e,n);(function qy(e,t){return 0!=(e.flags&(t?8:16))})(i,r)&&null===t&&!s&&(t=!1),t=function gT(e,t,n,r){const o=function wu(e){const t=$.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let i=r?t.residualClasses:t.residualStyles;if(null===o)0===(r?t.classBindings:t.styleBindings)&&(n=Li(n=td(null,e,t,n,r),t.attrs,r),i=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==o)if(n=td(o,e,t,n,r),null===i){let l=function mT(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==Ir(r))return e[Kn(r)]}(e,t,r);void 0!==l&&Array.isArray(l)&&(l=td(null,e,t,l[1],r),l=Li(l,t.attrs,r),function yT(e,t,n,r){e[Kn(n?t.classBindings:t.styleBindings)]=r}(e,t,r,l))}else i=function vT(e,t,n){let r;const o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++)r=Li(r,e[i].hostAttrs,n);return Li(r,t.attrs,n)}(e,t,r)}return void 0!==i&&(r?t.residualClasses=i:t.residualStyles=i),n}(o,i,t,r),function oT(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=Kn(s),l=Ir(s);e[r]=n;let c,u=!1;if(Array.isArray(n)?(c=n[1],(null===c||ro(n,c)>0)&&(u=!0)):c=n,o)if(0!==l){const f=Kn(e[a+1]);e[r+1]=ka(f,a),0!==f&&(e[f+1]=Jc(e[f+1],r)),e[a+1]=function nT(e,t){return 131071&e|t<<17}(e[a+1],r)}else e[r+1]=ka(a,0),0!==a&&(e[a+1]=Jc(e[a+1],r)),a=r;else e[r+1]=ka(l,0),0===a?a=r:e[l+1]=Jc(e[l+1],r),l=r;u&&(e[r+1]=Kc(e[r+1])),xy(e,c,r,!0),xy(e,c,r,!1),function iT(e,t,n,r,o){const i=o?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof t&&ro(i,t)>=0&&(n[r+1]=ed(n[r+1]))}(t,c,e,r,i),s=ka(a,l),i?t.classBindings=s:t.styleBindings=s}(o,i,t,n,s,r)}}(i,e,s,r),t!==G&&Je(o,s,t)&&function Gy(e,t,n,r,o,i,s,a){if(!(3&t.type))return;const l=e.data,u=l[a+1],c=function rT(e){return 1==(1&e)}(u)?Wy(l,t,n,o,Ir(u),s):void 0;La(c)||(La(i)||function tT(e){return 2==(2&e)}(u)&&(i=Wy(l,null,n,o,a,s)),function sb(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=-1===r.indexOf("-")?void 0:ht.DashCase;null==o?e.removeStyle(n,r,i):("string"==typeof o&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=ht.Important),e.setStyle(n,r,o,i))}}(r,s,Hs(rt(),n),o,i))}(i,i.data[rt()],o,o[z],e,o[s+1]=function wT(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=ke(Qn(e)))),e}(t,n),r,s)}(e,t,null,!0),Fa}function td(e,t,n,r,o){let i=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<s&&(i=t[a],r=Li(r,i.hostAttrs,o),i!==e);)a++;return null!==e&&(n.directiveStylingLast=a),r}function Li(e,t,n){const r=n?1:2;let o=-1;if(null!==t)for(let i=0;i<t.length;i++){const s=t[i];"number"==typeof s?o=s:o===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),Et(e,s,!!n||t[++i]))}return void 0===e?null:e}function Wy(e,t,n,r,o,i){const s=null===t;let a;for(;o>0;){const l=e[o],u=Array.isArray(l),c=u?l[1]:l,d=null===c;let f=n[o+1];f===G&&(f=d?te:void 0);let h=d?xu(f,r):c===r?f:void 0;if(u&&!La(h)&&(h=xu(l,r)),La(h)&&(a=h,s))return a;const p=e[o+1];o=s?Kn(p):Ir(p)}if(null!==t){let l=i?t.residualClasses:t.residualStyles;null!=l&&(a=xu(l,r))}return a}function La(e){return void 0!==e}function C(e,t=""){const n=E(),r=ee(),o=e+Q,i=r.firstCreatePass?fo(r,o,1,t,null):r.data[o],s=Zy(r,n,i,t,e);n[o]=s,Bs()&&ua(r,n,s,i),an(i,!1)}let Zy=(e,t,n,r,o)=>(Xn(!0),function sa(e,t){return e.createText(t)}(t[z],r));function K(e){return Be("",e,""),K}function Be(e,t,n){const r=E(),o=po(r,e,t,n);return o!==G&&Fn(r,rt(),o),Be}function Va(e,t,n,r,o){const i=E(),s=go(i,e,t,n,r,o);return s!==G&&Fn(i,rt(),s),Va}const Tr=void 0;var zT=["en",[["a","p"],["AM","PM"],Tr],[["AM","PM"],Tr,Tr],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Tr,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Tr,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Tr,"{1} 'at' {0}",Tr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function UT(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let Eo={};function ot(e){const t=function WT(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=pv(t);if(n)return n;const r=t.split("-")[0];if(n=pv(r),n)return n;if("en"===r)return zT;throw new M(701,!1)}function pv(e){return e in Eo||(Eo[e]=he.ng&&he.ng.common&&he.ng.common.locales&&he.ng.common.locales[e]),Eo[e]}var N=(()=>((N=N||{})[N.LocaleId=0]="LocaleId",N[N.DayPeriodsFormat=1]="DayPeriodsFormat",N[N.DayPeriodsStandalone=2]="DayPeriodsStandalone",N[N.DaysFormat=3]="DaysFormat",N[N.DaysStandalone=4]="DaysStandalone",N[N.MonthsFormat=5]="MonthsFormat",N[N.MonthsStandalone=6]="MonthsStandalone",N[N.Eras=7]="Eras",N[N.FirstDayOfWeek=8]="FirstDayOfWeek",N[N.WeekendRange=9]="WeekendRange",N[N.DateFormat=10]="DateFormat",N[N.TimeFormat=11]="TimeFormat",N[N.DateTimeFormat=12]="DateTimeFormat",N[N.NumberSymbols=13]="NumberSymbols",N[N.NumberFormats=14]="NumberFormats",N[N.CurrencyCode=15]="CurrencyCode",N[N.CurrencySymbol=16]="CurrencySymbol",N[N.CurrencyName=17]="CurrencyName",N[N.Currencies=18]="Currencies",N[N.Directionality=19]="Directionality",N[N.PluralCase=20]="PluralCase",N[N.ExtraData=21]="ExtraData",N))();const Mo="en-US";let gv=Mo;function od(e,t,n,r,o){if(e=B(e),Array.isArray(e))for(let i=0;i<e.length;i++)od(e[i],t,n,r,o);else{const i=ee(),s=E();let a=Er(e)?e:B(e.provide),l=um(e);const u=qe(),c=1048575&u.providerIndexes,d=u.directiveStart,f=u.providerIndexes>>20;if(Er(e)||!e.multi){const h=new ai(l,o,D),p=sd(a,t,o?c:c+f,d);-1===p?(Ru(Ys(u,s),i,a),id(i,e,t.length),t.push(a),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=1048576),n.push(h),s.push(h)):(n[p]=h,s[p]=h)}else{const h=sd(a,t,c+f,d),p=sd(a,t,c,c+f),w=p>=0&&n[p];if(o&&!w||!o&&!(h>=0&&n[h])){Ru(Ys(u,s),i,a);const b=function UA(e,t,n,r,o){const i=new ai(e,n,D);return i.multi=[],i.index=t,i.componentProviders=0,Hv(i,o,r&&!n),i}(o?BA:jA,n.length,o,r,l);!o&&w&&(n[p].providerFactory=b),id(i,e,t.length,0),t.push(a),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=1048576),n.push(b),s.push(b)}else id(i,e,h>-1?h:p,Hv(n[o?p:h],l,!o&&r));!o&&r&&w&&n[p].componentProviders++}}}function id(e,t,n,r){const o=Er(t),i=function Fb(e){return!!e.useClass}(t);if(o||i){const l=(i?B(t.useClass):t).prototype.ngOnDestroy;if(l){const u=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const c=u.indexOf(n);-1===c?u.push(n,[r,l]):u[c+1].push(r,l)}else u.push(n,l)}}}function Hv(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function sd(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function jA(e,t,n,r){return ad(this.multi,[])}function BA(e,t,n,r){const o=this.multi;let i;if(this.providerFactory){const s=this.providerFactory.componentProviders,a=Dr(n,n[T],this.providerFactory.index,r);i=a.slice(0,s),ad(o,i);for(let l=s;l<a.length;l++)i.push(a[l])}else i=[],ad(o,i);return i}function ad(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function ye(e,t=[]){return n=>{n.providersResolver=(r,o)=>function HA(e,t,n){const r=ee();if(r.firstCreatePass){const o=jt(e);od(n,r.data,r.blueprint,o,!0),od(t,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,t)}}class bo{}class jv{}class ld extends bo{constructor(t,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Qm(this);const o=Dt(t);this._bootstrapComponents=kn(o.bootstrap),this._r3Injector=xm(t,n,[{provide:bo,useValue:this},{provide:Da,useValue:this.componentFactoryResolver},...r],ke(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class ud extends jv{constructor(t){super(),this.moduleType=t}create(t){return new ld(this.moduleType,t,[])}}class Bv extends bo{constructor(t){super(),this.componentFactoryResolver=new Qm(this),this.instance=null;const n=new gc([...t.providers,{provide:bo,useValue:this},{provide:Da,useValue:this.componentFactoryResolver}],t.parent||ga(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function cd(e,t,n=null){return new Bv({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}let WA=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n.id)){const r=im(0,n.type),o=r.length>0?cd([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n.id,o)}return this.cachedInjectors.get(n.id)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}}return e.\u0275prov=x({token:e,providedIn:"environment",factory:()=>new e(R(un))}),e})();function Uv(e){e.getStandaloneInjector=t=>t.get(WA).getOrCreateStandaloneInjector(e)}function fd(e,t,n){const r=nt()+e,o=E();return o[r]===G?fn(o,r,n?t.call(n):t()):function Ri(e,t){return e[t]}(o,r)}function Ua(e,t,n,r){return function Xv(e,t,n,r,o,i){const s=t+n;return Je(e,s,o)?fn(e,s+1,i?r.call(i,o):r(o)):Ui(e,s+1)}(E(),nt(),e,t,n,r)}function Ui(e,t){const n=e[t];return n===G?void 0:n}function Jn(e,t){const n=ee();let r;const o=e+Q;n.firstCreatePass?(r=function u2(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}}(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];const i=r.factory||(r.factory=Cr(r.type)),s=at(D);try{const a=Zs(!1),l=i();return Zs(a),function UI(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,E(),o,l),l}finally{at(s)}}function er(e,t,n,r){const o=e+Q,i=E(),s=function Zr(e,t){return e[t]}(i,o);return function zi(e,t){return e[T].data[t].pure}(i,o)?function Qv(e,t,n,r,o,i,s){const a=t+n;return Sr(e,a,o,i)?fn(e,a+2,s?r.call(s,o,i):r(o,i)):Ui(e,a+2)}(i,nt(),t,s.transform,n,r,s):s.transform(n,r)}function hd(e){return t=>{setTimeout(e,void 0,t)}}const Me=class p2 extends bn{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&"object"==typeof t){const l=t;o=l.next?.bind(l),i=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(i=hd(i),o&&(o=hd(o)),s&&(s=hd(s)));const a=super.subscribe({next:o,error:i,complete:s});return t instanceof Tt&&t.add(a),a}};function g2(){return this._results[Symbol.iterator]()}class pd{get changes(){return this._changes||(this._changes=new Me)}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=pd.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=g2)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const r=this;r.dirty=!1;const o=function Pt(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function uM(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(n&&(o=n(o),i=n(i)),i!==o)return!1}return!0}(r._results,o,n))&&(r._results=o,r.length=o.length,r.last=o[this.length-1],r.first=o[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let Ln=(()=>{class e{}return e.__NG_ELEMENT_ID__=v2,e})();const m2=Ln,y2=class extends m2{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n,null)}createEmbeddedViewImpl(t,n,r){const o=this._declarationTContainer.tView,i=Ma(this._declarationLView,o,t,16,null,o.declTNode,null,null,null,n||null,r||null);i[ri]=this._declarationLView[this._declarationTContainer.index];const a=this._declarationLView[nn];return null!==a&&(i[nn]=a.createEmbeddedView(o)),Hc(o,i,t),new Ai(i)}};function v2(){return za(qe(),E())}function za(e,t){return 4&e.type?new y2(t,e,uo(e,t)):null}let Gt=(()=>{class e{}return e.__NG_ELEMENT_ID__=b2,e})();function b2(){return sC(qe(),E())}const S2=Gt,oC=class extends S2{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return uo(this._hostTNode,this._hostLView)}get injector(){return new Kr(this._hostTNode,this._hostLView)}get parentInjector(){const t=Nu(this._hostTNode,this._hostLView);if(Xp(t)){const n=qs(t,this._hostLView),r=Ws(t);return new Kr(n[T].data[r+8],n)}return new Kr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=iC(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-We}createEmbeddedView(t,n,r){let o,i;"number"==typeof r?o=r:null!=r&&(o=r.index,i=r.injector);const a=t.createEmbeddedViewImpl(n||{},i,null);return this.insertImpl(a,o,false),a}createComponent(t,n,r,o,i){const s=t&&!function ui(e){return"function"==typeof e}(t);let a;if(s)a=n;else{const v=n||{};a=v.index,r=v.injector,o=v.projectableNodes,i=v.environmentInjector||v.ngModuleRef}const l=s?t:new Ni(re(t)),u=r||this.parentInjector;if(!i&&null==l.ngModule){const w=(s?u:this.parentInjector).get(un,null);w&&(i=w)}re(l.componentType??{});const h=l.create(u,o,null,i);return this.insertImpl(h.hostView,a,false),h}insert(t,n){return this.insertImpl(t,n,!1)}insertImpl(t,n,r){const o=t._lView,i=o[T];if(function SE(e){return ct(e[Ce])}(o)){const l=this.indexOf(t);if(-1!==l)this.detach(l);else{const u=o[Ce],c=new oC(u,u[Qe],u[Ce]);c.detach(c.indexOf(t))}}const s=this._adjustIndex(n),a=this._lContainer;if(function KM(e,t,n,r){const o=We+r,i=n.length;r>0&&(n[o-1][Ht]=t),r<i-We?(t[Ht]=n[o],lg(n,We+r,t)):(n.push(t),t[Ht]=null),t[Ce]=n;const s=t[ri];null!==s&&n!==s&&function JM(e,t){const n=e[qr];t[Ae]!==t[Ce][Ce][Ae]&&(e[mp]=!0),null===n?e[qr]=[t]:n.push(t)}(s,t);const a=t[nn];null!==a&&a.insertView(e),t[W]|=128}(i,o,a,s),!r){const l=Ju(s,a),u=o[z],c=la(u,a[rn]);null!==c&&function YM(e,t,n,r,o,i){r[Fe]=o,r[Qe]=t,mi(e,r,n,1,o,i)}(i,a[Qe],u,o,c,l)}return t.attachToViewContainerRef(),lg(md(a),s,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=iC(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=Yu(this._lContainer,n);r&&(Ks(md(this._lContainer),n),Rg(r[T],r))}detach(t){const n=this._adjustIndex(t,-1),r=Yu(this._lContainer,n);return r&&null!=Ks(md(this._lContainer),n)?new Ai(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function iC(e){return e[ks]}function md(e){return e[ks]||(e[ks]=[])}function sC(e,t){let n;const r=t[e.index];return ct(r)?n=r:(n=zm(r,t,null,e),t[e.index]=n,ba(t,n)),aC(n,t,e,r),new oC(n,e,t)}let aC=function lC(e,t,n,r){if(e[rn])return;let o;o=8&n.type?me(r):function I2(e,t){const n=e[z],r=n.createComment(""),o=dt(t,e);return wr(n,la(n,o),r,function rb(e,t){return e.nextSibling(t)}(n,o),!1),r}(t,n),e[rn]=o};class yd{constructor(t){this.queryList=t,this.matches=null}clone(){return new yd(this.queryList)}setDirty(){this.queryList.setDirty()}}class vd{constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const r=null!==t.contentQueries?t.contentQueries[0]:n.length,o=[];for(let i=0;i<r;i++){const s=n.getByIndex(i);o.push(this.queries[s.indexInDeclarationView].clone())}return new vd(o)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)null!==pC(t,n).matches&&this.queries[n].setDirty()}}class uC{constructor(t,n,r=null){this.predicate=t,this.flags=n,this.read=r}}class Cd{constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){const o=null!==n?n.length:0,i=this.getByIndex(r).embeddedTView(t,o);i&&(i.indexInDeclarationView=r,null!==n?n.push(i):n=[i])}return null!==n?new Cd(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class _d{constructor(t,n=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new _d(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const n=this._declarationNodeIndex;let r=t.parent;for(;null!==r&&8&r.type&&r.index!==n;)r=r.parent;return n===(null!==r?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){const r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){const i=r[o];this.matchTNodeWithReadOption(t,n,N2(n,i)),this.matchTNodeWithReadOption(t,n,Xs(n,t,i,!1,!1))}else r===Ln?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Xs(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(null!==r){const o=this.metadata.read;if(null!==o)if(o===Mt||o===Gt||o===Ln&&4&n.type)this.addMatch(n.index,-2);else{const i=Xs(n,t,o,!1,!1);null!==i&&this.addMatch(n.index,i)}else this.addMatch(n.index,r)}}addMatch(t,n){null===this.matches?this.matches=[t,n]:this.matches.push(t,n)}}function N2(e,t){const n=e.localNames;if(null!==n)for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1];return null}function O2(e,t,n,r){return-1===n?function R2(e,t){return 11&e.type?uo(e,t):4&e.type?za(e,t):null}(t,e):-2===n?function P2(e,t,n){return n===Mt?uo(t,e):n===Ln?za(t,e):n===Gt?sC(t,e):void 0}(e,t,r):Dr(e,e[T],n,t)}function cC(e,t,n,r){const o=t[nn].queries[r];if(null===o.matches){const i=e.data,s=n.matches,a=[];for(let l=0;l<s.length;l+=2){const u=s[l];a.push(u<0?null:O2(t,i[u],s[l+1],n.metadata.read))}o.matches=a}return o.matches}function Dd(e,t,n,r){const o=e.queries.getByIndex(n),i=o.matches;if(null!==i){const s=cC(e,t,o,n);for(let a=0;a<i.length;a+=2){const l=i[a];if(l>0)r.push(s[a/2]);else{const u=i[a+1],c=t[-l];for(let d=We;d<c.length;d++){const f=c[d];f[ri]===f[Ce]&&Dd(f[T],f,u,r)}if(null!==c[qr]){const d=c[qr];for(let f=0;f<d.length;f++){const h=d[f];Dd(h[T],h,u,r)}}}}}return r}function Gi(e){const t=E(),n=ee(),r=Hp();Eu(r+1);const o=pC(n,r);if(e.dirty&&function bE(e){return 4==(4&e[W])}(t)===(2==(2&o.metadata.flags))){if(null===o.matches)e.reset([]);else{const i=o.crossesNgTemplate?Dd(n,t,r,[]):cC(n,t,o,r);e.reset(i,rS),e.notifyOnChanges()}return!0}return!1}function Ga(e,t,n){const r=ee();r.firstCreatePass&&(hC(r,new uC(e,t,n),-1),2==(2&t)&&(r.staticViewQueries=!0)),fC(r,E(),t)}function Wi(){return function x2(e,t){return e[nn].queries[t].queryList}(E(),Hp())}function fC(e,t,n){const r=new pd(4==(4&n));(function SS(e,t,n,r){const o=Wm(t);o.push(n),e.firstCreatePass&&qm(e).push(r,o.length-1)})(e,t,r,r.destroy),null===t[nn]&&(t[nn]=new vd),t[nn].queries.push(new yd(r))}function hC(e,t,n){null===e.queries&&(e.queries=new Cd),e.queries.track(new _d(t,n))}function pC(e,t){return e.queries.getByIndex(t)}const Id=new O("Application Initializer");let Td=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=I(Id,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const o of this.appInits){const i=o();if(Fi(i))n.push(i);else if(_y(i)){const s=new Promise((a,l)=>{i.subscribe({complete:a,error:l})});n.push(s)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),RC=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const yn=new O("LocaleId",{providedIn:"root",factory:()=>I(yn,L.Optional|L.SkipSelf)||function rN(){return typeof $localize<"u"&&$localize.locale||Mo}()});class iN{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let OC=(()=>{class e{compileModuleSync(n){return new ud(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),i=kn(Dt(n).declarations).reduce((s,a)=>{const l=re(a);return l&&s.push(new Ni(l)),s},[]);return new iN(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const lN=(()=>Promise.resolve(0))();function Ad(e){typeof Zone>"u"?lN.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}function kC(...e){}class ve{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Me(!1),this.onMicrotaskEmpty=new Me(!1),this.onStable=new Me(!1),this.onError=new Me(!1),typeof Zone>"u")throw new M(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function uN(){let e=he.requestAnimationFrame,t=he.cancelAnimationFrame;if(typeof Zone<"u"&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function fN(e){const t=()=>{!function dN(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(he,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Rd(e),e.isCheckStableRunning=!0,Nd(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Rd(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{try{return FC(e),n.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&t(),LC(e)}},onInvoke:(n,r,o,i,s,a,l)=>{try{return FC(e),n.invoke(o,i,s,a,l)}finally{e.shouldCoalesceRunChangeDetection&&t(),LC(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,Rd(e),Nd(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ve.isInAngularZone())throw new M(909,!1)}static assertNotInAngularZone(){if(ve.isInAngularZone())throw new M(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,cN,kC,kC);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const cN={};function Nd(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 Rd(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function FC(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function LC(e){e._nesting--,Nd(e)}class hN{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Me,this.onMicrotaskEmpty=new Me,this.onStable=new Me,this.onError=new Me}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}}const VC=new O("",{providedIn:"root",factory:$C});function $C(){const e=I(ve);let t=!0;return function b1(...e){const t=Qo(e),n=function v1(e,t){return"number"==typeof Ql(e)?e.pop():t}(e,1/0),r=e;return r.length?1===r.length?At(r[0]):Hr(n)(xe(r,t)):en}(new be(o=>{t=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{o.next(t),o.complete()})}),new be(o=>{let i;e.runOutsideAngular(()=>{i=e.onStable.subscribe(()=>{ve.assertNotInAngularZone(),Ad(()=>{!t&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(t=!0,o.next(!0))})})});const s=e.onUnstable.subscribe(()=>{ve.assertInAngularZone(),t&&(t=!1,e.runOutsideAngular(()=>{o.next(!1)}))});return()=>{i.unsubscribe(),s.unsubscribe()}}).pipe(function S1(e={}){const{connector:t=(()=>new bn),resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,l,u=0,c=!1,d=!1;const f=()=>{a?.unsubscribe(),a=void 0},h=()=>{f(),s=l=void 0,c=d=!1},p=()=>{const v=s;h(),v?.unsubscribe()};return ze((v,w)=>{u++,!d&&!c&&f();const b=l=l??t();w.add(()=>{u--,0===u&&!d&&!c&&(a=Kl(p,o))}),b.subscribe(w),!s&&u>0&&(s=new Xo({next:y=>b.next(y),error:y=>{d=!0,f(),a=Kl(h,n,y),b.error(y)},complete:()=>{c=!0,f(),a=Kl(h,r),b.complete()}}),At(v).subscribe(s))})(i)}}()))}const HC=new O(""),qa=new O("");let xd,Od=(()=>{class e{constructor(n,r,o){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,xd||(function pN(e){xd=e}(o),o.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ve.assertNotInAngularZone(),Ad(()=>{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())Ad(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:i,updateCb:o})}whenStable(n,r,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,o){return[]}}return e.\u0275fac=function(n){return new(n||e)(R(ve),R(Pd),R(qa))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})(),Pd=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return xd?.findTestabilityInTree(this,n,r)??null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})(),tr=null;const jC=new O("AllowMultipleToken"),kd=new O("PlatformDestroyListeners"),Fd=new O("appBootstrapListener");class UC{constructor(t,n){this.name=t,this.token=n}}function GC(e,t,n=[]){const r=`Platform: ${t}`,o=new O(r);return(i=[])=>{let s=Ld();if(!s||s.injector.get(jC,!1)){const a=[...n,...i,{provide:o,useValue:!0}];e?e(a):function yN(e){if(tr&&!tr.get(jC,!1))throw new M(400,!1);(function BC(){!function gE(e){wp=e}(()=>{throw new M(600,!1)})})(),tr=e;const t=e.get(qC);(function zC(e){e.get(cm,null)?.forEach(n=>n())})(e)}(function WC(e=[],t){return cn.create({name:t,providers:[{provide:hc,useValue:"platform"},{provide:kd,useValue:new Set([()=>tr=null])},...e]})}(a,r))}return function CN(e){const t=Ld();if(!t)throw new M(401,!1);return t}()}}function Ld(){return tr?.get(qC)??null}let qC=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const o=function _N(e="zone.js",t){return"noop"===e?new hN:"zone.js"===e?new ve(t):e}(r?.ngZone,function ZC(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return o.run(()=>{const i=function GA(e,t,n){return new ld(e,t,n)}(n.moduleType,this.injector,function JC(e){return[{provide:ve,useFactory:e},{provide:Di,multi:!0,useFactory:()=>{const t=I(wN,{optional:!0});return()=>t.initialize()}},{provide:KC,useFactory:DN},{provide:VC,useFactory:$C}]}(()=>o)),s=i.injector.get(br,null);return o.runOutsideAngular(()=>{const a=o.onError.subscribe({next:l=>{s.handleError(l)}});i.onDestroy(()=>{Za(this._modules,i),a.unsubscribe()})}),function YC(e,t,n){try{const r=n();return Fi(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(s,o,()=>{const a=i.injector.get(Td);return a.runInitializers(),a.donePromise.then(()=>(function mv(e){Nt(e,"Expected localeId to be defined"),"string"==typeof e&&(gv=e.toLowerCase().replace(/_/g,"-"))}(i.injector.get(yn,Mo)||Mo),this._moduleDoBootstrap(i),i))})})}bootstrapModule(n,r=[]){const o=XC({},r);return function gN(e,t,n){const r=new ud(n);return Promise.resolve(r)}(0,0,n).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(n){const r=n.injector.get(To);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new M(-403,!1);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new M(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(kd,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(R(cn))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function XC(e,t){return Array.isArray(t)?t.reduce(XC,e):{...e,...t}}let To=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=I(KC),this.componentTypes=[],this.components=[],this.isStable=I(VC),this._injector=I(un)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const o=n instanceof ym;if(!this._injector.get(Td).done)throw!o&&function Br(e){const t=re(e)||Xe(e)||ut(e);return null!==t&&t.standalone}(n),new M(405,!1);let s;s=o?n:this._injector.get(Da).resolveComponentFactory(n),this.componentTypes.push(s.componentType);const a=function mN(e){return e.isBoundToModule}(s)?void 0:this._injector.get(bo),u=s.create(cn.NULL,[],r||s.selector,a),c=u.location.nativeElement,d=u.injector.get(HC,null);return d?.registerApplication(c),u.onDestroy(()=>{this.detachView(u.hostView),Za(this.components,u),d?.unregisterApplication(c)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw new M(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this.internalErrorHandler(n)}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;Za(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(Fd,[]);r.push(...this._bootstrapListeners),r.forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Za(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new M(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Za(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const KC=new O("",{providedIn:"root",factory:()=>I(br).handleError.bind(void 0)});function DN(){const e=I(ve),t=I(br);return n=>e.runOutsideAngular(()=>t.handleError(n))}let wN=(()=>{class e{constructor(){this.zone=I(ve),this.applicationRef=I(To)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();let Ya=(()=>{class e{}return e.__NG_ELEMENT_ID__=MN,e})();function MN(e){return function bN(e,t,n){if(vr(e)&&!n){const r=ft(e.index,t);return new Ai(r,r)}return 47&e.type?new Ai(t[Ae],t):null}(qe(),E(),16==(16&e))}class r_{constructor(){}supports(t){return Aa(t)}create(t){return new RN(t)}}const NN=(e,t)=>t;class RN{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||NN}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){const s=!r||n&&n.currentIndex<i_(r,o,i)?n:r,a=i_(s,o,i),l=s.currentIndex;if(s===r)o--,r=r._nextRemoved;else if(n=n._next,null==s.previousIndex)o++;else{i||(i=[]);const u=a-o,c=l-o;if(u!=c){for(let f=0;f<u;f++){const h=f<i.length?i[f]:i[f]=0,p=h+f;c<=p&&p<u&&(i[f]=h+1)}i[s.previousIndex]=c-u}}a!==l&&t(s,a,l)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;null!==n;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;null!==n;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;null!==n;n=n._nextIdentityChange)t(n)}diff(t){if(null==t&&(t=[]),!Aa(t))throw new M(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let o,i,s,n=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)i=t[a],s=this._trackByFn(a,i),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,i,s,a)),Object.is(n.item,i)||this._addIdentityChange(n,i)):(n=this._mismatch(n,i,s,a),r=!0),n=n._next}else o=0,function wI(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[Symbol.iterator]();let r;for(;!(r=n.next()).done;)t(r.value)}}(t,a=>{s=this._trackByFn(o,a),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,s,o),r=!0),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new ON(n,r),i,o),t}_verifyReinsertion(t,n,r,o){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==i?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const o=t._prevRemoved,i=t._nextRemoved;return null===o?this._removalsHead=i:o._nextRemoved=i,null===i?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const o=null===n?this._itHead:n._next;return t._next=o,t._prev=n,null===o?this._itTail=t:o._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new o_),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new o_),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class ON{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class PN{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class o_{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new PN,this.map.set(n,r)),r.add(t)}get(t,n){const o=this.map.get(t);return o?o.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function i_(e,t,n){const r=e.previousIndex;if(null===r)return r;let o=0;return n&&r<n.length&&(o=n[r]),r+t+o}class s_{constructor(){}supports(t){return t instanceof Map||Uc(t)}create(){return new xN}}class xN{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let n;for(n=this._mapHead;null!==n;n=n._next)t(n)}forEachPreviousItem(t){let n;for(n=this._previousMapHead;null!==n;n=n._nextPrevious)t(n)}forEachChangedItem(t){let n;for(n=this._changesHead;null!==n;n=n._nextChanged)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}diff(t){if(t){if(!(t instanceof Map||Uc(t)))throw new M(900,!1)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(r,o)=>{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const i=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const o=this._records.get(t);this._maybeAddToChanges(o,n);const i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o}const r=new kN(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}}class kN{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function a_(){return new Ka([new r_])}let Ka=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(null!=r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||a_()),deps:[[e,new ta,new ea]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(null!=r)return r;throw new M(901,!1)}}return e.\u0275prov=x({token:e,providedIn:"root",factory:a_}),e})();function l_(){return new Zi([new s_])}let Zi=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||l_()),deps:[[e,new ta,new ea]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(r)return r;throw new M(901,!1)}}return e.\u0275prov=x({token:e,providedIn:"root",factory:l_}),e})();const VN=GC(null,"core",[]);let $N=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(R(To))},e.\u0275mod=$t({type:e}),e.\u0275inj=Rt({}),e})(),p_=(()=>{class e{get whenAllTasksComplete(){return 0===this.collection.size&&this.complete(),this.promise}constructor(){this.taskId=0,this.collection=new Set,this.ngZone=I(ve),this.completed=!1,this.ngZone.runOutsideAngular(()=>{this.promise=new Promise(n=>{this.resolve=n})})}add(){if(this.completed)return-1;const n=this.taskId++;return this.collection.add(n),n}remove(n){this.completed||(this.collection.delete(n),0===this.collection.size&&this.complete())}ngOnDestroy(){this.complete(),this.collection.clear()}complete(){this.completed=!0,this.resolve()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Ao(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}let zd=null;function nr(){return zd}class QN{}const St=new O("DocumentToken");let Gd=(()=>{class e{historyGo(n){throw new Error("Not implemented")}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:function(){return I(JN)},providedIn:"platform"}),e})();const KN=new O("Location Initialized");let JN=(()=>{class e extends Gd{constructor(){super(),this._doc=I(St),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return nr().getBaseHref(this._doc)}onPopState(n){const r=nr().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){const r=nr().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:function(){return new e},providedIn:"platform"}),e})();function Wd(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function m_(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function Vn(e){return e&&"?"!==e[0]?"?"+e:e}let rr=(()=>{class e{historyGo(n){throw new Error("Not implemented")}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:function(){return I(v_)},providedIn:"root"}),e})();const y_=new O("appBaseHref");let v_=(()=>{class e extends rr{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??I(St).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Wd(this._baseHref,n)}path(n=!1){const r=this._platformLocation.pathname+Vn(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){const s=this.prepareExternalUrl(o+Vn(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){const s=this.prepareExternalUrl(o+Vn(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}}return e.\u0275fac=function(n){return new(n||e)(R(Gd),R(y_,8))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),C_=(()=>{class e extends rr{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(n){const r=Wd(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+Vn(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+Vn(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}}return e.\u0275fac=function(n){return new(n||e)(R(Gd),R(y_,8))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})(),qd=(()=>{class e{constructor(n){this._subject=new Me,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;const r=this._locationStrategy.getBaseHref();this._basePath=function nR(e){if(new RegExp("^(https?:)?//").test(e)){const[,n]=e.split(/\/\/[^\/]+/);return n}return e}(m_(__(r))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+Vn(r))}normalize(n){return e.stripTrailingSlash(function tR(e,t){if(!e||!t.startsWith(e))return t;const n=t.substring(e.length);return""===n||["/",";","?","#"].includes(n[0])?n:t}(this._basePath,__(n)))}prepareExternalUrl(n){return n&&"/"!==n[0]&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Vn(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Vn(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)})),()=>{const r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r,complete:o})}}return e.normalizeQueryParams=Vn,e.joinWithSlash=Wd,e.stripTrailingSlash=m_,e.\u0275fac=function(n){return new(n||e)(R(rr))},e.\u0275prov=x({token:e,factory:function(){return function eR(){return new qd(R(rr))}()},providedIn:"root"}),e})();function __(e){return e.replace(/\/index.html$/,"")}var Se=(()=>((Se=Se||{})[Se.Format=0]="Format",Se[Se.Standalone=1]="Standalone",Se))(),X=(()=>((X=X||{})[X.Narrow=0]="Narrow",X[X.Abbreviated=1]="Abbreviated",X[X.Wide=2]="Wide",X[X.Short=3]="Short",X))(),De=(()=>((De=De||{})[De.Short=0]="Short",De[De.Medium=1]="Medium",De[De.Long=2]="Long",De[De.Full=3]="Full",De))(),F=(()=>((F=F||{})[F.Decimal=0]="Decimal",F[F.Group=1]="Group",F[F.List=2]="List",F[F.PercentSign=3]="PercentSign",F[F.PlusSign=4]="PlusSign",F[F.MinusSign=5]="MinusSign",F[F.Exponential=6]="Exponential",F[F.SuperscriptingExponent=7]="SuperscriptingExponent",F[F.PerMille=8]="PerMille",F[F.Infinity=9]="Infinity",F[F.NaN=10]="NaN",F[F.TimeSeparator=11]="TimeSeparator",F[F.CurrencyDecimal=12]="CurrencyDecimal",F[F.CurrencyGroup=13]="CurrencyGroup",F))();function el(e,t){return Ft(ot(e)[N.DateFormat],t)}function tl(e,t){return Ft(ot(e)[N.TimeFormat],t)}function nl(e,t){return Ft(ot(e)[N.DateTimeFormat],t)}function kt(e,t){const n=ot(e),r=n[N.NumberSymbols][t];if(typeof r>"u"){if(t===F.CurrencyDecimal)return n[N.NumberSymbols][F.Decimal];if(t===F.CurrencyGroup)return n[N.NumberSymbols][F.Group]}return r}function w_(e){if(!e[N.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[N.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ft(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new Error("Locale data API: locale data undefined")}function Yd(e){const[t,n]=e.split(":");return{hours:+t,minutes:+n}}const gR=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Yi={},mR=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var $e=(()=>(($e=$e||{})[$e.Short=0]="Short",$e[$e.ShortGMT=1]="ShortGMT",$e[$e.Long=2]="Long",$e[$e.Extended=3]="Extended",$e))(),V=(()=>((V=V||{})[V.FullYear=0]="FullYear",V[V.Month=1]="Month",V[V.Date=2]="Date",V[V.Hours=3]="Hours",V[V.Minutes=4]="Minutes",V[V.Seconds=5]="Seconds",V[V.FractionalSeconds=6]="FractionalSeconds",V[V.Day=7]="Day",V))(),Z=(()=>((Z=Z||{})[Z.DayPeriods=0]="DayPeriods",Z[Z.Days=1]="Days",Z[Z.Months=2]="Months",Z[Z.Eras=3]="Eras",Z))();function yR(e,t,n,r){let o=function SR(e){if(b_(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){const[o,i=1,s=1]=e.split("-").map(a=>+a);return rl(o,i-1,s)}const n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(gR))return function IR(e){const t=new Date(0);let n=0,r=0;const o=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));const s=Number(e[4]||0)-n,a=Number(e[5]||0)-r,l=Number(e[6]||0),u=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return i.call(t,s,a,l,u),t}(r)}const t=new Date(e);if(!b_(t))throw new Error(`Unable to convert "${e}" into a date`);return t}(e);t=$n(n,t)||t;let a,s=[];for(;t;){if(a=mR.exec(t),!a){s.push(t);break}{s=s.concat(a.slice(1));const c=s.pop();if(!c)break;t=c}}let l=o.getTimezoneOffset();r&&(l=M_(r,l),o=function bR(e,t,n){const r=n?-1:1,o=e.getTimezoneOffset();return function MR(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,r*(M_(t,o)-o))}(o,r,!0));let u="";return s.forEach(c=>{const d=function ER(e){if(Qd[e])return Qd[e];let t;switch(e){case"G":case"GG":case"GGG":t=pe(Z.Eras,X.Abbreviated);break;case"GGGG":t=pe(Z.Eras,X.Wide);break;case"GGGGG":t=pe(Z.Eras,X.Narrow);break;case"y":t=Oe(V.FullYear,1,0,!1,!0);break;case"yy":t=Oe(V.FullYear,2,0,!0,!0);break;case"yyy":t=Oe(V.FullYear,3,0,!1,!0);break;case"yyyy":t=Oe(V.FullYear,4,0,!1,!0);break;case"Y":t=al(1);break;case"YY":t=al(2,!0);break;case"YYY":t=al(3);break;case"YYYY":t=al(4);break;case"M":case"L":t=Oe(V.Month,1,1);break;case"MM":case"LL":t=Oe(V.Month,2,1);break;case"MMM":t=pe(Z.Months,X.Abbreviated);break;case"MMMM":t=pe(Z.Months,X.Wide);break;case"MMMMM":t=pe(Z.Months,X.Narrow);break;case"LLL":t=pe(Z.Months,X.Abbreviated,Se.Standalone);break;case"LLLL":t=pe(Z.Months,X.Wide,Se.Standalone);break;case"LLLLL":t=pe(Z.Months,X.Narrow,Se.Standalone);break;case"w":t=Xd(1);break;case"ww":t=Xd(2);break;case"W":t=Xd(1,!0);break;case"d":t=Oe(V.Date,1);break;case"dd":t=Oe(V.Date,2);break;case"c":case"cc":t=Oe(V.Day,1);break;case"ccc":t=pe(Z.Days,X.Abbreviated,Se.Standalone);break;case"cccc":t=pe(Z.Days,X.Wide,Se.Standalone);break;case"ccccc":t=pe(Z.Days,X.Narrow,Se.Standalone);break;case"cccccc":t=pe(Z.Days,X.Short,Se.Standalone);break;case"E":case"EE":case"EEE":t=pe(Z.Days,X.Abbreviated);break;case"EEEE":t=pe(Z.Days,X.Wide);break;case"EEEEE":t=pe(Z.Days,X.Narrow);break;case"EEEEEE":t=pe(Z.Days,X.Short);break;case"a":case"aa":case"aaa":t=pe(Z.DayPeriods,X.Abbreviated);break;case"aaaa":t=pe(Z.DayPeriods,X.Wide);break;case"aaaaa":t=pe(Z.DayPeriods,X.Narrow);break;case"b":case"bb":case"bbb":t=pe(Z.DayPeriods,X.Abbreviated,Se.Standalone,!0);break;case"bbbb":t=pe(Z.DayPeriods,X.Wide,Se.Standalone,!0);break;case"bbbbb":t=pe(Z.DayPeriods,X.Narrow,Se.Standalone,!0);break;case"B":case"BB":case"BBB":t=pe(Z.DayPeriods,X.Abbreviated,Se.Format,!0);break;case"BBBB":t=pe(Z.DayPeriods,X.Wide,Se.Format,!0);break;case"BBBBB":t=pe(Z.DayPeriods,X.Narrow,Se.Format,!0);break;case"h":t=Oe(V.Hours,1,-12);break;case"hh":t=Oe(V.Hours,2,-12);break;case"H":t=Oe(V.Hours,1);break;case"HH":t=Oe(V.Hours,2);break;case"m":t=Oe(V.Minutes,1);break;case"mm":t=Oe(V.Minutes,2);break;case"s":t=Oe(V.Seconds,1);break;case"ss":t=Oe(V.Seconds,2);break;case"S":t=Oe(V.FractionalSeconds,1);break;case"SS":t=Oe(V.FractionalSeconds,2);break;case"SSS":t=Oe(V.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=il($e.Short);break;case"ZZZZZ":t=il($e.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=il($e.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=il($e.Long);break;default:return null}return Qd[e]=t,t}(c);u+=d?d(o,n,l):"''"===c?"'":c.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function rl(e,t,n){const r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function $n(e,t){const n=function rR(e){return ot(e)[N.LocaleId]}(e);if(Yi[n]=Yi[n]||{},Yi[n][t])return Yi[n][t];let r="";switch(t){case"shortDate":r=el(e,De.Short);break;case"mediumDate":r=el(e,De.Medium);break;case"longDate":r=el(e,De.Long);break;case"fullDate":r=el(e,De.Full);break;case"shortTime":r=tl(e,De.Short);break;case"mediumTime":r=tl(e,De.Medium);break;case"longTime":r=tl(e,De.Long);break;case"fullTime":r=tl(e,De.Full);break;case"short":const o=$n(e,"shortTime"),i=$n(e,"shortDate");r=ol(nl(e,De.Short),[o,i]);break;case"medium":const s=$n(e,"mediumTime"),a=$n(e,"mediumDate");r=ol(nl(e,De.Medium),[s,a]);break;case"long":const l=$n(e,"longTime"),u=$n(e,"longDate");r=ol(nl(e,De.Long),[l,u]);break;case"full":const c=$n(e,"fullTime"),d=$n(e,"fullDate");r=ol(nl(e,De.Full),[c,d])}return r&&(Yi[n][t]=r),r}function ol(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return null!=t&&r in t?t[r]:n})),e}function qt(e,t,n="-",r,o){let i="";(e<0||o&&e<=0)&&(o?e=1-e:(e=-e,i=n));let s=String(e);for(;s.length<t;)s="0"+s;return r&&(s=s.slice(s.length-t)),i+s}function Oe(e,t,n=0,r=!1,o=!1){return function(i,s){let a=function CR(e,t){switch(e){case V.FullYear:return t.getFullYear();case V.Month:return t.getMonth();case V.Date:return t.getDate();case V.Hours:return t.getHours();case V.Minutes:return t.getMinutes();case V.Seconds:return t.getSeconds();case V.FractionalSeconds:return t.getMilliseconds();case V.Day:return t.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}(e,i);if((n>0||a>-n)&&(a+=n),e===V.Hours)0===a&&-12===n&&(a=12);else if(e===V.FractionalSeconds)return function vR(e,t){return qt(e,3).substring(0,t)}(a,t);const l=kt(s,F.MinusSign);return qt(a,t,l,r,o)}}function pe(e,t,n=Se.Format,r=!1){return function(o,i){return function _R(e,t,n,r,o,i){switch(n){case Z.Months:return function sR(e,t,n){const r=ot(e),i=Ft([r[N.MonthsFormat],r[N.MonthsStandalone]],t);return Ft(i,n)}(t,o,r)[e.getMonth()];case Z.Days:return function iR(e,t,n){const r=ot(e),i=Ft([r[N.DaysFormat],r[N.DaysStandalone]],t);return Ft(i,n)}(t,o,r)[e.getDay()];case Z.DayPeriods:const s=e.getHours(),a=e.getMinutes();if(i){const u=function cR(e){const t=ot(e);return w_(t),(t[N.ExtraData][2]||[]).map(r=>"string"==typeof r?Yd(r):[Yd(r[0]),Yd(r[1])])}(t),c=function dR(e,t,n){const r=ot(e);w_(r);const i=Ft([r[N.ExtraData][0],r[N.ExtraData][1]],t)||[];return Ft(i,n)||[]}(t,o,r),d=u.findIndex(f=>{if(Array.isArray(f)){const[h,p]=f,v=s>=h.hours&&a>=h.minutes,w=s<p.hours||s===p.hours&&a<p.minutes;if(h.hours<p.hours){if(v&&w)return!0}else if(v||w)return!0}else if(f.hours===s&&f.minutes===a)return!0;return!1});if(-1!==d)return c[d]}return function oR(e,t,n){const r=ot(e),i=Ft([r[N.DayPeriodsFormat],r[N.DayPeriodsStandalone]],t);return Ft(i,n)}(t,o,r)[s<12?0:1];case Z.Eras:return function aR(e,t){return Ft(ot(e)[N.Eras],t)}(t,r)[e.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${n}`)}}(o,i,e,t,n,r)}}function il(e){return function(t,n,r){const o=-1*r,i=kt(n,F.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(e){case $e.Short:return(o>=0?"+":"")+qt(s,2,i)+qt(Math.abs(o%60),2,i);case $e.ShortGMT:return"GMT"+(o>=0?"+":"")+qt(s,1,i);case $e.Long:return"GMT"+(o>=0?"+":"")+qt(s,2,i)+":"+qt(Math.abs(o%60),2,i);case $e.Extended:return 0===r?"Z":(o>=0?"+":"")+qt(s,2,i)+":"+qt(Math.abs(o%60),2,i);default:throw new Error(`Unknown zone width "${e}"`)}}}const DR=0,sl=4;function E_(e){return rl(e.getFullYear(),e.getMonth(),e.getDate()+(sl-e.getDay()))}function Xd(e,t=!1){return function(n,r){let o;if(t){const i=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+i)/7)}else{const i=E_(n),s=function wR(e){const t=rl(e,DR,1).getDay();return rl(e,0,1+(t<=sl?sl:sl+7)-t)}(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return qt(o,e,kt(r,F.MinusSign))}}function al(e,t=!1){return function(n,r){return qt(E_(n).getFullYear(),e,kt(r,F.MinusSign),t)}}const Qd={};function M_(e,t){e=e.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function b_(e){return e instanceof Date&&!isNaN(e.valueOf())}function A_(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const r=n.indexOf("="),[o,i]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}const rf=/\s+/,N_=[];let R_=(()=>{class e{constructor(n,r,o,i){this._iterableDiffers=n,this._keyValueDiffers=r,this._ngEl=o,this._renderer=i,this.initialClasses=N_,this.stateMap=new Map}set klass(n){this.initialClasses=null!=n?n.trim().split(rf):N_}set ngClass(n){this.rawClass="string"==typeof n?n.trim().split(rf):n}ngDoCheck(){for(const r of this.initialClasses)this._updateState(r,!0);const n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(const r of n)this._updateState(r,!0);else if(null!=n)for(const r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){const o=this.stateMap.get(n);void 0!==o?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(const n of this.stateMap){const r=n[0],o=n[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),o.touched=!1}}_toggleClass(n,r){(n=n.trim()).length>0&&n.split(rf).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}}return e.\u0275fac=function(n){return new(n||e)(D(Ka),D(Zi),D(Mt),D(xn))},e.\u0275dir=H({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),e})();class jR{constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let or=(()=>{class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){const n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){const r=this._viewContainer;n.forEachOperation((o,i,s)=>{if(null==o.previousIndex)r.createEmbeddedView(this._template,new jR(o.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)r.remove(null===i?void 0:i);else if(null!==i){const a=r.get(i);r.move(a,s),P_(a,o)}});for(let o=0,i=r.length;o<i;o++){const a=r.get(o).context;a.index=o,a.count=i,a.ngForOf=this._ngForOf}n.forEachIdentityChange(o=>{P_(r.get(o.currentIndex),o)})}static ngTemplateContextGuard(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(D(Gt),D(Ln),D(Ka))},e.\u0275dir=H({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),e})();function P_(e,t){e.context.$implicit=t.item}let sf=(()=>{class e{constructor(n,r){this._viewContainer=n,this._context=new BR,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){x_("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){x_("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(D(Gt),D(Ln))},e.\u0275dir=H({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),e})();class BR{constructor(){this.$implicit=null,this.ngIf=null}}function x_(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${ke(t)}'.`)}const t3=new O("DATE_PIPE_DEFAULT_TIMEZONE"),n3=new O("DATE_PIPE_DEFAULT_OPTIONS");let No=(()=>{class e{constructor(n,r,o){this.locale=n,this.defaultTimezone=r,this.defaultOptions=o}transform(n,r,o,i){if(null==n||""===n||n!=n)return null;try{return yR(n,r??this.defaultOptions?.dateFormat??"mediumDate",i||this.locale,o??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(s){throw function Zt(e,t){return new M(2100,!1)}()}}}return e.\u0275fac=function(n){return new(n||e)(D(yn,16),D(t3,24),D(n3,24))},e.\u0275pipe=lt({name:"date",type:e,pure:!0,standalone:!0}),e})(),f3=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=$t({type:e}),e.\u0275inj=Rt({}),e})();function V_(e){return"server"===e}let m3=(()=>{class e{}return e.\u0275prov=x({token:e,providedIn:"root",factory:()=>new y3(R(St),window)}),e})();class y3{constructor(t,n){this.document=t,this.window=n,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const n=function v3(e,t){const n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if("function"==typeof e.createTreeWalker&&e.body&&"function"==typeof e.body.attachShadow){const r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let o=r.currentNode;for(;o;){const i=o.shadowRoot;if(i){const s=i.getElementById(t)||i.querySelector(`[name="${t}"]`);if(s)return s}o=r.nextNode()}}return null}(this.document,t);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const n=this.window.history;n&&n.scrollRestoration&&(n.scrollRestoration=t)}}scrollToElement(t){const n=t.getBoundingClientRect(),r=n.left+this.window.pageXOffset,o=n.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],o-i[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=$_(this.window.history)||$_(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function $_(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}class H_{}class G3 extends QN{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class hf extends G3{static makeCurrent(){!function XN(e){zd||(zd=e)}(new hf)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,n){return(n=n||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return"window"===n?window:"document"===n?t:"body"===n?t.body:null}getBaseHref(t){const n=function W3(){return Ki=Ki||document.querySelector("base"),Ki?Ki.getAttribute("href"):null}();return null==n?null:function q3(e){dl=dl||document.createElement("a"),dl.setAttribute("href",e);const t=dl.pathname;return"/"===t.charAt(0)?t:`/${t}`}(n)}resetBaseElement(){Ki=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return A_(document.cookie,t)}}let dl,Ki=null,Y3=(()=>{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();const pf=new O("EventManagerPlugins");let G_=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new M(5101,!1);return this._eventNameToPlugin.set(n,r),r}}return e.\u0275fac=function(n){return new(n||e)(R(pf),R(ve))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();class W_{constructor(t){this._doc=t}}const gf="ng-app-id";let q_=(()=>{class e{constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.platformId=i,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=V_(i),this.resetHostNodes()}addStyles(n){for(const r of n)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(n){for(const r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(const r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(const r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){const r=this.styleRef;r.get(n)?.elements?.forEach(o=>o.remove()),r.delete(n)}collectServerRenderedStyles(){const n=this.doc.head?.querySelectorAll(`style[${gf}="${this.appId}"]`);if(n?.length){const r=new Map;return n.forEach(o=>{null!=o.textContent&&r.set(o.textContent,o)}),r}return null}changeUsageCount(n,r){const o=this.styleRef;if(o.has(n)){const i=o.get(n);return i.usage+=r,i.usage}return o.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){const o=this.styleNodesInDOM,i=o?.get(r);if(i?.parentNode===n)return o.delete(r),i.removeAttribute(gf),i;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(gf,this.appId),s}}addStyleToHost(n,r){const o=this.getStyleElement(n,r);n.appendChild(o);const i=this.styleRef,s=i.get(r)?.elements;s?s.push(o):i.set(r,{elements:[o],usage:1})}resetHostNodes(){const n=this.hostNodes;n.clear(),n.add(this.doc.head)}}return e.\u0275fac=function(n){return new(n||e)(R(St),R(ma),R(dm,8),R(Mr))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();const mf={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/"},yf=/%COMP%/g,J3=new O("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function Y_(e,t){return t.map(n=>n.replace(yf,e))}let X_=(()=>{class e{constructor(n,r,o,i,s,a,l,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestory=i,this.doc=s,this.platformId=a,this.ngZone=l,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=V_(a),this.defaultRenderer=new vf(n,s,l,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Ct.ShadowDom&&(r={...r,encapsulation:Ct.Emulated});const o=this.getOrCreateRenderer(n,r);return o instanceof K_?o.applyToHost(n):o instanceof Cf&&o.applyStyles(),o}getOrCreateRenderer(n,r){const o=this.rendererByCompId;let i=o.get(r.id);if(!i){const s=this.doc,a=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,c=this.removeStylesOnCompDestory,d=this.platformIsServer;switch(r.encapsulation){case Ct.Emulated:i=new K_(l,u,r,this.appId,c,s,a,d);break;case Ct.ShadowDom:return new rO(l,u,n,r,s,a,this.nonce,d);default:i=new Cf(l,u,r,c,s,a,d)}i.onDestroy=()=>o.delete(r.id),o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}}return e.\u0275fac=function(n){return new(n||e)(R(G_),R(q_),R(ma),R(J3),R(St),R(Mr),R(ve),R(dm))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();class vf{constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(mf[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(Q_(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(Q_(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){t&&t.removeChild(n)}selectRootElement(t,n){let r="string"==typeof t?this.doc.querySelector(t):t;if(!r)throw new M(5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;const i=mf[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const o=mf[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(ht.DashCase|ht.Important)?t.style.setProperty(n,r,o&ht.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&ht.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t[n]=r}setValue(t,n){t.nodeValue=n}listen(t,n,r){if("string"==typeof t&&!(t=nr().getGlobalEventTarget(this.doc,t)))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if("__ngUnwrap__"===n)return t;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))&&(n.preventDefault(),n.returnValue=!1)}}}function Q_(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class rO extends vf{constructor(t,n,r,o,i,s,a,l){super(t,i,s,l),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const u=Y_(o.id,o.styles);for(const c of u){const d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=c,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(this.nodeOrShadowRoot(t),n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Cf extends vf{constructor(t,n,r,o,i,s,a,l){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestory=o,this.rendererUsageCount=0,this.styles=l?Y_(l,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class K_ extends Cf{constructor(t,n,r,o,i,s,a,l){const u=o+"-"+r.id;super(t,n,r,i,s,a,l,u),this.contentAttr=function eO(e){return"_ngcontent-%COMP%".replace(yf,e)}(u),this.hostAttr=function tO(e){return"_nghost-%COMP%".replace(yf,e)}(u)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){const r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}}let oO=(()=>{class e extends W_{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}}return e.\u0275fac=function(n){return new(n||e)(R(St))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();const J_=["alt","control","meta","shift"],iO={"\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"},sO={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let aO=(()=>{class e extends W_{constructor(n){super(n)}supports(n){return null!=e.parseEventName(n)}addEventListener(n,r,o){const i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>nr().onAndCancel(n,i.domEventName,s))}static parseEventName(n){const r=n.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const i=e._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),J_.forEach(u=>{const c=r.indexOf(u);c>-1&&(r.splice(c,1),s+=u+".")}),s+=i,0!=r.length||0===i.length)return null;const l={};return l.domEventName=o,l.fullKey=s,l}static matchEventFullKeyCode(n,r){let o=iO[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),J_.forEach(s=>{s!==o&&(0,sO[s])(n)&&(i+=s+".")}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return e.\u0275fac=function(n){return new(n||e)(R(St))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();const dO=GC(VN,"browser",[{provide:Mr,useValue:"browser"},{provide:cm,useValue:function lO(){hf.makeCurrent()},multi:!0},{provide:St,useFactory:function cO(){return function db(e){nc=e}(document),document},deps:[]}]),fO=new O(""),nD=[{provide:qa,useClass:class Z3{addToWindow(t){he.getAngularTestability=(r,o=!0)=>{const i=t.findTestabilityInTree(r,o);if(null==i)throw new M(5103,!1);return i},he.getAllAngularTestabilities=()=>t.getAllTestabilities(),he.getAllAngularRootElements=()=>t.getAllRootElements(),he.frameworkStabilizers||(he.frameworkStabilizers=[]),he.frameworkStabilizers.push(r=>{const o=he.getAllAngularTestabilities();let i=o.length,s=!1;const a=function(l){s=s||l,i--,0==i&&r(s)};o.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(t,n,r){return null==n?null:t.getTestability(n)??(r?nr().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},deps:[]},{provide:HC,useClass:Od,deps:[ve,Pd,qa]},{provide:Od,useClass:Od,deps:[ve,Pd,qa]}],rD=[{provide:hc,useValue:"root"},{provide:br,useFactory:function uO(){return new br},deps:[]},{provide:pf,useClass:oO,multi:!0,deps:[St,ve,Mr]},{provide:pf,useClass:aO,multi:!0,deps:[St]},X_,q_,G_,{provide:Cm,useExisting:X_},{provide:H_,useClass:Y3,deps:[]},[]];let hO=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:ma,useValue:n.appId}]}}}return e.\u0275fac=function(n){return new(n||e)(R(fO,12))},e.\u0275mod=$t({type:e}),e.\u0275inj=Rt({providers:[...rD,...nD],imports:[f3,$N]}),e})(),oD=(()=>{class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}}return e.\u0275fac=function(n){return new(n||e)(R(St))},e.\u0275prov=x({token:e,factory:function(n){let r=null;return r=n?new n:function gO(){return new oD(R(St))}(),r},providedIn:"root"}),e})();typeof window<"u"&&window;const{isArray:_O}=Array,{getPrototypeOf:DO,prototype:wO,keys:EO}=Object;function lD(e){if(1===e.length){const t=e[0];if(_O(t))return{args:t,keys:null};if(function MO(e){return e&&"object"==typeof e&&DO(e)===wO}(t)){const n=EO(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}const{isArray:bO}=Array;function uD(e){return ne(t=>function SO(e,t){return bO(t)?e(...t):e(t)}(e,t))}function cD(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}let dD=(()=>{class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}}return e.\u0275fac=function(n){return new(n||e)(D(xn),D(Mt))},e.\u0275dir=H({type:e}),e})(),Nr=(()=>{class e extends dD{}return e.\u0275fac=function(){let t;return function(r){return(t||(t=Ze(e)))(r||e)}}(),e.\u0275dir=H({type:e,features:[le]}),e})();const vn=new O("NgValueAccessor"),TO={provide:vn,useExisting:fe(()=>fl),multi:!0};let fl=(()=>{class e extends Nr{writeValue(n){this.setProperty("checked",n)}}return e.\u0275fac=function(){let t;return function(r){return(t||(t=Ze(e)))(r||e)}}(),e.\u0275dir=H({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(n,r){1&n&&P("change",function(i){return r.onChange(i.target.checked)})("blur",function(){return r.onTouched()})},features:[ye([TO]),le]}),e})();const AO={provide:vn,useExisting:fe(()=>Lt),multi:!0},RO=new O("CompositionEventMode");let Lt=(()=>{class e extends dD{constructor(n,r,o){super(n,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function NO(){const e=nr()?nr().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(n){this.setProperty("value",n??"")}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}}return e.\u0275fac=function(n){return new(n||e)(D(xn),D(Mt),D(RO,8))},e.\u0275dir=H({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,r){1&n&&P("input",function(i){return r._handleInput(i.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(i){return r._compositionEnd(i.target.value)})},features:[ye([AO]),le]}),e})();const et=new O("NgValidators"),ar=new O("NgAsyncValidators");function DD(e){return null!=e}function wD(e){return Fi(e)?xe(e):e}function ED(e){let t={};return e.forEach(n=>{t=null!=n?{...t,...n}:t}),0===Object.keys(t).length?null:t}function MD(e,t){return t.map(n=>n(e))}function bD(e){return e.map(t=>function PO(e){return!e.validate}(t)?t:n=>t.validate(n))}function Df(e){return null!=e?function SD(e){if(!e)return null;const t=e.filter(DD);return 0==t.length?null:function(n){return ED(MD(n,t))}}(bD(e)):null}function wf(e){return null!=e?function ID(e){if(!e)return null;const t=e.filter(DD);return 0==t.length?null:function(n){return function IO(...e){const t=Uh(e),{args:n,keys:r}=lD(e),o=new be(i=>{const{length:s}=n;if(!s)return void i.complete();const a=new Array(s);let l=s,u=s;for(let c=0;c<s;c++){let d=!1;At(n[c]).subscribe(He(i,f=>{d||(d=!0,u--),a[c]=f},()=>l--,void 0,()=>{(!l||!d)&&(u||i.next(r?cD(r,a):a),i.complete())}))}});return t?o.pipe(uD(t)):o}(MD(n,t).map(wD)).pipe(ne(ED))}}(bD(e)):null}function TD(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function Ef(e){return e?Array.isArray(e)?e:[e]:[]}function pl(e,t){return Array.isArray(e)?e.includes(t):e===t}function RD(e,t){const n=Ef(t);return Ef(e).forEach(o=>{pl(n,o)||n.push(o)}),n}function OD(e,t){return Ef(t).filter(n=>!pl(e,n))}class PD{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=Df(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=wf(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return!!this.control&&this.control.hasError(t,n)}getError(t,n){return this.control?this.control.getError(t,n):null}}class st extends PD{get formDirective(){return null}get path(){return null}}class lr extends PD{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class xD{constructor(t){this._cd=t}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Cn=(()=>{class e extends xD{constructor(n){super(n)}}return e.\u0275fac=function(n){return new(n||e)(D(lr,2))},e.\u0275dir=H({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){2&n&&Fa("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[le]}),e})(),kD=(()=>{class e extends xD{constructor(n){super(n)}}return e.\u0275fac=function(n){return new(n||e)(D(st,10))},e.\u0275dir=H({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,r){2&n&&Fa("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},features:[le]}),e})();const Ji="VALID",ml="INVALID",Ro="PENDING",es="DISABLED";function Sf(e){return(yl(e)?e.validators:e)||null}function If(e,t){return(yl(t)?t.asyncValidators:e)||null}function yl(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class $D{constructor(t,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Ji}get invalid(){return this.status===ml}get pending(){return this.status==Ro}get disabled(){return this.status===es}get enabled(){return this.status!==es}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(RD(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(RD(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(OD(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(OD(t,this._rawAsyncValidators))}hasValidator(t){return pl(this._rawValidators,t)}hasAsyncValidator(t){return pl(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(n=>{n.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=Ro,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=es,this.errors=null,this._forEachChild(r=>{r.disable({...t,onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:n}),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=Ji,this._forEachChild(r=>{r.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:n}),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ji||this.status===Ro)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?es:Ji}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=Ro,this._hasOwnPendingAsyncValidator=!0;const n=wD(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(!1!==n.emitEvent)}get(t){let n=t;return null==n||(Array.isArray(n)||(n=n.split(".")),0===n.length)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){const r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new Me,this.statusChanges=new Me}_calculateStatus(){return this._allControlsDisabled()?es:this.errors?ml:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ro)?Ro:this._anyControlsHaveStatus(ml)?ml:Ji}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){yl(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=function LO(e){return Array.isArray(e)?Df(e):e||null}(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=function VO(e){return Array.isArray(e)?wf(e):e||null}(this._rawAsyncValidators)}}class Tf extends $D{constructor(t,n,r){super(Sf(n),If(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,n){return this.controls[t]?this.controls[t]:(this.controls[t]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(t,n,r={}){this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(t,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(t,n,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],n&&this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,n={}){(function VD(e,t,n){e._forEachChild((r,o)=>{if(void 0===n[o])throw new M(1002,"")})})(this,0,t),Object.keys(t).forEach(r=>{(function LD(e,t,n){const r=e.controls;if(!(t?Object.keys(r):r).length)throw new M(1e3,"");if(!r[n])throw new M(1001,"")})(this,!0,r),this.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){null!=t&&(Object.keys(t).forEach(r=>{const o=this.controls[r];o&&o.patchValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t={},n={}){this._forEachChild((r,o)=>{r.reset(t[o],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(t,n,r)=>(t[r]=n.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(n,r)=>!!r._syncPendingControls()||n);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(n=>{const r=this.controls[n];r&&t(r,n)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const[n,r]of Object.entries(this.controls))if(this.contains(n)&&t(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(n,r,o)=>((r.enabled||this.disabled)&&(n[o]=r.value),n))}_reduceChildren(t,n){let r=t;return this._forEachChild((o,i)=>{r=n(r,o,i)}),r}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}}const Oo=new O("CallSetDisabledState",{providedIn:"root",factory:()=>vl}),vl="always";function ts(e,t,n=vl){Af(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||"always"===n)&&t.valueAccessor.setDisabledState?.(e.disabled),function jO(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&HD(e,t)})}(e,t),function UO(e,t){const n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}(e,t),function BO(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&HD(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function HO(e,t){if(t.valueAccessor.setDisabledState){const n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}(e,t)}function Dl(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function Af(e,t){const n=function AD(e){return e._rawValidators}(e);null!==t.validator?e.setValidators(TD(n,t.validator)):"function"==typeof n&&e.setValidators([n]);const r=function ND(e){return e._rawAsyncValidators}(e);null!==t.asyncValidator?e.setAsyncValidators(TD(r,t.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const o=()=>e.updateValueAndValidity();Dl(t._rawValidators,o),Dl(t._rawAsyncValidators,o)}function HD(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}const ZO={provide:st,useExisting:fe(()=>El)},ns=(()=>Promise.resolve())();let El=(()=>{class e extends st{constructor(n,r,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._directives=new Set,this.ngSubmit=new Me,this.form=new Tf({},Df(n),wf(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){ns.then(()=>{const r=this._findContainer(n.path);n.control=r.registerControl(n.name,n.control),ts(n.control,n,this.callSetDisabledState),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){ns.then(()=>{const r=this._findContainer(n.path);r&&r.removeControl(n.name),this._directives.delete(n)})}addFormGroup(n){ns.then(()=>{const r=this._findContainer(n.path),o=new Tf({});(function jD(e,t){Af(e,t)})(o,n),r.registerControl(n.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){ns.then(()=>{const r=this._findContainer(n.path);r&&r.removeControl(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,r){ns.then(()=>{this.form.get(n.path).setValue(r)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submitted=!0,function BD(e,t){e._syncPendingControls(),t.forEach(n=>{const r=n.control;"submit"===r.updateOn&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(n),"dialog"===n?.target?.method}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(n){return n.pop(),n.length?this.form.get(n):this.form}}return e.\u0275fac=function(n){return new(n||e)(D(et,10),D(ar,10),D(Oo,8))},e.\u0275dir=H({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,r){1&n&&P("submit",function(i){return r.onSubmit(i)})("reset",function(){return r.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[ye([ZO]),le]}),e})();function UD(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function zD(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const GD=class extends $D{constructor(t=null,n,r){super(Sf(n),If(r,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),yl(n)&&(n.nonNullable||n.initialValueIsDefault)&&(this.defaultValue=zD(t)?t.value:t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==n.emitViewToModelChange)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){UD(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){UD(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){zD(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}},QO={provide:lr,useExisting:fe(()=>Yt)},ZD=(()=>Promise.resolve())();let Yt=(()=>{class e extends lr{constructor(n,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new GD,this._registered=!1,this.name="",this.update=new Me,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=function Of(e,t){if(!t)return null;let n,r,o;return Array.isArray(t),t.forEach(i=>{i.constructor===Lt?n=i:function WO(e){return Object.getPrototypeOf(e.constructor)===Nr}(i)?r=i:o=i}),o||r||n||null}(0,i)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){const r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),function Rf(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){ts(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(n){ZD.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){const r=n.isDisabled.currentValue,o=0!==r&&Ao(r);ZD.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?function Cl(e,t){return[...t.path,e]}(n,this._parent):[n]}}return e.\u0275fac=function(n){return new(n||e)(D(st,9),D(et,10),D(ar,10),D(vn,10),D(Ya,8),D(Oo,8))},e.\u0275dir=H({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:[ye([QO]),le,Ot]}),e})(),YD=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=H({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e})(),QD=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=$t({type:e}),e.\u0275inj=Rt({}),e})(),DP=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=$t({type:e}),e.\u0275inj=Rt({imports:[QD]}),e})(),EP=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:Oo,useValue:n.callSetDisabledState??vl}]}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=$t({type:e}),e.\u0275inj=Rt({imports:[DP]}),e})();function j(...e){return xe(e,Qo(e))}function Po(e,t){return ce(t)?Ge(e,t,1):Ge(e,1)}function Hn(e,t){return ze((n,r)=>{let o=0;n.subscribe(He(r,i=>e.call(t,i,o++)&&r.next(i)))})}function _n(e,t){return ze((n,r)=>{let o=null,i=0,s=!1;const a=()=>s&&!o&&r.complete();n.subscribe(He(r,l=>{o?.unsubscribe();let u=0;const c=i++;At(e(l,c)).subscribe(o=He(r,d=>r.next(t?t(l,d,c,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}class Ml{}class $f{}class Ye{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(n=>{const r=n.indexOf(":");if(r>0){const o=n.slice(0,r),i=o.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{let o;if(o="string"==typeof r?[r]:"number"==typeof r?[r.toString()]:r.map(i=>i.toString()),o.length>0){const i=n.toLowerCase();this.headers.set(i,o),this.maybeSetNormalizedName(n,i)}})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof Ye?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){const n=new Ye;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof Ye?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){const n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(t.name,n);const o=("a"===t.op?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":const i=t.value;if(i){let s=this.headers.get(n);if(!s)return;s=s.filter(a=>-1===i.indexOf(a)),0===s.length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}else this.headers.delete(n),this.normalizedNames.delete(n)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}}class MP{encodeKey(t){return m0(t)}encodeValue(t){return m0(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const SP=/%(\d[a-f0-9])/gi,IP={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function m0(e){return encodeURIComponent(e).replace(SP,(t,n)=>IP[n]??t)}function bl(e){return`${e}`}class ur{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new MP,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function bP(e,t){const n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{const i=o.indexOf("="),[s,a]=-1==i?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],l=n.get(s)||[];l.push(a),n.set(s,l)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{const r=t.fromObject[n],o=Array.isArray(r)?r.map(bl):[bl(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){const n=[];return Object.keys(t).forEach(r=>{const o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const n=new ur({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const n=("a"===t.op?this.map.get(t.param):void 0)||[];n.push(bl(t.value)),this.map.set(t.param,n);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let r=this.map.get(t.param)||[];const o=r.indexOf(bl(t.value));-1!==o&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class TP{constructor(){this.map=new Map}set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function y0(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function v0(e){return typeof Blob<"u"&&e instanceof Blob}function C0(e){return typeof FormData<"u"&&e instanceof FormData}class rs{constructor(t,n,r,o){let i;if(this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function AP(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==r?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params)),this.headers||(this.headers=new Ye),this.context||(this.context=new TP),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=n;else{const a=n.indexOf("?");this.urlWithParams=n+(-1===a?"?":a<n.length-1?"&":"")+s}}else this.params=new ur,this.urlWithParams=n}serializeBody(){return null===this.body?null:y0(this.body)||v0(this.body)||C0(this.body)||function NP(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof ur?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||C0(this.body)?null:v0(this.body)?this.body.type||null:y0(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof ur?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(t={}){const n=t.method||this.method,r=t.url||this.url,o=t.responseType||this.responseType,i=void 0!==t.body?t.body:this.body,s=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,a=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let l=t.headers||this.headers,u=t.params||this.params;const c=t.context??this.context;return void 0!==t.setHeaders&&(l=Object.keys(t.setHeaders).reduce((d,f)=>d.set(f,t.setHeaders[f]),l)),t.setParams&&(u=Object.keys(t.setParams).reduce((d,f)=>d.set(f,t.setParams[f]),u)),new rs(n,r,i,{params:u,headers:l,context:c,reportProgress:a,responseType:o,withCredentials:s})}}var Pe=(()=>((Pe=Pe||{})[Pe.Sent=0]="Sent",Pe[Pe.UploadProgress=1]="UploadProgress",Pe[Pe.ResponseHeader=2]="ResponseHeader",Pe[Pe.DownloadProgress=3]="DownloadProgress",Pe[Pe.Response=4]="Response",Pe[Pe.User=5]="User",Pe))();class Hf{constructor(t,n=200,r="OK"){this.headers=t.headers||new Ye,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class jf extends Hf{constructor(t={}){super(t),this.type=Pe.ResponseHeader}clone(t={}){return new jf({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class xo extends Hf{constructor(t={}){super(t),this.type=Pe.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new xo({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class _0 extends Hf{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function Bf(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let Or=(()=>{class e{constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof rs)i=n;else{let l,u;l=o.headers instanceof Ye?o.headers:new Ye(o.headers),o.params&&(u=o.params instanceof ur?o.params:new ur({fromObject:o.params})),i=new rs(n,r,void 0!==o.body?o.body:null,{headers:l,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const s=j(i).pipe(Po(l=>this.handler.handle(l)));if(n instanceof rs||"events"===o.observe)return s;const a=s.pipe(Hn(l=>l instanceof xo));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(ne(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(ne(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(ne(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(ne(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:(new ur).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,Bf(o,r))}post(n,r,o={}){return this.request("POST",n,Bf(o,r))}put(n,r,o={}){return this.request("PUT",n,Bf(o,r))}}return e.\u0275fac=function(n){return new(n||e)(R(Ml))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();function D0(e,t){return t(e)}function RP(e,t){return(n,r)=>t.intercept(n,{handle:o=>e(o,r)})}const w0=new O(""),os=new O(""),E0=new O("");function PP(){let e=null;return(t,n)=>(null===e&&(e=(I(w0,{optional:!0})??[]).reduceRight(RP,D0)),e(t,n))}let M0=(()=>{class e extends Ml{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null}handle(n){if(null===this.chain){const r=Array.from(new Set([...this.injector.get(os),...this.injector.get(E0,[])]));this.chain=r.reduceRight((o,i)=>function OP(e,t,n){return(r,o)=>n.runInContext(()=>t(r,i=>e(i,o)))}(o,i,this.injector),D0)}return this.chain(n,r=>this.backend.handle(r))}}return e.\u0275fac=function(n){return new(n||e)(R($f),R(un))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();const LP=/^\)\]\}',?\n/;let S0=(()=>{class e{constructor(n){this.xhrFactory=n}handle(n){if("JSONP"===n.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");const r=this.xhrFactory;return(r.\u0275loadImpl?xe(r.\u0275loadImpl()):j(null)).pipe(_n(()=>new be(i=>{const s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((y,S)=>s.setRequestHeader(y,S.join(","))),n.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){const y=n.detectContentTypeHeader();null!==y&&s.setRequestHeader("Content-Type",y)}if(n.responseType){const y=n.responseType.toLowerCase();s.responseType="json"!==y?y:"text"}const a=n.serializeBody();let l=null;const u=()=>{if(null!==l)return l;const y=s.statusText||"OK",S=new Ye(s.getAllResponseHeaders()),k=function VP(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(s)||n.url;return l=new jf({headers:S,status:s.status,statusText:y,url:k}),l},c=()=>{let{headers:y,status:S,statusText:k,url:Y}=u(),ge=null;204!==S&&(ge=typeof s.response>"u"?s.responseText:s.response),0===S&&(S=ge?200:0);let qo=S>=200&&S<300;if("json"===n.responseType&&"string"==typeof ge){const r4=ge;ge=ge.replace(LP,"");try{ge=""!==ge?JSON.parse(ge):null}catch(o4){ge=r4,qo&&(qo=!1,ge={error:o4,text:ge})}}qo?(i.next(new xo({body:ge,headers:y,status:S,statusText:k,url:Y||void 0})),i.complete()):i.error(new _0({error:ge,headers:y,status:S,statusText:k,url:Y||void 0}))},d=y=>{const{url:S}=u(),k=new _0({error:y,status:s.status||0,statusText:s.statusText||"Unknown Error",url:S||void 0});i.error(k)};let f=!1;const h=y=>{f||(i.next(u()),f=!0);let S={type:Pe.DownloadProgress,loaded:y.loaded};y.lengthComputable&&(S.total=y.total),"text"===n.responseType&&s.responseText&&(S.partialText=s.responseText),i.next(S)},p=y=>{let S={type:Pe.UploadProgress,loaded:y.loaded};y.lengthComputable&&(S.total=y.total),i.next(S)};let v;s.addEventListener("load",c),s.addEventListener("error",d),s.addEventListener("timeout",d),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",h),null!==a&&s.upload&&s.upload.addEventListener("progress",p));const w=()=>{v??=function HP(){const e=setTimeout(()=>{},$P);return()=>clearTimeout(e)}()},b=()=>{v?.()};return s.addEventListener("loadstart",w),s.addEventListener("loadend",b),s.send(a),i.next({type:Pe.Sent}),()=>{s.removeEventListener("loadstart",w),s.removeEventListener("loadend",b),s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",c),s.removeEventListener("timeout",d),v?.(),n.reportProgress&&(s.removeEventListener("progress",h),null!==a&&s.upload&&s.upload.removeEventListener("progress",p)),s.readyState!==s.DONE&&s.abort()}})))}}return e.\u0275fac=function(n){return new(n||e)(R(H_))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();const $P=2147483647,Uf=new O("XSRF_ENABLED"),I0=new O("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),T0=new O("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class A0{}let UP=(()=>{class e{constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=A_(n,this.cookieName),this.lastCookieString=n),this.lastToken}}return e.\u0275fac=function(n){return new(n||e)(R(St),R(Mr),R(I0))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();function zP(e,t){const n=e.url.toLowerCase();if(!I(Uf)||"GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t(e);const r=I(A0).getToken(),o=I(T0);return null!=r&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),t(e)}var Te=(()=>((Te=Te||{})[Te.Interceptors=0]="Interceptors",Te[Te.LegacyInterceptors=1]="LegacyInterceptors",Te[Te.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Te[Te.NoXsrfProtection=3]="NoXsrfProtection",Te[Te.JsonpSupport=4]="JsonpSupport",Te[Te.RequestsMadeViaParent=5]="RequestsMadeViaParent",Te))();function ko(e,t){return{\u0275kind:e,\u0275providers:t}}function GP(...e){const t=[Or,S0,M0,{provide:Ml,useExisting:M0},{provide:$f,useExisting:S0},{provide:os,useValue:zP,multi:!0},{provide:Uf,useValue:!0},{provide:A0,useClass:UP}];for(const n of e)t.push(...n.\u0275providers);return function uc(e){return{\u0275providers:e}}(t)}const N0=new O("LEGACY_INTERCEPTOR_FN");let qP=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=$t({type:e}),e.\u0275inj=Rt({providers:[GP(ko(Te.LegacyInterceptors,[{provide:N0,useFactory:PP},{provide:os,useExisting:N0,multi:!0}]))]}),e})();function J(e,t,n){const r=ce(e)||t||n?{next:e,error:t,complete:n}:e;return r?ze((o,i)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;o.subscribe(He(i,l=>{var u;null===(u=r.next)||void 0===u||u.call(r,l),i.next(l)},()=>{var l;a=!1,null===(l=r.complete)||void 0===l||l.call(r),i.complete()},l=>{var u;a=!1,null===(u=r.error)||void 0===u||u.call(r,l),i.error(l)},()=>{var l,u;a&&(null===(l=r.unsubscribe)||void 0===l||l.call(r)),null===(u=r.finalize)||void 0===u||u.call(r)}))}):pr}function de(e){return ze((t,n)=>{let i,r=null,o=!1;r=t.subscribe(He(n,void 0,void 0,s=>{i=At(e(s,de(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}const Pr_restServerUrl="https://sf.truyen.network";let xr=(()=>{class e{constructor(){this.messages=[]}add(n){this.messages.push((new Date).toLocaleTimeString()+") "+n)}clear(){this.messages=[]}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class Dn{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new Ye({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>{throw this.log(`${t} failed: response status = ${r.status} statusText = ${r.statusText}`),0===r.status&&!1===r.ok?new Error("Could not reach API, check your internet connection."):(console.error(r),new Error(`${t} failed: status = ${r.status}`,{cause:r}))}}log(t){this.appMessageService.add(`ChatMessagesService: ${t}`)}getChatMessages(){return this.http.get(Dn.REST_URL,this.httpOptions).pipe(J(t=>this.log(`fetched ${t.length} messages`)),de(this.handleError("getChatMessages",[])))}addChatMessage(t,n){return this.http.post(Dn.REST_URL,{author:t,text:n},this.httpOptions).pipe(J(o=>this.log(`added message w/ id=${o.id}`)),de(this.handleError("addChatMessage")))}}Dn.REST_URL=Pr_restServerUrl+"/api/chat",Dn.\u0275fac=function(t){return new(t||Dn)(R(Or),R(xr))},Dn.\u0275prov=x({token:Dn,factory:Dn.\u0275fac,providedIn:"root"});const Fo="./ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),zf=Array.from({length:64},(e,t)=>t),Sl=e=>Array(e).fill(-1),cr=[...Sl(46),0,1,...zf.slice(54,64),...Sl(7),...zf.slice(2,28),...Sl(6),...zf.slice(28,54),...Sl(5)],R0=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],O0=[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946,1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055,3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504,976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462],P0=[1332899944,1700884034,1701343084,1684370003,1668446532,1869963892],Gf=(e,t)=>{if(t<=0||t>e.length)throw Error(`Illegal len: ${t}`);let r,o,n=0;const i=[];for(;n<t;){if(r=255&e[n++],i.push(Fo[r>>2&63]),r=(3&r)<<4,n>=t){i.push(Fo[63&r]);break}if(o=255&e[n++],r|=o>>4&15,i.push(Fo[63&r]),r=(15&o)<<2,n>=t){i.push(Fo[63&r]);break}o=255&e[n++],r|=o>>6&3,i.push(Fo[63&r]),i.push(Fo[63&o])}return i.join("")},Il="object"==typeof process&&"edge"===process.env.NEXT_RUNTIME?setTimeout:"function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:setTimeout,ss=(e,t,n,r)=>{let o,i=e[t],s=e[t+1];return i^=n[0],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[1],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[2],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[3],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[4],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[5],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[6],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[7],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[8],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[9],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[10],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[11],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[12],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[13],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[14],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[15],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[16],e[t]=s^n[17],e[t+1]=i,e},Lo=(e,t)=>{let n=0;for(let r=0;r<4;++r)n=n<<8|255&e[t],t=(t+1)%e.length;return{key:n,offp:t}},x0=(e,t,n)=>{const r=t.length,o=n.length;let a,i=0,s=[0,0];for(let l=0;l<r;l++)a=Lo(e,i),i=a.offp,t[l]=t[l]^a.key;for(let l=0;l<r;l+=2)s=ss(s,0,t,n),t[l]=s[0],t[l+1]=s[1];for(let l=0;l<o;l+=2)s=ss(s,0,t,n),n[l]=s[0],n[l+1]=s[1]},k0=(e,t,n,r,o)=>{const i=P0.slice(),s=i.length;if(n<4||n>31){const f=new Error(`Illegal number of rounds (4-31): ${n}`);if(!1===r)return Promise.reject(f);throw f}if(16!==t.length){const f=new Error(`Illegal salt length: ${t.length} != 16`);if(!1===r)return Promise.reject(f);throw f}n=1<<n>>>0;let a,l,c,u=0;Int32Array?(a=new Int32Array(R0),l=new Int32Array(O0)):(a=R0.slice(),l=O0.slice()),((e,t,n,r)=>{const o=n.length,i=r.length;let l,s=0,a=[0,0];for(let u=0;u<o;u++)l=Lo(t,s),s=l.offp,n[u]=n[u]^l.key;s=0;for(let u=0;u<o;u+=2)l=Lo(e,s),s=l.offp,a[0]^=l.key,l=Lo(e,s),s=l.offp,a[1]^=l.key,a=ss(a,0,n,r),n[u]=a[0],n[u+1]=a[1];for(let u=0;u<i;u+=2)l=Lo(e,s),s=l.offp,a[0]^=l.key,l=Lo(e,s),s=l.offp,a[1]^=l.key,a=ss(a,0,n,r),r[u]=a[0],r[u+1]=a[1]})(t,e,a,l);const d=()=>{if(o&&o(u/n),!(u<n)){for(u=0;u<64;u++)for(c=0;c<s>>1;c++)ss(i,c<<1,a,l);const f=[];for(u=0;u<s;u++)f.push((i[u]>>24&255)>>>0),f.push((i[u]>>16&255)>>>0),f.push((i[u]>>8&255)>>>0),f.push((255&i[u])>>>0);return!1===r?Promise.resolve(f):f}{const f=Date.now();for(;u<n&&(u+=1,x0(e,a,l),x0(t,a,l),!(Date.now()-f>100)););}if(!1===r)return new Promise(f=>Il(()=>{d().then(f)}))};if(!1===r)return d();{let f;for(;;)if(typeof(f=d())<"u")return f||[]}},Wf=(e=10)=>{if("number"!=typeof e)throw Error("Illegal arguments: "+typeof e);e<4?e=4:e>31&&(e=31);const t=[];return t.push("$2a$"),e<10&&t.push("0"),t.push(e.toString()),t.push("$"),t.push(Gf((e=>{try{let t;t=typeof window<"u"?window.crypto??window.msCrypto:globalThis.crypto;const n=new Uint32Array(16);return t?.getRandomValues(n),Array.from(n)}catch{throw Error("WebCryptoAPI is not available")}})(),16)),t.join("")};const F0=(e,t=10)=>{if("number"==typeof t&&(t=Wf(t)),"string"!=typeof e||"string"!=typeof t)throw Error("Illegal arguments: "+typeof e+", "+typeof t);return function qf(e,t,n,r){if("string"!=typeof e||"string"!=typeof t){const h=new Error("Invalid string / salt: Not a string");if(!1===n)return Promise.reject(h);throw h}let o,i;if("$"!==t.charAt(0)||"2"!==t.charAt(1)){const h=new Error("Invalid salt version: "+t.substring(0,2));if(!1===n)return Promise.reject(h);throw h}if("$"===t.charAt(2))o="\0",i=3;else{if(o=t.charAt(2),"a"!==o&&"b"!==o&&"y"!==o||"$"!==t.charAt(3)){const h=Error("Invalid salt revision: "+t.substring(2,4));if(!1===n)return Promise.reject(h);throw h}i=4}if(t.charAt(i+2)>"$"){const h=new Error("Missing salt rounds");if(!1===n)return Promise.reject(h);throw h}const l=10*parseInt(t.substring(i,i+1),10)+parseInt(t.substring(i+1,i+2),10),u=t.substring(i+3,i+25),c=(e=>{const t=[];let n=0;return((e,t)=>{((e,t)=>{let n,r=null;for(;null!==(n=null!==r?r:e());)n>=55296&&n<=57343&&null!==(r=e())&&r>=56320&&r<=57343?(t(1024*(n-55296)+r-56320+65536),r=null):t(n);null!==r&&t(r)})(e,function(n){((e,t)=>{let n=null;for("number"==typeof e&&(n=e,e=()=>null);null!==n||null!==(n=e());)n<128?t(127&n):n<2048?(t(n>>6&31|192),t(63&n|128)):n<65536?(t(n>>12&15|224),t(n>>6&63|128),t(63&n|128)):(t(n>>18&7|240),t(n>>12&63|128),t(n>>6&63|128),t(63&n|128)),n=null})(n,t)})})(()=>n>=e.length?null:e.charCodeAt(n++),r=>{t.push(r)}),t})(e+=o>="a"?"\0":""),d=((e,t)=>{const n=e.length;let i,s,a,l,u,c,r=0,o=0;const d=[];for(;r<n-1&&o<16&&(c=e.charCodeAt(r++),i=c<cr.length?cr[c]:-1,c=e.charCodeAt(r++),s=c<cr.length?cr[c]:-1,!(-1==i||-1==s||(u=i<<2>>>0,u|=(48&s)>>4,d.push(String.fromCharCode(u)),++o>=16||r>=n)||(c=e.charCodeAt(r++),a=c<cr.length?cr[c]:-1,-1==a)||(u=(15&s)<<4>>>0,u|=(60&a)>>2,d.push(String.fromCharCode(u)),++o>=16||r>=n)));)c=e.charCodeAt(r++),l=c<cr.length?cr[c]:-1,u=(3&a)<<6>>>0,u|=l,d.push(String.fromCharCode(u)),++o;return d.map(f=>f.charCodeAt(0))})(u),f=h=>{const p=[];return p.push("$2"),o>="a"&&p.push(o),p.push("$"),l<10&&p.push("0"),p.push(l.toString()),p.push("$"),p.push(Gf(d,d.length)),p.push(Gf(h,4*P0.length-1)),p.join("")};return!1===n?k0(c,d,l,!1,r).then(h=>f(h)):f(k0(c,d,l,!0,r))}(e,t,!0)};class Xt extends bn{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){const{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}}function Zf(...e){const t=Qo(e),n=Uh(e),{args:r,keys:o}=lD(e);if(0===r.length)return xe([],t);const i=new be(function ux(e,t,n=pr){return r=>{L0(t,()=>{const{length:o}=e,i=new Array(o);let s=o,a=o;for(let l=0;l<o;l++)L0(t,()=>{const u=xe(e[l],t);let c=!1;u.subscribe(He(r,d=>{i[l]=d,c||(c=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,t,o?s=>cD(o,s):pr));return n?i.pipe(uD(n)):i}function L0(e,t,n){e?Sn(n,e,t):t()}const Tl=Zo(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Yf(...e){return function cx(){return Hr(1)}()(xe(e,Qo(e)))}function V0(e){return new be(t=>{At(e()).subscribe(t)})}function as(e,t){const n=ce(e)?e:()=>e,r=o=>o.error(n());return new be(t?o=>t.schedule(r,0,o):r)}function Xf(){return ze((e,t)=>{let n=null;e._refCount++;const r=He(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(n=null);const o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}class $0 extends be{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Ah(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new Tt;const n=this.getSubject();t.add(this.source.subscribe(He(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=Tt.EMPTY)}return t}refCount(){return Xf()(this)}}function Vo(e){return e<=0?()=>en:ze((t,n)=>{let r=0;t.subscribe(He(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function Al(e){return ze((t,n)=>{let r=!1;t.subscribe(He(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function H0(e=fx){return ze((t,n)=>{let r=!1;t.subscribe(He(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function fx(){return new Tl}function kr(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Hn((o,i)=>e(o,i,r)):pr,Vo(1),n?Al(t):H0(()=>new Tl))}function Qf(e){return e<=0?()=>en:ze((t,n)=>{let r=[];t.subscribe(He(n,o=>{r.push(o),e<r.length&&r.shift()},()=>{for(const o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function Kf(e){return ze((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}const q="primary",ls=Symbol("RouteTitle");class yx{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){const n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}}function $o(e){return new yx(e)}function vx(e,t,n){const r=n.path.split("/");if(r.length>e.length||"full"===n.pathMatch&&(t.hasChildren()||r.length<e.length))return null;const o={};for(let i=0;i<r.length;i++){const s=r[i],a=e[i];if(s.startsWith(":"))o[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:e.slice(0,r.length),posParams:o}}function wn(e,t){const n=e?Object.keys(e):void 0,r=t?Object.keys(t):void 0;if(!n||!r||n.length!=r.length)return!1;let o;for(let i=0;i<n.length;i++)if(o=n[i],!j0(e[o],t[o]))return!1;return!0}function j0(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;const n=[...e].sort(),r=[...t].sort();return n.every((o,i)=>r[i]===o)}return e===t}function B0(e){return e.length>0?e[e.length-1]:null}function dr(e){return function lx(e){return!!e&&(e instanceof be||ce(e.lift)&&ce(e.subscribe))}(e)?e:Fi(e)?xe(Promise.resolve(e)):j(e)}const _x={exact:function G0(e,t,n){if(!Fr(e.segments,t.segments)||!Nl(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(const r in t.children)if(!e.children[r]||!G0(e.children[r],t.children[r],n))return!1;return!0},subset:W0},U0={exact:function Dx(e,t){return wn(e,t)},subset:function wx(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>j0(e[n],t[n]))},ignored:()=>!0};function z0(e,t,n){return _x[n.paths](e.root,t.root,n.matrixParams)&&U0[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function W0(e,t,n){return q0(e,t,t.segments,n)}function q0(e,t,n,r){if(e.segments.length>n.length){const o=e.segments.slice(0,n.length);return!(!Fr(o,n)||t.hasChildren()||!Nl(o,n,r))}if(e.segments.length===n.length){if(!Fr(e.segments,n)||!Nl(e.segments,n,r))return!1;for(const o in t.children)if(!e.children[o]||!W0(e.children[o],t.children[o],r))return!1;return!0}{const o=n.slice(0,e.segments.length),i=n.slice(e.segments.length);return!!(Fr(e.segments,o)&&Nl(e.segments,o,r)&&e.children[q])&&q0(e.children[q],t,i,r)}}function Nl(e,t,n){return t.every((r,o)=>U0[n](e[o].parameters,r.parameters))}class Ho{constructor(t=new ue([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=$o(this.queryParams)),this._queryParamMap}toString(){return bx.serialize(this)}}class ue{constructor(t,n){this.segments=t,this.children=n,this.parent=null,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Rl(this)}}class us{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap||(this._parameterMap=$o(this.parameters)),this._parameterMap}toString(){return X0(this)}}function Fr(e,t){return e.length===t.length&&e.every((n,r)=>n.path===t[r].path)}let cs=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:function(){return new Jf},providedIn:"root"}),e})();class Jf{parse(t){const n=new Fx(t);return new Ho(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){const n=`/${ds(t.root,!0)}`,r=function Tx(e){const t=Object.keys(e).map(n=>{const r=e[n];return Array.isArray(r)?r.map(o=>`${Ol(n)}=${Ol(o)}`).join("&"):`${Ol(n)}=${Ol(r)}`}).filter(n=>!!n);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${n}${r}${"string"==typeof t.fragment?`#${function Sx(e){return encodeURI(e)}(t.fragment)}`:""}`}}const bx=new Jf;function Rl(e){return e.segments.map(t=>X0(t)).join("/")}function ds(e,t){if(!e.hasChildren())return Rl(e);if(t){const n=e.children[q]?ds(e.children[q],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==q&&r.push(`${o}:${ds(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=function Mx(e,t){let n=[];return Object.entries(e.children).forEach(([r,o])=>{r===q&&(n=n.concat(t(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==q&&(n=n.concat(t(o,r)))}),n}(e,(r,o)=>o===q?[ds(e.children[q],!1)]:[`${o}:${ds(r,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[q]?`${Rl(e)}/${n[0]}`:`${Rl(e)}/(${n.join("//")})`}}function Z0(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ol(e){return Z0(e).replace(/%3B/gi,";")}function eh(e){return Z0(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Pl(e){return decodeURIComponent(e)}function Y0(e){return Pl(e.replace(/\+/g,"%20"))}function X0(e){return`${eh(e.path)}${function Ix(e){return Object.keys(e).map(t=>`;${eh(t)}=${eh(e[t])}`).join("")}(e.parameters)}`}const Ax=/^[^\/()?;#]+/;function th(e){const t=e.match(Ax);return t?t[0]:""}const Nx=/^[^\/()?;=#]+/,Ox=/^[^=?&#]+/,xx=/^[^&#]+/;class Fx{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ue([],{}):new ue([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[q]=new ue(t,n)),r}parseSegment(){const t=th(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new M(4009,!1);return this.capture(t),new us(Pl(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const n=function Rx(e){const t=e.match(Nx);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const o=th(this.remaining);o&&(r=o,this.capture(r))}t[Pl(n)]=Pl(r)}parseQueryParam(t){const n=function Px(e){const t=e.match(Ox);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const s=function kx(e){const t=e.match(xx);return t?t[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const o=Y0(n),i=Y0(r);if(t.hasOwnProperty(o)){let s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(i)}else t[o]=i}parseParens(t){const n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=th(this.remaining),o=this.remaining[r.length];if("/"!==o&&")"!==o&&";"!==o)throw new M(4010,!1);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=q);const s=this.parseChildren();n[i]=1===Object.keys(s).length?s[q]:new ue([],s),this.consumeOptional("//")}return n}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new M(4011,!1)}}function Q0(e){return e.segments.length>0?new ue([],{[q]:e}):e}function K0(e){const t={};for(const r of Object.keys(e.children)){const i=K0(e.children[r]);if(r===q&&0===i.segments.length&&i.hasChildren())for(const[s,a]of Object.entries(i.children))t[s]=a;else(i.segments.length>0||i.hasChildren())&&(t[r]=i)}return function Lx(e){if(1===e.numberOfChildren&&e.children[q]){const t=e.children[q];return new ue(e.segments.concat(t.segments),t.children)}return e}(new ue(e.segments,t))}function Lr(e){return e instanceof Ho}function J0(e){let t;const o=Q0(function n(i){const s={};for(const l of i.children){const u=n(l);s[l.outlet]=u}const a=new ue(i.url,s);return i===e&&(t=a),a}(e.root));return t??o}function ew(e,t,n,r){let o=e;for(;o.parent;)o=o.parent;if(0===t.length)return nh(o,o,o,n,r);const i=function $x(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new nw(!0,0,e);let t=0,n=!1;const r=e.reduce((o,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const a={};return Object.entries(i.outlets).forEach(([l,u])=>{a[l]="string"==typeof u?u.split("/"):u}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return"string"!=typeof i?[...o,i]:0===s?(i.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?n=!0:".."===a?t++:""!=a&&o.push(a))}),o):[...o,i]},[]);return new nw(n,t,r)}(t);if(i.toRoot())return nh(o,o,new ue([],{}),n,r);const s=function Hx(e,t,n){if(e.isAbsolute)return new kl(t,!0,0);if(!n)return new kl(t,!1,NaN);if(null===n.parent)return new kl(n,!0,0);const r=xl(e.commands[0])?0:1;return function jx(e,t,n){let r=e,o=t,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new M(4005,!1);o=r.segments.length}return new kl(r,!1,o-i)}(n,n.segments.length-1+r,e.numberOfDoubleDots)}(i,o,e),a=s.processChildren?hs(s.segmentGroup,s.index,i.commands):rw(s.segmentGroup,s.index,i.commands);return nh(o,s.segmentGroup,a,n,r)}function xl(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function fs(e){return"object"==typeof e&&null!=e&&e.outlets}function nh(e,t,n,r,o){let s,i={};r&&Object.entries(r).forEach(([l,u])=>{i[l]=Array.isArray(u)?u.map(c=>`${c}`):`${u}`}),s=e===t?n:tw(e,t,n);const a=Q0(K0(s));return new Ho(a,i,o)}function tw(e,t,n){const r={};return Object.entries(e.children).forEach(([o,i])=>{r[o]=i===t?n:tw(i,t,n)}),new ue(e.segments,r)}class nw{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&xl(r[0]))throw new M(4003,!1);const o=r.find(fs);if(o&&o!==B0(r))throw new M(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class kl{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}}function rw(e,t,n){if(e||(e=new ue([],{})),0===e.segments.length&&e.hasChildren())return hs(e,t,n);const r=function Ux(e,t,n){let r=0,o=t;const i={match:!1,pathIndex:0,commandIndex:0};for(;o<e.segments.length;){if(r>=n.length)return i;const s=e.segments[o],a=n[r];if(fs(a))break;const l=`${a}`,u=r<n.length-1?n[r+1]:null;if(o>0&&void 0===l)break;if(l&&u&&"object"==typeof u&&void 0===u.outlets){if(!iw(l,u,s))return i;r+=2}else{if(!iw(l,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){const i=new ue(e.segments.slice(0,r.pathIndex),{});return i.children[q]=new ue(e.segments.slice(r.pathIndex),e.children),hs(i,0,o)}return r.match&&0===o.length?new ue(e.segments,{}):r.match&&!e.hasChildren()?rh(e,t,n):r.match?hs(e,0,o):rh(e,t,n)}function hs(e,t,n){if(0===n.length)return new ue(e.segments,{});{const r=function Bx(e){return fs(e[0])?e[0].outlets:{[q]:e}}(n),o={};if(!r[q]&&e.children[q]&&1===e.numberOfChildren&&0===e.children[q].segments.length){const i=hs(e.children[q],t,n);return new ue(e.segments,i.children)}return Object.entries(r).forEach(([i,s])=>{"string"==typeof s&&(s=[s]),null!==s&&(o[i]=rw(e.children[i],t,s))}),Object.entries(e.children).forEach(([i,s])=>{void 0===r[i]&&(o[i]=s)}),new ue(e.segments,o)}}function rh(e,t,n){const r=e.segments.slice(0,t);let o=0;for(;o<n.length;){const i=n[o];if(fs(i)){const l=zx(i.outlets);return new ue(r,l)}if(0===o&&xl(n[0])){r.push(new us(e.segments[t].path,ow(n[0]))),o++;continue}const s=fs(i)?i.outlets[q]:`${i}`,a=o<n.length-1?n[o+1]:null;s&&a&&xl(a)?(r.push(new us(s,ow(a))),o+=2):(r.push(new us(s,{})),o++)}return new ue(r,{})}function zx(e){const t={};return Object.entries(e).forEach(([n,r])=>{"string"==typeof r&&(r=[r]),null!==r&&(t[n]=rh(new ue([],{}),0,r))}),t}function ow(e){const t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function iw(e,t,n){return e==n.path&&wn(t,n.parameters)}const ps="imperative";class En{constructor(t,n){this.id=t,this.url=n}}class oh extends En{constructor(t,n,r="imperative",o=null){super(t,n),this.type=0,this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Vr extends En{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Fl extends En{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class gs extends En{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=16}}class ih extends En{constructor(t,n,r,o){super(t,n),this.error=r,this.target=o,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Gx extends En{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Wx extends En{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class qx extends En{constructor(t,n,r,o,i){super(t,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Zx extends En{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Yx extends En{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Xx{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Qx{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Kx{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Jx{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ek{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class tk{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class sw{constructor(t,n,r){this.routerEvent=t,this.position=n,this.anchor=r,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class nk{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new ms,this.attachRef=null}}let ms=(()=>{class e{constructor(){this.contexts=new Map}onChildOutletCreated(n,r){const o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}onChildOutletDestroyed(n){const r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new nk,this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class aw{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){const n=sh(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){const n=sh(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){const n=ah(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return ah(t,this._root).map(n=>n.value)}}function sh(e,t){if(e===t.value)return t;for(const n of t.children){const r=sh(e,n);if(r)return r}return null}function ah(e,t){if(e===t.value)return[t];for(const n of t.children){const r=ah(e,n);if(r.length)return r.unshift(t),r}return[]}class jn{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}}function jo(e){const t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}class lw extends aw{constructor(t,n){super(t),this.snapshot=n,lh(this,t)}toString(){return this.snapshot.toString()}}function uw(e,t){const n=function rk(e,t){const s=new Ll([],{},{},"",{},q,t,null,{});return new dw("",new jn(s,[]))}(0,t),r=new Xt([new us("",{})]),o=new Xt({}),i=new Xt({}),s=new Xt({}),a=new Xt(""),l=new Bn(r,o,s,a,i,q,t,n.root);return l.snapshot=n.root,new lw(new jn(l,[]),n)}class Bn{constructor(t,n,r,o,i,s,a,l){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(ne(u=>u[ls]))??j(void 0),this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i}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(ne(t=>$o(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(ne(t=>$o(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function cw(e,t="emptyOnly"){const n=e.pathFromRoot;let r=0;if("always"!==t)for(r=n.length-1;r>=1;){const o=n[r],i=n[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(i.component)break;r--}}return function ok(e){return e.reduce((t,n)=>({params:{...t.params,...n.params},data:{...t.data,...n.data},resolve:{...n.data,...t.resolve,...n.routeConfig?.data,...n._resolvedData}}),{params:{},data:{},resolve:{}})}(n.slice(r))}class Ll{get title(){return this.data?.[ls]}constructor(t,n,r,o,i,s,a,l,u){this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=l,this._resolve=u}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=$o(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=$o(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class dw extends aw{constructor(t,n){super(n),this.url=t,lh(this,n)}toString(){return fw(this._root)}}function lh(e,t){t.value._routerState=e,t.children.forEach(n=>lh(e,n))}function fw(e){const t=e.children.length>0?` { ${e.children.map(fw).join(", ")} } `:"";return`${e.value}${t}`}function uh(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,wn(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),wn(t.params,n.params)||e.paramsSubject.next(n.params),function Cx(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!wn(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.urlSubject.next(n.url),wn(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function ch(e,t){const n=wn(e.params,t.params)&&function Ex(e,t){return Fr(e,t)&&e.every((n,r)=>wn(n.parameters,t[r].parameters))}(e.url,t.url);return n&&!(!e.parent!=!t.parent)&&(!e.parent||ch(e.parent,t.parent))}let dh=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=q,this.activateEvents=new Me,this.deactivateEvents=new Me,this.attachEvents=new Me,this.detachEvents=new Me,this.parentContexts=I(ms),this.location=I(Gt),this.changeDetector=I(Ya),this.environmentInjector=I(un),this.inputBinder=I(Vl,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){const{firstChange:r,previousValue:o}=n.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new M(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new M(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new M(4012,!1);this.location.detach();const n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){const n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new M(4013,!1);this._activatedRoute=n;const o=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new ik(n,a,o.injector);this.activated=o.createComponent(s,{index:o.length,injector:l,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=H({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Ot]}),e})();class ik{constructor(t,n,r){this.route=t,this.childContexts=n,this.parent=r}get(t,n){return t===Bn?this.route:t===ms?this.childContexts:this.parent.get(t,n)}}const Vl=new O("");let hw=(()=>{class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){const{activatedRoute:r}=n,o=Zf([r.queryParams,r.params,r.data]).pipe(_n(([i,s,a],l)=>(a={...i,...s,...a},0===l?j(a):Promise.resolve(a)))).subscribe(i=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==r||null===r.component)return void this.unsubscribeFromRouteData(n);const s=function YN(e){const t=re(e);if(!t)return null;const n=new Ni(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone}}}(r.component);if(s)for(const{templateName:a}of s.inputs)n.activatedComponentRef.setInput(a,i[a]);else this.unsubscribeFromRouteData(n)});this.outletDataSubscriptions.set(n,o)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();function ys(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=t.value;const o=function ak(e,t,n){return t.children.map(r=>{for(const o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return ys(e,r,o);return ys(e,r)})}(e,t,n);return new jn(r,o)}{if(e.shouldAttach(t.value)){const i=e.retrieve(t.value);if(null!==i){const s=i.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>ys(e,a)),s}}const r=function lk(e){return new Bn(new Xt(e.url),new Xt(e.params),new Xt(e.queryParams),new Xt(e.fragment),new Xt(e.data),e.outlet,e.component,e)}(t.value),o=t.children.map(i=>ys(e,i));return new jn(r,o)}}const fh="ngNavigationCancelingError";function pw(e,t){const{redirectTo:n,navigationBehaviorOptions:r}=Lr(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=gw(!1,0,t);return o.url=n,o.navigationBehaviorOptions=r,o}function gw(e,t,n){const r=new Error("NavigationCancelingError: "+(e||""));return r[fh]=!0,r.cancellationCode=t,n&&(r.url=n),r}function mw(e){return yw(e)&&Lr(e.url)}function yw(e){return e&&e[fh]}let vw=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=_t({type:e,selectors:[["ng-component"]],standalone:!0,features:[Uv],decls:1,vars:0,template:function(n,r){1&n&&oe(0,"router-outlet")},dependencies:[dh],encapsulation:2}),e})();function hh(e){const t=e.children&&e.children.map(hh),n=t?{...e,children:t}:{...e};return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==q&&(n.component=vw),n}function Qt(e){return e.outlet||q}function vs(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){const n=t.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}class gk{constructor(t,n,r,o,i){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(t){const n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),uh(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){const o=jo(n);t.children.forEach(i=>{const s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(t,n,r){const o=t.value,i=n?n.value:null;if(o===i)if(o.component){const s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else i&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){const r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=jo(t);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);if(r&&r.outlet){const s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){const r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=jo(t);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){const o=jo(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new tk(i.value.snapshot))}),t.children.length&&this.forwardEvent(new Jx(t.value.snapshot))}activateRoutes(t,n,r){const o=t.value,i=n?n.value:null;if(uh(o),o===i)if(o.component){const s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(o.component){const s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),uh(a.route.value),this.activateChildRoutes(t,null,s.children)}else{const a=vs(o.snapshot);s.attachRef=null,s.route=o,s.injector=a,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,r)}}class Cw{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class $l{constructor(t,n){this.component=t,this.route=n}}function mk(e,t,n){const r=e._root;return Cs(r,t?t._root:null,n,[r.value])}function Bo(e,t){const n=Symbol(),r=t.get(e,n);return r===n?"function"!=typeof e||function P1(e){return null!==Is(e)}(e)?t.get(e):e:r}function Cs(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=jo(t);return e.children.forEach(s=>{(function vk(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){const l=function Ck(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Fr(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Fr(e.url,t.url)||!wn(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ch(e,t)||!wn(e.queryParams,t.queryParams);default:return!ch(e,t)}}(s,i,i.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new Cw(r)):(i.data=s.data,i._resolvedData=s._resolvedData),Cs(e,t,i.component?a?a.children:null:n,r,o),l&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new $l(a.outlet.component,s))}else s&&_s(t,a,o),o.canActivateChecks.push(new Cw(r)),Cs(e,null,i.component?a?a.children:null:n,r,o)})(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>_s(a,n.getContext(s),o)),o}function _s(e,t,n){const r=jo(e),o=e.value;Object.entries(r).forEach(([i,s])=>{_s(s,o.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new $l(o.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,o))}function Ds(e){return"function"==typeof e}function _w(e){return e instanceof Tl||"EmptyError"===e?.name}const Hl=Symbol("INITIAL_VALUE");function Uo(){return _n(e=>Zf(e.map(t=>t.pipe(Vo(1),function dx(...e){const t=Qo(e);return ze((n,r)=>{(t?Yf(e,n,t):Yf(e,n)).subscribe(r)})}(Hl)))).pipe(ne(t=>{for(const n of t)if(!0!==n){if(n===Hl)return Hl;if(!1===n||n instanceof Ho)return n}return!0}),Hn(t=>t!==Hl),Vo(1)))}function Dw(e){return function Kw(...e){return Sh(e)}(J(t=>{if(Lr(t))throw pw(0,t)}),ne(t=>!0===t))}class jl{constructor(t){this.segmentGroup=t||null}}class ww{constructor(t){this.urlTree=t}}function zo(e){return as(new jl(e))}function Ew(e){return as(new ww(e))}class $k{constructor(t,n){this.urlSerializer=t,this.urlTree=n}noMatchError(t){return new M(4002,!1)}lineralizeSegments(t,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),0===o.numberOfChildren)return j(r);if(o.numberOfChildren>1||!o.children[q])return as(new M(4e3,!1));o=o.children[q]}}applyRedirectCommands(t,n,r){return this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r)}applyRedirectCreateUrlTree(t,n,r,o){const i=this.createSegmentGroup(t,n.root,r,o);return new Ho(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){const r={};return Object.entries(t).forEach(([o,i])=>{if("string"==typeof i&&i.startsWith(":")){const a=i.substring(1);r[o]=n[a]}else r[o]=i}),r}createSegmentGroup(t,n,r,o){const i=this.createSegments(t,n.segments,r,o);let s={};return Object.entries(n.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(t,l,r,o)}),new ue(i,s)}createSegments(t,n,r,o){return n.map(i=>i.path.startsWith(":")?this.findPosParam(t,i,o):this.findOrReturn(i,r))}findPosParam(t,n,r){const o=r[n.path.substring(1)];if(!o)throw new M(4001,!1);return o}findOrReturn(t,n){let r=0;for(const o of n){if(o.path===t.path)return n.splice(r),o;r++}return t}}const ph={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Hk(e,t,n,r,o){const i=gh(e,t,n);return i.matched?(r=function uk(e,t){return e.providers&&!e._injector&&(e._injector=cd(e.providers,t,`Route: ${e.path}`)),e._injector??t}(t,r),function Fk(e,t,n,r){const o=t.canMatch;return o&&0!==o.length?j(o.map(s=>{const a=Bo(s,e);return dr(function bk(e){return e&&Ds(e.canMatch)}(a)?a.canMatch(t,n):e.runInContext(()=>a(t,n)))})).pipe(Uo(),Dw()):j(!0)}(r,t,n).pipe(ne(s=>!0===s?i:{...ph}))):j(i)}function gh(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{...ph}:{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};const o=(t.matcher||vx)(n,e,t);if(!o)return{...ph};const i={};Object.entries(o.posParams??{}).forEach(([a,l])=>{i[a]=l.path});const s=o.consumed.length>0?{...i,...o.consumed[o.consumed.length-1].parameters}:i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:n.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function Mw(e,t,n,r){return n.length>0&&function Uk(e,t,n){return n.some(r=>Bl(e,t,r)&&Qt(r)!==q)}(e,n,r)?{segmentGroup:new ue(t,Bk(r,new ue(n,e.children))),slicedSegments:[]}:0===n.length&&function zk(e,t,n){return n.some(r=>Bl(e,t,r))}(e,n,r)?{segmentGroup:new ue(e.segments,jk(e,0,n,r,e.children)),slicedSegments:n}:{segmentGroup:new ue(e.segments,e.children),slicedSegments:n}}function jk(e,t,n,r,o){const i={};for(const s of r)if(Bl(e,n,s)&&!o[Qt(s)]){const a=new ue([],{});i[Qt(s)]=a}return{...o,...i}}function Bk(e,t){const n={};n[q]=t;for(const r of e)if(""===r.path&&Qt(r)!==q){const o=new ue([],{});n[Qt(r)]=o}return n}function Bl(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}class Zk{constructor(t,n,r,o,i,s,a){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.allowRedirects=!0,this.applyRedirects=new $k(this.urlSerializer,this.urlTree)}noMatchError(t){return new M(4002,!1)}recognize(){const t=Mw(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,q).pipe(de(n=>{if(n instanceof ww)return this.allowRedirects=!1,this.urlTree=n.urlTree,this.match(n.urlTree);throw n instanceof jl?this.noMatchError(n):n}),ne(n=>{const r=new Ll([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},q,this.rootComponentType,null,{}),o=new jn(r,n),i=new dw("",o),s=function Vx(e,t,n=null,r=null){return ew(J0(e),t,n,r)}(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(i._root),{state:i,tree:s}}))}match(t){return this.processSegmentGroup(this.injector,this.config,t.root,q).pipe(de(r=>{throw r instanceof jl?this.noMatchError(r):r}))}inheritParamsAndData(t){const n=t.value,r=cw(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(t,n,r,o){return 0===r.segments.length&&r.hasChildren()?this.processChildren(t,n,r):this.processSegment(t,n,r,r.segments,o,!0)}processChildren(t,n,r){const o=[];for(const i of Object.keys(r.children))"primary"===i?o.unshift(i):o.push(i);return xe(o).pipe(Po(i=>{const s=r.children[i],a=function hk(e,t){const n=e.filter(r=>Qt(r)===t);return n.push(...e.filter(r=>Qt(r)!==t)),n}(n,i);return this.processSegmentGroup(t,a,s,i)}),function px(e,t){return ze(function hx(e,t,n,r,o){return(i,s)=>{let a=n,l=t,u=0;i.subscribe(He(s,c=>{const d=u++;l=a?e(l,c,d):(a=!0,c),r&&s.next(l)},o&&(()=>{a&&s.next(l),s.complete()})))}}(e,t,arguments.length>=2,!0))}((i,s)=>(i.push(...s),i)),Al(null),function gx(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Hn((o,i)=>e(o,i,r)):pr,Qf(1),n?Al(t):H0(()=>new Tl))}(),Ge(i=>{if(null===i)return zo(r);const s=bw(i);return function Yk(e){e.sort((t,n)=>t.value.outlet===q?-1:n.value.outlet===q?1:t.value.outlet.localeCompare(n.value.outlet))}(s),j(s)}))}processSegment(t,n,r,o,i,s){return xe(n).pipe(Po(a=>this.processSegmentAgainstRoute(a._injector??t,n,a,r,o,i,s).pipe(de(l=>{if(l instanceof jl)return j(null);throw l}))),kr(a=>!!a),de(a=>{if(_w(a))return function Wk(e,t,n){return 0===t.length&&!e.children[n]}(r,o,i)?j([]):zo(r);throw a}))}processSegmentAgainstRoute(t,n,r,o,i,s,a){return function Gk(e,t,n,r){return!!(Qt(e)===r||r!==q&&Bl(t,n,e))&&("**"===e.path||gh(t,e,n).matched)}(r,o,i,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,o,r,i,s,a):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,o,n,r,i,s):zo(o):zo(o)}expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,r,o,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o){const i=this.applyRedirects.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?Ew(i):this.applyRedirects.lineralizeSegments(r,i).pipe(Ge(s=>{const a=new ue(s,{});return this.processSegment(t,n,a,s,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s){const{matched:a,consumedSegments:l,remainingSegments:u,positionalParamSegments:c}=gh(n,o,i);if(!a)return zo(n);const d=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,c);return o.redirectTo.startsWith("/")?Ew(d):this.applyRedirects.lineralizeSegments(o,d).pipe(Ge(f=>this.processSegment(t,r,n,f.concat(u),s,!1)))}matchSegmentAgainstRoute(t,n,r,o,i,s){let a;if("**"===r.path){const l=o.length>0?B0(o).parameters:{};a=j({snapshot:new Ll(o,l,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Sw(r),Qt(r),r.component??r._loadedComponent??null,r,Iw(r)),consumedSegments:[],remainingSegments:[]}),n.children={}}else a=Hk(n,r,o,t).pipe(ne(({matched:l,consumedSegments:u,remainingSegments:c,parameters:d})=>l?{snapshot:new Ll(u,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Sw(r),Qt(r),r.component??r._loadedComponent??null,r,Iw(r)),consumedSegments:u,remainingSegments:c}:null));return a.pipe(_n(l=>null===l?zo(n):this.getChildConfig(t=r._injector??t,r,o).pipe(_n(({routes:u})=>{const c=r._loadedInjector??t,{snapshot:d,consumedSegments:f,remainingSegments:h}=l,{segmentGroup:p,slicedSegments:v}=Mw(n,f,h,u);if(0===v.length&&p.hasChildren())return this.processChildren(c,u,p).pipe(ne(b=>null===b?null:[new jn(d,b)]));if(0===u.length&&0===v.length)return j([new jn(d,[])]);const w=Qt(r)===i;return this.processSegment(c,u,p,v,w?q:i,!0).pipe(ne(b=>[new jn(d,b)]))}))))}getChildConfig(t,n,r){return n.children?j({routes:n.children,injector:t}):n.loadChildren?void 0!==n._loadedRoutes?j({routes:n._loadedRoutes,injector:n._loadedInjector}):function kk(e,t,n,r){const o=t.canLoad;return void 0===o||0===o.length?j(!0):j(o.map(s=>{const a=Bo(s,e);return dr(function Dk(e){return e&&Ds(e.canLoad)}(a)?a.canLoad(t,n):e.runInContext(()=>a(t,n)))})).pipe(Uo(),Dw())}(t,n,r).pipe(Ge(o=>o?this.configLoader.loadChildren(t,n).pipe(J(i=>{n._loadedRoutes=i.routes,n._loadedInjector=i.injector})):function Vk(e){return as(gw(!1,3))}())):j({routes:[],injector:t})}}function Xk(e){const t=e.value.routeConfig;return t&&""===t.path}function bw(e){const t=[],n=new Set;for(const r of e){if(!Xk(r)){t.push(r);continue}const o=t.find(i=>r.value.routeConfig===i.value.routeConfig);void 0!==o?(o.children.push(...r.children),n.add(o)):t.push(r)}for(const r of n){const o=bw(r.children);t.push(new jn(r.value,o))}return t.filter(r=>!n.has(r))}function Sw(e){return e.data||{}}function Iw(e){return e.resolve||{}}function Tw(e){return"string"==typeof e.title||null===e.title}function mh(e){return _n(t=>{const n=e(t);return n?xe(n).pipe(ne(()=>t)):j(t)})}const Go=new O("ROUTES");let yh=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=I(OC)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return j(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);const r=dr(n.loadComponent()).pipe(ne(Aw),J(i=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=i}),Kf(()=>{this.componentLoaders.delete(n)})),o=new $0(r,()=>new bn).pipe(Xf());return this.componentLoaders.set(n,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return j({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const i=this.loadModuleFactoryOrRoutes(r.loadChildren).pipe(ne(a=>{this.onLoadEndListener&&this.onLoadEndListener(r);let l,u;return Array.isArray(a)?u=a:(l=a.create(n).injector,u=l.get(Go,[],L.Self|L.Optional).flat()),{routes:u.map(hh),injector:l}}),Kf(()=>{this.childrenLoaders.delete(r)})),s=new $0(i,()=>new bn).pipe(Xf());return this.childrenLoaders.set(r,s),s}loadModuleFactoryOrRoutes(n){return dr(n()).pipe(ne(Aw),Ge(r=>r instanceof jv||Array.isArray(r)?j(r):xe(this.compiler.compileModuleAsync(r))))}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Aw(e){return function rF(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let Ul=(()=>{class e{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new bn,this.configLoader=I(yh),this.environmentInjector=I(un),this.urlSerializer=I(cs),this.rootContexts=I(ms),this.inputBindingEnabled=null!==I(Vl,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>j(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new Qx(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new Xx(o))}complete(){this.transitions?.complete()}handleNavigationRequest(n){const r=++this.navigationId;this.transitions?.next({...this.transitions.value,...n,id:r})}setupNavigations(n){return this.transitions=new Xt({id:0,currentUrlTree:n.currentUrlTree,currentRawUrl:n.currentUrlTree,extractedUrl:n.urlHandlingStrategy.extract(n.currentUrlTree),urlAfterRedirects:n.urlHandlingStrategy.extract(n.currentUrlTree),rawUrl:n.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:ps,restoredState:null,currentSnapshot:n.routerState.snapshot,targetSnapshot:null,currentRouterState:n.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Hn(r=>0!==r.id),ne(r=>({...r,extractedUrl:n.urlHandlingStrategy.extract(r.rawUrl)})),_n(r=>{let o=!1,i=!1;return j(r).pipe(J(s=>{this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),_n(s=>{const a=n.browserUrlTree.toString(),l=!n.navigated||s.extractedUrl.toString()!==a||a!==n.currentUrlTree.toString();if(!l&&"reload"!==(s.extras.onSameUrlNavigation??n.onSameUrlNavigation)){const c="";return this.events.next(new gs(s.id,n.serializeUrl(r.rawUrl),c,0)),n.rawUrlTree=s.rawUrl,s.resolve(null),en}if(n.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return Nw(s.source)&&(n.browserUrlTree=s.extractedUrl),j(s).pipe(_n(c=>{const d=this.transitions?.getValue();return this.events.next(new oh(c.id,this.urlSerializer.serialize(c.extractedUrl),c.source,c.restoredState)),d!==this.transitions?.getValue()?en:Promise.resolve(c)}),function Qk(e,t,n,r,o,i){return Ge(s=>function qk(e,t,n,r,o,i,s="emptyOnly"){return new Zk(e,t,n,r,o,s,i).recognize()}(e,t,n,r,s.extractedUrl,o,i).pipe(ne(({state:a,tree:l})=>({...s,targetSnapshot:a,urlAfterRedirects:l}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,n.paramsInheritanceStrategy),J(c=>{if(r.targetSnapshot=c.targetSnapshot,r.urlAfterRedirects=c.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:c.urlAfterRedirects},"eager"===n.urlUpdateStrategy){if(!c.extras.skipLocationChange){const f=n.urlHandlingStrategy.merge(c.urlAfterRedirects,c.rawUrl);n.setBrowserUrl(f,c)}n.browserUrlTree=c.urlAfterRedirects}const d=new Gx(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}));if(l&&n.urlHandlingStrategy.shouldProcessUrl(n.rawUrlTree)){const{id:c,extractedUrl:d,source:f,restoredState:h,extras:p}=s,v=new oh(c,this.urlSerializer.serialize(d),f,h);this.events.next(v);const w=uw(0,this.rootComponentType).snapshot;return j(r={...s,targetSnapshot:w,urlAfterRedirects:d,extras:{...p,skipLocationChange:!1,replaceUrl:!1}})}{const c="";return this.events.next(new gs(s.id,n.serializeUrl(r.extractedUrl),c,1)),n.rawUrlTree=s.rawUrl,s.resolve(null),en}}),J(s=>{const a=new Wx(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),ne(s=>r={...s,guards:mk(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function Ik(e,t){return Ge(n=>{const{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return 0===s.length&&0===i.length?j({...n,guardsResult:!0}):function Tk(e,t,n,r){return xe(e).pipe(Ge(o=>function xk(e,t,n,r,o){const i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return i&&0!==i.length?j(i.map(a=>{const l=vs(t)??o,u=Bo(a,l);return dr(function Mk(e){return e&&Ds(e.canDeactivate)}(u)?u.canDeactivate(e,t,n,r):l.runInContext(()=>u(e,t,n,r))).pipe(kr())})).pipe(Uo()):j(!0)}(o.component,o.route,n,t,r)),kr(o=>!0!==o,!0))}(s,r,o,e).pipe(Ge(a=>a&&function _k(e){return"boolean"==typeof e}(a)?function Ak(e,t,n,r){return xe(t).pipe(Po(o=>Yf(function Rk(e,t){return null!==e&&t&&t(new Kx(e)),j(!0)}(o.route.parent,r),function Nk(e,t){return null!==e&&t&&t(new ek(e)),j(!0)}(o.route,r),function Pk(e,t,n){const r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(s=>function yk(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(s)).filter(s=>null!==s).map(s=>V0(()=>j(s.guards.map(l=>{const u=vs(s.node)??n,c=Bo(l,u);return dr(function Ek(e){return e&&Ds(e.canActivateChild)}(c)?c.canActivateChild(r,e):u.runInContext(()=>c(r,e))).pipe(kr())})).pipe(Uo())));return j(i).pipe(Uo())}(e,o.path,n),function Ok(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||0===r.length)return j(!0);const o=r.map(i=>V0(()=>{const s=vs(t)??n,a=Bo(i,s);return dr(function wk(e){return e&&Ds(e.canActivate)}(a)?a.canActivate(t,e):s.runInContext(()=>a(t,e))).pipe(kr())}));return j(o).pipe(Uo())}(e,o.route,n))),kr(o=>!0!==o,!0))}(r,i,e,t):j(a)),ne(a=>({...n,guardsResult:a})))})}(this.environmentInjector,s=>this.events.next(s)),J(s=>{if(r.guardsResult=s.guardsResult,Lr(s.guardsResult))throw pw(0,s.guardsResult);const a=new qx(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),Hn(s=>!!s.guardsResult||(n.restoreHistory(s),this.cancelNavigationTransition(s,"",3),!1)),mh(s=>{if(s.guards.canActivateChecks.length)return j(s).pipe(J(a=>{const l=new Zx(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}),_n(a=>{let l=!1;return j(a).pipe(function Kk(e,t){return Ge(n=>{const{targetSnapshot:r,guards:{canActivateChecks:o}}=n;if(!o.length)return j(n);let i=0;return xe(o).pipe(Po(s=>function Jk(e,t,n,r){const o=e.routeConfig,i=e._resolve;return void 0!==o?.title&&!Tw(o)&&(i[ls]=o.title),function eF(e,t,n,r){const o=function tF(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===o.length)return j({});const i={};return xe(o).pipe(Ge(s=>function nF(e,t,n,r){const o=vs(t)??r,i=Bo(e,o);return dr(i.resolve?i.resolve(t,n):o.runInContext(()=>i(t,n)))}(e[s],t,n,r).pipe(kr(),J(a=>{i[s]=a}))),Qf(1),function mx(e){return ne(()=>e)}(i),de(s=>_w(s)?en:as(s)))}(i,e,t,r).pipe(ne(s=>(e._resolvedData=s,e.data=cw(e,n).resolve,o&&Tw(o)&&(e.data[ls]=o.title),null)))}(s.route,r,e,t)),J(()=>i++),Qf(1),Ge(s=>i===o.length?j(n):en))})}(n.paramsInheritanceStrategy,this.environmentInjector),J({next:()=>l=!0,complete:()=>{l||(n.restoreHistory(a),this.cancelNavigationTransition(a,"",2))}}))}),J(a=>{const l=new Yx(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}))}),mh(s=>{const a=l=>{const u=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(l.routeConfig).pipe(J(c=>{l.component=c}),ne(()=>{})));for(const c of l.children)u.push(...a(c));return u};return Zf(a(s.targetSnapshot.root)).pipe(Al(),Vo(1))}),mh(()=>this.afterPreactivation()),ne(s=>{const a=function sk(e,t,n){const r=ys(e,t._root,n?n._root:void 0);return new lw(r,t)}(n.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return r={...s,targetRouterState:a}}),J(s=>{n.currentUrlTree=s.urlAfterRedirects,n.rawUrlTree=n.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),n.routerState=s.targetRouterState,"deferred"===n.urlUpdateStrategy&&(s.extras.skipLocationChange||n.setBrowserUrl(n.rawUrlTree,s),n.browserUrlTree=s.urlAfterRedirects)}),((e,t,n,r)=>ne(o=>(new gk(t,o.targetRouterState,o.currentRouterState,n,r).activate(e),o)))(this.rootContexts,n.routeReuseStrategy,s=>this.events.next(s),this.inputBindingEnabled),Vo(1),J({next:s=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,n.navigated=!0,this.events.next(new Vr(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(n.currentUrlTree))),n.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{o=!0}}),Kf(()=>{o||i||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),de(s=>{if(i=!0,yw(s)){mw(s)||(n.navigated=!0,n.restoreHistory(r,!0));const a=new Fl(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode);if(this.events.next(a),mw(s)){const l=n.urlHandlingStrategy.merge(s.url,n.rawUrlTree),u={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===n.urlUpdateStrategy||Nw(r.source)};n.scheduleNavigation(l,ps,null,u,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{n.restoreHistory(r,!0);const a=new ih(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);this.events.next(a);try{r.resolve(n.errorHandler(s))}catch(l){r.reject(l)}}return en}))}))}cancelNavigationTransition(n,r,o){const i=new Fl(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(i),n.resolve(!1)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Nw(e){return e!==ps}let Rw=(()=>{class e{buildTitle(n){let r,o=n.root;for(;void 0!==o;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===q);return r}getResolvedTitleForRoute(n){return n.data[ls]}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:function(){return I(oF)},providedIn:"root"}),e})(),oF=(()=>{class e extends Rw{constructor(n){super(),this.title=n}updateTitle(n){const r=this.buildTitle(n);void 0!==r&&this.title.setTitle(r)}}return e.\u0275fac=function(n){return new(n||e)(R(oD))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),iF=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:function(){return I(aF)},providedIn:"root"}),e})();class sF{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}}let aF=(()=>{class e extends sF{}return e.\u0275fac=function(){let t;return function(r){return(t||(t=Ze(e)))(r||e)}}(),e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const zl=new O("",{providedIn:"root",factory:()=>({})});let lF=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:function(){return I(uF)},providedIn:"root"}),e})(),uF=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var It=(()=>((It=It||{})[It.COMPLETE=0]="COMPLETE",It[It.FAILED=1]="FAILED",It[It.REDIRECTING=2]="REDIRECTING",It))();function Ow(e,t){e.events.pipe(Hn(n=>n instanceof Vr||n instanceof Fl||n instanceof ih||n instanceof gs),ne(n=>n instanceof Vr||n instanceof gs?It.COMPLETE:n instanceof Fl&&(0===n.code||1===n.code)?It.REDIRECTING:It.FAILED),Hn(n=>n!==It.REDIRECTING),Vo(1)).subscribe(()=>{t()})}function cF(e){throw e}function dF(e,t,n){return t.parse("/")}const fF={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},hF={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Ue=(()=>{class e{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){if("computed"===this.canceledNavigationResolution)return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=I(RC),this.isNgZoneEnabled=!1,this.options=I(zl,{optional:!0})||{},this.pendingTasks=I(p_),this.errorHandler=this.options.errorHandler||cF,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||dF,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=I(lF),this.routeReuseStrategy=I(iF),this.titleStrategy=I(Rw),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=I(Go,{optional:!0})?.flat()??[],this.navigationTransitions=I(Ul),this.urlSerializer=I(cs),this.location=I(qd),this.componentInputBindingEnabled=!!I(Vl,{optional:!0}),this.isNgZoneEnabled=I(ve)instanceof ve&&ve.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Ho,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=uw(0,null),this.navigationTransitions.setupNavigations(this).subscribe(n=>{this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId??0},n=>{this.console.warn(`Unhandled Navigation Error: ${n}`)})}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const n=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),ps,n)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(n=>{const r="popstate"===n.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{this.navigateToSyncWithBrowser(n.url,r,n.state)},0)}))}navigateToSyncWithBrowser(n,r,o){const i={replaceUrl:!0},s=o?.navigationId?o:null;if(o){const l={...o};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(i.state=l)}const a=this.parseUrl(n);this.scheduleNavigation(a,r,s,i)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(hh),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(n,r={}){const{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:l}=r,u=l?this.currentUrlTree.fragment:s;let d,c=null;switch(a){case"merge":c={...this.currentUrlTree.queryParams,...i};break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}null!==c&&(c=this.removeEmptyProps(c));try{d=J0(o?o.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof n[0]||!n[0].startsWith("/"))&&(n=[]),d=this.currentUrlTree.root}return ew(d,n,c,u??null)}navigateByUrl(n,r={skipLocationChange:!1}){const o=Lr(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,ps,null,r)}navigate(n,r={skipLocationChange:!1}){return function pF(e){for(let t=0;t<e.length;t++)if(null==e[t])throw new M(4008,!1)}(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){let r;try{r=this.urlSerializer.parse(n)}catch(o){r=this.malformedUriErrorHandler(o,this.urlSerializer,n)}return r}isActive(n,r){let o;if(o=!0===r?{...fF}:!1===r?{...hF}:r,Lr(n))return z0(this.currentUrlTree,n,o);const i=this.parseUrl(n);return z0(this.currentUrlTree,i,o)}removeEmptyProps(n){return Object.keys(n).reduce((r,o)=>{const i=n[o];return null!=i&&(r[o]=i),r},{})}scheduleNavigation(n,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let a,l,u;s?(a=s.resolve,l=s.reject,u=s.promise):u=new Promise((d,f)=>{a=d,l=f});const c=this.pendingTasks.add();return Ow(this,()=>{Promise.resolve().then(()=>this.pendingTasks.remove(c))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:i,resolve:a,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(d=>Promise.reject(d))}setBrowserUrl(n,r){const o=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){const s={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId)};this.location.replaceState(o,"",s)}else{const i={...r.extras.state,...this.generateNgRouterState(r.id,(this.browserPageId??0)+1)};this.location.go(o,"",i)}}restoreHistory(n,r=!1){if("computed"===this.canceledNavigationResolution){const i=this.currentPageId-(this.browserPageId??this.currentPageId);0!==i?this.location.historyGo(i):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===i&&(this.resetState(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=n.currentRouterState,this.currentUrlTree=n.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return"computed"===this.canceledNavigationResolution?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Wo=(()=>{class e{constructor(n,r,o,i,s,a){this.router=n,this.route=r,this.tabIndexAttribute=o,this.renderer=i,this.el=s,this.locationStrategy=a,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new bn;const l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=n.events.subscribe(u=>{u instanceof Vr&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(n){this._preserveFragment=Ao(n)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(n){this._skipLocationChange=Ao(n)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(n){this._replaceUrl=Ao(n)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(n){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){null!=n?(this.commands=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(n,r,o,i,s){return!!(null===this.urlTree||this.isAnchorElement&&(0!==n||r||o||i||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 n=null===this.href?null:function tm(e,t,n){return function Pb(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?em:lc}(t,n)(e)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(n,r){const o=this.renderer,i=this.el.nativeElement;null!==r?o.setAttribute(i,n,r):o.removeAttribute(i,n)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return e.\u0275fac=function(n){return new(n||e)(D(Ue),D(Bn),function Qs(e){return function nM(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let o=0;for(;o<r;){const i=n[o];if(op(i))break;if(0===i)o+=2;else if("number"==typeof i)for(o++;o<r&&"string"==typeof n[o];)o++;else{if(i===t)return n[o+1];o+=2}}}return null}(qe(),e)}("tabindex"),D(xn),D(Mt),D(rr))},e.\u0275dir=H({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(n,r){1&n&&P("click",function(i){return r.onClick(i.button,i.ctrlKey,i.shiftKey,i.altKey,i.metaKey)}),2&n&&hn("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[Ot]}),e})(),Pw=(()=>{class e{get isActive(){return this._isActive}constructor(n,r,o,i,s){this.router=n,this.element=r,this.renderer=o,this.cdr=i,this.link=s,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new Me,this.routerEventsSubscription=n.events.subscribe(a=>{a instanceof Vr&&this.update()})}ngAfterContentInit(){j(this.links.changes,j(null)).pipe(Hr()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const n=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=xe(n).pipe(Hr()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(n){const r=Array.isArray(n)?n:n.split(" ");this.classes=r.filter(o=>!!o)}ngOnChanges(n){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||Promise.resolve().then(()=>{const n=this.hasActiveLinks();this._isActive!==n&&(this._isActive=n,this.cdr.markForCheck(),this.classes.forEach(r=>{n?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),n&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(n))})}isLinkActive(n){const r=function gF(e){return!!e.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>!!o.urlTree&&n.isActive(o.urlTree,r)}hasActiveLinks(){const n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}}return e.\u0275fac=function(n){return new(n||e)(D(Ue),D(Mt),D(xn),D(Ya),D(Wo,8))},e.\u0275dir=H({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(n,r,o){if(1&n&&function dC(e,t,n,r){const o=ee();if(o.firstCreatePass){const i=qe();hC(o,new uC(t,n,r),i.index),function k2(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(o,e),2==(2&n)&&(o.staticContentQueries=!0)}fC(o,E(),n)}(o,Wo,5),2&n){let i;Gi(i=Wi())&&(r.links=i)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Ot]}),e})();class xw{}let mF=(()=>{class e{constructor(n,r,o,i,s){this.router=n,this.injector=o,this.preloadingStrategy=i,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(Hn(n=>n instanceof Vr),Po(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){const o=[];for(const i of r){i.providers&&!i._injector&&(i._injector=cd(i.providers,n,`Route: ${i.path}`));const s=i._injector??n,a=i._loadedInjector??s;(i.loadChildren&&!i._loadedRoutes&&void 0===i.canLoad||i.loadComponent&&!i._loadedComponent)&&o.push(this.preloadConfig(s,i)),(i.children||i._loadedRoutes)&&o.push(this.processRoutes(a,i.children??i._loadedRoutes))}return xe(o).pipe(Hr())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let o;o=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(n,r):j(null);const i=o.pipe(Ge(s=>null===s?j(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??n,s.routes))));return r.loadComponent&&!r._loadedComponent?xe([i,this.loader.loadComponent(r)]).pipe(Hr()):i})}}return e.\u0275fac=function(n){return new(n||e)(R(Ue),R(OC),R(un),R(xw),R(yh))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const vh=new O("");let kw=(()=>{class e{constructor(n,r,o,i,s={}){this.urlSerializer=n,this.transitions=r,this.viewportScroller=o,this.zone=i,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof oh?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof Vr?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof gs&&0===n.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof sw&&(n.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(n.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new sw(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return e.\u0275fac=function(n){!function km(){throw new Error("invalid")}()},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();function Un(e,t){return{\u0275kind:e,\u0275providers:t}}function Lw(){const e=I(cn);return t=>{const n=e.get(To);if(t!==n.components[0])return;const r=e.get(Ue),o=e.get(Vw);1===e.get(Ch)&&r.initialNavigation(),e.get($w,null,L.Optional)?.setUpPreloading(),e.get(vh,null,L.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}const Vw=new O("",{factory:()=>new bn}),Ch=new O("",{providedIn:"root",factory:()=>1}),$w=new O("");function _F(e){return Un(0,[{provide:$w,useExisting:mF},{provide:xw,useExisting:e}])}const Hw=new O("ROUTER_FORROOT_GUARD"),wF=[qd,{provide:cs,useClass:Jf},Ue,ms,{provide:Bn,useFactory:function Fw(e){return e.routerState.root},deps:[Ue]},yh,[]];function EF(){return new UC("Router",Ue)}let jw=(()=>{class e{constructor(n){}static forRoot(n,r){return{ngModule:e,providers:[wF,[],{provide:Go,multi:!0,useValue:n},{provide:Hw,useFactory:IF,deps:[[Ue,new ea,new ta]]},{provide:zl,useValue:r||{}},r?.useHash?{provide:rr,useClass:C_}:{provide:rr,useClass:v_},{provide:vh,useFactory:()=>{const e=I(m3),t=I(ve),n=I(zl),r=I(Ul),o=I(cs);return n.scrollOffset&&e.setOffset(n.scrollOffset),new kw(o,r,e,t,n)}},r?.preloadingStrategy?_F(r.preloadingStrategy).\u0275providers:[],{provide:UC,multi:!0,useFactory:EF},r?.initialNavigation?TF(r):[],r?.bindToComponentInputs?Un(8,[hw,{provide:Vl,useExisting:hw}]).\u0275providers:[],[{provide:Bw,useFactory:Lw},{provide:Fd,multi:!0,useExisting:Bw}]]}}static forChild(n){return{ngModule:e,providers:[{provide:Go,multi:!0,useValue:n}]}}}return e.\u0275fac=function(n){return new(n||e)(R(Hw,8))},e.\u0275mod=$t({type:e}),e.\u0275inj=Rt({}),e})();function IF(e){return"guarded"}function TF(e){return["disabled"===e.initialNavigation?Un(3,[{provide:Id,multi:!0,useFactory:()=>{const t=I(Ue);return()=>{t.setUpLocationChangeListener()}}},{provide:Ch,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?Un(2,[{provide:Ch,useValue:0},{provide:Id,multi:!0,deps:[cn],useFactory:t=>{const n=t.get(KN,Promise.resolve());return()=>n.then(()=>new Promise(r=>{const o=t.get(Ue),i=t.get(Vw);Ow(o,()=>{r(!0)}),t.get(Ul).afterPreactivation=()=>(r(!0),i.closed?j(void 0):i),o.initialNavigation()}))}}]).\u0275providers:[]]}const Bw=new O("");class tt{constructor(t,n,r){this.http=t,this.router=n,this.appMessageService=r,this.authenticated=!1,this.credentials={username:"",password:""},this.authority="none",this.httpOptions={headers:new Ye({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>{throw this.log(`${t} failed: response status = ${r.status} statusText = ${r.statusText}`),0===r.status&&!1===r.ok?new Error("Could not reach API, check your internet connection."):401===r.status&&!1===r.ok?new Error("Invalid authorization."):(console.error(r),new Error(`${t} failed: status = ${r.status}`,{cause:r}))}}log(t){this.appMessageService.add(`LoginService: ${t}`)}isAuthenticated(){return this.authenticated}getAuthorizationToken(){return`Basic ${window.btoa(this.credentials.username+":"+this.credentials.password)}`}getUsername(){return this.credentials.username}getAuthority(){return this.authority}authenticate(t){this.log(`Authenticating: ${t.username}`),this.credentials=t;const n=new Ye({"Content-Type":"application/json",Accept:"application/json",Authorization:this.getAuthorizationToken()});return this.http.get(tt.REST_URL,{headers:n}).pipe(J(r=>this.authorizationRecieved(r)),de(this.handleError("authenticating user")))}logout(){this.authenticated=!1,this.log("Logged out"),this.router.navigateByUrl("/").then(()=>{})}authorizationRecieved(t){if(this.authenticated=!0,t.authorities){let n=t.authorities[0].authority;n=n.substring(n.indexOf("_")+1),this.authority=n}this.log(`Authenticated '${t.name}' as '${this.authority}'`)}changePassword(t){this.log("Changing password.");const n=Wf(10),r=F0(t,n);let o={};return o.username=this.credentials.username,o.password=r,this.http.post(tt.REST_URL,o,this.httpOptions).pipe(J(i=>this.authorizationRecieved(i)),de(this.handleError("changePassword")))}}tt.REST_URL=Pr_restServerUrl+"/api/user",tt.\u0275fac=function(t){return new(t||tt)(R(Or),R(Ue),R(xr))},tt.\u0275prov=x({token:tt,factory:tt.\u0275fac,providedIn:"root"});const NF=["scrollMe"];function RF(e,t){if(1&e&&(g(0,"li")(1,"div",9)(2,"span",10),C(3),m(),g(4,"span",11),C(5),Jn(6,"date"),m(),g(7,"span",12),C(8),m()(),g(9,"span",13),C(10),m()()),2&e){const n=t.$implicit;_(3),K(n.id),_(2),K(er(6,4,n.dateCreated,"medium")),_(3),K(n.author),_(2),K(n.text)}}function OF(e,t){if(1&e&&(g(0,"ul",6,7),Bt(2,RF,11,7,"li",8),m()),2&e){const n=pn();_(2),A("ngForOf",n.chatMessages)}}let _h=(()=>{class e{constructor(n,r){this.chatService=n,this.loginService=r,this.disableScrollDown=!1,this.chatMessages=[],this.newMessage="",this.serviceMessage="",this.errorMessage=""}getChatMessages(){this.serviceMessage="Loading chat ...",this.chatService.getChatMessages().subscribe({next:n=>{this.chatMessages=n,this.scrollToBottom(),this.serviceMessage="Loaded chat."},error:n=>{this.serviceMessage="",this.errorMessage=`Error loading chat: ${n.message}`}})}ngOnInit(){this.loginService.isAuthenticated()&&this.getChatMessages()}sendMessage(){this.serviceMessage="Sending message ...",this.chatService.addChatMessage(this.loginService.getUsername(),this.newMessage).subscribe({next:n=>{this.chatMessages.push(n),this.serviceMessage="Send OK.",this.disableScrollDown=!1,this.scrollToBottom()},error:n=>{this.serviceMessage="",this.errorMessage=`Error loading chat: ${n.message}`}}),this.newMessage=""}ngAfterViewChecked(){this.scrollToBottom()}scrollToBottom(){try{this.myScrollContainer.nativeElement.scrollTop=this.myScrollContainer.nativeElement.scrollHeight}catch{}}}return e.\u0275fac=function(n){return new(n||e)(D(Dn),D(tt))},e.\u0275cmp=_t({type:e,selectors:[["app-chat"]],viewQuery:function(n,r){if(1&n&&Ga(NF,5),2&n){let o;Gi(o=Wi())&&(r.myScrollContainer=o.first)}},decls:11,vars:6,consts:[[1,"servicemessage",3,"hidden"],[1,"alert","servicemessage",3,"hidden"],["class","chat",4,"ngIf"],[1,"input"],["id","message-text","placeholder","hello",3,"ngModel","ngModelChange","keydown.enter"],[3,"click"],[1,"chat"],["scrollMe",""],[4,"ngFor","ngForOf"],[1,"message-title"],[1,"badge"],[1,"date"],[1,"author"],[1,"text"]],template:function(n,r){1&n&&(g(0,"p",0),C(1),m(),g(2,"p",1),C(3),m(),Bt(4,OF,3,1,"ul",2),g(5,"div",3)(6,"input",4),P("ngModelChange",function(i){return r.newMessage=i})("keydown.enter",function(){return r.sendMessage()}),m(),g(7,"button",5),P("click",function(){return r.sendMessage()}),C(8,"Send"),m(),g(9,"button",5),P("click",function(){return r.getChatMessages()}),C(10,"Reload"),m()()),2&n&&(A("hidden",""===r.serviceMessage),_(1),K(r.serviceMessage),_(1),A("hidden",""===r.errorMessage),_(1),K(r.errorMessage),_(1),A("ngIf",r.chatMessages.length),_(2),A("ngModel",r.newMessage))},dependencies:[or,sf,Lt,Cn,Yt,No],styles:[".chat[_ngcontent-%COMP%]{margin:0;list-style-type:none;padding:.1em;max-height:20em;overflow:auto;background-color:#30303030;border:solid 1px #336699}.chat[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{position:relative;left:0;margin:.1em;padding:0;border-radius:4px;border:solid 1px darkblue}.chat[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{background-color:#e6e6e688}.servicemessage[_ngcontent-%COMP%]{margin:0}.message-title[_ngcontent-%COMP%]{display:block;text-align:left;font-size:x-small}.message-title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;color:#fff}.badge[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#405061;border-radius:2px 0 0}.date[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#605061}.author[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#a0b0b1;border-radius:0 0 2px}.chat[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{align-self:center;margin:0 .1em .1em}.input[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{left:0;padding:0}.input[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;padding-right:.2em}"]}),e})();const PF=["scrollMe"];function xF(e,t){if(1&e&&(g(0,"p"),C(1),m()),2&e){const n=t.$implicit;_(1),K(n)}}function kF(e,t){if(1&e){const n=ki();g(0,"div",1)(1,"div")(2,"button",2),P("click",function(){return Zn(n),Yn(pn().appMessagesService.clear())}),C(3,"Clear messages"),m(),g(4,"h2"),C(5,"App messages"),m()(),g(6,"div",3,4),P("scroll",function(){return Zn(n),Yn(pn().onScroll())}),Bt(8,xF,2,1,"p",5),m()()}if(2&e){const n=pn();_(8),A("ngForOf",n.appMessagesService.messages)}}let FF=(()=>{class e{constructor(n){this.appMessagesService=n,this.disableScrollDown=!1}ngAfterViewChecked(){this.scrollToBottom()}onScroll(){let n=this.myScrollContainer.nativeElement;this.disableScrollDown=!(this.disableScrollDown&&n.scrollHeight-n.scrollTop===n.clientHeight)}scrollToBottom(){if(!this.disableScrollDown)try{this.myScrollContainer.nativeElement.scrollTop=this.myScrollContainer.nativeElement.scrollHeight}catch{}}}return e.\u0275fac=function(n){return new(n||e)(D(xr))},e.\u0275cmp=_t({type:e,selectors:[["app-messages"]],viewQuery:function(n,r){if(1&n&&Ga(PF,5),2&n){let o;Gi(o=Wi())&&(r.myScrollContainer=o.first)}},decls:1,vars:1,consts:[["class","app-messages",4,"ngIf"],[1,"app-messages"],["type","button",1,"clear",3,"click"],[1,"output",3,"scroll"],["scrollMe",""],[4,"ngFor","ngForOf"]],template:function(n,r){1&n&&Bt(0,kF,9,1,"div",0),2&n&&A("ngIf",r.appMessagesService.messages.length)},dependencies:[or,sf],styles:[".app-messages[_ngcontent-%COMP%]{font-size:small;color:#888;padding:.2em}.app-messages[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{float:right}h2[_ngcontent-%COMP%]{display:inline-block}.clear[_ngcontent-%COMP%]{margin:.4em}.output[_ngcontent-%COMP%]{border:2px solid #c0c0c0;min-height:4.5em;max-height:4.5em;margin:0 0 2px;padding:2px 4px;overflow-y:scroll;font-family:Monospace,Incosolata,Courier;font-size:12px;width:unset}.output[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 .1em}"]}),e})();const Uw=function(){return{exact:!0}};let LF=(()=>{class e{constructor(n){this.loginService=n,this.title="Sample Family",this.chatLoaded=!1,this.chatHidden=!0,this.linksHidden=!0,this.profileHidden=!0,this.pos1=0,this.pos2=0,this.pos3=0,this.pos4=0,this.target=null}isAppMessagesHidden(){return!(this.loginService.isAuthenticated()&&"ADMIN"===this.loginService.getAuthority())}isAuthenticated(){return this.loginService.isAuthenticated()}username(){return this.loginService.getUsername()}logout(){localStorage.setItem("username",""),localStorage.setItem("password",""),this.loginService.logout()}toggleLinks(){this.linksHidden=!this.linksHidden,this.profileHidden=!0}isLinksHidden(){return this.linksHidden}toggleProfile(){this.profileHidden=!this.profileHidden,this.linksHidden=!0}isProfileHidden(){return this.profileHidden}toggleChatHidden(){this.chatHidden=!this.chatHidden,!this.chatHidden&&!this.chatLoaded&&(this.chatComponent.getChatMessages(),this.chatLoaded=!0)}isChatHidden(){return this.chatHidden}startMouseDragging(n){0===n.button&&(n.preventDefault(),this.pos3=n.clientX,this.pos4=n.clientY,document.onmouseup=()=>this.endMouseDrag(),document.onmousemove=r=>this.mouseDragElement(r),this.target=document.getElementById("chatwindow"))}mouseDragElement(n){n.preventDefault(),this.pos1=this.pos3-n.clientX,this.pos2=this.pos4-n.clientY,this.pos3=n.clientX,this.pos4=n.clientY;let r=this.target.offsetTop-this.pos2;r<0&&(r=0),this.target.style.top=r+"px";let o=this.target.offsetLeft-this.pos1;o<0&&(o=0),this.target.style.left=o+"px"}endMouseDrag(){document.onmouseup=null,document.onmousemove=null,this.target=null}startTouchDragging(n){n.preventDefault(),this.pos3=n.targetTouches[0].clientX,this.pos4=n.targetTouches[0].clientY,document.ontouchend=()=>this.endTouchDrag(),document.ontouchmove=r=>this.touchDragElement(r),this.target=document.getElementById("chatwindow")}touchDragElement(n){n.preventDefault(),this.pos1=this.pos3-n.targetTouches[0].clientX,this.pos2=this.pos4-n.targetTouches[0].clientY,this.pos3=n.targetTouches[0].clientX,this.pos4=n.targetTouches[0].clientY;let r=this.target.offsetTop-this.pos2;r<0&&(r=0),this.target.style.top=r+"px";let o=this.target.offsetLeft-this.pos1;o<0&&(o=0),this.target.style.left=o+"px"}endTouchDrag(){document.ontouchend=null,document.ontouchmove=null,this.target=null}toggleTheme(){const n="theme-dark",r=document.querySelector(":root");if(!r)throw new Error("No root!?");r.classList.toggle(n),r.classList.contains(n)?localStorage.setItem("theme",n):localStorage.setItem("theme","theme-light")}setTheme(n){const r=document.querySelector(":root");if(!r)throw new Error("No root!?");r.classList.add(n),localStorage.setItem("theme",n)}detectTheme(){const n=localStorage.getItem("theme");"theme-dark"!==n&&"theme-light"!==n?window.matchMedia("(prefers-color-scheme: dark)").matches?this.setTheme("theme-dark"):(window.matchMedia("(prefers-color-scheme: light)"),this.setTheme("theme-light")):this.setTheme(n)}ngOnInit(){this.detectTheme()}}return e.\u0275fac=function(n){return new(n||e)(D(tt))},e.\u0275cmp=_t({type:e,selectors:[["app-root"]],viewQuery:function(n,r){if(1&n&&Ga(_h,5),2&n){let o;Gi(o=Wi())&&(r.chatComponent=o.first)}},decls:46,vars:13,consts:[[3,"hidden"],["id","toggle-links",1,"big",3,"click"],["id","toggle-profile",1,"big","float-right",3,"click"],["id","links",3,"hidden"],["routerLinkActive","active-link","routerLink","/",3,"routerLinkActiveOptions"],["routerLinkActive","active-link","routerLink","/checklists"],["routerLinkActive","active-link","routerLink","/contacts"],["routerLinkActive","active-link","routerLink","/todo"],["id","profile",1,"float-right",3,"hidden"],[3,"click"],["title","Dark theme on/off",3,"click"],["routerLinkActive","active-link","routerLink","/profile"],["id","logout",3,"click"],[1,"float-right"],["routerLinkActive","active-link","routerLink","/login"],["id","tools",3,"hidden"],["id","toolbar"],["id","chatwindow",3,"hidden"],["id","chattitlebar",3,"mousedown","touchstart"],[1,"close-button",3,"click"],["id","chatcontent"],[1,"footer",3,"hidden"]],template:function(n,r){1&n&&(g(0,"nav")(1,"span",0)(2,"button",1),P("click",function(){return r.toggleLinks()}),C(3,"\u2261"),m(),g(4,"button",2),P("click",function(){return r.toggleProfile()}),C(5),m(),g(6,"div")(7,"div",3)(8,"a",4),C(9,"Home"),m(),g(10,"a",5),C(11,"Checklists"),m(),g(12,"a",6),C(13,"Contacts"),m(),g(14,"a",7),C(15,"Todo"),m()(),g(16,"div",8)(17,"button",9),P("click",function(){return r.toggleChatHidden()}),C(18,"Toggle Chat"),m(),g(19,"button",10),P("click",function(){return r.toggleTheme()}),C(20,"\u2600 Theme"),m(),g(21,"a",11),C(22,"Profile"),m(),g(23,"a",12),P("click",function(){return r.logout()}),C(24,"Logout"),m()()()(),g(25,"span",0)(26,"h1",13),C(27),m(),g(28,"a",4),C(29,"Home"),m(),g(30,"a",14),C(31,"Login"),m()()(),g(32,"div",15)(33,"div",16)(34,"button",9),P("click",function(){return r.toggleChatHidden()}),C(35,"Toggle Chat"),m()(),g(36,"div",17)(37,"div",18),P("mousedown",function(i){return r.startMouseDragging(i)})("touchstart",function(i){return r.startTouchDragging(i)}),C(38," Chat"),g(39,"button",19),P("click",function(){return r.toggleChatHidden()}),C(40,"\u2716"),m()(),g(41,"div",20),oe(42,"app-chat"),m()()(),g(43,"main"),oe(44,"router-outlet"),m(),oe(45,"app-messages",21)),2&n&&(_(1),A("hidden",!r.isAuthenticated()),_(4),K(r.username()),_(2),A("hidden",r.isLinksHidden()),_(1),A("routerLinkActiveOptions",fd(11,Uw)),_(8),A("hidden",r.isProfileHidden()),_(9),A("hidden",r.isAuthenticated()),_(2),K(r.title),_(1),A("routerLinkActiveOptions",fd(12,Uw)),_(4),A("hidden",!r.isAuthenticated()),_(4),A("hidden",r.isChatHidden()),_(9),A("hidden",r.isAppMessagesHidden()))},dependencies:[dh,Wo,Pw,FF,_h],styles:["#toggle-links[_ngcontent-%COMP%]{border:none;background:none;padding:unset;margin:0}#toggle-profile[_ngcontent-%COMP%]{border:none;background:none;padding:unset}.big[_ngcontent-%COMP%]{font-size:x-large}.float-right[_ngcontent-%COMP%]{margin:0;float:right}nav[_ngcontent-%COMP%]{display:block;background:#93c6f948 linear-gradient(80deg,rgb(132,168,205) 05%,rgb(145,185,224) 30%,rgba(0,0,0,0) 100%);border-bottom:1px solid #336699;padding:.4em}nav[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0;float:right}nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-right:.2rem;padding:.2rem .3rem;text-decoration:none;text-shadow:2px 2px 2px #40404080;display:inline-block;border-radius:2px}nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#fff;background-color:#42545c;-webkit-text-decoration:underline #93c6f9;text-decoration:underline #93c6f9}.active-link[_ngcontent-%COMP%]{background-color:#00000048}#logout[_ngcontent-%COMP%]{color:#ef4040;cursor:pointer}#logout[_ngcontent-%COMP%]:hover{background-color:#604040}#toolbar[_ngcontent-%COMP%]{margin-top:-.4em;margin-bottom:-.4em;margin-left:.2em}#toolbar[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{border:1px solid #40404080}#chatwindow[_ngcontent-%COMP%]{border:1px solid black;z-index:9990;background:#f0f0f080;border-radius:2px;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);box-shadow:3px 3px 3px #0006;position:fixed;top:5em;left:5em}#chattitlebar[_ngcontent-%COMP%]{border-bottom:1px solid black;padding:2px;background:#d0d0d080;cursor:grab}#chatcontent[_ngcontent-%COMP%]{padding:2px}.close-button[_ngcontent-%COMP%]{padding:0 4px;margin:0;float:right}"]}),e})();class Kt{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new Ye({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>{throw this.log(`${t} failed: response status = ${r.status} statusText = ${r.statusText}`),0===r.status&&!1===r.ok?new Error("Could not reach API, check your internet connection."):(console.error(r),new Error(`${t} failed: status = ${r.status}`,{cause:r}))}}log(t){this.appMessageService.add(`TodoService: ${t}`)}getTodos(){return this.http.get(Kt.REST_URL,this.httpOptions).pipe(J(t=>this.log(`fetched ${t.length} todos`)),de(this.handleError("getTodos",[])))}addTodo(t){return this.http.post(Kt.REST_URL,{text:t},this.httpOptions).pipe(J(r=>this.log(`added todo w/ id=${r.id}`)),de(this.handleError("addTodo")))}deleteTodo(t){return this.http.delete(`${Kt.REST_URL}/${t}`,this.httpOptions).pipe(J(r=>this.log(`deleted todo id=${t}`)),de(this.handleError("deleteTodo")))}}function VF(e,t){if(1&e){const n=ki();g(0,"li")(1,"div",8)(2,"span",9),C(3),m(),g(4,"span",10),C(5),Jn(6,"date"),m(),g(7,"button",11),P("click",function(){const i=Zn(n).$implicit;return Yn(pn().delete(i))}),C(8,"x"),m()(),g(9,"span",12),C(10),m()()}if(2&e){const n=t.$implicit;_(3),K(n.id),_(2),K(er(6,3,n.dateCreated,"medium")),_(5),K(n.text)}}Kt.REST_URL=Pr_restServerUrl+"/api/todos",Kt.\u0275fac=function(t){return new(t||Kt)(R(Or),R(xr))},Kt.\u0275prov=x({token:Kt,factory:Kt.\u0275fac,providedIn:"root"});let $F=(()=>{class e{constructor(n){this.todoService=n,this.todos=[],this.newTodo="",this.serviceMessage="",this.errorMessage=""}getTodos(){this.serviceMessage="Loading todos ...",this.todoService.getTodos().subscribe({next:n=>{this.todos=n,this.serviceMessage=0==n.length?"Nothing to do!":""},error:n=>{this.serviceMessage="",this.errorMessage=`Error while loading todos: ${n.message}`}})}ngOnInit(){this.getTodos()}sendTodo(){this.serviceMessage="Adding todo ...",this.todoService.addTodo(this.newTodo).subscribe({next:n=>{this.todos.push(n),this.newTodo="",this.serviceMessage="Added todo."},error:n=>{this.serviceMessage="",this.errorMessage=`Error while adding todo: ${n.message}`}})}delete(n){this.serviceMessage="Removing todo ...",this.todoService.deleteTodo(n.id).subscribe({next:()=>{this.todos=this.todos.filter(r=>r!==n),this.serviceMessage="Removed todo."},error:r=>{this.serviceMessage="",this.errorMessage=`Error while removing todo: ${r.message}`}})}}return e.\u0275fac=function(n){return new(n||e)(D(Kt))},e.\u0275cmp=_t({type:e,selectors:[["app-todo"]],decls:17,vars:6,consts:[[3,"hidden"],[1,"alert",3,"hidden"],[1,"element-list"],[4,"ngFor","ngForOf"],[1,"input"],["for","input-text"],["id","input-text","placeholder","text",3,"ngModel","ngModelChange","keydown.enter"],[3,"click"],[1,"element-title"],[1,"badge"],[1,"date"],["type","button","title","Delete todo",1,"delete",3,"click"],[1,"text"]],template:function(n,r){1&n&&(g(0,"h2"),C(1,"Your todos"),m(),g(2,"p",0),C(3),m(),g(4,"p",1),C(5),m(),g(6,"ol",2),Bt(7,VF,11,6,"li",3),m(),g(8,"h2"),C(9,"New Todo:"),m(),g(10,"div",4)(11,"div")(12,"label",5),C(13,"Text:"),m(),g(14,"input",6),P("ngModelChange",function(i){return r.newTodo=i})("keydown.enter",function(){return r.sendTodo()}),m(),g(15,"button",7),P("click",function(){return r.sendTodo()}),C(16,"Send"),m()()()),2&n&&(_(2),A("hidden",""===r.serviceMessage),_(1),K(r.serviceMessage),_(1),A("hidden",""===r.errorMessage),_(1),K(r.errorMessage),_(2),A("ngForOf",r.todos),_(7),A("ngModel",r.newTodo))},dependencies:[or,Lt,Cn,Yt,No],styles:[".element-list[_ngcontent-%COMP%]{margin-left:2em;padding:0}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{position:relative;left:0;margin-top:.5em;padding:0;border-radius:4px;border:solid 1px #808080}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:hover{background-color:#e6e6e680}.element-title[_ngcontent-%COMP%]{display:block;text-align:left;font-size:x-small}.element-title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;color:#fff}.element-title[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:small;padding:1px 6px;margin:0;border-radius:2px;float:right;background-color:#ff000080}.badge[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#405061;border-radius:2px 0 0}.date[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#605061;border-radius:0 0 2px}.text[_ngcontent-%COMP%]{align-self:center;margin:0 .1em .1em}.input[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{left:0;margin:0 0 .2em;padding:0}.input[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;width:4em;text-align:right;padding-right:.2em}"]}),e})();class Jt{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new Ye({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>{throw this.log(`${t} failed: response status = ${r.status} statusText = ${r.statusText}`),0===r.status&&!1===r.ok?new Error("Could not reach API, check your internet connection."):(console.error(r),new Error(`${t} failed: status = ${r.status}`,{cause:r}))}}log(t){this.appMessageService.add(`NewsService: ${t}`)}getNewsPosts(){return this.http.get(Jt.REST_URL,this.httpOptions).pipe(J(t=>this.log(`fetched ${t.length} news posts`)),de(this.handleError("getNews",[])))}addNewsPost(t,n){return this.http.post(Jt.REST_URL,{author:t,text:n},this.httpOptions).pipe(J(o=>this.log(`added message w/ id=${o.id}`)),de(this.handleError("addNewsPost")))}deleteNewsPost(t){return this.http.delete(`${Jt.REST_URL}/${t}`,this.httpOptions).pipe(J(r=>this.log(`deleted newspost id=${t}`)),de(this.handleError("deleteNewsPost")))}}function HF(e,t){if(1&e){const n=ki();g(0,"div",8)(1,"span")(2,"b"),C(3),m(),C(4),Jn(5,"date"),m(),g(6,"button",9),P("click",function(){const i=Zn(n).$implicit;return Yn(pn().delete(i))}),C(7,"x"),m(),g(8,"p"),C(9),m()()}if(2&e){const n=t.$implicit,r=pn();_(3),K(n.author),_(1),Be(" posted on ",er(5,4,n.dateCreated,"medium"),""),_(2),A("hidden",!r.isAdmin()),_(3),K(n.text)}}Jt.REST_URL=Pr_restServerUrl+"/api/news",Jt.\u0275fac=function(t){return new(t||Jt)(R(Or),R(xr))},Jt.\u0275prov=x({token:Jt,factory:Jt.\u0275fac,providedIn:"root"});let jF=(()=>{class e{constructor(n,r){this.loginService=n,this.newsService=r,this.newNewsMessage="",this.newsMessages=[],this.serviceMessage="",this.errorMessage=""}getNews(){this.loginService.isAuthenticated()&&(this.serviceMessage="Loading news messages ...",this.newsService.getNewsPosts().subscribe({next:n=>{this.newsMessages=n,this.serviceMessage=""},error:n=>{this.serviceMessage="",this.errorMessage=`Error while loading news: ${n.message}`}}))}ngOnInit(){this.getNews()}isAuthenticated(){return this.loginService.isAuthenticated()}isAdmin(){return"ADMIN"===this.loginService.getAuthority()}username(){return this.loginService.getUsername()}addNews(){""!==this.newNewsMessage&&(this.serviceMessage="Adding news ...",this.errorMessage="",this.newsService.addNewsPost(this.loginService.getUsername(),this.newNewsMessage).subscribe({next:n=>{this.newsMessages.push(n),this.serviceMessage="Added news."},error:n=>{this.serviceMessage="",this.errorMessage=`Error while adding news: ${n.message}`}}),this.newNewsMessage="")}delete(n){this.serviceMessage="Removing newspost ...",this.newsService.deleteNewsPost(n.id).subscribe({next:()=>{this.newsMessages=this.newsMessages.filter(r=>r!==n),this.serviceMessage="Removed newspost."},error:r=>{this.serviceMessage="",this.errorMessage=`Error while removing newspost: ${r.message}`}})}}return e.\u0275fac=function(n){return new(n||e)(D(tt),D(Jt))},e.\u0275cmp=_t({type:e,selectors:[["app-home"]],decls:21,vars:10,consts:[[3,"hidden"],[1,"alert",3,"hidden"],[1,"context"],["class","message",4,"ngFor","ngForOf"],[1,"input",3,"hidden"],["for","input-item"],["id","input-item","placeholder","X happend!",3,"ngModel","ngModelChange","keydown.enter"],[3,"click"],[1,"message"],["type","button","title","Delete newspost",1,"delete",3,"hidden","click"]],template:function(n,r){1&n&&(g(0,"span",0)(1,"p"),C(2),m(),g(3,"h3"),C(4,"News"),m(),g(5,"p",0),C(6),m(),g(7,"p",1),C(8),m(),g(9,"div",2),Bt(10,HF,10,7,"div",3),m(),g(11,"div",4)(12,"h3"),C(13,"Add news:"),m(),g(14,"label",5),C(15,"news:"),m(),g(16,"input",6),P("ngModelChange",function(i){return r.newNewsMessage=i})("keydown.enter",function(){return r.addNews()}),m(),g(17,"button",7),P("click",function(){return r.addNews()}),C(18,"Add"),m()()(),g(19,"p",0),C(20,"Welcome to our family site! Please login."),m()),2&n&&(A("hidden",!r.isAuthenticated()),_(2),Be("Welcome, ",r.username(),"!"),_(3),A("hidden",""===r.serviceMessage),_(1),K(r.serviceMessage),_(1),A("hidden",""===r.errorMessage),_(1),K(r.errorMessage),_(2),A("ngForOf",r.newsMessages),_(1),A("hidden",!r.isAdmin()),_(5),A("ngModel",r.newNewsMessage),_(3),A("hidden",r.isAuthenticated()))},dependencies:[or,Lt,Cn,Yt,No],styles:[".context[_ngcontent-%COMP%]{margin-bottom:1em}.message[_ngcontent-%COMP%]{padding:.5em;margin-bottom:.5em;border:1px solid darkgrey}.message[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{border-bottom:1px solid darkgrey}.delete[_ngcontent-%COMP%]{font-size:small;padding:1px 6px;margin:0;border-radius:2px;float:right;background-color:#ff000080}"]}),e})(),BF=(()=>{class e{constructor(n,r){this.loginService=n,this.router=r,this.rememberme=!1,this.credentials={username:"",password:""},this.serviceMessage="",this.errorMessage="",this.checkPreviousLogin()}checkPreviousLogin(){this.credentials.username=localStorage.getItem("username"),this.credentials.password=localStorage.getItem("password"),this.credentials.username&&this.credentials.password&&this.login()}login(){if(""!==this.credentials.username&&""!==this.credentials.password)return this.serviceMessage="Loggin in ...",this.loginService.authenticate(this.credentials).subscribe({next:()=>{this.rememberme&&(localStorage.setItem("username",this.credentials.username),localStorage.setItem("password",this.credentials.password)),this.router.navigateByUrl("/").then(n=>{})},error:n=>{console.log("Login failed",n),this.errorMessage=`Login failed: ${n.message}`,this.serviceMessage=""}}),!1;this.errorMessage="Login failed: Username and password required."}}return e.\u0275fac=function(n){return new(n||e)(D(tt),D(Ue))},e.\u0275cmp=_t({type:e,selectors:[["app-login"]],decls:21,vars:7,consts:[[3,"hidden"],[1,"alert",3,"hidden"],["role","form",3,"submit"],[1,"form-group"],["for","username"],["type","text","id","username","name","username","placeholder","username",1,"form-control",3,"ngModel","ngModelChange"],["for","password"],["type","password","id","password","name","password","placeholder","password",1,"form-control",3,"ngModel","ngModelChange"],["for","rememberme"],["type","checkbox","id","rememberme","name","rememberme",1,"form-control",3,"ngModel","ngModelChange"],["type","submit",1,"btn","btn-primary"]],template:function(n,r){1&n&&(g(0,"h2"),C(1,"Login form"),m(),g(2,"p",0),C(3),m(),g(4,"p",1),C(5),m(),g(6,"form",2),P("submit",function(){return r.login()}),g(7,"div",3)(8,"label",4),C(9,"Username:"),m(),g(10,"input",5),P("ngModelChange",function(i){return r.credentials.username=i}),m()(),g(11,"div",3)(12,"label",6),C(13,"Password:"),m(),g(14,"input",7),P("ngModelChange",function(i){return r.credentials.password=i}),m()(),g(15,"div",3)(16,"label",8),C(17,"Remember me:"),m(),g(18,"input",9),P("ngModelChange",function(i){return r.rememberme=i}),m()(),g(19,"button",10),C(20,"Login"),m()()),2&n&&(_(2),A("hidden",""===r.serviceMessage),_(1),K(r.serviceMessage),_(1),A("hidden",""===r.errorMessage),_(1),K(r.errorMessage),_(5),A("ngModel",r.credentials.username),_(4),A("ngModel",r.credentials.password),_(4),A("ngModel",r.rememberme))},dependencies:[YD,Lt,fl,Cn,kD,Yt,El],styles:["button[_ngcontent-%COMP%]{border:revert}"]}),e})();const $r=(e,t)=>{const n=I(tt),r=I(Ue);return!!n.isAuthenticated()||r.parseUrl("/login")};class mt{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new Ye({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>{throw this.log(`${t} failed: response status = ${r.status} statusText = ${r.statusText}`),0===r.status&&!1===r.ok?new Error("Could not reach API, check your internet connection."):(console.error(r),new Error(`${t} failed: status = ${r.status}`,{cause:r}))}}log(t){this.appMessageService.add(`ContactService: ${t}`)}getContacts(){return this.http.get(mt.REST_URL,this.httpOptions).pipe(J(t=>this.log(`fetched ${t.length} contacts`)),de(this.handleError("getContacts",[])))}getContact(t){return this.http.get(`${mt.REST_URL}/${t}`,this.httpOptions).pipe(J(n=>this.log(`fetched Contact ${n.id}`)),de(this.handleError("getContact",{})))}addContact(t){return this.http.post(mt.REST_URL,t,this.httpOptions).pipe(J(n=>this.log(`added contact w/ id=${n.id}`)),de(this.handleError("addContact")))}saveContact(t){return this.http.post(mt.REST_URL,t,this.httpOptions).pipe(J(n=>this.log(`saved contact w/ id=${n.id}`)),de(this.handleError("addContact")))}deleteContact(t){return this.http.delete(`${mt.REST_URL}/${t}`,this.httpOptions).pipe(J(r=>this.log(`deleted contact id=${t}`)),de(this.handleError("deleteContact")))}}mt.REST_URL=Pr_restServerUrl+"/api/contacts",mt.\u0275fac=function(t){return new(t||mt)(R(Or),R(xr))},mt.\u0275prov=x({token:mt,factory:mt.\u0275fac,providedIn:"root"});const UF=function(e){return["/contact",e]};function zF(e,t){if(1&e&&(g(0,"li")(1,"div",20)(2,"span")(3,"a",21),C(4),m()()(),g(5,"span",22),C(6),oe(7,"br"),C(8),oe(9,"br"),C(10),oe(11,"br"),C(12,"Website: "),g(13,"a",23),C(14),m(),oe(15,"br"),C(16),m()()),2&e){const n=t.$implicit;_(3),A("routerLink",Ua(9,UF,n.id)),_(1),Va("",n.firstName," ",n.lastName,""),_(2),Be(" Telephone: ",n.telephone," "),_(2),Be("E-mail: ",n.email," "),_(2),Be("Address: ",n.address," "),_(3),xa("href","https://",n.website,"",lc),_(1),K(n.website),_(2),Be("Description: ",n.description,"")}}let GF=(()=>{class e{constructor(n){this.contactsService=n,this.contacts=[],this.newContact={},this.serviceMessage="",this.errorMessage=""}getContacts(){this.serviceMessage="Loading contacts ...",this.contactsService.getContacts().subscribe({next:n=>{this.contacts=n,this.serviceMessage=n.length?"":"No contacts in database."},error:n=>{this.serviceMessage="",this.errorMessage=`Error while loading contacts: ${n.message}`}})}ngOnInit(){this.getContacts()}sendContact(){this.serviceMessage="Adding contact ...",this.contactsService.addContact(this.newContact).subscribe({next:n=>{this.contacts.push(n),this.serviceMessage="Added contact."},error:n=>{this.serviceMessage="",this.errorMessage=`Error while adding contact: ${n.message}`}}),this.newContact={}}}return e.\u0275fac=function(n){return new(n||e)(D(mt))},e.\u0275cmp=_t({type:e,selectors:[["app-contacts"]],decls:41,vars:12,consts:[[3,"hidden"],[1,"alert",3,"hidden"],[1,"element-list"],[4,"ngFor","ngForOf"],[1,"form-group"],["for","input-firstName"],["id","input-firstName","placeholder","firstname",3,"ngModel","ngModelChange"],["for","input-lastName"],["id","input-lastName","placeholder","lastname",3,"ngModel","ngModelChange"],["for","input-telephone"],["id","input-telephone","placeholder","telephone",3,"ngModel","ngModelChange"],["for","input-email"],["id","input-email","placeholder","email",3,"ngModel","ngModelChange"],["for","input-website"],["id","input-website","placeholder","website",3,"ngModel","ngModelChange"],["for","input-address"],["id","input-address","placeholder","address",3,"ngModel","ngModelChange"],["for","input-description"],["id","input-description","placeholder","description",3,"ngModel","ngModelChange"],[3,"click"],[1,"element-title"],[3,"routerLink"],[1,"text"],["target","_blank",3,"href"]],template:function(n,r){1&n&&(g(0,"h2"),C(1,"Contacts:"),m(),g(2,"p",0),C(3),m(),g(4,"p",1),C(5),m(),g(6,"ol",2),Bt(7,zF,17,11,"li",3),m(),g(8,"h2"),C(9,"New contact:"),m(),g(10,"div",4)(11,"label",5),C(12,"Firstname:"),m(),g(13,"input",6),P("ngModelChange",function(i){return r.newContact.firstName=i}),m(),oe(14,"br"),g(15,"label",7),C(16,"Lastname:"),m(),g(17,"input",8),P("ngModelChange",function(i){return r.newContact.lastName=i}),m(),oe(18,"br"),g(19,"label",9),C(20,"Telephone:"),m(),g(21,"input",10),P("ngModelChange",function(i){return r.newContact.telephone=i}),m(),oe(22,"br"),g(23,"label",11),C(24,"Email:"),m(),g(25,"input",12),P("ngModelChange",function(i){return r.newContact.email=i}),m(),oe(26,"br"),g(27,"label",13),C(28,"Website:"),m(),g(29,"input",14),P("ngModelChange",function(i){return r.newContact.website=i}),m(),oe(30,"br"),g(31,"label",15),C(32,"Address:"),m(),g(33,"input",16),P("ngModelChange",function(i){return r.newContact.address=i}),m(),oe(34,"br"),g(35,"label",17),C(36,"Description:"),m(),g(37,"input",18),P("ngModelChange",function(i){return r.newContact.description=i}),m(),oe(38,"br"),g(39,"button",19),P("click",function(){return r.sendContact()}),C(40,"Send"),m()()),2&n&&(_(2),A("hidden",""===r.serviceMessage),_(1),K(r.serviceMessage),_(1),A("hidden",""===r.errorMessage),_(1),K(r.errorMessage),_(2),A("ngForOf",r.contacts),_(6),A("ngModel",r.newContact.firstName),_(4),A("ngModel",r.newContact.lastName),_(4),A("ngModel",r.newContact.telephone),_(4),A("ngModel",r.newContact.email),_(4),A("ngModel",r.newContact.website),_(4),A("ngModel",r.newContact.address),_(4),A("ngModel",r.newContact.description))},dependencies:[or,Lt,Cn,Yt,Wo],styles:[".element-list[_ngcontent-%COMP%]{margin-left:2em;padding:0}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{position:relative;left:0;margin-top:.5em;padding:.1em;border-radius:4px;border:solid 1px #808080}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:hover{background-color:#e6e6e680}"]}),e})();class yt{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new Ye({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation"){return n=>{throw this.log(`${t} failed: response status = ${n.status} statusText = ${n.statusText}`),0===n.status&&!1===n.ok?new Error("Could not reach API, check your internet connection."):(console.error(n),new Error(`${t} failed: status = ${n.status}`,{cause:n}))}}log(t){this.appMessageService.add(`ChecklistService: ${t}`)}getChecklists(){return this.http.get(yt.REST_URL,this.httpOptions).pipe(J(t=>this.log(`fetched ${t.length} checklists`)),de(this.handleError("getChecklists")))}getChecklist(t){return this.http.get(`${yt.REST_URL}/${t}`,this.httpOptions).pipe(J(n=>this.log(`fetched checklist ${n.id}`)),de(this.handleError("getChecklist")))}addChecklist(t){return this.http.post(yt.REST_URL,{name:t},this.httpOptions).pipe(J(r=>this.log(`added checklist w/ id=${r.id}`)),de(this.handleError("addChecklist")))}saveChecklist(t){return this.http.post(yt.REST_URL,t,this.httpOptions).pipe(J(n=>this.log(`saved checklist w/ id=${n.id}`)),de(this.handleError("addChecklist")))}deleteChecklist(t){return this.http.delete(`${yt.REST_URL}/${t}`,this.httpOptions).pipe(J(r=>this.log(`deleted checklist id=${t}`)),de(this.handleError("deleteChecklist")))}}yt.REST_URL=Pr_restServerUrl+"/api/checklists",yt.\u0275fac=function(t){return new(t||yt)(R(Or),R(xr))},yt.\u0275prov=x({token:yt,factory:yt.\u0275fac,providedIn:"root"});const WF=function(e){return{strikethrough:e}};function qF(e,t){if(1&e&&(g(0,"li",12),C(1),m()),2&e){const n=t.$implicit;A("ngClass",Ua(2,WF,!0===n.checked)),_(1),Be(" ",n.text," ")}}const ZF=function(e){return["/checklist",e]};function YF(e,t){if(1&e&&(g(0,"li")(1,"span",8)(2,"a",9),C(3),m(),g(4,"ul",10),Bt(5,qF,2,4,"li",11),m()()()),2&e){const n=t.$implicit;_(2),A("routerLink",Ua(3,ZF,n.id)),_(1),K(n.name),_(2),A("ngForOf",n.checks)}}let XF=(()=>{class e{constructor(n,r){this.checklistService=n,this.router=r,this.route=I(Bn),this.checklists=[],this.newChecklist="",this.serviceMessage="",this.errorMessage=""}getChecklists(){this.serviceMessage="Loading checklists ...",this.checklistService.getChecklists().subscribe({next:n=>{this.checklists=n,this.serviceMessage=n.length?"":"No checklist in database."},error:n=>{this.serviceMessage="",this.errorMessage=`Error while loading checklists: ${n.message}`}})}ngOnInit(){this.getChecklists()}sendChecklist(){""!==this.newChecklist&&(this.serviceMessage="Creating checklist ...",this.checklistService.addChecklist(this.newChecklist).subscribe({next:n=>this.router.navigate(["/checklist/",n.id]),error:n=>{this.serviceMessage="",this.errorMessage=`Error while creating checklists: ${n.message}`}}))}}return e.\u0275fac=function(n){return new(n||e)(D(yt),D(Ue))},e.\u0275cmp=_t({type:e,selectors:[["app-checklists"]],decls:17,vars:6,consts:[[3,"hidden"],[1,"alert",3,"hidden"],[1,"element-list"],[4,"ngFor","ngForOf"],[1,"input"],["for","input-name"],["id","input-name","placeholder","myChecklist",3,"ngModel","ngModelChange","keydown.enter"],[3,"click"],[1,"text"],[3,"routerLink"],[1,"item-list"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"]],template:function(n,r){1&n&&(g(0,"h2"),C(1,"Checklists"),m(),g(2,"p",0),C(3),m(),g(4,"p",1),C(5),m(),g(6,"ol",2),Bt(7,YF,6,5,"li",3),m(),g(8,"h2"),C(9,"New checklist:"),m(),g(10,"div",4)(11,"div")(12,"label",5),C(13,"name:"),m(),g(14,"input",6),P("ngModelChange",function(i){return r.newChecklist=i})("keydown.enter",function(){return r.sendChecklist()}),m(),g(15,"button",7),P("click",function(){return r.sendChecklist()}),C(16,"Send"),m()()()),2&n&&(_(2),A("hidden",""===r.serviceMessage),_(1),K(r.serviceMessage),_(1),A("hidden",""===r.errorMessage),_(1),K(r.errorMessage),_(2),A("ngForOf",r.checklists),_(7),A("ngModel",r.newChecklist))},dependencies:[R_,or,Lt,Cn,Yt,Wo],styles:[".element-list[_ngcontent-%COMP%]{margin-left:2em;padding:0}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{position:relative;left:0;margin-top:.5em;padding:.1em;border-radius:4px;border:solid 1px #808080}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:hover{background-color:#e6e6e680}.strikethrough[_ngcontent-%COMP%]{text-decoration:line-through}"]}),e})();function QF(e,t){if(1&e){const n=ki();g(0,"li")(1,"input",10),P("ngModelChange",function(o){return Yn(Zn(n).$implicit.checked=o)})("change",function(){return Zn(n),Yn(pn().saveCheckList())}),m(),g(2,"label"),C(3),m(),g(4,"button",11),P("click",function(){const i=Zn(n).index;return Yn(pn().removeItem(i))}),C(5,"x"),m()()}if(2&e){const n=t.$implicit;_(1),A("ngModel",n.checked),_(2),K(n.text)}}const KF=[{path:"",component:jF,pathMatch:"full"},{path:"login",component:BF},{path:"profile",component:(()=>{class e{constructor(n){this.loginService=n,this.newPassword1="",this.newPassword2="",this.serviceMessage="",this.errorMessage=""}username(){return this.loginService.getUsername()}saveProfile(){this.newPassword1==this.newPassword2?(this.serviceMessage="Updating password ...",this.loginService.changePassword(this.newPassword1).subscribe({next:()=>{this.serviceMessage="Password changed",this.loginService.authenticate({username:this.loginService.getUsername(),password:this.newPassword1}).subscribe()},error:n=>{this.serviceMessage="",this.errorMessage=`Error while updating password: ${n.message}`}})):this.serviceMessage="Passwords do not match!"}toggleTheme(){const n="theme-dark",r=document.querySelector(":root");if(!r)throw new Error("No root!?");r.classList.toggle(n),r.classList.contains(n)?localStorage.setItem("theme",n):localStorage.setItem("theme","theme-light")}}return e.\u0275fac=function(n){return new(n||e)(D(tt))},e.\u0275cmp=_t({type:e,selectors:[["app-profile"]],decls:22,vars:7,consts:[["title","Dark theme on/off",3,"click"],[3,"hidden"],[1,"alert",3,"hidden"],[1,"input"],["for","input-newPassword1"],["type","password","id","input-newPassword1","placeholder","new password",3,"ngModel","ngModelChange"],["for","input-newPassword2"],["type","password","id","input-newPassword2","placeholder","new password",3,"ngModel","ngModelChange"],[3,"click"]],template:function(n,r){1&n&&(g(0,"h1"),C(1),m(),g(2,"button",0),P("click",function(){return r.toggleTheme()}),C(3,"\u2600 Theme"),m(),g(4,"h2"),C(5,"Change password:"),m(),g(6,"p",1),C(7),m(),g(8,"p",2),C(9),m(),g(10,"div",3)(11,"div")(12,"label",4),C(13,"New password:"),m(),g(14,"input",5),P("ngModelChange",function(i){return r.newPassword1=i}),m(),oe(15,"br"),g(16,"label",6),C(17,"Repeat new password:"),m(),g(18,"input",7),P("ngModelChange",function(i){return r.newPassword2=i}),m(),oe(19,"br"),g(20,"button",8),P("click",function(){return r.saveProfile()}),C(21,"Save"),m()()()),2&n&&(_(1),Be("Profile of: ",r.username(),""),_(5),A("hidden",""===r.serviceMessage),_(1),K(r.serviceMessage),_(1),A("hidden",""===r.errorMessage),_(1),K(r.errorMessage),_(5),A("ngModel",r.newPassword1),_(4),A("ngModel",r.newPassword2))},dependencies:[Lt,Cn,Yt]}),e})(),canActivate:[$r]},{path:"chat",component:_h,canActivate:[$r]},{path:"todo",component:$F,canActivate:[$r]},{path:"contacts",component:GF,canActivate:[$r]},{path:"contact/:id",component:(()=>{class e{constructor(n,r){this.contactsService=n,this.router=r,this.route=I(Bn),this.contactId=-1,this.contact={},this.serviceMessage="",this.errorMessage="",this.contactId=Number(this.route.snapshot.params.id)}getChecklist(){this.serviceMessage="Loading contact ...",this.contactsService.getContact(this.contactId).subscribe({next:n=>{this.contact=n,this.serviceMessage=""},error:n=>{this.serviceMessage="",this.errorMessage=`Error while loading contact: ${n.message}`}})}ngOnInit(){this.getChecklist()}saveContact(){this.serviceMessage="Updating contact ...",this.contactsService.saveContact(this.contact).subscribe({next:n=>{this.contact=n,this.serviceMessage="Updated contact."},error:n=>{this.serviceMessage="",this.errorMessage=`Error while updating contact: ${n.message}`}})}deleteContact(){this.serviceMessage="Deleting contact ...",this.contactsService.deleteContact(this.contactId).subscribe({next:()=>this.router.navigateByUrl("/contacts"),error:n=>{this.serviceMessage="",this.errorMessage=`Error while deleting contact: ${n.message}`}})}}return e.\u0275fac=function(n){return new(n||e)(D(mt),D(Ue))},e.\u0275cmp=_t({type:e,selectors:[["app-edit-contact"]],decls:50,vars:22,consts:[[3,"hidden"],[1,"alert",3,"hidden"],["type","button","title","Delete contact",1,"delete",3,"click"],[1,"form-group"],["for","input-firstName"],["id","input-firstName","placeholder","firstname",3,"ngModel","ngModelChange"],["for","input-lastName"],["id","input-lastName","placeholder","lastname",3,"ngModel","ngModelChange"],["for","input-telephone"],["id","input-telephone","placeholder","telephone",3,"ngModel","ngModelChange"],["for","input-email"],["id","input-email","placeholder","email",3,"ngModel","ngModelChange"],["for","input-website"],["id","input-website","placeholder","website",3,"ngModel","ngModelChange"],["for","input-address"],["id","input-address","placeholder","address",3,"ngModel","ngModelChange"],["for","input-description"],["id","input-description","placeholder","description",3,"ngModel","ngModelChange"],[3,"click"]],template:function(n,r){1&n&&(g(0,"h2"),C(1),m(),g(2,"p",0),C(3),m(),g(4,"p",1),C(5),m(),g(6,"p"),C(7),g(8,"button",2),P("click",function(){return r.deleteContact()}),C(9,"Delete contact"),m(),oe(10,"br"),C(11),Jn(12,"date"),oe(13,"br"),C(14),Jn(15,"date"),m(),oe(16,"p"),g(17,"h3"),C(18,"Details:"),m(),g(19,"div",3)(20,"label",4),C(21,"Firstname:"),m(),g(22,"input",5),P("ngModelChange",function(i){return r.contact.firstName=i}),m(),oe(23,"br"),g(24,"label",6),C(25,"Lastname:"),m(),g(26,"input",7),P("ngModelChange",function(i){return r.contact.lastName=i}),m(),oe(27,"br"),g(28,"label",8),C(29,"Telephone:"),m(),g(30,"input",9),P("ngModelChange",function(i){return r.contact.telephone=i}),m(),oe(31,"br"),g(32,"label",10),C(33,"Email:"),m(),g(34,"input",11),P("ngModelChange",function(i){return r.contact.email=i}),m(),oe(35,"br"),g(36,"label",12),C(37,"Website:"),m(),g(38,"input",13),P("ngModelChange",function(i){return r.contact.website=i}),m(),oe(39,"br"),g(40,"label",14),C(41,"Address:"),m(),g(42,"input",15),P("ngModelChange",function(i){return r.contact.address=i}),m(),oe(43,"br"),g(44,"label",16),C(45,"Description:"),m(),g(46,"input",17),P("ngModelChange",function(i){return r.contact.description=i}),m(),oe(47,"br"),g(48,"button",18),P("click",function(){return r.saveContact()}),C(49,"Save"),m()()),2&n&&(_(1),Va("Editing contact: ",r.contact.firstName," ",r.contact.lastName,""),_(1),A("hidden",""===r.serviceMessage),_(1),K(r.serviceMessage),_(1),A("hidden",""===r.errorMessage),_(1),K(r.errorMessage),_(2),Be("Id: ",r.contact.id," "),_(4),Be("Created on: ",er(12,16,r.contact.dateCreated,"medium")," "),_(3),Be("Updated on: ",er(15,19,r.contact.dateUpdated,"medium"),"\n"),_(8),A("ngModel",r.contact.firstName),_(4),A("ngModel",r.contact.lastName),_(4),A("ngModel",r.contact.telephone),_(4),A("ngModel",r.contact.email),_(4),A("ngModel",r.contact.website),_(4),A("ngModel",r.contact.address),_(4),A("ngModel",r.contact.description))},dependencies:[Lt,Cn,Yt,No],styles:[".delete[_ngcontent-%COMP%]{background-color:#ff000080}"]}),e})(),canActivate:[$r]},{path:"checklists",component:XF,canActivate:[$r]},{path:"checklist/:id",component:(()=>{class e{constructor(n,r){this.checklistService=n,this.router=r,this.route=I(Bn),this.checklistId=-1,this.checklist={},this.newItem="",this.serviceMessage="",this.errorMessage="",this.checklistId=Number(this.route.snapshot.params.id)}getChecklist(){this.serviceMessage="Loading checklist ...",this.checklistService.getChecklist(this.checklistId).subscribe({next:n=>{this.checklist=n,this.serviceMessage=""},error:n=>{this.serviceMessage="",this.errorMessage=`Error while getting checklists: ${n.message}`}})}ngOnInit(){this.getChecklist()}addItem(){""!==this.newItem&&(this.checklist.checks.push({text:this.newItem,checklist_id:this.checklist.id}),this.newItem="",this.saveCheckList())}removeItem(n){(this.checklist.checks[n].text||""===this.checklist.checks[n].text)&&(this.checklist.checks.splice(n,1),this.saveCheckList())}saveCheckList(){this.serviceMessage="Updating checklist ...",this.checklistService.saveChecklist(this.checklist).subscribe({next:n=>{this.checklist=n,this.serviceMessage="Saved checklist."},error:n=>{this.serviceMessage="",this.errorMessage=`Error while saving checklists: ${n.message}`}})}deleteChecklist(){this.serviceMessage="Removing checklist ...",this.checklistService.deleteChecklist(this.checklistId).subscribe({next:()=>{this.router.navigateByUrl("/checklists")},error:n=>{this.serviceMessage="",this.errorMessage=`Error while deleting checklists: ${n.message}`}})}}return e.\u0275fac=function(n){return new(n||e)(D(yt),D(Ue))},e.\u0275cmp=_t({type:e,selectors:[["app-edit-checklist"]],decls:36,vars:17,consts:[[3,"hidden"],[1,"alert",3,"hidden"],["type","button","title","Delete checklist",1,"delete",3,"click"],[4,"ngFor","ngForOf"],[1,"input"],["for","input-item"],["id","input-item","placeholder","Remember x",3,"ngModel","ngModelChange","keydown.enter"],[3,"click"],["for","input-checklist-name"],["id","input-checklist-name","placeholder","myChecklist",3,"ngModel","ngModelChange","keydown.enter"],["type","checkbox",3,"ngModel","ngModelChange","change"],["type","button","title","Delete item",1,"delete",3,"click"]],template:function(n,r){1&n&&(g(0,"h2"),C(1),m(),g(2,"p",0),C(3),m(),g(4,"p",1),C(5),m(),g(6,"p"),C(7),g(8,"button",2),P("click",function(){return r.deleteChecklist()}),C(9,"Delete checklist"),m(),oe(10,"br"),C(11),Jn(12,"date"),oe(13,"br"),C(14),Jn(15,"date"),m(),g(16,"h3"),C(17,"Items:"),m(),g(18,"ol"),Bt(19,QF,6,2,"li",3),m(),g(20,"h2"),C(21,"Add item:"),m(),g(22,"div",4)(23,"label",5),C(24,"item:"),m(),g(25,"input",6),P("ngModelChange",function(i){return r.newItem=i})("keydown.enter",function(){return r.addItem()}),m(),g(26,"button",7),P("click",function(){return r.addItem()}),C(27,"Add"),m()(),g(28,"h2"),C(29,"Change name:"),m(),g(30,"div",4)(31,"label",8),C(32,"newName:"),m(),g(33,"input",9),P("ngModelChange",function(i){return r.checklist.name=i})("keydown.enter",function(){return r.saveCheckList()}),m(),g(34,"button",7),P("click",function(){return r.saveCheckList()}),C(35,"Save"),m()()),2&n&&(_(1),Be("Editing checklist: ",r.checklist.name,""),_(1),A("hidden",""===r.serviceMessage),_(1),K(r.serviceMessage),_(1),A("hidden",""===r.errorMessage),_(1),K(r.errorMessage),_(2),Be("Id: ",r.checklist.id," "),_(4),Be("Created on: ",er(12,11,r.checklist.dateCreated,"medium")," "),_(3),Be("Updated on: ",er(15,14,r.checklist.dateUpdated,"medium"),"\n"),_(5),A("ngForOf",r.checklist.checks),_(6),A("ngModel",r.newItem),_(8),A("ngModel",r.checklist.name))},dependencies:[or,Lt,fl,Cn,Yt,No],styles:[".delete[_ngcontent-%COMP%]{background-color:#ff000080;margin-left:2em}"]}),e})(),canActivate:[$r]}];let JF=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=$t({type:e}),e.\u0275inj=Rt({imports:[jw.forRoot(KF),jw]}),e})(),e4=(()=>{class e{constructor(n){this.auth=n}intercept(n,r){if(this.auth.isAuthenticated()){const o=this.auth.getAuthorizationToken(),i=n.clone({headers:n.headers.set("Authorization",o)});return r.handle(i)}return r.handle(n)}}return e.\u0275fac=function(n){return new(n||e)(R(tt))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();const Mn=void 0;!function $R(e,t,n){(function GT(e,t,n){"string"!=typeof t&&(n=t,t=e[N.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),Eo[t]=e,n&&(Eo[t][N.ExtraData]=n)})(e,t,n)}(["nl",[["a.m.","p.m."],Mn,Mn],Mn,[["Z","M","D","W","D","V","Z"],["zo","ma","di","wo","do","vr","za"],["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],["zo","ma","di","wo","do","vr","za"]],Mn,[["J","F","M","A","M","J","J","A","S","O","N","D"],["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]],Mn,[["v.C.","n.C."],["v.Chr.","n.Chr."],["voor Christus","na Christus"]],1,[6,0],["dd-MM-y","d MMM y","d MMMM y","EEEE d MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",Mn,"{1} 'om' {0}",Mn],[",",".",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4\xa0#,##0.00;\xa4\xa0-#,##0.00","#E0"],"EUR","\u20ac","Euro",{AUD:["AU$","$"],BYN:[Mn,"\u0440."],CAD:["C$","$"],FJD:["FJ$","$"],JPY:["JP\xa5","\xa5"],PHP:[Mn,"\u20b1"],RUR:[Mn,"\u0440."],SBD:["SI$","$"],THB:["\u0e3f"],TWD:["NT$"],USD:["US$","$"],XPF:[],XXX:[]},"ltr",function t4(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}]);let n4=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=$t({type:e,bootstrap:[LF]}),e.\u0275inj=Rt({providers:[{provide:w0,useClass:e4,multi:!0},{provide:rr,useClass:C_},{provide:yn,useValue:"nl-BE"}],imports:[hO,EP,qP,JF]}),e})();dO().bootstrapModule(n4).catch(e=>console.error(e))}},ce=>{ce(ce.s=282)}]); |