diff --git a/3rdpartylicenses.txt b/3rdpartylicenses.txt index 1622f15..b5899e1 100644 --- a/3rdpartylicenses.txt +++ b/3rdpartylicenses.txt @@ -275,21 +275,6 @@ Apache-2.0 -tslib -0BSD -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. - zone.js MIT The MIT License diff --git a/404.html b/404.html index 1dca139..ca73fd0 100644 --- a/404.html +++ b/404.html @@ -15,6 +15,6 @@ Fork me on GitHub - + \ No newline at end of file diff --git a/index.html b/index.html index 1dca139..ca73fd0 100644 --- a/index.html +++ b/index.html @@ -15,6 +15,6 @@ Fork me on GitHub - + \ No newline at end of file diff --git a/main.1bc59f7700461589.js b/main.1bc59f7700461589.js deleted file mode 100644 index cabae25..0000000 --- a/main.1bc59f7700461589.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkngx_tinymce=self.webpackChunkngx_tinymce||[]).push([[179],{626:()=>{function re(e){return"function"==typeof e}function po(e){const n=e(r=>{Error.call(r),r.stack=(new Error).stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}const Li=po(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((r,o)=>`${o+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n});function go(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class yt{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(re(r))try{r()}catch(i){t=i instanceof Li?i.errors:[i]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const i of o)try{Df(i)}catch(s){t=t??[],s instanceof Li?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Li(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Df(t);else{if(t instanceof yt){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}}_hasParent(t){const{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){const{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){const{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&go(n,t)}remove(t){const{_finalizers:n}=this;n&&go(n,t),t instanceof yt&&t._removeParent(this)}}yt.EMPTY=(()=>{const e=new yt;return e.closed=!0,e})();const yf=yt.EMPTY;function vf(e){return e instanceof yt||e&&"closed"in e&&re(e.remove)&&re(e.add)&&re(e.unsubscribe)}function Df(e){re(e)?e():e.unsubscribe()}const Gn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Vi={setTimeout(e,t,...n){const{delegate:r}=Vi;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=Vi;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function _f(e){Vi.setTimeout(()=>{const{onUnhandledError:t}=Gn;if(!t)throw e;t(e)})}function Cf(){}const lw=Xa("C",void 0,void 0);function Xa(e,t,n){return{kind:e,value:t,error:n}}let zn=null;function ji(e){if(Gn.useDeprecatedSynchronousErrorHandling){const t=!zn;if(t&&(zn={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=zn;if(zn=null,n)throw r}}else e()}class el extends yt{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,vf(t)&&t.add(this)):this.destination=gw}static create(t,n,r){return new mo(t,n,r)}next(t){this.isStopped?nl(function cw(e){return Xa("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?nl(function uw(e){return Xa("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?nl(lw,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 fw=Function.prototype.bind;function tl(e,t){return fw.call(e,t)}class hw{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Hi(r)}}error(t){const{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Hi(r)}else Hi(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Hi(n)}}}class mo extends el{constructor(t,n,r){let o;if(super(),re(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Gn.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&tl(t.next,i),error:t.error&&tl(t.error,i),complete:t.complete&&tl(t.complete,i)}):o=t}this.destination=new hw(o)}}function Hi(e){Gn.useDeprecatedSynchronousErrorHandling?function dw(e){Gn.useDeprecatedSynchronousErrorHandling&&zn&&(zn.errorThrown=!0,zn.error=e)}(e):_f(e)}function nl(e,t){const{onStoppedNotification:n}=Gn;n&&Vi.setTimeout(()=>n(e,t))}const gw={closed:!0,next:Cf,error:function pw(e){throw e},complete:Cf},rl="function"==typeof Symbol&&Symbol.observable||"@@observable";function Wn(e){return e}function wf(...e){return Ef(e)}function Ef(e){return 0===e.length?Wn:1===e.length?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}let me=(()=>{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 yw(e){return e&&e instanceof el||function mw(e){return e&&re(e.next)&&re(e.error)&&re(e.complete)}(e)&&vf(e)}(n)?n:new mo(n,r,o);return ji(()=>{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=bf(r))((o,i)=>{const s=new mo({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)}[rl](){return this}pipe(...n){return Ef(n)(this)}toPromise(n){return new(n=bf(n))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function bf(e){var t;return null!==(t=e??Gn.Promise)&&void 0!==t?t:Promise}const vw=po(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let ln=(()=>{class e extends me{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new Mf(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new vw}next(n){ji(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){ji(()=>{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(){ji(()=>{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?yf:(this.currentObservers=null,i.push(n),new yt(()=>{this.currentObservers=null,go(i,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){const n=new me;return n.source=this,n}}return e.create=(t,n)=>new Mf(t,n),e})();class Mf extends ln{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:yf}}function Sf(e){return re(e?.lift)}function xe(e){return t=>{if(Sf(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 Ae(e,t,n,r,o){return new Dw(e,t,n,r,o)}class Dw extends el{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 B(e,t){return xe((n,r)=>{let o=0;n.subscribe(Ae(r,i=>{r.next(e.call(t,i,o++))}))})}function il(e,t,n,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(i=(o<3?s(i):o>3?s(t,n,i):s(t,n))||i);return o>3&&i&&Object.defineProperty(t,n,i),i}function qn(e){return this instanceof qn?(this.v=e,this):new qn(e)}function Ew(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 Tf(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 Rf=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function Nf(e){return re(e?.then)}function xf(e){return re(e[rl])}function Ff(e){return Symbol.asyncIterator&&re(e?.[Symbol.asyncIterator])}function Of(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 Pf=function Mw(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function kf(e){return re(e?.[Pf])}function Lf(e){return function ww(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=n.apply(e,t||[]),i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(f){r[f]&&(o[f]=function(h){return new Promise(function(p,g){i.push([f,h,p,g])>1||a(f,h)})})}function a(f,h){try{!function l(f){f.value instanceof qn?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 qn(n.read());if(o)return yield qn(void 0);yield yield qn(r)}}finally{n.releaseLock()}})}function Vf(e){return re(e?.getReader)}function Rt(e){if(e instanceof me)return e;if(null!=e){if(xf(e))return function Sw(e){return new me(t=>{const n=e[rl]();if(re(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Rf(e))return function Iw(e){return new me(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,_f)})}(e);if(Ff(e))return jf(e);if(kf(e))return function Tw(e){return new me(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if(Vf(e))return function Rw(e){return jf(Lf(e))}(e)}throw Of(e)}function jf(e){return new me(t=>{(function Nw(e,t){var n,r,o,i;return function _w(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=Ew(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 un(e,t,n,r=0,o=!1){const i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function Fe(e,t,n=1/0){return re(t)?Fe((r,o)=>B((i,s)=>t(r,i,o,s))(Rt(e(r,o))),n):("number"==typeof t&&(n=t),xe((r,o)=>function xw(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=g=>u{i&&t.next(g),u++;let m=!1;Rt(n(g,c++)).subscribe(Ae(t,D=>{o?.(D),i?h(D):t.next(D)},()=>{m=!0},void 0,()=>{if(m)try{for(u--;l.length&&up(D)):p(D)}f()}catch(D){t.error(D)}}))};return e.subscribe(Ae(t,h,()=>{d=!0,f()})),()=>{a?.()}}(r,o,e,n)))}function hr(e=1/0){return Fe(Wn,e)}const zt=new me(e=>e.complete());function sl(e){return e[e.length-1]}function Hf(e){return re(sl(e))?e.pop():void 0}function yo(e){return function Ow(e){return e&&re(e.schedule)}(sl(e))?e.pop():void 0}function Bf(e,t=0){return xe((n,r)=>{n.subscribe(Ae(r,o=>un(r,e,()=>r.next(o),t),()=>un(r,e,()=>r.complete(),t),o=>un(r,e,()=>r.error(o),t)))})}function $f(e,t=0){return xe((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Uf(e,t){if(!e)throw new Error("Iterable cannot be null");return new me(n=>{un(n,t,()=>{const r=e[Symbol.asyncIterator]();un(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function we(e,t){return t?function Bw(e,t){if(null!=e){if(xf(e))return function kw(e,t){return Rt(e).pipe($f(t),Bf(t))}(e,t);if(Rf(e))return function Vw(e,t){return new me(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(Nf(e))return function Lw(e,t){return Rt(e).pipe($f(t),Bf(t))}(e,t);if(Ff(e))return Uf(e,t);if(kf(e))return function jw(e,t){return new me(n=>{let r;return un(n,t,()=>{r=e[Pf](),un(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)}),()=>re(r?.return)&&r.return()})}(e,t);if(Vf(e))return function Hw(e,t){return Uf(Lf(e),t)}(e,t)}throw Of(e)}(e,t):Rt(e)}function Gf(e={}){const{connector:t=(()=>new ln),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 g=s;h(),g?.unsubscribe()};return xe((g,m)=>{u++,!d&&!c&&f();const D=l=l??t();m.add(()=>{u--,0===u&&!d&&!c&&(a=al(p,o))}),D.subscribe(m),!s&&u>0&&(s=new mo({next:w=>D.next(w),error:w=>{d=!0,f(),a=al(h,n,w),D.error(w)},complete:()=>{c=!0,f(),a=al(h,r),D.complete()}}),Rt(g).subscribe(s))})(i)}}function al(e,t,...n){if(!0===t)return void e();if(!1===t)return;const r=new mo({next:()=>{r.unsubscribe(),e()}});return t(...n).subscribe(r)}function J(e){for(let t in e)if(e[t]===J)return t;throw Error("Could not find renamed property on target object.")}function ll(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function oe(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(oe).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 ul(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Uw=J({__forward_ref__:J});function X(e){return e.__forward_ref__=X,e.toString=function(){return oe(this())},e}function N(e){return cl(e)?e():e}function cl(e){return"function"==typeof e&&e.hasOwnProperty(Uw)&&e.__forward_ref__===X}function dl(e){return e&&!!e.\u0275providers}const Bi="https://g.co/ng/security#xss";class C extends Error{constructor(t,n){super($i(t,n)),this.code=t}}function $i(e,t){return`NG0${Math.abs(e)}${t?": "+t.trim():""}`}function P(e){return"string"==typeof e?e:null==e?"":String(e)}function Ui(e,t){throw new C(-201,!1)}function vt(e,t){null==e&&function K(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function I(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function it(e){return{providers:e.providers||[],imports:e.imports||[]}}function Gi(e){return zf(e,zi)||zf(e,qf)}function zf(e,t){return e.hasOwnProperty(t)?e[t]:null}function Wf(e){return e&&(e.hasOwnProperty(fl)||e.hasOwnProperty(Jw))?e[fl]:null}const zi=J({\u0275prov:J}),fl=J({\u0275inj:J}),qf=J({ngInjectableDef:J}),Jw=J({ngInjectorDef:J});var x=(()=>((x=x||{})[x.Default=0]="Default",x[x.Host=1]="Host",x[x.Self=2]="Self",x[x.SkipSelf=4]="SkipSelf",x[x.Optional=8]="Optional",x))();let hl;function Dt(e){const t=hl;return hl=e,t}function Zf(e,t,n){const r=Gi(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&x.Optional?null:void 0!==t?t:void Ui(oe(e))}const ae=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),vo={},pl="__NG_DI_FLAG__",Wi="ngTempTokenPath",eE="ngTokenPath",tE=/\n/gm,nE="\u0275",Kf="__source";let Do;function pr(e){const t=Do;return Do=e,t}function rE(e,t=x.Default){if(void 0===Do)throw new C(-203,!1);return null===Do?Zf(e,void 0,t):Do.get(e,t&x.Optional?null:void 0,t)}function S(e,t=x.Default){return(function Xw(){return hl}()||rE)(N(e),t)}function $(e,t=x.Default){return S(e,qi(t))}function qi(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function gl(e){const t=[];for(let n=0;n((Wt=Wt||{})[Wt.OnPush=0]="OnPush",Wt[Wt.Default=1]="Default",Wt))(),qt=(()=>{return(e=qt||(qt={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",qt;var e})();const dn={},q=[],Zi=J({\u0275cmp:J}),ml=J({\u0275dir:J}),yl=J({\u0275pipe:J}),Qf=J({\u0275mod:J}),fn=J({\u0275fac:J}),Co=J({__NG_ELEMENT_ID__:J});let aE=0;function An(e){return cn(()=>{const t=Xf(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Wt.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,data:e.data||{},encapsulation:e.encapsulation||qt.Emulated,id:"c"+aE++,styles:e.styles||q,_:null,schemas:e.schemas||null,tView:null};eh(n);const r=e.dependencies;return n.directiveDefs=Ki(r,!1),n.pipeDefs=Ki(r,!0),n})}function uE(e){return Y(e)||je(e)}function cE(e){return null!==e}function _t(e){return cn(()=>({type:e.type,bootstrap:e.bootstrap||q,declarations:e.declarations||q,imports:e.imports||q,exports:e.exports||q,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Jf(e,t){if(null==e)return dn;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 O(e){return cn(()=>{const t=Xf(e);return eh(t),t})}function Y(e){return e[Zi]||null}function je(e){return e[ml]||null}function Xe(e){return e[yl]||null}function st(e,t){const n=e[Qf]||null;if(!n&&!0===t)throw new Error(`Type ${oe(e)} does not have '\u0275mod' property.`);return n}function Xf(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||q,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Jf(e.inputs,t),outputs:Jf(e.outputs)}}function eh(e){e.features?.forEach(t=>t(e))}function Ki(e,t){if(!e)return null;const n=t?Xe:uE;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(cE)}const hn=0,b=1,j=2,pe=3,Nt=4,Zn=5,He=6,mr=7,ye=8,Yi=9,Qi=10,U=11,vl=12,wo=13,th=14,yr=15,Be=16,Eo=17,vr=18,Zt=19,bo=20,nh=21,le=22,Dl=1,rh=2,Ji=7,Xi=8,Dr=9,We=10;function at(e){return Array.isArray(e)&&"object"==typeof e[Dl]}function xt(e){return Array.isArray(e)&&!0===e[Dl]}function _l(e){return 0!=(4&e.flags)}function Mo(e){return e.componentOffset>-1}function es(e){return 1==(1&e.flags)}function Ft(e){return!!e.template}function fE(e){return 0!=(256&e[j])}function Kn(e,t){return e.hasOwnProperty(fn)?e[fn]:null}class gE{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function lt(){return sh}function sh(e){return e.type.prototype.ngOnChanges&&(e.setInput=yE),mE}function mE(){const e=lh(this),t=e?.current;if(t){const n=e.previous;if(n===dn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function yE(e,t,n,r){const o=this.declaredInputs[n],i=lh(e)||function vE(e,t){return e[ah]=t}(e,{previous:dn,current:null}),s=i.current||(i.current={}),a=i.previous,l=a[o];s[o]=new gE(l&&l.currentValue,t,a===dn),e[r]=t}lt.ngInherit=!0;const ah="__ngSimpleChanges__";function lh(e){return e[ah]||null}const Ct=function(e,t,n){};function Oe(e){for(;Array.isArray(e);)e=e[hn];return e}function ts(e,t){return Oe(t[e])}function ut(e,t){return Oe(t[e.index])}function dh(e,t){return e.data[t]}function ct(e,t){const n=t[e];return at(n)?n:n[hn]}function ns(e){return 64==(64&e[j])}function Tn(e,t){return null==t?null:e[t]}function fh(e){e[vr]=0}function wl(e,t){e[Zn]+=t;let n=e,r=e[pe];for(;null!==r&&(1===t&&1===n[Zn]||-1===t&&0===n[Zn]);)r[Zn]+=t,n=r,r=r[pe]}const k={lFrame:wh(null),bindingsEnabled:!0};function ph(){return k.bindingsEnabled}function _(){return k.lFrame.lView}function W(){return k.lFrame.tView}function Pe(){let e=gh();for(;null!==e&&64===e.type;)e=e.parent;return e}function gh(){return k.lFrame.currentTNode}function Kt(e,t){const n=k.lFrame;n.currentTNode=e,n.isParent=t}function El(){return k.lFrame.isParent}function bl(){k.lFrame.isParent=!1}function Cr(){return k.lFrame.bindingIndex++}function FE(e,t){const n=k.lFrame;n.bindingIndex=n.bindingRootIndex=e,Ml(t)}function Ml(e){k.lFrame.currentDirectiveIndex=e}function Il(e){k.lFrame.currentQueryIndex=e}function PE(e){const t=e[b];return 2===t.type?t.declTNode:1===t.type?e[He]:null}function _h(e,t,n){if(n&x.SkipSelf){let o=t,i=e;for(;!(o=o.parent,null!==o||n&x.Host||(o=PE(i),null===o||(i=i[yr],10&o.type))););if(null===o)return!1;t=o,e=i}const r=k.lFrame=Ch();return r.currentTNode=t,r.lView=e,!0}function Al(e){const t=Ch(),n=e[b];k.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Ch(){const e=k.lFrame,t=null===e?null:e.child;return null===t?wh(e):t}function wh(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 Eh(){const e=k.lFrame;return k.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const bh=Eh;function Tl(){const e=Eh();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Ze(){return k.lFrame.selectedIndex}function Yn(e){k.lFrame.selectedIndex=e}function ce(){const e=k.lFrame;return dh(e.tView,e.selectedIndex)}function rs(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[l]<0&&(e[vr]+=65536),(a>11>16&&(3&e[j])===t){e[j]+=2048,Ct(4,a,i);try{i.call(a)}finally{Ct(5,a,i)}}}else{Ct(4,a,i);try{i.call(a)}finally{Ct(5,a,i)}}}const wr=-1;class Io{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function xl(e,t,n){let r=0;for(;rt){s=i-1;break}}}for(;i>16}(e),r=t;for(;n>0;)r=r[yr],n--;return r}let Fl=!0;function ls(e){const t=Fl;return Fl=e,t}const Rh=255,Nh=5;let KE=0;const Yt={};function us(e,t){const n=xh(e,t);if(-1!==n)return n;const r=t[b];r.firstCreatePass&&(e.injectorIndex=t.length,Ol(r.data,e),Ol(t,null),Ol(r.blueprint,null));const o=Pl(e,t),i=e.injectorIndex;if(Th(o)){const s=ss(o),a=as(o,t),l=a[b].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|l[s+u]}return t[i+8]=o,i}function Ol(e,t){e.push(0,0,0,0,0,0,0,0,t)}function xh(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Pl(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=jh(o),null===r)return wr;if(n++,o=o[yr],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return wr}function kl(e,t,n){!function YE(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Co)&&(r=n[Co]),null==r&&(r=n[Co]=KE++);const o=r&Rh;t.data[e+(o>>Nh)]|=1<=0?t&Rh:eb:t}(n);if("function"==typeof i){if(!_h(t,e,r))return r&x.Host?Fh(o,0,r):Oh(t,n,r,o);try{const s=i(r);if(null!=s||r&x.Optional)return s;Ui()}finally{bh()}}else if("number"==typeof i){let s=null,a=xh(e,t),l=wr,u=r&x.Host?t[Be][He]:null;for((-1===a||r&x.SkipSelf)&&(l=-1===a?Pl(e,t):t[a+8],l!==wr&&Vh(r,!1)?(s=t[b],a=ss(l),t=as(l,t)):a=-1);-1!==a;){const c=t[b];if(Lh(i,a,c.data)){const d=JE(a,t,n,s,r,u);if(d!==Yt)return d}l=t[a+8],l!==wr&&Vh(r,t[b].data[a+8]===u)&&Lh(i,a,t)?(s=c,a=ss(l),t=as(l,t)):a=-1}}return o}function JE(e,t,n,r,o,i){const s=t[b],a=s.data[e+8],c=function cs(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=l&&p.type===n)return h}if(o){const h=s[l];if(h&&Ft(h)&&h.type===n)return l}return null}(a,s,n,null==r?Mo(a)&&Fl:r!=s&&0!=(3&a.type),o&x.Host&&i===a);return null!==c?Qn(t,s,c,a):Yt}function Qn(e,t,n,r){let o=e[n];const i=t.data;if(function zE(e){return e instanceof Io}(o)){const s=o;s.resolving&&function Gw(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new C(-200,`Circular dependency in DI detected for ${e}${n}`)}(function Z(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():P(e)}(i[n]));const a=ls(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?Dt(s.injectImpl):null;_h(e,r,x.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&function UE(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){const s=sh(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,o),i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,i))}(n,i[n],t)}finally{null!==l&&Dt(l),ls(a),s.resolving=!1,bh()}}return o}function Lh(e,t,n){return!!(n[t+(e>>Nh)]&1<{const t=e.prototype.constructor,n=t[fn]||Ll(t),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const i=o[fn]||Ll(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Ll(e){return cl(e)?()=>{const t=Ll(N(e));return t&&t()}:Kn(e)}function jh(e){const t=e[b],n=t.type;return 2===n?t.declTNode:1===n?e[He]:null}const Mr="__parameters__";function Ir(e,t,n){return cn(()=>{const r=function Vl(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(Mr)?l[Mr]:Object.defineProperty(l,Mr,{value:[]})[Mr];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})}class M{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=I({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Jn(e,t){e.forEach(n=>Array.isArray(n)?Jn(n,t):t(n))}function Bh(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function fs(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function No(e,t){const n=[];for(let r=0;r=0?e[1|r]=n:(r=~r,function ib(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 Hl(e,t){const n=Ar(e,t);if(n>=0)return e[1|n]}function Ar(e,t){return function $h(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){const i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<((et=et||{})[et.Important=1]="Important",et[et.DashCase=2]="DashCase",et))();const Wl=new Map;let Ib=0;const Zl="__ngContext__";function $e(e,t){at(t)?(e[Zl]=t[bo],function Tb(e){Wl.set(e[bo],e)}(t)):e[Zl]=t}let Kl;function Yl(e,t){return Kl(e,t)}function Lo(e){const t=e[pe];return xt(t)?t[pe]:t}function Ql(e){return lp(e[wo])}function Jl(e){return lp(e[Nt])}function lp(e){for(;null!==e&&!xt(e);)e=e[Nt];return e}function Rr(e,t,n,r,o){if(null!=r){let i,s=!1;xt(r)?i=r:at(r)&&(s=!0,r=r[hn]);const a=Oe(r);0===e&&null!==n?null==o?pp(t,n,a):Xn(t,n,a,o||null,!0):1===e&&null!==n?Xn(t,n,a,o||null,!0):2===e?function iu(e,t,n){const r=ms(e,t);r&&function Kb(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=i&&function Jb(e,t,n,r,o){const i=n[Ji];i!==Oe(n)&&Rr(t,e,r,i,o);for(let a=We;a0&&(e[n-1][Nt]=r[Nt]);const i=fs(e,We+t);!function Bb(e,t){Vo(e,t,t[U],2,null,null),t[hn]=null,t[He]=null}(r[b],r);const s=i[Zt];null!==s&&s.detachView(i[b]),r[pe]=null,r[Nt]=null,r[j]&=-65}return r}function dp(e,t){if(!(128&t[j])){const n=t[U];n.destroyNode&&Vo(e,t,n,3,null,null),function Gb(e){let t=e[wo];if(!t)return nu(e[b],e);for(;t;){let n=null;if(at(t))n=t[wo];else{const r=t[We];r&&(n=r)}if(!n){for(;t&&!t[Nt]&&t!==e;)at(t)&&nu(t[b],t),t=t[pe];null===t&&(t=e),at(t)&&nu(t[b],t),n=t&&t[Nt]}t=n}}(t)}}function nu(e,t){if(!(128&t[j])){t[j]&=-65,t[j]|=128,function Zb(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?r[o=s]():r[o=-s].unsubscribe(),i+=2}else{const s=r[o=n[i+1]];n[i].call(s)}if(null!==r){for(let i=o+1;i-1){const{encapsulation:i}=e.data[r.directiveStart+o];if(i===qt.None||i===qt.Emulated)return null}return ut(r,n)}}(e,t.parent,n)}function Xn(e,t,n,r,o){e.insertBefore(t,n,r,o)}function pp(e,t,n){e.appendChild(t,n)}function gp(e,t,n,r,o){null!==r?Xn(e,t,n,r,o):pp(e,t,n)}function ms(e,t){return e.parentNode(t)}function mp(e,t,n){return vp(e,t,n)}let ru,Ds,lu,_s,vp=function yp(e,t,n){return 40&e.type?ut(e,n):null};function ys(e,t,n,r){const o=fp(e,r,t),i=t[U],a=mp(r.parent||t[He],r,t);if(null!=o)if(Array.isArray(n))for(let l=0;le,createScript:e=>e,createScriptURL:e=>e})}catch{}return Ds}()?.createHTML(e)||e}function uu(){if(void 0===_s&&(_s=null,ae.trustedTypes))try{_s=ae.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return _s}function Mp(e){return uu()?.createHTML(e)||e}function Ip(e){return uu()?.createScriptURL(e)||e}class er{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Bi})`}}class iM extends er{getTypeName(){return"HTML"}}class sM extends er{getTypeName(){return"Style"}}class aM extends er{getTypeName(){return"Script"}}class lM extends er{getTypeName(){return"URL"}}class uM extends er{getTypeName(){return"ResourceURL"}}function ft(e){return e instanceof er?e.changingThisBreaksApplicationSecurity:e}function Qt(e,t){const n=function cM(e){return e instanceof er&&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 ${Bi})`)}return n===t}class mM{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const n=(new window.DOMParser).parseFromString(Nr(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch{return null}}}class yM{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const n=this.inertDocument.createElement("template");return n.innerHTML=Nr(t),n}}const DM=/^(?:(?:https?|mailto|data|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;function Cs(e){return(e=String(e)).match(DM)?e:"unsafe:"+e}function mn(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function jo(...e){const t={};for(const n of e)for(const r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}const Tp=mn("area,br,col,hr,img,wbr"),Rp=mn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Np=mn("rp,rt"),cu=jo(Tp,jo(Rp,mn("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),jo(Np,mn("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),jo(Np,Rp)),du=mn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),xp=jo(du,mn("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),mn("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),_M=mn("script,style,template");class CM{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0;for(;n;)if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild)n=n.firstChild;else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let o=this.checkClobberedElement(n,n.nextSibling);if(o){n=o;break}n=this.checkClobberedElement(n,n.parentNode)}return this.buf.join("")}startElement(t){const n=t.nodeName.toLowerCase();if(!cu.hasOwnProperty(n))return this.sanitizedSomething=!0,!_M.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const r=t.attributes;for(let o=0;o"),!0}endElement(t){const n=t.nodeName.toLowerCase();cu.hasOwnProperty(n)&&!Tp.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(Fp(t))}checkClobberedElement(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return n}}const wM=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,EM=/([^\#-~ |!])/g;function Fp(e){return e.replace(/&/g,"&").replace(wM,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(EM,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let ws;function Op(e,t){let n=null;try{ws=ws||function Ap(e){const t=new yM(e);return function vM(){try{return!!(new window.DOMParser).parseFromString(Nr(""),"text/html")}catch{return!1}}()?new mM(t):t}(e);let r=t?String(t):"";n=ws.getInertBodyElement(r);let o=5,i=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=ws.getInertBodyElement(r)}while(r!==i);return Nr((new CM).sanitizeChildren(fu(n)||n))}finally{if(n){const r=fu(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function fu(e){return"content"in e&&function bM(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var ie=(()=>((ie=ie||{})[ie.NONE=0]="NONE",ie[ie.HTML=1]="HTML",ie[ie.STYLE=2]="STYLE",ie[ie.SCRIPT=3]="SCRIPT",ie[ie.URL=4]="URL",ie[ie.RESOURCE_URL=5]="RESOURCE_URL",ie))();function hu(e){const t=Ho();return t?Mp(t.sanitize(ie.HTML,e)||""):Qt(e,"HTML")?Mp(ft(e)):Op(function bp(){return void 0!==lu?lu:typeof document<"u"?document:void 0}(),P(e))}function Pp(e){const t=Ho();return t?t.sanitize(ie.URL,e)||"":Qt(e,"URL")?ft(e):Cs(P(e))}function kp(e){const t=Ho();if(t)return Ip(t.sanitize(ie.RESOURCE_URL,e)||"");if(Qt(e,"ResourceURL"))return Ip(ft(e));throw new C(904,!1)}function Ho(){const e=_();return e&&e[vl]}const Es=new M("ENVIRONMENT_INITIALIZER"),Vp=new M("INJECTOR",-1),jp=new M("INJECTOR_DEF_TYPES");class Hp{get(t,n=vo){if(n===vo){const r=new Error(`NullInjectorError: No provider for ${oe(t)}!`);throw r.name="NullInjectorError",r}return n}}function NM(...e){return{\u0275providers:Bp(0,e),\u0275fromNgModule:!0}}function Bp(e,...t){const n=[],r=new Set;let o;return Jn(t,i=>{const s=i;pu(s,n,[],r)&&(o||(o=[]),o.push(s))}),void 0!==o&&$p(o,n),n}function $p(e,t){for(let n=0;n{t.push(i)})}}function pu(e,t,n,r){if(!(e=N(e)))return!1;let o=null,i=Wf(e);const s=!i&&Y(e);if(i||s){if(s&&!s.standalone)return!1;o=e}else{const l=e.ngModule;if(i=Wf(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)pu(u,t,n,r)}}else{if(!i)return!1;{if(null!=i.imports&&!a){let u;r.add(o);try{Jn(i.imports,c=>{pu(c,t,n,r)&&(u||(u=[]),u.push(c))})}finally{}void 0!==u&&$p(u,t)}if(!a){const u=Kn(o)||(()=>new o);t.push({provide:o,useFactory:u,deps:q},{provide:jp,useValue:o,multi:!0},{provide:Es,useValue:()=>S(o),multi:!0})}const l=i.providers;null==l||a||gu(l,c=>{t.push(c)})}}return o!==e&&void 0!==e.providers}function gu(e,t){for(let n of e)dl(n)&&(n=n.\u0275providers),Array.isArray(n)?gu(n,t):t(n)}const xM=J({provide:String,useValue:J});function mu(e){return null!==e&&"object"==typeof e&&xM in e}function tr(e){return"function"==typeof e}const yu=new M("Set Injector scope."),bs={},OM={};let vu;function Ms(){return void 0===vu&&(vu=new Hp),vu}class Jt{}class zp extends Jt{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,_u(t,s=>this.processProvider(s)),this.records.set(Vp,xr(void 0,this)),o.has("environment")&&this.records.set(Jt,xr(void 0,this));const i=this.records.get(yu);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(jp.multi,q,x.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){this._onDestroyHooks.push(t)}runInContext(t){this.assertNotDestroyed();const n=pr(this),r=Dt(void 0);try{return t()}finally{pr(n),Dt(r)}}get(t,n=vo,r=x.Default){this.assertNotDestroyed(),r=qi(r);const o=pr(this),i=Dt(void 0);try{if(!(r&x.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function jM(e){return"function"==typeof e||"object"==typeof e&&e instanceof M}(t)&&Gi(t);a=l&&this.injectableDefInScope(l)?xr(Du(t),bs):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&x.Self?Ms():this.parent).get(t,n=r&x.Optional&&n===vo?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[Wi]=s[Wi]||[]).unshift(oe(t)),o)throw s;return function iE(e,t,n,r){const o=e[Wi];throw t[Kf]&&o.unshift(t[Kf]),e.message=function sE(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&e.charAt(1)==nE?e.slice(2):e;let o=oe(t);if(Array.isArray(t))o=t.map(oe).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):oe(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(tE,"\n ")}`}("\n"+e.message,o,n,r),e[eE]=o,e[Wi]=null,e}(s,t,"R3InjectorError",this.source)}throw s}finally{Dt(i),pr(o)}}resolveInjectorInitializers(){const t=pr(this),n=Dt(void 0);try{const r=this.get(Es.multi,q,x.Self);for(const o of r)o()}finally{pr(t),Dt(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(oe(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new C(205,!1)}processProvider(t){let n=tr(t=N(t))?t:N(t&&t.provide);const r=function kM(e){return mu(e)?xr(void 0,e.useValue):xr(Wp(e),bs)}(t);if(tr(t)||!0!==t.multi)this.records.get(n);else{let o=this.records.get(n);o||(o=xr(void 0,bs,!0),o.factory=()=>gl(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===bs&&(n.value=OM,n.value=n.factory()),"object"==typeof n.value&&n.value&&function VM(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=N(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}}function Du(e){const t=Gi(e),n=null!==t?t.factory:Kn(e);if(null!==n)return n;if(e instanceof M)throw new C(204,!1);if(e instanceof Function)return function PM(e){const t=e.length;if(t>0)throw No(t,"?"),new C(204,!1);const n=function Yw(e){const t=e&&(e[zi]||e[qf]);return t?(function Qw(e){if(e.hasOwnProperty("name"))return e.name;(""+e).match(/^function\s*([^\s(]+)/)}(e),t):null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new C(204,!1)}function Wp(e,t,n){let r;if(tr(e)){const o=N(e);return Kn(o)||Du(o)}if(mu(e))r=()=>N(e.useValue);else if(function Gp(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...gl(e.deps||[]));else if(function Up(e){return!(!e||!e.useExisting)}(e))r=()=>S(N(e.useExisting));else{const o=N(e&&(e.useClass||e.provide));if(!function LM(e){return!!e.deps}(e))return Kn(o)||Du(o);r=()=>new o(...gl(e.deps))}return r}function xr(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function _u(e,t){for(const n of e)Array.isArray(n)?_u(n,t):n&&dl(n)?_u(n.\u0275providers,t):t(n)}class HM{}class qp{}class $M{resolveComponentFactory(t){throw function BM(e){const t=Error(`No component factory found for ${oe(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let Bo=(()=>{class e{}return e.NULL=new $M,e})();function UM(){return Fr(Pe(),_())}function Fr(e,t){return new nt(ut(e,t))}let nt=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=UM,e})();class Kp{}let yn=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function zM(){const e=_(),n=ct(Pe().index,e);return(at(n)?n:e)[U]}(),e})(),WM=(()=>{class e{}return e.\u0275prov=I({token:e,providedIn:"root",factory:()=>null}),e})();class $o{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const qM=new $o("15.2.4"),Cu={},wu="ngOriginalError";function Eu(e){return e[wu]}class Or{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Eu(t);for(;n&&Eu(n);)n=Eu(n);return n||null}}function vn(e){return e instanceof Function?e():e}function Qp(e,t,n){let r=e.length;for(;;){const o=e.indexOf(t,n);if(-1===o)return o;if(0===o||e.charCodeAt(o-1)<=32){const i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}const Jp="ng-template";function oS(e,t,n){let r=0,o=!0;for(;ri?"":o[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==Qp(h,u,0)||2&r&&u!==f){if(Ot(r))return!1;s=!0}}}}else{if(!s&&!Ot(r)&&!Ot(l))return!1;if(s&&Ot(l))continue;s=!1,r=l|1&r}}return Ot(r)||s}function Ot(e){return 0==(1&e)}function aS(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!Ot(s)&&(t+=tg(i,o),o=""),r=s,i=i||!Ot(r);n++}return""!==o&&(t+=tg(i,o)),t}const L={};function Pt(e){ng(W(),_(),Ze()+e,!1)}function ng(e,t,n,r){if(!r)if(3==(3&t[j])){const i=e.preOrderCheckHooks;null!==i&&os(t,i,n)}else{const i=e.preOrderHooks;null!==i&&is(t,i,0,n)}Yn(n)}function sg(e,t=null,n=null,r){const o=ag(e,t,n,r);return o.resolveInjectorInitializers(),o}function ag(e,t=null,n=null,r,o=new Set){const i=[n||q,NM(e)];return r=r||("object"==typeof e?void 0:oe(e)),new zp(i,t||Ms(),r||null,o)}let kt=(()=>{class e{static create(n,r){if(Array.isArray(n))return sg({name:""},r,n,"");{const o=n.name??"";return sg({name:o},n.parent,n.providers,o)}}}return e.THROW_IF_NOT_FOUND=vo,e.NULL=new Hp,e.\u0275prov=I({token:e,providedIn:"any",factory:()=>S(Vp)}),e.__NG_ELEMENT_ID__=-1,e})();function v(e,t=x.Default){const n=_();return null===n?S(e,t):Ph(Pe(),n,N(e),t)}function gg(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;rle&&ng(e,t,le,!1),Ct(s?2:0,o),n(r,o)}finally{Yn(i),Ct(s?3:1,o)}}function Ru(e,t,n){if(_l(t)){const o=t.directiveEnd;for(let i=t.directiveStart;i0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=a&&s.push(a),s.push(n,r,i)}}(e,t,r,Uo(e,n,o.hostVars,L),o)}function Xt(e,t,n,r,o,i){const s=ut(e,t);!function ku(e,t,n,r,o,i,s){if(null==i)e.removeAttribute(t,o,n);else{const a=null==s?P(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}(t[U],s,i,e.value,n,r,o)}function JS(e,t,n,r,o,i){const s=i[t];if(null!==s){const a=r.setInput;for(let l=0;l0&&Lu(n)}}function Lu(e){for(let r=Ql(e);null!==r;r=Jl(r))for(let o=We;o0&&Lu(i)}const n=e[b].components;if(null!==n)for(let r=0;r0&&Lu(o)}}function rI(e,t){const n=ct(t,e),r=n[b];(function oI(e,t){for(let n=t.length;n-1&&(tu(t,r),fs(n,r))}this._attachedToViewContainer=!1}dp(this._lView[b],this._lView)}onDestroy(t){!function vg(e,t,n,r){const o=Mg(t);null===n?o.push(r):(o.push(n),e.firstCreatePass&&Sg(e).push(r,o.length-1))}(this._lView[b],this._lView,null,t)}markForCheck(){Vu(this._cdRefInjectingView||this._lView)}detach(){this._lView[j]&=-65}reattach(){this._lView[j]|=64}detectChanges(){Rs(this._lView[b],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new C(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Ub(e,t){Vo(e,t,t[U],2,null,null)}(this._lView[b],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new C(902,!1);this._appRef=t}}class iI extends Go{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;Rs(t[b],t,t[ye],!1)}checkNoChanges(){}get context(){return null}}class Tg extends Bo{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=Y(t);return new zo(n,this.ngModule)}}function Rg(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class aI{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=qi(r);const o=this.injector.get(t,Cu,r);return o!==Cu||n===Cu?o:this.parentInjector.get(t,n,r)}}class zo extends qp{get inputs(){return Rg(this.componentDef.inputs)}get outputs(){return Rg(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function hS(e){return e.map(fS).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,o){let i=(o=o||this.ngModule)instanceof Jt?o:o?.injector;i&&null!==this.componentDef.getStandaloneInjector&&(i=this.componentDef.getStandaloneInjector(i)||i);const s=i?new aI(t,i):t,a=s.get(Kp,null);if(null===a)throw new C(407,!1);const l=s.get(WM,null),u=a.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",d=r?function LS(e,t,n){return e.selectRootElement(t,n===qt.ShadowDom)}(u,r,this.componentDef.encapsulation):eu(u,c,function sI(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(c)),f=this.componentDef.onPush?288:272,h=Fu(0,null,null,1,0,null,null,null,null,null),p=Is(null,h,null,f,null,null,a,u,l,s,null);let g,m;Al(p);try{const D=this.componentDef;let w,y=null;D.findHostDirectiveDefs?(w=[],y=new Map,D.findHostDirectiveDefs(D,w,y),w.push(D)):w=[D];const R=function uI(e,t){const n=e[b],r=le;return e[r]=t,Lr(n,r,2,"#host",null)}(p,d),ne=function cI(e,t,n,r,o,i,s,a){const l=o[b];!function dI(e,t,n,r){for(const o of e)t.mergedAttrs=Ao(t.mergedAttrs,o.hostAttrs);null!==t.mergedAttrs&&(Ns(t,t.mergedAttrs,!0),null!==n&&Ep(r,n,t))}(r,e,t,s);const u=i.createRenderer(t,n),c=Is(o,yg(n),null,n.onPush?32:16,o[e.index],e,i,u,a||null,null,null);return l.firstCreatePass&&Pu(l,e,r.length-1),Ts(o,c),o[e.index]=c}(R,d,D,w,p,a,u);m=dh(h,le),d&&function hI(e,t,n,r){if(r)xl(e,n,["ng-version",qM.full]);else{const{attrs:o,classes:i}=function pS(e){const t=[],n=[];let r=1,o=2;for(;r0&&wp(e,n,i.join(" "))}}(u,D,d,r),void 0!==n&&function pI(e,t,n){const r=e.projection=[];for(let o=0;o=0;r--){const o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Ao(o.hostAttrs,n=Ao(n,o.hostAttrs))}}(r)}function Bu(e){return e===dn?{}:e===q?[]:e}function yI(e,t){const n=e.viewQuery;e.viewQuery=n?(r,o)=>{t(r,o),n(r,o)}:t}function vI(e,t){const n=e.contentQueries;e.contentQueries=n?(r,o,i)=>{t(r,o,i),n(r,o,i)}:t}function DI(e,t){const n=e.hostBindings;e.hostBindings=n?(r,o)=>{t(r,o),n(r,o)}:t}function Ue(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function bt(e,t,n,r){const o=_();return Ue(o,Cr(),t)&&(W(),Xt(ce(),o,e,t,n,r)),bt}function qo(e,t,n,r,o,i,s,a){const l=_(),u=W(),c=e+le,d=u.firstCreatePass?function TI(e,t,n,r,o,i,s,a,l){const u=t.consts,c=Lr(t,e,4,s||null,Tn(u,a));Ou(t,n,c,Tn(u,l)),rs(t,c);const d=c.tView=Fu(2,c,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u);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];Kt(d,!1);const f=l[U].createComment("");ys(u,l,f,d),$e(f,l),Ts(l,l[c]=bg(f,l,f,d)),es(d)&&Nu(u,l,d),null!=s&&xu(l,d,a)}function pt(e,t,n){const r=_();return Ue(r,Cr(),t)&&function ht(e,t,n,r,o,i,s,a){const l=ut(t,n);let c,u=t.inputs;!a&&null!=u&&(c=u[r])?(Hu(e,n,c,r,o),Mo(t)&&Cg(n,t.index)):3&t.type&&(r=function HS(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))}(W(),ce(),r,e,t,r[U],n,!1),pt}function Uu(e,t,n,r,o){const s=o?"class":"style";Hu(e,n,t.inputs[s],s,r)}function ee(e,t,n,r){const o=_(),i=W(),s=le+e,a=o[U],l=i.firstCreatePass?function xI(e,t,n,r,o,i){const s=t.consts,l=Lr(t,e,2,r,Tn(s,o));return Ou(t,n,l,Tn(s,i)),null!==l.attrs&&Ns(l,l.attrs,!1),null!==l.mergedAttrs&&Ns(l,l.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,l),l}(s,i,o,t,n,r):i.data[s],u=o[s]=eu(a,t,function $E(){return k.lFrame.currentNamespace}()),c=es(l);return Kt(l,!0),Ep(a,u,l),32!=(32&l.flags)&&ys(i,o,u,l),0===function bE(){return k.lFrame.elementDepthCount}()&&$e(u,o),function ME(){k.lFrame.elementDepthCount++}(),c&&(Nu(i,o,l),Ru(i,l,o)),null!==r&&xu(o,l),ee}function te(){let e=Pe();El()?bl():(e=e.parent,Kt(e,!1));const t=e;!function SE(){k.lFrame.elementDepthCount--}();const n=W();return n.firstCreatePass&&(rs(n,e),_l(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function WE(e){return 0!=(8&e.flags)}(t)&&Uu(n,t,_(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function qE(e){return 0!=(16&e.flags)}(t)&&Uu(n,t,_(),t.stylesWithoutHost,!1),te}function Rn(e,t,n,r){return ee(e,t,n,r),te(),Rn}function Ps(e,t,n){const r=_(),o=W(),i=e+le,s=o.firstCreatePass?function FI(e,t,n,r,o){const i=t.consts,s=Tn(i,r),a=Lr(t,e,8,"ng-container",s);return null!==s&&Ns(a,s,!0),Ou(t,n,a,Tn(i,o)),null!==t.queries&&t.queries.elementStart(t,a),a}(i,o,r,t,n):o.data[i];Kt(s,!0);const a=r[i]=r[U].createComment("");return ys(o,r,a,s),$e(a,r),es(s)&&(Nu(o,r,s),Ru(o,s,r)),null!=n&&xu(r,s),Ps}function ks(){let e=Pe();const t=W();return El()?bl():(e=e.parent,Kt(e,!1)),t.firstCreatePass&&(rs(t,e),_l(e)&&t.queries.elementEnd(e)),ks}function Zo(e){return!!e&&"function"==typeof e.then}const Gu=function zg(e){return!!e&&"function"==typeof e.subscribe};function Le(e,t,n,r){const o=_(),i=W(),s=Pe();return function qg(e,t,n,r,o,i,s){const a=es(r),u=e.firstCreatePass&&Sg(e),c=t[ye],d=Mg(t);let f=!0;if(3&r.type||s){const g=ut(r,t),m=s?s(g):g,D=d.length,w=s?R=>s(Oe(R[r.index])):r.index;let y=null;if(!s&&a&&(y=function PI(e,t,n,r){const o=e.cleanup;if(null!=o)for(let i=0;il?a[l]:null}"string"==typeof s&&(i+=2)}return null}(e,t,o,r.index)),null!==y)(y.__ngLastListenerFn__||y).__ngNextListenerFn__=i,y.__ngLastListenerFn__=i,f=!1;else{i=Kg(r,t,c,i,!1);const R=n.listen(m,o,i);d.push(i,R),u&&u.push(o,w,D,D+1)}}else i=Kg(r,t,c,i,!1);const h=r.outputs;let p;if(f&&null!==h&&(p=h[o])){const g=p.length;if(g)for(let m=0;m-1?ct(e.index,t):t);let l=Zg(t,n,r,s),u=i.__ngNextListenerFn__;for(;u;)l=Zg(t,n,u,s)&&l,u=u.__ngNextListenerFn__;return o&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function Ko(e=1){return function kE(e){return(k.lFrame.contextLView=function LE(e,t){for(;e>0;)t=t[yr],e--;return t}(e,k.lFrame.contextLView))[ye]}(e)}function kI(e,t){let n=null;const r=function lS(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(!(1&n))return t[n+1]}return null}(e);for(let o=0;o>17&32767}function Wu(e){return 2|e}function rr(e){return(131068&e)>>2}function qu(e,t){return-131069&e|t<<2}function Zu(e){return 1|e}function am(e,t,n,r,o){const i=e[n+1],s=null===t;let a=r?Nn(i):rr(i),l=!1;for(;0!==a&&(!1===l||s);){const c=e[a+1];$I(e[a],t)&&(l=!0,e[a+1]=r?Zu(c):Wu(c)),a=r?Nn(c):rr(c)}l&&(e[n+1]=r?Wu(i):Zu(i))}function $I(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Ar(e,t)>=0}function Ku(e,t,n){return Lt(e,t,n,!1),Ku}function Vs(e,t){return Lt(e,t,null,!0),Vs}function Lt(e,t,n,r){const o=_(),i=W(),s=function gn(e){const t=k.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}(2);i.firstUpdatePass&&function gm(e,t,n,r){const o=e.data;if(null===o[n+1]){const i=o[Ze()],s=function pm(e,t){return t>=e.expandoStartIndex}(e,n);(function Dm(e,t){return 0!=(e.flags&(t?8:16))})(i,r)&&null===t&&!s&&(t=!1),t=function QI(e,t,n,r){const o=function Sl(e){const t=k.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let i=r?t.residualClasses:t.residualStyles;if(null===o)0===(r?t.classBindings:t.styleBindings)&&(n=Yo(n=Yu(null,e,t,n,r),t.attrs,r),i=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==o)if(n=Yu(o,e,t,n,r),null===i){let l=function JI(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==rr(r))return e[Nn(r)]}(e,t,r);void 0!==l&&Array.isArray(l)&&(l=Yu(null,e,t,l[1],r),l=Yo(l,t.attrs,r),function XI(e,t,n,r){e[Nn(n?t.classBindings:t.styleBindings)]=r}(e,t,r,l))}else i=function e0(e,t,n){let r;const o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0)&&(u=!0)):c=n,o)if(0!==l){const f=Nn(e[a+1]);e[r+1]=Ls(f,a),0!==f&&(e[f+1]=qu(e[f+1],r)),e[a+1]=function VI(e,t){return 131071&e|t<<17}(e[a+1],r)}else e[r+1]=Ls(a,0),0!==a&&(e[a+1]=qu(e[a+1],r)),a=r;else e[r+1]=Ls(l,0),0===a?a=r:e[l+1]=qu(e[l+1],r),l=r;u&&(e[r+1]=Wu(e[r+1])),am(e,c,r,!0),am(e,c,r,!1),function BI(e,t,n,r,o){const i=o?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof t&&Ar(i,t)>=0&&(n[r+1]=Zu(n[r+1]))}(t,c,e,r,i),s=Ls(a,l),i?t.classBindings=s:t.styleBindings=s}(o,i,t,n,s,r)}}(i,e,s,r),t!==L&&Ue(o,s,t)&&function ym(e,t,n,r,o,i,s,a){if(!(3&t.type))return;const l=e.data,u=l[a+1],c=function jI(e){return 1==(1&e)}(u)?vm(l,t,n,o,rr(u),s):void 0;js(c)||(js(i)||function LI(e){return 2==(2&e)}(u)&&(i=vm(l,null,n,o,a,s)),function Xb(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=-1===r.indexOf("-")?void 0:et.DashCase;null==o?e.removeStyle(n,r,i):("string"==typeof o&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=et.Important),e.setStyle(n,r,o,i))}}(r,s,ts(Ze(),n),o,i))}(i,i.data[Ze()],o,o[U],e,o[s+1]=function r0(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=oe(ft(e)))),e}(t,n),r,s)}function Yu(e,t,n,r,o){let i=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const l=e[o],u=Array.isArray(l),c=u?l[1]:l,d=null===c;let f=n[o+1];f===L&&(f=d?q:void 0);let h=d?Hl(f,r):c===r?f:void 0;if(u&&!js(h)&&(h=Hl(l,r)),js(h)&&(a=h,s))return a;const p=e[o+1];o=s?Nn(p):rr(p)}if(null!==t){let l=i?t.residualClasses:t.residualStyles;null!=l&&(a=Hl(l,r))}return a}function js(e){return void 0!==e}function Ee(e,t=""){const n=_(),r=W(),o=e+le,i=r.firstCreatePass?Lr(r,o,1,t,null):r.data[o],s=n[o]=function Xl(e,t){return e.createText(t)}(n[U],t);ys(r,n,s,i),Kt(i,!1)}function Qu(e){return Ju("",e,""),Qu}function Ju(e,t,n){const r=_(),o=function jr(e,t,n,r){return Ue(e,Cr(),n)?t+P(n)+r:L}(r,e,t,n);return o!==L&&function Dn(e,t,n){const r=ts(t,e);!function up(e,t,n){e.setValue(t,n)}(e[U],r,n)}(r,Ze(),o),Ju}const Kr="en-US";let Bm=Kr;function tc(e,t,n,r,o){if(e=N(e),Array.isArray(e))for(let i=0;i>20;if(tr(e)||!e.multi){const h=new Io(l,o,v),p=rc(a,t,o?c:c+f,d);-1===p?(kl(us(u,s),i,a),nc(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=rc(a,t,c+f,d),p=rc(a,t,c,c+f),m=p>=0&&n[p];if(o&&!m||!o&&!(h>=0&&n[h])){kl(us(u,s),i,a);const D=function wA(e,t,n,r,o){const i=new Io(e,n,v);return i.multi=[],i.index=t,i.componentProviders=0,fy(i,o,r&&!n),i}(o?CA:_A,n.length,o,r,l);!o&&m&&(n[p].providerFactory=D),nc(i,e,t.length,0),t.push(a),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=1048576),n.push(D),s.push(D)}else nc(i,e,h>-1?h:p,fy(n[o?p:h],l,!o&&r));!o&&r&&m&&n[p].componentProviders++}}}function nc(e,t,n,r){const o=tr(t),i=function FM(e){return!!e.useClass}(t);if(o||i){const l=(i?N(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 fy(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function rc(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>function DA(e,t,n){const r=W();if(r.firstCreatePass){const o=Ft(e);tc(n,r.data,r.blueprint,o,!0),tc(t,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,t)}}class Yr{}class hy{}class py extends Yr{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Tg(this);const r=st(t);this._bootstrapComponents=vn(r.bootstrap),this._r3Injector=ag(t,n,[{provide:Yr,useValue:this},{provide:Bo,useValue:this.componentFactoryResolver}],oe(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 ic extends hy{constructor(t){super(),this.moduleType=t}create(t){return new py(this.moduleType,t)}}class bA extends Yr{constructor(t,n,r){super(),this.componentFactoryResolver=new Tg(this),this.instance=null;const o=new zp([...t,{provide:Yr,useValue:this},{provide:Bo,useValue:this.componentFactoryResolver}],n||Ms(),r,new Set(["environment"]));this.injector=o,o.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function Gs(e,t,n=null){return new bA(e,t,n).injector}let MA=(()=>{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=Bp(0,n.type),o=r.length>0?Gs([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=I({token:e,providedIn:"environment",factory:()=>new e(S(Jt))}),e})();function sc(e){e.getStandaloneInjector=t=>t.get(MA).getOrCreateStandaloneInjector(e)}function lc(e){return t=>{setTimeout(e,void 0,t)}}const de=class QA extends ln{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=lc(i),o&&(o=lc(o)),s&&(s=lc(s)));const a=super.subscribe({next:o,error:i,complete:s});return t instanceof yt&&t.add(a),a}};let rn=(()=>{class e{}return e.__NG_ELEMENT_ID__=tT,e})();const XA=rn,eT=class extends XA{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(t,n){const r=this._declarationTContainer.tView,o=Is(this._declarationLView,r,t,16,null,r.declTNode,null,null,null,null,n||null);o[Eo]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[Zt];return null!==s&&(o[Zt]=s.createEmbeddedView(r)),Tu(r,o,t),new Go(o)}};function tT(){return function zs(e,t){return 4&e.type?new eT(t,e,Fr(e,t)):null}(Pe(),_())}let jt=(()=>{class e{}return e.__NG_ELEMENT_ID__=nT,e})();function nT(){return function Ay(e,t){let n;const r=t[e.index];if(xt(r))n=r;else{let o;if(8&e.type)o=Oe(r);else{const i=t[U];o=i.createComment("");const s=ut(e,t);Xn(i,ms(i,s),o,function Yb(e,t){return e.nextSibling(t)}(i,s),!1)}t[e.index]=n=bg(r,t,o,e),Ts(t,n)}return new Sy(n,e,t)}(Pe(),_())}const rT=jt,Sy=class extends rT{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Fr(this._hostTNode,this._hostLView)}get injector(){return new Er(this._hostTNode,this._hostLView)}get parentInjector(){const t=Pl(this._hostTNode,this._hostLView);if(Th(t)){const n=as(t,this._hostLView),r=ss(t);return new Er(n[b].data[r+8],n)}return new Er(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Iy(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 s=t.createEmbeddedView(n||{},i);return this.insert(s,o),s}createComponent(t,n,r,o,i){const s=t&&!function Ro(e){return"function"==typeof e}(t);let a;if(s)a=n;else{const d=n||{};a=d.index,r=d.injector,o=d.projectableNodes,i=d.environmentInjector||d.ngModuleRef}const l=s?t:new zo(Y(t)),u=r||this.parentInjector;if(!i&&null==l.ngModule){const f=(s?u:this.parentInjector).get(Jt,null);f&&(i=f)}const c=l.create(u,o,void 0,i);return this.insert(c.hostView,a),c}insert(t,n){const r=t._lView,o=r[b];if(function EE(e){return xt(e[pe])}(r)){const c=this.indexOf(t);if(-1!==c)this.detach(c);else{const d=r[pe],f=new Sy(d,d[He],d[pe]);f.detach(f.indexOf(t))}}const i=this._adjustIndex(n),s=this._lContainer;!function zb(e,t,n,r){const o=We+r,i=n.length;r>0&&(n[o-1][Nt]=t),r{class e{constructor(n){this.appInits=n,this.resolve=qs,this.reject=qs,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,o)=>{this.resolve=r,this.reject=o})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let o=0;o{i.subscribe({complete:a,error:l})});n.push(s)}}Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(S(Zs,8))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const ii=new M("AppId",{providedIn:"root",factory:function ev(){return`${Cc()}${Cc()}${Cc()}`}});function Cc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const tv=new M("Platform Initializer"),wc=new M("Platform ID",{providedIn:"platform",factory:()=>"unknown"});let NT=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const _n=new M("LocaleId",{providedIn:"root",factory:()=>$(_n,x.Optional|x.SkipSelf)||function xT(){return typeof $localize<"u"&&$localize.locale||Kr}()});class OT{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let nv=(()=>{class e{compileModuleSync(n){return new ic(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),i=vn(st(n).declarations).reduce((s,a)=>{const l=Y(a);return l&&s.push(new zo(l)),s},[]);return new OT(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=I({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const LT=(()=>Promise.resolve(0))();function Ec(e){typeof Zone>"u"?LT.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class fe{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new de(!1),this.onMicrotaskEmpty=new de(!1),this.onStable=new de(!1),this.onError=new de(!1),typeof Zone>"u")throw new C(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function VT(){let e=ae.requestAnimationFrame,t=ae.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 BT(e){const t=()=>{!function HT(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(ae,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Mc(e),e.isCheckStableRunning=!0,bc(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Mc(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{try{return iv(e),n.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&t(),sv(e)}},onInvoke:(n,r,o,i,s,a,l)=>{try{return iv(e),n.invoke(o,i,s,a,l)}finally{e.shouldCoalesceRunChangeDetection&&t(),sv(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,Mc(e),bc(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(!fe.isInAngularZone())throw new C(909,!1)}static assertNotInAngularZone(){if(fe.isInAngularZone())throw new C(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,jT,qs,qs);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 jT={};function bc(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 Mc(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function iv(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function sv(e){e._nesting--,bc(e)}class $T{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new de,this.onMicrotaskEmpty=new de,this.onStable=new de,this.onError=new de}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 av=new M(""),Ys=new M("");let Ac,Sc=(()=>{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,Ac||(function UT(e){Ac=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:()=>{fe.assertNotInAngularZone(),Ec(()=>{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())Ec(()=>{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)(S(fe),S(Ic),S(Ys))},e.\u0275prov=I({token:e,factory:e.\u0275fac}),e})(),Ic=(()=>{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 Ac?.findTestabilityInTree(this,n,r)??null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const Cn=!1;let xn=null;const lv=new M("AllowMultipleToken"),Tc=new M("PlatformDestroyListeners"),uv=new M("appBootstrapListener");class cv{constructor(t,n){this.name=t,this.token=n}}function fv(e,t,n=[]){const r=`Platform: ${t}`,o=new M(r);return(i=[])=>{let s=Rc();if(!s||s.injector.get(lv,!1)){const a=[...n,...i,{provide:o,useValue:!0}];e?e(a):function WT(e){if(xn&&!xn.get(lv,!1))throw new C(400,!1);xn=e;const t=e.get(pv);(function dv(e){const t=e.get(tv,null);t&&t.forEach(n=>n())})(e)}(function hv(e=[],t){return kt.create({name:t,providers:[{provide:yu,useValue:"platform"},{provide:Tc,useValue:new Set([()=>xn=null])},...e]})}(a,r))}return function ZT(e){const t=Rc();if(!t)throw new C(401,!1);return t}()}}function Rc(){return xn?.get(pv)??null}let pv=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const o=function mv(e,t){let n;return n="noop"===e?new $T:("zone.js"===e?void 0:e)||new fe(t),n}(r?.ngZone,function gv(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!e||!e.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!e||!e.ngZoneRunCoalescing)||!1}}(r)),i=[{provide:fe,useValue:o}];return o.run(()=>{const s=kt.create({providers:i,parent:this.injector,name:n.moduleType.name}),a=n.create(s),l=a.injector.get(Or,null);if(!l)throw new C(402,!1);return o.runOutsideAngular(()=>{const u=o.onError.subscribe({next:c=>{l.handleError(c)}});a.onDestroy(()=>{Js(this._modules,a),u.unsubscribe()})}),function yv(e,t,n){try{const r=n();return Zo(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(l,o,()=>{const u=a.injector.get(Ks);return u.runInitializers(),u.donePromise.then(()=>(function $m(e){vt(e,"Expected localeId to be defined"),"string"==typeof e&&(Bm=e.toLowerCase().replace(/_/g,"-"))}(a.injector.get(_n,Kr)||Kr),this._moduleDoBootstrap(a),a))})})}bootstrapModule(n,r=[]){const o=vv({},r);return function GT(e,t,n){const r=new ic(n);return Promise.resolve(r)}(0,0,n).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(n){const r=n.injector.get(Qs);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new C(-403,!1);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new C(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(Tc,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)(S(kt))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function vv(e,t){return Array.isArray(t)?t.reduce(vv,e):{...e,...t}}let Qs=(()=>{class e{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(n,r,o){this._zone=n,this._injector=r,this._exceptionHandler=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const i=new me(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new me(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{fe.assertNotInAngularZone(),Ec(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{fe.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),u.unsubscribe()}});this.isStable=function $w(...e){const t=yo(e),n=function Pw(e,t){return"number"==typeof sl(e)?e.pop():t}(e,1/0),r=e;return r.length?1===r.length?Rt(r[0]):hr(n)(we(r,t)):zt}(i,s.pipe(Gf()))}bootstrap(n,r){const o=n instanceof qp;if(!this._injector.get(Ks).done){!o&&function gr(e){const t=Y(e)||je(e)||Xe(e);return null!==t&&t.standalone}(n);throw new C(405,Cn)}let s;s=o?n:this._injector.get(Bo).resolveComponentFactory(n),this.componentTypes.push(s.componentType);const a=function zT(e){return e.isBoundToModule}(s)?void 0:this._injector.get(Yr),u=s.create(kt.NULL,[],r||s.selector,a),c=u.location.nativeElement,d=u.injector.get(av,null);return d?.registerApplication(c),u.onDestroy(()=>{this.detachView(u.hostView),Js(this.components,u),d?.unregisterApplication(c)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw new C(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;Js(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(uv,[]);r.push(...this._bootstrapListeners),r.forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Js(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new C(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return e.\u0275fac=function(n){return new(n||e)(S(fe),S(Jt),S(Or))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Js(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let si=(()=>{class e{}return e.__NG_ELEMENT_ID__=YT,e})();function YT(e){return function QT(e,t,n){if(Mo(e)&&!n){const r=ct(e.index,t);return new Go(r,r)}return 47&e.type?new Go(t[Be],t):null}(Pe(),_(),16==(16&e))}const cR=fv(null,"core",[]);let dR=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(S(Qs))},e.\u0275mod=_t({type:e}),e.\u0275inj=it({}),e})();function Xr(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}let Pc=null;function wn(){return Pc}class pR{}const be=new M("DocumentToken");let kc=(()=>{class e{historyGo(n){throw new Error("Not implemented")}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=I({token:e,factory:function(){return function gR(){return S(Tv)}()},providedIn:"platform"}),e})();const mR=new M("Location Initialized");let Tv=(()=>{class e extends kc{constructor(n){super(),this._doc=n,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return wn().getBaseHref(this._doc)}onPopState(n){const r=wn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){const r=wn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,o){Rv()?this._history.pushState(n,r,o):this._location.hash=o}replaceState(n,r,o){Rv()?this._history.replaceState(n,r,o):this._location.hash=o}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}}return e.\u0275fac=function(n){return new(n||e)(S(be))},e.\u0275prov=I({token:e,factory:function(){return function yR(){return new Tv(S(be))}()},providedIn:"platform"}),e})();function Rv(){return!!window.history.pushState}function Lc(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 Nv(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function En(e){return e&&"?"!==e[0]?"?"+e:e}let sr=(()=>{class e{historyGo(n){throw new Error("Not implemented")}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=I({token:e,factory:function(){return $(Fv)},providedIn:"root"}),e})();const xv=new M("appBaseHref");let Fv=(()=>{class e extends sr{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??$(be).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 Lc(this._baseHref,n)}path(n=!1){const r=this._platformLocation.pathname+En(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){const s=this.prepareExternalUrl(o+En(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){const s=this.prepareExternalUrl(o+En(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}}return e.\u0275fac=function(n){return new(n||e)(S(kc),S(xv,8))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),vR=(()=>{class e extends sr{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(n){const r=Lc(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+En(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+En(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}}return e.\u0275fac=function(n){return new(n||e)(S(kc),S(xv,8))},e.\u0275prov=I({token:e,factory:e.\u0275fac}),e})(),Vc=(()=>{class e{constructor(n){this._subject=new de,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;const r=this._locationStrategy.getBaseHref();this._basePath=function CR(e){if(new RegExp("^(https?:)?//").test(e)){const[,n]=e.split(/\/\/[^\/]+/);return n}return e}(Nv(Ov(r))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+En(r))}normalize(n){return e.stripTrailingSlash(function _R(e,t){if(!e||!t.startsWith(e))return t;const n=t.substring(e.length);return""===n||["/",";","?","#"].includes(n[0])?n:t}(this._basePath,Ov(n)))}prepareExternalUrl(n){return n&&"/"!==n[0]&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+En(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+En(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)})),()=>{const r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r,complete:o})}}return e.normalizeQueryParams=En,e.joinWithSlash=Lc,e.stripTrailingSlash=Nv,e.\u0275fac=function(n){return new(n||e)(S(sr))},e.\u0275prov=I({token:e,factory:function(){return function DR(){return new Vc(S(sr))}()},providedIn:"root"}),e})();function Ov(e){return e.replace(/\/index.html$/,"")}function Uv(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const r=n.indexOf("="),[o,i]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}let Zv=(()=>{class e{constructor(n,r){this._viewContainer=n,this._context=new uN,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){Kv("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){Kv("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)(v(jt),v(rn))},e.\u0275dir=O({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),e})();class uN{constructor(){this.$implicit=null,this.ngIf=null}}function Kv(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${oe(t)}'.`)}let Xc=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=_t({type:e}),e.\u0275inj=it({}),e})();let LN=(()=>{class e{}return e.\u0275prov=I({token:e,providedIn:"root",factory:()=>new VN(S(be),window)}),e})();class VN{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 jN(e,t){const n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if("function"==typeof e.createTreeWalker&&e.body&&(e.body.createShadowRoot||e.body.attachShadow)){const r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let o=r.currentNode;for(;o;){const i=o.shadowRoot;if(i){const s=i.getElementById(t)||i.querySelector(`[name="${t}"]`);if(s)return s}o=r.nextNode()}}return null}(this.document,t);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const n=this.window.history;n&&n.scrollRestoration&&(n.scrollRestoration=t)}}scrollToElement(t){const n=t.getBoundingClientRect(),r=n.left+this.window.pageXOffset,o=n.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],o-i[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=Xv(this.window.history)||Xv(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 Xv(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}class eD{}class fx extends pR{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class nd extends fx{static makeCurrent(){!function hR(e){Pc||(Pc=e)}(new nd)}onAndCancel(t,n,r){return t.addEventListener(n,r,!1),()=>{t.removeEventListener(n,r,!1)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,n){return(n=n||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return"window"===n?window:"document"===n?t:"body"===n?t.body:null}getBaseHref(t){const n=function hx(){return di=di||document.querySelector("base"),di?di.getAttribute("href"):null}();return null==n?null:function px(e){ha=ha||document.createElement("a"),ha.setAttribute("href",e);const t=ha.pathname;return"/"===t.charAt(0)?t:`/${t}`}(n)}resetBaseElement(){di=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Uv(document.cookie,t)}}let ha,di=null;const iD=new M("TRANSITION_ID"),mx=[{provide:Zs,useFactory:function gx(e,t,n){return()=>{n.get(Ks).donePromise.then(()=>{const r=wn(),o=t.querySelectorAll(`style[ng-transition="${e}"]`);for(let i=0;i{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac}),e})();const pa=new M("EventManagerPlugins");let ga=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}addGlobalEventListener(n,r,o){return this._findPluginFor(r).addGlobalEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){const r=this._eventNameToPlugin.get(n);if(r)return r;const o=this._plugins;for(let i=0;i{class e{constructor(){this.usageCount=new Map}addStyles(n){for(const r of n)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(n){for(const r of n)0===this.changeUsageCount(r,-1)&&this.onStyleRemoved(r)}onStyleRemoved(n){}onStyleAdded(n){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(n,r){const o=this.usageCount;let i=o.get(n)??0;return i+=r,i>0?o.set(n,i):o.delete(n),i}ngOnDestroy(){for(const n of this.getAllStyles())this.onStyleRemoved(n);this.usageCount.clear()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac}),e})(),fi=(()=>{class e extends aD{constructor(n){super(),this.doc=n,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(n){for(const r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){const r=this.styleRef;r.get(n)?.forEach(i=>i.remove()),r.delete(n)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(const r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}addStyleToHost(n,r){const o=this.doc.createElement("style");o.textContent=r,n.appendChild(o);const i=this.styleRef.get(r);i?i.push(o):this.styleRef.set(r,[o])}resetHostNodes(){const n=this.hostNodes;n.clear(),n.add(this.doc.head)}}return e.\u0275fac=function(n){return new(n||e)(S(be))},e.\u0275prov=I({token:e,factory:e.\u0275fac}),e})();const rd={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/"},od=/%COMP%/g,cD=new M("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function dD(e,t){return t.flat(100).map(n=>n.replace(od,e))}function fD(e){return t=>{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let id=(()=>{class e{constructor(n,r,o,i){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestory=i,this.rendererByCompId=new Map,this.defaultRenderer=new sd(n)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;const o=this.getOrCreateRenderer(n,r);return o instanceof gD?o.applyToHost(n):o instanceof ad&&o.applyStyles(),o}getOrCreateRenderer(n,r){const o=this.rendererByCompId;let i=o.get(r.id);if(!i){const s=this.eventManager,a=this.sharedStylesHost,l=this.removeStylesOnCompDestory;switch(r.encapsulation){case qt.Emulated:i=new gD(s,a,r,this.appId,l);break;case qt.ShadowDom:return new Mx(s,a,n,r);default:i=new ad(s,a,r,l)}i.onDestroy=()=>o.delete(r.id),o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return e.\u0275fac=function(n){return new(n||e)(S(ga),S(fi),S(ii),S(cD))},e.\u0275prov=I({token:e,factory:e.\u0275fac}),e})();class sd{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,n){return n?document.createElementNS(rd[n]||n,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,n){(pD(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(pD(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){t&&t.removeChild(n)}selectRootElement(t,n){let r="string"==typeof t?document.querySelector(t):t;if(!r)throw new Error(`The selector "${t}" did not match any elements`);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;const i=rd[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const o=rd[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&(et.DashCase|et.Important)?t.style.setProperty(n,r,o&et.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&et.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t[n]=r}setValue(t,n){t.nodeValue=n}listen(t,n,r){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,n,fD(r)):this.eventManager.addEventListener(t,n,fD(r))}}function pD(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class Mx extends sd{constructor(t,n,r,o){super(t),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const i=dD(o.id,o.styles);for(const s of i){const a=document.createElement("style");a.textContent=s,this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(this.nodeOrShadowRoot(t),n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class ad extends sd{constructor(t,n,r,o,i=r.id){super(t),this.sharedStylesHost=n,this.removeStylesOnCompDestory=o,this.rendererUsageCount=0,this.styles=dD(i,r.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class gD extends ad{constructor(t,n,r,o,i){const s=o+"-"+r.id;super(t,n,r,i,s),this.contentAttr=function wx(e){return"_ngcontent-%COMP%".replace(od,e)}(s),this.hostAttr=function Ex(e){return"_nghost-%COMP%".replace(od,e)}(s)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){const r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}}let Sx=(()=>{class e extends sD{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)(S(be))},e.\u0275prov=I({token:e,factory:e.\u0275fac}),e})();const mD=["alt","control","meta","shift"],Ix={"\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"},Ax={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let Tx=(()=>{class e extends sD{constructor(n){super(n)}supports(n){return null!=e.parseEventName(n)}addEventListener(n,r,o){const i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>wn().onAndCancel(n,i.domEventName,s))}static parseEventName(n){const r=n.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const i=e._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),mD.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=Ix[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"),mD.forEach(s=>{s!==o&&(0,Ax[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)(S(be))},e.\u0275prov=I({token:e,factory:e.\u0275fac}),e})();const Fx=fv(cR,"browser",[{provide:wc,useValue:"browser"},{provide:tv,useValue:function Rx(){nd.makeCurrent()},multi:!0},{provide:be,useFactory:function xx(){return function oM(e){lu=e}(document),document},deps:[]}]),DD=new M(""),_D=[{provide:Ys,useClass:class yx{addToWindow(t){ae.getAngularTestability=(r,o=!0)=>{const i=t.findTestabilityInTree(r,o);if(null==i)throw new Error("Could not find testability for element.");return i},ae.getAllAngularTestabilities=()=>t.getAllTestabilities(),ae.getAllAngularRootElements=()=>t.getAllRootElements(),ae.frameworkStabilizers||(ae.frameworkStabilizers=[]),ae.frameworkStabilizers.push(r=>{const o=ae.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?wn().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},deps:[]},{provide:av,useClass:Sc,deps:[fe,Ic,Ys]},{provide:Sc,useClass:Sc,deps:[fe,Ic,Ys]}],CD=[{provide:yu,useValue:"root"},{provide:Or,useFactory:function Nx(){return new Or},deps:[]},{provide:pa,useClass:Sx,multi:!0,deps:[be,fe,wc]},{provide:pa,useClass:Tx,multi:!0,deps:[be]},{provide:id,useClass:id,deps:[ga,fi,ii,cD]},{provide:Kp,useExisting:id},{provide:aD,useExisting:fi},{provide:fi,useClass:fi,deps:[be]},{provide:ga,useClass:ga,deps:[pa,fe]},{provide:eD,useClass:vx,deps:[]},[]];let Ox=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:ii,useValue:n.appId},{provide:iD,useExisting:ii},mx]}}}return e.\u0275fac=function(n){return new(n||e)(S(DD,12))},e.\u0275mod=_t({type:e}),e.\u0275inj=it({providers:[...CD,..._D],imports:[Xc,dR]}),e})(),wD=(()=>{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)(S(be))},e.\u0275prov=I({token:e,factory:function(n){let r=null;return r=n?new n:function kx(){return new wD(S(be))}(),r},providedIn:"root"}),e})();typeof window<"u"&&window;let cd=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=I({token:e,factory:function(n){let r=null;return r=n?new(n||e):S(MD),r},providedIn:"root"}),e})(),MD=(()=>{class e extends cd{constructor(n){super(),this._doc=n}sanitize(n,r){if(null==r)return null;switch(n){case ie.NONE:return r;case ie.HTML:return Qt(r,"HTML")?ft(r):Op(this._doc,String(r)).toString();case ie.STYLE:return Qt(r,"Style")?ft(r):r;case ie.SCRIPT:if(Qt(r,"Script"))return ft(r);throw new Error("unsafe value used in a script context");case ie.URL:return Qt(r,"URL")?ft(r):Cs(String(r));case ie.RESOURCE_URL:if(Qt(r,"ResourceURL"))return ft(r);throw new Error(`unsafe value used in a resource URL context (see ${Bi})`);default:throw new Error(`Unexpected SecurityContext ${n} (see ${Bi})`)}}bypassSecurityTrustHtml(n){return function dM(e){return new iM(e)}(n)}bypassSecurityTrustStyle(n){return function fM(e){return new sM(e)}(n)}bypassSecurityTrustScript(n){return function hM(e){return new aM(e)}(n)}bypassSecurityTrustUrl(n){return function pM(e){return new lM(e)}(n)}bypassSecurityTrustResourceUrl(n){return function gM(e){return new uM(e)}(n)}}return e.\u0275fac=function(n){return new(n||e)(S(be))},e.\u0275prov=I({token:e,factory:function(n){let r=null;return r=n?new n:function Bx(e){return new MD(e.get(be))}(S(kt)),r},providedIn:"root"}),e})();function A(...e){return we(e,yo(e))}function On(e,t){return re(t)?Fe(e,t,1):Fe(e,1)}function Ut(e,t){return xe((n,r)=>{let o=0;n.subscribe(Ae(r,i=>e.call(t,i,o++)&&r.next(i)))})}class ma{}class dd{}class Mn{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.keys(t).forEach(n=>{let r=t[n];const o=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(this.headers.set(o,r),this.maybeSetNormalizedName(n,o))})}:this.headers=new Map}has(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 Mn?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 Mn;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof Mn?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 Ux{encodeKey(t){return SD(t)}encodeValue(t){return SD(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const zx=/%(\d[a-f0-9])/gi,Wx={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function SD(e){return encodeURIComponent(e).replace(zx,(t,n)=>Wx[n]??t)}function ya(e){return`${e}`}class Pn{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Ux,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function Gx(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(ya):[ya(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 Pn({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(ya(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(ya(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 qx{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 ID(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function AD(e){return typeof Blob<"u"&&e instanceof Blob}function TD(e){return typeof FormData<"u"&&e instanceof FormData}class hi{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 Zx(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 Mn),this.context||(this.context=new qx),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=n;else{const a=n.indexOf("?");this.urlWithParams=n+(-1===a?"?":ad.set(f,t.setHeaders[f]),l)),t.setParams&&(u=Object.keys(t.setParams).reduce((d,f)=>d.set(f,t.setParams[f]),u)),new hi(n,r,i,{params:u,headers:l,context:c,reportProgress:a,responseType:o,withCredentials:s})}}var Ie=(()=>((Ie=Ie||{})[Ie.Sent=0]="Sent",Ie[Ie.UploadProgress=1]="UploadProgress",Ie[Ie.ResponseHeader=2]="ResponseHeader",Ie[Ie.DownloadProgress=3]="DownloadProgress",Ie[Ie.Response=4]="Response",Ie[Ie.User=5]="User",Ie))();class fd{constructor(t,n=200,r="OK"){this.headers=t.headers||new Mn,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 hd extends fd{constructor(t={}){super(t),this.type=Ie.ResponseHeader}clone(t={}){return new hd({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 va extends fd{constructor(t={}){super(t),this.type=Ie.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new va({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 RD extends fd{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 pd(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 Yx=(()=>{class e{constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof hi)i=n;else{let l,u;l=o.headers instanceof Mn?o.headers:new Mn(o.headers),o.params&&(u=o.params instanceof Pn?o.params:new Pn({fromObject:o.params})),i=new hi(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=A(i).pipe(On(l=>this.handler.handle(l)));if(n instanceof hi||"events"===o.observe)return s;const a=s.pipe(Ut(l=>l instanceof va));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(B(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(B(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(B(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(B(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 Pn).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,pd(o,r))}post(n,r,o={}){return this.request("POST",n,pd(o,r))}put(n,r,o={}){return this.request("PUT",n,pd(o,r))}}return e.\u0275fac=function(n){return new(n||e)(S(ma))},e.\u0275prov=I({token:e,factory:e.\u0275fac}),e})();function ND(e,t){return t(e)}function Qx(e,t){return(n,r)=>t.intercept(n,{handle:o=>e(o,r)})}const Xx=new M("HTTP_INTERCEPTORS"),pi=new M("HTTP_INTERCEPTOR_FNS");function eF(){let e=null;return(t,n)=>(null===e&&(e=($(Xx,{optional:!0})??[]).reduceRight(Qx,ND)),e(t,n))}let xD=(()=>{class e extends ma{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(pi)));this.chain=r.reduceRight((o,i)=>function Jx(e,t,n){return(r,o)=>n.runInContext(()=>t(r,i=>e(i,o)))}(o,i,this.injector),ND)}return this.chain(n,r=>this.backend.handle(r))}}return e.\u0275fac=function(n){return new(n||e)(S(dd),S(Jt))},e.\u0275prov=I({token:e,factory:e.\u0275fac}),e})();const oF=/^\)\]\}',?\n/;let OD=(()=>{class e{constructor(n){this.xhrFactory=n}handle(n){if("JSONP"===n.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new me(r=>{const o=this.xhrFactory.build();if(o.open(n.method,n.urlWithParams),n.withCredentials&&(o.withCredentials=!0),n.headers.forEach((h,p)=>o.setRequestHeader(h,p.join(","))),n.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){const h=n.detectContentTypeHeader();null!==h&&o.setRequestHeader("Content-Type",h)}if(n.responseType){const h=n.responseType.toLowerCase();o.responseType="json"!==h?h:"text"}const i=n.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const h=o.statusText||"OK",p=new Mn(o.getAllResponseHeaders()),g=function iF(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(o)||n.url;return s=new hd({headers:p,status:o.status,statusText:h,url:g}),s},l=()=>{let{headers:h,status:p,statusText:g,url:m}=a(),D=null;204!==p&&(D=typeof o.response>"u"?o.responseText:o.response),0===p&&(p=D?200:0);let w=p>=200&&p<300;if("json"===n.responseType&&"string"==typeof D){const y=D;D=D.replace(oF,"");try{D=""!==D?JSON.parse(D):null}catch(R){D=y,w&&(w=!1,D={error:R,text:D})}}w?(r.next(new va({body:D,headers:h,status:p,statusText:g,url:m||void 0})),r.complete()):r.error(new RD({error:D,headers:h,status:p,statusText:g,url:m||void 0}))},u=h=>{const{url:p}=a(),g=new RD({error:h,status:o.status||0,statusText:o.statusText||"Unknown Error",url:p||void 0});r.error(g)};let c=!1;const d=h=>{c||(r.next(a()),c=!0);let p={type:Ie.DownloadProgress,loaded:h.loaded};h.lengthComputable&&(p.total=h.total),"text"===n.responseType&&o.responseText&&(p.partialText=o.responseText),r.next(p)},f=h=>{let p={type:Ie.UploadProgress,loaded:h.loaded};h.lengthComputable&&(p.total=h.total),r.next(p)};return o.addEventListener("load",l),o.addEventListener("error",u),o.addEventListener("timeout",u),o.addEventListener("abort",u),n.reportProgress&&(o.addEventListener("progress",d),null!==i&&o.upload&&o.upload.addEventListener("progress",f)),o.send(i),r.next({type:Ie.Sent}),()=>{o.removeEventListener("error",u),o.removeEventListener("abort",u),o.removeEventListener("load",l),o.removeEventListener("timeout",u),n.reportProgress&&(o.removeEventListener("progress",d),null!==i&&o.upload&&o.upload.removeEventListener("progress",f)),o.readyState!==o.DONE&&o.abort()}})}}return e.\u0275fac=function(n){return new(n||e)(S(eD))},e.\u0275prov=I({token:e,factory:e.\u0275fac}),e})();const gd=new M("XSRF_ENABLED"),PD=new M("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),kD=new M("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class LD{}let lF=(()=>{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=Uv(n,this.cookieName),this.lastCookieString=n),this.lastToken}}return e.\u0275fac=function(n){return new(n||e)(S(be),S(wc),S(PD))},e.\u0275prov=I({token:e,factory:e.\u0275fac}),e})();function uF(e,t){const n=e.url.toLowerCase();if(!$(gd)||"GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t(e);const r=$(LD).getToken(),o=$(kD);return null!=r&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),t(e)}var _e=(()=>((_e=_e||{})[_e.Interceptors=0]="Interceptors",_e[_e.LegacyInterceptors=1]="LegacyInterceptors",_e[_e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",_e[_e.NoXsrfProtection=3]="NoXsrfProtection",_e[_e.JsonpSupport=4]="JsonpSupport",_e[_e.RequestsMadeViaParent=5]="RequestsMadeViaParent",_e))();function eo(e,t){return{\u0275kind:e,\u0275providers:t}}function cF(...e){const t=[Yx,OD,xD,{provide:ma,useExisting:xD},{provide:dd,useExisting:OD},{provide:pi,useValue:uF,multi:!0},{provide:gd,useValue:!0},{provide:LD,useClass:lF}];for(const n of e)t.push(...n.\u0275providers);return function RM(e){return{\u0275providers:e}}(t)}const VD=new M("LEGACY_INTERCEPTOR_FN");let fF=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=_t({type:e}),e.\u0275inj=it({providers:[cF(eo(_e.LegacyInterceptors,[{provide:VD,useFactory:eF},{provide:pi,useExisting:VD,multi:!0}]))]}),e})();class It extends ln{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){const{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}}const Da=po(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}),{isArray:hF}=Array,{getPrototypeOf:pF,prototype:gF,keys:mF}=Object;function jD(e){if(1===e.length){const t=e[0];if(hF(t))return{args:t,keys:null};if(function yF(e){return e&&"object"==typeof e&&pF(e)===gF}(t)){const n=mF(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}const{isArray:vF}=Array;function HD(e){return B(t=>function DF(e,t){return vF(t)?e(...t):e(t)}(e,t))}function BD(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function $D(...e){const t=yo(e),n=Hf(e),{args:r,keys:o}=jD(e);if(0===r.length)return we([],t);const i=new me(function _F(e,t,n=Wn){return r=>{UD(t,()=>{const{length:o}=e,i=new Array(o);let s=o,a=o;for(let l=0;l{const u=we(e[l],t);let c=!1;u.subscribe(Ae(r,d=>{i[l]=d,c||(c=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,t,o?s=>BD(o,s):Wn));return n?i.pipe(HD(n)):i}function UD(e,t,n){e?un(n,e,t):t()}function md(...e){return function CF(){return hr(1)}()(we(e,yo(e)))}function GD(e){return new me(t=>{Rt(e()).subscribe(t)})}function gi(e,t){const n=re(e)?e:()=>e,r=o=>o.error(n());return new me(t?o=>t.schedule(r,0,o):r)}function yd(){return xe((e,t)=>{let n=null;e._refCount++;const r=Ae(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 zD extends me{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Sf(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 yt;const n=this.getSubject();t.add(this.source.subscribe(Ae(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=yt.EMPTY)}return t}refCount(){return yd()(this)}}function on(e,t){return xe((n,r)=>{let o=null,i=0,s=!1;const a=()=>s&&!o&&r.complete();n.subscribe(Ae(r,l=>{o?.unsubscribe();let u=0;const c=i++;Rt(e(l,c)).subscribe(o=Ae(r,d=>r.next(t?t(l,d,c,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function mi(e){return e<=0?()=>zt:xe((t,n)=>{let r=0;t.subscribe(Ae(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function _a(e){return xe((t,n)=>{let r=!1;t.subscribe(Ae(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function WD(e=EF){return xe((t,n)=>{let r=!1;t.subscribe(Ae(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function EF(){return new Da}function kn(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Ut((o,i)=>e(o,i,r)):Wn,mi(1),n?_a(t):WD(()=>new Da))}function Ge(e,t,n){const r=re(e)||t||n?{next:e,error:t,complete:n}:e;return r?xe((o,i)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;o.subscribe(Ae(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)}))}):Wn}function Ln(e){return xe((t,n)=>{let i,r=null,o=!1;r=t.subscribe(Ae(n,void 0,void 0,s=>{i=Rt(e(s,Ln(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function qD(e,t){return xe(function bF(e,t,n,r,o){return(i,s)=>{let a=n,l=t,u=0;i.subscribe(Ae(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))}function vd(e){return e<=0?()=>zt:xe((t,n)=>{let r=[];t.subscribe(Ae(n,o=>{r.push(o),e{for(const o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function ZD(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Ut((o,i)=>e(o,i,r)):Wn,vd(1),n?_a(t):WD(()=>new Da))}function Dd(e){return xe((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}const V="primary",yi=Symbol("RouteTitle");class IF{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 to(e){return new IF(e)}function AF(e,t,n){const r=n.path.split("/");if(r.length>e.length||"full"===n.pathMatch&&(t.hasChildren()||r.lengthr[i]===o)}return e===t}function YD(e){return Array.prototype.concat.apply([],e)}function QD(e){return e.length>0?e[e.length-1]:null}function Ve(e,t){for(const n in e)e.hasOwnProperty(n)&&t(e[n],n)}function Vn(e){return Gu(e)?e:Zo(e)?we(Promise.resolve(e)):A(e)}const Ca=!1,RF={exact:function e_(e,t,n){if(!ar(e.segments,t.segments)||!wa(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(const r in t.children)if(!e.children[r]||!e_(e.children[r],t.children[r],n))return!1;return!0},subset:t_},JD={exact:function NF(e,t){return sn(e,t)},subset:function xF(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>KD(e[n],t[n]))},ignored:()=>!0};function XD(e,t,n){return RF[n.paths](e.root,t.root,n.matrixParams)&&JD[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function t_(e,t,n){return n_(e,t,t.segments,n)}function n_(e,t,n,r){if(e.segments.length>n.length){const o=e.segments.slice(0,n.length);return!(!ar(o,n)||t.hasChildren()||!wa(o,n,r))}if(e.segments.length===n.length){if(!ar(e.segments,n)||!wa(e.segments,n,r))return!1;for(const o in t.children)if(!e.children[o]||!t_(e.children[o],t.children[o],r))return!1;return!0}{const o=n.slice(0,e.segments.length),i=n.slice(e.segments.length);return!!(ar(e.segments,o)&&wa(e.segments,o,r)&&e.children[V])&&n_(e.children[V],t,i,r)}}function wa(e,t,n){return t.every((r,o)=>JD[n](e[o].parameters,r.parameters))}class jn{constructor(t=new G([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=to(this.queryParams)),this._queryParamMap}toString(){return PF.serialize(this)}}class G{constructor(t,n){this.segments=t,this.children=n,this.parent=null,Ve(n,(r,o)=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ea(this)}}class vi{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap||(this._parameterMap=to(this.parameters)),this._parameterMap}toString(){return i_(this)}}function ar(e,t){return e.length===t.length&&e.every((n,r)=>n.path===t[r].path)}let Di=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=I({token:e,factory:function(){return new _d},providedIn:"root"}),e})();class _d{parse(t){const n=new GF(t);return new jn(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){const n=`/${_i(t.root,!0)}`,r=function VF(e){const t=Object.keys(e).map(n=>{const r=e[n];return Array.isArray(r)?r.map(o=>`${ba(n)}=${ba(o)}`).join("&"):`${ba(n)}=${ba(r)}`}).filter(n=>!!n);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${n}${r}${"string"==typeof t.fragment?`#${function kF(e){return encodeURI(e)}(t.fragment)}`:""}`}}const PF=new _d;function Ea(e){return e.segments.map(t=>i_(t)).join("/")}function _i(e,t){if(!e.hasChildren())return Ea(e);if(t){const n=e.children[V]?_i(e.children[V],!1):"",r=[];return Ve(e.children,(o,i)=>{i!==V&&r.push(`${i}:${_i(o,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=function OF(e,t){let n=[];return Ve(e.children,(r,o)=>{o===V&&(n=n.concat(t(r,o)))}),Ve(e.children,(r,o)=>{o!==V&&(n=n.concat(t(r,o)))}),n}(e,(r,o)=>o===V?[_i(e.children[V],!1)]:[`${o}:${_i(r,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[V]?`${Ea(e)}/${n[0]}`:`${Ea(e)}/(${n.join("//")})`}}function r_(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ba(e){return r_(e).replace(/%3B/gi,";")}function Cd(e){return r_(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ma(e){return decodeURIComponent(e)}function o_(e){return Ma(e.replace(/\+/g,"%20"))}function i_(e){return`${Cd(e.path)}${function LF(e){return Object.keys(e).map(t=>`;${Cd(t)}=${Cd(e[t])}`).join("")}(e.parameters)}`}const jF=/^[^\/()?;=#]+/;function Sa(e){const t=e.match(jF);return t?t[0]:""}const HF=/^[^=?&#]+/,$F=/^[^&#]+/;class GF{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new G([],{}):new G([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[V]=new G(t,n)),r}parseSegment(){const t=Sa(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new C(4009,Ca);return this.capture(t),new vi(Ma(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const n=Sa(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const o=Sa(this.remaining);o&&(r=o,this.capture(r))}t[Ma(n)]=Ma(r)}parseQueryParam(t){const n=function BF(e){const t=e.match(HF);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const s=function UF(e){const t=e.match($F);return t?t[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const o=o_(n),i=o_(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=Sa(this.remaining),o=this.remaining[r.length];if("/"!==o&&")"!==o&&";"!==o)throw new C(4010,Ca);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=V);const s=this.parseChildren();n[i]=1===Object.keys(s).length?s[V]:new G([],s),this.consumeOptional("//")}return n}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new C(4011,Ca)}}function wd(e){return e.segments.length>0?new G([],{[V]:e}):e}function Ia(e){const t={};for(const r of Object.keys(e.children)){const i=Ia(e.children[r]);(i.segments.length>0||i.hasChildren())&&(t[r]=i)}return function zF(e){if(1===e.numberOfChildren&&e.children[V]){const t=e.children[V];return new G(e.segments.concat(t.segments),t.children)}return e}(new G(e.segments,t))}function lr(e){return e instanceof jn}const Ed=!1;function WF(e,t,n,r,o){if(0===n.length)return no(t.root,t.root,t.root,r,o);const i=function c_(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new u_(!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 Ve(i.outlets,(l,u)=>{a[u]="string"==typeof l?l.split("/"):l}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return"string"!=typeof i?[...o,i]:0===s?(i.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?n=!0:".."===a?t++:""!=a&&o.push(a))}),o):[...o,i]},[]);return new u_(n,t,r)}(n);return i.toRoot()?no(t.root,t.root,new G([],{}),r,o):function s(l){const u=function ZF(e,t,n,r){if(e.isAbsolute)return new ro(t.root,!0,0);if(-1===r)return new ro(n,n===t.root,0);return function d_(e,t,n){let r=e,o=t,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new C(4005,Ed&&"Invalid number of '../'");o=r.segments.length}return new ro(r,!1,o-i)}(n,r+(Ci(e.commands[0])?0:1),e.numberOfDoubleDots)}(i,t,e.snapshot?._urlSegment,l),c=u.processChildren?oo(u.segmentGroup,u.index,i.commands):bd(u.segmentGroup,u.index,i.commands);return no(t.root,u.segmentGroup,c,r,o)}(e.snapshot?._lastPathIndex)}function Ci(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function wi(e){return"object"==typeof e&&null!=e&&e.outlets}function no(e,t,n,r,o){let s,i={};r&&Ve(r,(l,u)=>{i[u]=Array.isArray(l)?l.map(c=>`${c}`):`${l}`}),s=e===t?n:l_(e,t,n);const a=wd(Ia(s));return new jn(a,i,o)}function l_(e,t,n){const r={};return Ve(e.children,(o,i)=>{r[i]=o===t?n:l_(o,t,n)}),new G(e.segments,r)}class u_{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&Ci(r[0]))throw new C(4003,Ed&&"Root segment cannot have matrix parameters");const o=r.find(wi);if(o&&o!==QD(r))throw new C(4004,Ed&&"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ro{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}}function bd(e,t,n){if(e||(e=new G([],{})),0===e.segments.length&&e.hasChildren())return oo(e,t,n);const r=function YF(e,t,n){let r=0,o=t;const i={match:!1,pathIndex:0,commandIndex:0};for(;o=n.length)return i;const s=e.segments[o],a=n[r];if(wi(a))break;const l=`${a}`,u=r0&&void 0===l)break;if(l&&u&&"object"==typeof u&&void 0===u.outlets){if(!h_(l,u,s))return i;r+=2}else{if(!h_(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{"string"==typeof i&&(i=[i]),null!==i&&(o[s]=bd(e.children[s],t,i))}),Ve(e.children,(i,s)=>{void 0===r[s]&&(o[s]=i)}),new G(e.segments,o))}}function Md(e,t,n){const r=e.segments.slice(0,t);let o=0;for(;o{"string"==typeof n&&(n=[n]),null!==n&&(t[r]=Md(new G([],{}),0,n))}),t}function f_(e){const t={};return Ve(e,(n,r)=>t[r]=`${n}`),t}function h_(e,t,n){return e==n.path&&sn(t,n.parameters)}const Ei="imperative";class an{constructor(t,n){this.id=t,this.url=n}}class Sd extends an{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 ur extends an{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 Aa extends an{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 Ta extends an{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=16}}class Id extends an{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 JF extends an{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 XF extends an{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 eO extends an{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 tO extends an{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 nO extends an{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 rO{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class oO{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class iO{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class sO{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class aO{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class lO{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class p_{constructor(t,n,r){this.routerEvent=t,this.position=n,this.anchor=r,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let dO=(()=>{class e{createUrlTree(n,r,o,i,s,a){return WF(n||r.root,o,i,s,a)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac}),e})(),hO=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=I({token:e,factory:function(t){return dO.\u0275fac(t)},providedIn:"root"}),e})();class g_{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=Ad(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){const n=Ad(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){const n=Td(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return Td(t,this._root).map(n=>n.value)}}function Ad(e,t){if(e===t.value)return t;for(const n of t.children){const r=Ad(e,n);if(r)return r}return null}function Td(e,t){if(e===t.value)return[t];for(const n of t.children){const r=Td(e,n);if(r.length)return r.unshift(t),r}return[]}class Sn{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}}function io(e){const t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}class m_ extends g_{constructor(t,n){super(t),this.snapshot=n,Rd(this,t)}toString(){return this.snapshot.toString()}}function y_(e,t){const n=function pO(e,t){const s=new Ra([],{},{},"",{},V,t,null,e.root,-1,{});return new D_("",new Sn(s,[]))}(e,t),r=new It([new vi("",{})]),o=new It({}),i=new It({}),s=new It({}),a=new It(""),l=new so(r,o,s,a,i,V,t,n.root);return l.snapshot=n.root,new m_(new Sn(l,[]),n)}class so{constructor(t,n,r,o,i,s,a,l){this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.title=this.data?.pipe(B(u=>u[yi]))??A(void 0),this._futureSnapshot=l}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(B(t=>to(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(B(t=>to(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function v_(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 gO(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 Ra{get title(){return this.data?.[yi]}constructor(t,n,r,o,i,s,a,l,u,c,d){this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=l,this._urlSegment=u,this._lastPathIndex=c,this._resolve=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=to(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=to(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class D_ extends g_{constructor(t,n){super(n),this.url=t,Rd(this,n)}toString(){return __(this._root)}}function Rd(e,t){t.value._routerState=e,t.children.forEach(n=>Rd(e,n))}function __(e){const t=e.children.length>0?` { ${e.children.map(__).join(", ")} } `:"";return`${e.value}${t}`}function Nd(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,sn(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),sn(t.params,n.params)||e.params.next(n.params),function TF(e,t){if(e.length!==t.length)return!1;for(let n=0;nsn(n.parameters,t[r].parameters))}(e.url,t.url);return n&&!(!e.parent!=!t.parent)&&(!e.parent||xd(e.parent,t.parent))}function bi(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=t.value;const o=function yO(e,t,n){return t.children.map(r=>{for(const o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return bi(e,r,o);return bi(e,r)})}(e,t,n);return new Sn(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=>bi(e,a)),s}}const r=function vO(e){return new so(new It(e.url),new It(e.params),new It(e.queryParams),new It(e.fragment),new It(e.data),e.outlet,e.component,e)}(t.value),o=t.children.map(i=>bi(e,i));return new Sn(r,o)}}const Fd="ngNavigationCancelingError";function C_(e,t){const{redirectTo:n,navigationBehaviorOptions:r}=lr(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=w_(!1,0,t);return o.url=n,o.navigationBehaviorOptions=r,o}function w_(e,t,n){const r=new Error("NavigationCancelingError: "+(e||""));return r[Fd]=!0,r.cancellationCode=t,n&&(r.url=n),r}function E_(e){return b_(e)&&lr(e.url)}function b_(e){return e&&e[Fd]}class DO{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Mi,this.attachRef=null}}let Mi=(()=>{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 DO,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=I({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Na=!1;let Od=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=V,this.activateEvents=new de,this.deactivateEvents=new de,this.attachEvents=new de,this.detachEvents=new de,this.parentContexts=$(Mi),this.location=$(jt),this.changeDetector=$(si),this.environmentInjector=$(Jt)}ngOnChanges(n){if(n.name){const{firstChange:r,previousValue:o}=n.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new C(4012,Na);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new C(4012,Na);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new C(4012,Na);this.location.detach();const n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){const n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new C(4013,Na);this._activatedRoute=n;const o=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new _O(n,a,o.injector);if(r&&function CO(e){return!!e.resolveComponentFactory}(r)){const u=r.resolveComponentFactory(s);this.activated=o.createComponent(u,o.length,l)}else this.activated=o.createComponent(s,{index:o.length,injector:l,environmentInjector:r??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=O({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[lt]}),e})();class _O{constructor(t,n,r){this.route=t,this.childContexts=n,this.parent=r}get(t,n){return t===so?this.route:t===Mi?this.childContexts:this.parent.get(t,n)}}let Pd=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=An({type:e,selectors:[["ng-component"]],standalone:!0,features:[sc],decls:1,vars:0,template:function(n,r){1&n&&Rn(0,"router-outlet")},dependencies:[Od],encapsulation:2}),e})();function M_(e,t){return e.providers&&!e._injector&&(e._injector=Gs(e.providers,t,`Route: ${e.path}`)),e._injector??t}function Ld(e){const t=e.children&&e.children.map(Ld),n=t?{...e,children:t}:{...e};return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==V&&(n.component=Pd),n}function At(e){return e.outlet||V}function S_(e,t){const n=e.filter(r=>At(r)===t);return n.push(...e.filter(r=>At(r)!==t)),n}function Si(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 SO{constructor(t,n,r,o){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=o}activate(t){const n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),Nd(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){const o=io(n);t.children.forEach(i=>{const s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),Ve(o,(i,s)=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(t,n,r){const o=t.value,i=n?n.value:null;if(o===i)if(o.component){const s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else i&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){const r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=io(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=io(t);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);r&&r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated(),r.attachRef=null,r.resolver=null,r.route=null)}activateChildRoutes(t,n,r){const o=io(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new lO(i.value.snapshot))}),t.children.length&&this.forwardEvent(new sO(t.value.snapshot))}activateRoutes(t,n,r){const o=t.value,i=n?n.value:null;if(Nd(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),Nd(a.route.value),this.activateChildRoutes(t,null,s.children)}else{const a=Si(o.snapshot),l=a?.get(Bo)??null;s.attachRef=null,s.route=o,s.resolver=l,s.injector=a,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,r)}}class I_{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class xa{constructor(t,n){this.component=t,this.route=n}}function IO(e,t,n){const r=e._root;return Ii(r,t?t._root:null,n,[r.value])}function ao(e,t){const n=Symbol(),r=t.get(e,n);return r===n?"function"!=typeof e||function Kw(e){return null!==Gi(e)}(e)?t.get(e):e:r}function Ii(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=io(t);return e.children.forEach(s=>{(function TO(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 RO(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!ar(e.url,t.url);case"pathParamsOrQueryParamsChange":return!ar(e.url,t.url)||!sn(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!xd(e,t)||!sn(e.queryParams,t.queryParams);default:return!xd(e,t)}}(s,i,i.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new I_(r)):(i.data=s.data,i._resolvedData=s._resolvedData),Ii(e,t,i.component?a?a.children:null:n,r,o),l&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new xa(a.outlet.component,s))}else s&&Ai(t,a,o),o.canActivateChecks.push(new I_(r)),Ii(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]}),Ve(i,(s,a)=>Ai(s,n.getContext(a),o)),o}function Ai(e,t,n){const r=io(e),o=e.value;Ve(r,(i,s)=>{Ai(i,o.component?t?t.children.getContext(s):null:t,n)}),n.canDeactivateChecks.push(new xa(o.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,o))}function Ti(e){return"function"==typeof e}function Vd(e){return e instanceof Da||"EmptyError"===e?.name}const Fa=Symbol("INITIAL_VALUE");function lo(){return on(e=>$D(e.map(t=>t.pipe(mi(1),function wF(...e){const t=yo(e);return xe((n,r)=>{(t?md(e,n,t):md(e,n)).subscribe(r)})}(Fa)))).pipe(B(t=>{for(const n of t)if(!0!==n){if(n===Fa)return Fa;if(!1===n||n instanceof jn)return n}return!0}),Ut(t=>t!==Fa),mi(1)))}function A_(e){return wf(Ge(t=>{if(lr(t))throw C_(0,t)}),B(t=>!0===t))}const jd={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function T_(e,t,n,r,o){const i=Hd(e,t,n);return i.matched?function qO(e,t,n,r){const o=t.canMatch;return o&&0!==o.length?A(o.map(s=>{const a=ao(s,e);return Vn(function kO(e){return e&&Ti(e.canMatch)}(a)?a.canMatch(t,n):e.runInContext(()=>a(t,n)))})).pipe(lo(),A_()):A(!0)}(r=M_(t,r),t,n).pipe(B(s=>!0===s?i:{...jd})):A(i)}function Hd(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{...jd}:{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};const o=(t.matcher||AF)(n,e,t);if(!o)return{...jd};const i={};Ve(o.posParams,(a,l)=>{i[l]=a.path});const s=o.consumed.length>0?{...i,...o.consumed[o.consumed.length-1].parameters}:i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:n.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function Oa(e,t,n,r){if(n.length>0&&function YO(e,t,n){return n.some(r=>Pa(e,t,r)&&At(r)!==V)}(e,n,r)){const i=new G(t,function KO(e,t,n,r){const o={};o[V]=r,r._sourceSegment=e,r._segmentIndexShift=t.length;for(const i of n)if(""===i.path&&At(i)!==V){const s=new G([],{});s._sourceSegment=e,s._segmentIndexShift=t.length,o[At(i)]=s}return o}(e,t,r,new G(n,e.children)));return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:[]}}if(0===n.length&&function QO(e,t,n){return n.some(r=>Pa(e,t,r))}(e,n,r)){const i=new G(e.segments,function ZO(e,t,n,r,o){const i={};for(const s of r)if(Pa(e,n,s)&&!o[At(s)]){const a=new G([],{});a._sourceSegment=e,a._segmentIndexShift=t.length,i[At(s)]=a}return{...o,...i}}(e,t,n,r,e.children));return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:n}}const o=new G(e.segments,e.children);return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:n}}function Pa(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function R_(e,t,n,r){return!!(At(e)===r||r!==V&&Pa(t,n,e))&&("**"===e.path||Hd(t,e,n).matched)}function N_(e,t,n){return 0===t.length&&!e.children[n]}const ka=!1;class La{constructor(t){this.segmentGroup=t||null}}class x_{constructor(t){this.urlTree=t}}function Ri(e){return gi(new La(e))}function F_(e){return gi(new x_(e))}class tP{constructor(t,n,r,o,i){this.injector=t,this.configLoader=n,this.urlSerializer=r,this.urlTree=o,this.config=i,this.allowRedirects=!0}apply(){const t=Oa(this.urlTree.root,[],[],this.config).segmentGroup,n=new G(t.segments,t.children);return this.expandSegmentGroup(this.injector,this.config,n,V).pipe(B(i=>this.createUrlTree(Ia(i),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Ln(i=>{if(i instanceof x_)return this.allowRedirects=!1,this.match(i.urlTree);throw i instanceof La?this.noMatchError(i):i}))}match(t){return this.expandSegmentGroup(this.injector,this.config,t.root,V).pipe(B(o=>this.createUrlTree(Ia(o),t.queryParams,t.fragment))).pipe(Ln(o=>{throw o instanceof La?this.noMatchError(o):o}))}noMatchError(t){return new C(4002,ka)}createUrlTree(t,n,r){const o=wd(t);return new jn(o,n,r)}expandSegmentGroup(t,n,r,o){return 0===r.segments.length&&r.hasChildren()?this.expandChildren(t,n,r).pipe(B(i=>new G([],i))):this.expandSegment(t,r,n,r.segments,o,!0)}expandChildren(t,n,r){const o=[];for(const i of Object.keys(r.children))"primary"===i?o.unshift(i):o.push(i);return we(o).pipe(On(i=>{const s=r.children[i],a=S_(n,i);return this.expandSegmentGroup(t,a,s,i).pipe(B(l=>({segment:l,outlet:i})))}),qD((i,s)=>(i[s.outlet]=s.segment,i),{}),ZD())}expandSegment(t,n,r,o,i,s){return we(r).pipe(On(a=>this.expandSegmentAgainstRoute(t,n,r,a,o,i,s).pipe(Ln(u=>{if(u instanceof La)return A(null);throw u}))),kn(a=>!!a),Ln((a,l)=>{if(Vd(a))return N_(n,o,i)?A(new G([],{})):Ri(n);throw a}))}expandSegmentAgainstRoute(t,n,r,o,i,s,a){return R_(o,n,i,s)?void 0===o.redirectTo?this.matchSegmentAgainstRoute(t,n,o,i,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s):Ri(n):Ri(n)}expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,r,o,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o){const i=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?F_(i):this.lineralizeSegments(r,i).pipe(Fe(s=>{const a=new G(s,{});return this.expandSegment(t,a,n,s,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s){const{matched:a,consumedSegments:l,remainingSegments:u,positionalParamSegments:c}=Hd(n,o,i);if(!a)return Ri(n);const d=this.applyRedirectCommands(l,o.redirectTo,c);return o.redirectTo.startsWith("/")?F_(d):this.lineralizeSegments(o,d).pipe(Fe(f=>this.expandSegment(t,n,r,f.concat(u),s,!1)))}matchSegmentAgainstRoute(t,n,r,o,i){return"**"===r.path?(t=M_(r,t),r.loadChildren?(r._loadedRoutes?A({routes:r._loadedRoutes,injector:r._loadedInjector}):this.configLoader.loadChildren(t,r)).pipe(B(a=>(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,new G(o,{})))):A(new G(o,{}))):T_(n,r,o,t).pipe(on(({matched:s,consumedSegments:a,remainingSegments:l})=>s?this.getChildConfig(t=r._injector??t,r,o).pipe(Fe(c=>{const d=c.injector??t,f=c.routes,{segmentGroup:h,slicedSegments:p}=Oa(n,a,l,f),g=new G(h.segments,h.children);if(0===p.length&&g.hasChildren())return this.expandChildren(d,f,g).pipe(B(y=>new G(a,y)));if(0===f.length&&0===p.length)return A(new G(a,{}));const m=At(r)===i;return this.expandSegment(d,g,f,p,m?V:i,!0).pipe(B(w=>new G(a.concat(w.segments),w.children)))})):Ri(n)))}getChildConfig(t,n,r){return n.children?A({routes:n.children,injector:t}):n.loadChildren?void 0!==n._loadedRoutes?A({routes:n._loadedRoutes,injector:n._loadedInjector}):function WO(e,t,n,r){const o=t.canLoad;return void 0===o||0===o.length?A(!0):A(o.map(s=>{const a=ao(s,e);return Vn(function xO(e){return e&&Ti(e.canLoad)}(a)?a.canLoad(t,n):e.runInContext(()=>a(t,n)))})).pipe(lo(),A_())}(t,n,r).pipe(Fe(o=>o?this.configLoader.loadChildren(t,n).pipe(Ge(i=>{n._loadedRoutes=i.routes,n._loadedInjector=i.injector})):function XO(e){return gi(w_(ka,3))}())):A({routes:[],injector:t})}lineralizeSegments(t,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),0===o.numberOfChildren)return A(r);if(o.numberOfChildren>1||!o.children[V])return t.redirectTo,gi(new C(4e3,ka));o=o.children[V]}}applyRedirectCommands(t,n,r){return this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r)}applyRedirectCreateUrlTree(t,n,r,o){const i=this.createSegmentGroup(t,n.root,r,o);return new jn(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){const r={};return Ve(t,(o,i)=>{if("string"==typeof o&&o.startsWith(":")){const a=o.substring(1);r[i]=n[a]}else r[i]=o}),r}createSegmentGroup(t,n,r,o){const i=this.createSegments(t,n.segments,r,o);let s={};return Ve(n.children,(a,l)=>{s[l]=this.createSegmentGroup(t,a,r,o)}),new G(i,s)}createSegments(t,n,r,o){return n.map(i=>i.path.startsWith(":")?this.findPosParam(t,i,o):this.findOrReturn(i,r))}findPosParam(t,n,r){const o=r[n.path.substring(1)];if(!o)throw new C(4001,ka);return o}findOrReturn(t,n){let r=0;for(const o of n){if(o.path===t.path)return n.splice(r),o;r++}return t}}class rP{}class sP{constructor(t,n,r,o,i,s,a){this.injector=t,this.rootComponentType=n,this.config=r,this.urlTree=o,this.url=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a}recognize(){const t=Oa(this.urlTree.root,[],[],this.config.filter(n=>void 0===n.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,V).pipe(B(n=>{if(null===n)return null;const r=new Ra([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},V,this.rootComponentType,null,this.urlTree.root,-1,{}),o=new Sn(r,n),i=new D_(this.url,o);return this.inheritParamsAndData(i._root),i}))}inheritParamsAndData(t){const n=t.value,r=v_(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(t,n,r,o){return 0===r.segments.length&&r.hasChildren()?this.processChildren(t,n,r):this.processSegment(t,n,r,r.segments,o)}processChildren(t,n,r){return we(Object.keys(r.children)).pipe(On(o=>{const i=r.children[o],s=S_(n,o);return this.processSegmentGroup(t,s,i,o)}),qD((o,i)=>o&&i?(o.push(...i),o):null),function MF(e,t=!1){return xe((n,r)=>{let o=0;n.subscribe(Ae(r,i=>{const s=e(i,o++);(s||t)&&r.next(i),!s&&r.complete()}))})}(o=>null!==o),_a(null),ZD(),B(o=>{if(null===o)return null;const i=P_(o);return function aP(e){e.sort((t,n)=>t.value.outlet===V?-1:n.value.outlet===V?1:t.value.outlet.localeCompare(n.value.outlet))}(i),i}))}processSegment(t,n,r,o,i){return we(n).pipe(On(s=>this.processSegmentAgainstRoute(s._injector??t,s,r,o,i)),kn(s=>!!s),Ln(s=>{if(Vd(s))return N_(r,o,i)?A([]):A(null);throw s}))}processSegmentAgainstRoute(t,n,r,o,i){if(n.redirectTo||!R_(n,r,o,i))return A(null);let s;if("**"===n.path){const a=o.length>0?QD(o).parameters:{},l=L_(r)+o.length;s=A({snapshot:new Ra(o,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,V_(n),At(n),n.component??n._loadedComponent??null,n,k_(r),l,j_(n)),consumedSegments:[],remainingSegments:[]})}else s=T_(r,n,o,t).pipe(B(({matched:a,consumedSegments:l,remainingSegments:u,parameters:c})=>{if(!a)return null;const d=L_(r)+l.length;return{snapshot:new Ra(l,c,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,V_(n),At(n),n.component??n._loadedComponent??null,n,k_(r),d,j_(n)),consumedSegments:l,remainingSegments:u}}));return s.pipe(on(a=>{if(null===a)return A(null);const{snapshot:l,consumedSegments:u,remainingSegments:c}=a;t=n._injector??t;const d=n._loadedInjector??t,f=function lP(e){return e.children?e.children:e.loadChildren?e._loadedRoutes:[]}(n),{segmentGroup:h,slicedSegments:p}=Oa(r,u,c,f.filter(m=>void 0===m.redirectTo));if(0===p.length&&h.hasChildren())return this.processChildren(d,f,h).pipe(B(m=>null===m?null:[new Sn(l,m)]));if(0===f.length&&0===p.length)return A([new Sn(l,[])]);const g=At(n)===i;return this.processSegment(d,f,h,p,g?V:i).pipe(B(m=>null===m?null:[new Sn(l,m)]))}))}}function uP(e){const t=e.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function P_(e){const t=[],n=new Set;for(const r of e){if(!uP(r)){t.push(r);continue}const o=t.find(i=>r.value.routeConfig===i.value.routeConfig);void 0!==o?(o.children.push(...r.children),n.add(o)):t.push(r)}for(const r of n){const o=P_(r.children);t.push(new Sn(r.value,o))}return t.filter(r=>!n.has(r))}function k_(e){let t=e;for(;t._sourceSegment;)t=t._sourceSegment;return t}function L_(e){let t=e,n=t._segmentIndexShift??0;for(;t._sourceSegment;)t=t._sourceSegment,n+=t._segmentIndexShift??0;return n-1}function V_(e){return e.data||{}}function j_(e){return e.resolve||{}}function H_(e){return"string"==typeof e.title||null===e.title}function Bd(e){return on(t=>{const n=e(t);return n?we(n).pipe(B(()=>t)):A(t)})}const uo=new M("ROUTES");let $d=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=$(nv)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return A(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);const r=Vn(n.loadComponent()).pipe(B($_),Ge(i=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=i}),Dd(()=>{this.componentLoaders.delete(n)})),o=new zD(r,()=>new ln).pipe(yd());return this.componentLoaders.set(n,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return A({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const i=this.loadModuleFactoryOrRoutes(r.loadChildren).pipe(B(a=>{this.onLoadEndListener&&this.onLoadEndListener(r);let l,u,c=!1;Array.isArray(a)?u=a:(l=a.create(n).injector,u=YD(l.get(uo,[],x.Self|x.Optional)));return{routes:u.map(Ld),injector:l}}),Dd(()=>{this.childrenLoaders.delete(r)})),s=new zD(i,()=>new ln).pipe(yd());return this.childrenLoaders.set(r,s),s}loadModuleFactoryOrRoutes(n){return Vn(n()).pipe(B($_),Fe(r=>r instanceof hy||Array.isArray(r)?A(r):we(this.compiler.compileModuleAsync(r))))}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function $_(e){return function yP(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let ja=(()=>{class e{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new ln,this.configLoader=$($d),this.environmentInjector=$(Jt),this.urlSerializer=$(Di),this.rootContexts=$(Mi),this.navigationId=0,this.afterPreactivation=()=>A(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new oO(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new rO(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 It({id:0,targetPageId:0,currentUrlTree:n.currentUrlTree,currentRawUrl:n.currentUrlTree,extractedUrl:n.urlHandlingStrategy.extract(n.currentUrlTree),urlAfterRedirects:n.urlHandlingStrategy.extract(n.currentUrlTree),rawUrl:n.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Ei,restoredState:null,currentSnapshot:n.routerState.snapshot,targetSnapshot:null,currentRouterState:n.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Ut(r=>0!==r.id),B(r=>({...r,extractedUrl:n.urlHandlingStrategy.extract(r.rawUrl)})),on(r=>{let o=!1,i=!1;return A(r).pipe(Ge(s=>{this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),on(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 Ta(s.id,n.serializeUrl(r.rawUrl),c,0)),n.rawUrlTree=s.rawUrl,s.resolve(null),zt}if(n.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return U_(s.source)&&(n.browserUrlTree=s.extractedUrl),A(s).pipe(on(c=>{const d=this.transitions?.getValue();return this.events.next(new Sd(c.id,this.urlSerializer.serialize(c.extractedUrl),c.source,c.restoredState)),d!==this.transitions?.getValue()?zt:Promise.resolve(c)}),function nP(e,t,n,r){return on(o=>function eP(e,t,n,r,o){return new tP(e,t,n,r,o).apply()}(e,t,n,o.extractedUrl,r).pipe(B(i=>({...o,urlAfterRedirects:i}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,n.config),Ge(c=>{this.currentNavigation={...this.currentNavigation,finalUrl:c.urlAfterRedirects},r.urlAfterRedirects=c.urlAfterRedirects}),function dP(e,t,n,r,o){return Fe(i=>function iP(e,t,n,r,o,i,s="emptyOnly"){return new sP(e,t,n,r,o,s,i).recognize().pipe(on(a=>null===a?function oP(e){return new me(t=>t.error(e))}(new rP):A(a)))}(e,t,n,i.urlAfterRedirects,r.serialize(i.urlAfterRedirects),r,o).pipe(B(s=>({...i,targetSnapshot:s}))))}(this.environmentInjector,this.rootComponentType,n.config,this.urlSerializer,n.paramsInheritanceStrategy),Ge(c=>{if(r.targetSnapshot=c.targetSnapshot,"eager"===n.urlUpdateStrategy){if(!c.extras.skipLocationChange){const f=n.urlHandlingStrategy.merge(c.urlAfterRedirects,c.rawUrl);n.setBrowserUrl(f,c)}n.browserUrlTree=c.urlAfterRedirects}const d=new JF(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,g=new Sd(c,this.urlSerializer.serialize(d),f,h);this.events.next(g);const m=y_(d,this.rootComponentType).snapshot;return A(r={...s,targetSnapshot:m,urlAfterRedirects:d,extras:{...p,skipLocationChange:!1,replaceUrl:!1}})}{const c="";return this.events.next(new Ta(s.id,n.serializeUrl(r.extractedUrl),c,1)),n.rawUrlTree=s.rawUrl,s.resolve(null),zt}}),Ge(s=>{const a=new XF(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),B(s=>r={...s,guards:IO(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function VO(e,t){return Fe(n=>{const{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return 0===s.length&&0===i.length?A({...n,guardsResult:!0}):function jO(e,t,n,r){return we(e).pipe(Fe(o=>function zO(e,t,n,r,o){const i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return i&&0!==i.length?A(i.map(a=>{const l=Si(t)??o,u=ao(a,l);return Vn(function PO(e){return e&&Ti(e.canDeactivate)}(u)?u.canDeactivate(e,t,n,r):l.runInContext(()=>u(e,t,n,r))).pipe(kn())})).pipe(lo()):A(!0)}(o.component,o.route,n,t,r)),kn(o=>!0!==o,!0))}(s,r,o,e).pipe(Fe(a=>a&&function NO(e){return"boolean"==typeof e}(a)?function HO(e,t,n,r){return we(t).pipe(On(o=>md(function $O(e,t){return null!==e&&t&&t(new iO(e)),A(!0)}(o.route.parent,r),function BO(e,t){return null!==e&&t&&t(new aO(e)),A(!0)}(o.route,r),function GO(e,t,n){const r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(s=>function AO(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=>GD(()=>A(s.guards.map(l=>{const u=Si(s.node)??n,c=ao(l,u);return Vn(function OO(e){return e&&Ti(e.canActivateChild)}(c)?c.canActivateChild(r,e):u.runInContext(()=>c(r,e))).pipe(kn())})).pipe(lo())));return A(i).pipe(lo())}(e,o.path,n),function UO(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||0===r.length)return A(!0);const o=r.map(i=>GD(()=>{const s=Si(t)??n,a=ao(i,s);return Vn(function FO(e){return e&&Ti(e.canActivate)}(a)?a.canActivate(t,e):s.runInContext(()=>a(t,e))).pipe(kn())}));return A(o).pipe(lo())}(e,o.route,n))),kn(o=>!0!==o,!0))}(r,i,e,t):A(a)),B(a=>({...n,guardsResult:a})))})}(this.environmentInjector,s=>this.events.next(s)),Ge(s=>{if(r.guardsResult=s.guardsResult,lr(s.guardsResult))throw C_(0,s.guardsResult);const a=new eO(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),Ut(s=>!!s.guardsResult||(n.restoreHistory(s),this.cancelNavigationTransition(s,"",3),!1)),Bd(s=>{if(s.guards.canActivateChecks.length)return A(s).pipe(Ge(a=>{const l=new tO(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}),on(a=>{let l=!1;return A(a).pipe(function fP(e,t){return Fe(n=>{const{targetSnapshot:r,guards:{canActivateChecks:o}}=n;if(!o.length)return A(n);let i=0;return we(o).pipe(On(s=>function hP(e,t,n,r){const o=e.routeConfig,i=e._resolve;return void 0!==o?.title&&!H_(o)&&(i[yi]=o.title),function pP(e,t,n,r){const o=function gP(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===o.length)return A({});const i={};return we(o).pipe(Fe(s=>function mP(e,t,n,r){const o=Si(t)??r,i=ao(e,o);return Vn(i.resolve?i.resolve(t,n):o.runInContext(()=>i(t,n)))}(e[s],t,n,r).pipe(kn(),Ge(a=>{i[s]=a}))),vd(1),function SF(e){return B(()=>e)}(i),Ln(s=>Vd(s)?zt:gi(s)))}(i,e,t,r).pipe(B(s=>(e._resolvedData=s,e.data=v_(e,n).resolve,o&&H_(o)&&(e.data[yi]=o.title),null)))}(s.route,r,e,t)),Ge(()=>i++),vd(1),Fe(s=>i===o.length?A(n):zt))})}(n.paramsInheritanceStrategy,this.environmentInjector),Ge({next:()=>l=!0,complete:()=>{l||(n.restoreHistory(a),this.cancelNavigationTransition(a,"",2))}}))}),Ge(a=>{const l=new nO(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}))}),Bd(s=>{const a=l=>{const u=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(l.routeConfig).pipe(Ge(c=>{l.component=c}),B(()=>{})));for(const c of l.children)u.push(...a(c));return u};return $D(a(s.targetSnapshot.root)).pipe(_a(),mi(1))}),Bd(()=>this.afterPreactivation()),B(s=>{const a=function mO(e,t,n){const r=bi(e,t._root,n?n._root:void 0);return new m_(r,t)}(n.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return r={...s,targetRouterState:a}}),Ge(s=>{n.currentUrlTree=s.urlAfterRedirects,n.rawUrlTree=n.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),n.routerState=s.targetRouterState,"deferred"===n.urlUpdateStrategy&&(s.extras.skipLocationChange||n.setBrowserUrl(n.rawUrlTree,s),n.browserUrlTree=s.urlAfterRedirects)}),((e,t,n)=>B(r=>(new SO(t,r.targetRouterState,r.currentRouterState,n).activate(e),r)))(this.rootContexts,n.routeReuseStrategy,s=>this.events.next(s)),Ge({next:s=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,n.navigated=!0,this.events.next(new ur(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(n.currentUrlTree))),n.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{o=!0}}),Dd(()=>{o||i||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),Ln(s=>{if(i=!0,b_(s)){E_(s)||(n.navigated=!0,n.restoreHistory(r,!0));const a=new Aa(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode);if(this.events.next(a),E_(s)){const l=n.urlHandlingStrategy.merge(s.url,n.rawUrlTree),u={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===n.urlUpdateStrategy||U_(r.source)};n.scheduleNavigation(l,Ei,null,u,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{n.restoreHistory(r,!0);const a=new Id(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 zt}))}))}cancelNavigationTransition(n,r,o){const i=new Aa(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=I({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function U_(e){return e!==Ei}let G_=(()=>{class e{buildTitle(n){let r,o=n.root;for(;void 0!==o;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===V);return r}getResolvedTitleForRoute(n){return n.data[yi]}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=I({token:e,factory:function(){return $(vP)},providedIn:"root"}),e})(),vP=(()=>{class e extends G_{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)(S(wD))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),DP=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=I({token:e,factory:function(){return $(CP)},providedIn:"root"}),e})();class _P{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}}let CP=(()=>{class e extends _P{}return e.\u0275fac=function(){let t;return function(r){return(t||(t=ke(e)))(r||e)}}(),e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Ha=new M("",{providedIn:"root",factory:()=>({})});let EP=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=I({token:e,factory:function(){return $(bP)},providedIn:"root"}),e})(),bP=(()=>{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=I({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function MP(e){throw e}function SP(e,t,n){return t.parse("/")}const IP={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},AP={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let gt=(()=>{class e{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=$(NT),this.isNgZoneEnabled=!1,this.options=$(Ha,{optional:!0})||{},this.errorHandler=this.options.errorHandler||MP,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||SP,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=$(EP),this.routeReuseStrategy=$(DP),this.urlCreationStrategy=$(hO),this.titleStrategy=$(G_),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=YD($(uo,{optional:!0})??[]),this.navigationTransitions=$(ja),this.urlSerializer=$(Di),this.location=$(Vc),this.isNgZoneEnabled=$(fe)instanceof fe&&fe.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new jn,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=y_(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(n=>{this.lastSuccessfulId=n.id,this.currentPageId=n.targetPageId},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),Ei,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}resetConfig(n){this.config=n.map(Ld),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 c=null;switch(a){case"merge":c={...this.currentUrlTree.queryParams,...i};break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}return null!==c&&(c=this.removeEmptyProps(c)),this.urlCreationStrategy.createUrlTree(o,this.routerState,this.currentUrlTree,n,c,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,Ei,null,r)}navigate(n,r={skipLocationChange:!1}){return function TP(e){for(let t=0;t{const i=n[o];return null!=i&&(r[o]=i),r},{})}scheduleNavigation(n,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let a,l,u,c;return s?(a=s.resolve,l=s.reject,u=s.promise):u=new Promise((d,f)=>{a=d,l=f}),c="computed"===this.canceledNavigationResolution?o&&o.\u0275routerPageId?o.\u0275routerPageId:i.replaceUrl||i.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:c,source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:i,resolve:a,reject: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),i={...r.extras.state,...this.generateNgRouterState(r.id,r.targetPageId)};this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl?this.location.replaceState(o,"",i):this.location.go(o,"",i)}restoreHistory(n,r=!1){if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-n.targetPageId;"popstate"!==n.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.getCurrentNavigation()?.finalUrl||0===o?this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===o&&(this.resetState(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(o)}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=n.currentRouterState,this.currentUrlTree=n.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return"computed"===this.canceledNavigationResolution?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Ba=(()=>{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 ln;const l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=n.events.subscribe(u=>{u instanceof ur&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(n){this._preserveFragment=Xr(n)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(n){this._skipLocationChange=Xr(n)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(n){this._replaceUrl=Xr(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 Lp(e,t,n){return function TM(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?kp:Pp}(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)(v(gt),v(so),function ds(e){return function QE(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{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(Ut(n=>n instanceof ur),On(()=>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=Gs(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 we(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):A(null);const i=o.pipe(Fe(s=>null===s?A(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??n,s.routes))));return r.loadComponent&&!r._loadedComponent?we([i,this.loader.loadComponent(r)]).pipe(hr()):i})}}return e.\u0275fac=function(n){return new(n||e)(S(gt),S(nv),S(Jt),S(z_),S($d))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Gd=new M("");let W_=(()=>{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 Sd?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof ur&&(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof p_&&(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 p_(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return e.\u0275fac=function(n){!function pg(){throw new Error("invalid")}()},e.\u0275prov=I({token:e,factory:e.\u0275fac}),e})();var mt=(()=>((mt=mt||{})[mt.COMPLETE=0]="COMPLETE",mt[mt.FAILED=1]="FAILED",mt[mt.REDIRECTING=2]="REDIRECTING",mt))();const co=!1;function Hn(e,t){return{\u0275kind:e,\u0275providers:t}}const zd=new M("",{providedIn:"root",factory:()=>!1});function Z_(){const e=$(kt);return t=>{const n=e.get(Qs);if(t!==n.components[0])return;const r=e.get(gt),o=e.get(K_);1===e.get(Wd)&&r.initialNavigation(),e.get(Y_,null,x.Optional)?.setUpPreloading(),e.get(Gd,null,x.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.unsubscribe())}}const K_=new M(co?"bootstrap done indicator":"",{factory:()=>new ln}),Wd=new M(co?"initial navigation":"",{providedIn:"root",factory:()=>1});function LP(){let e=[];return e=co?[{provide:Es,multi:!0,useFactory:()=>{const t=$(gt);return()=>t.events.subscribe(n=>{console.group?.(`Router Event: ${n.constructor.name}`),console.log(function uO(e){if(!("type"in e))return`Unknown Router Event: ${e.constructor.name}`;switch(e.type){case 14:return`ActivationEnd(path: '${e.snapshot.routeConfig?.path||""}')`;case 13:return`ActivationStart(path: '${e.snapshot.routeConfig?.path||""}')`;case 12:return`ChildActivationEnd(path: '${e.snapshot.routeConfig?.path||""}')`;case 11:return`ChildActivationStart(path: '${e.snapshot.routeConfig?.path||""}')`;case 8:return`GuardsCheckEnd(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}', state: ${e.state}, shouldActivate: ${e.shouldActivate})`;case 7:return`GuardsCheckStart(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}', state: ${e.state})`;case 2:return`NavigationCancel(id: ${e.id}, url: '${e.url}')`;case 16:return`NavigationSkipped(id: ${e.id}, url: '${e.url}')`;case 1:return`NavigationEnd(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}')`;case 3:return`NavigationError(id: ${e.id}, url: '${e.url}', error: ${e.error})`;case 0:return`NavigationStart(id: ${e.id}, url: '${e.url}')`;case 6:return`ResolveEnd(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}', state: ${e.state})`;case 5:return`ResolveStart(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}', state: ${e.state})`;case 10:return`RouteConfigLoadEnd(path: ${e.route.path})`;case 9:return`RouteConfigLoadStart(path: ${e.route.path})`;case 4:return`RoutesRecognized(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}', state: ${e.state})`;case 15:return`Scroll(anchor: '${e.anchor}', position: '${e.position?`${e.position[0]}, ${e.position[1]}`:null}')`}}(n)),console.log(n),console.groupEnd?.()})}}]:[],Hn(1,e)}const Y_=new M(co?"router preloader":"");function VP(e){return Hn(0,[{provide:Y_,useExisting:xP},{provide:z_,useExisting:e}])}const Ni=!1,Q_=new M(Ni?"router duplicate forRoot guard":"ROUTER_FORROOT_GUARD"),jP=[Vc,{provide:Di,useClass:_d},gt,Mi,{provide:so,useFactory:function q_(e){return e.routerState.root},deps:[gt]},$d,Ni?{provide:zd,useValue:!0}:[]];function HP(){return new cv("Router",gt)}let BP=(()=>{class e{constructor(n){}static forRoot(n,r){return{ngModule:e,providers:[jP,Ni&&r?.enableTracing?LP().\u0275providers:[],{provide:uo,multi:!0,useValue:n},{provide:Q_,useFactory:zP,deps:[[gt,new xo,new Fo]]},{provide:Ha,useValue:r||{}},r?.useHash?{provide:sr,useClass:vR}:{provide:sr,useClass:Fv},{provide:Gd,useFactory:()=>{const e=$(LN),t=$(fe),n=$(Ha),r=$(ja),o=$(Di);return n.scrollOffset&&e.setOffset(n.scrollOffset),new W_(o,r,e,t,n)}},r?.preloadingStrategy?VP(r.preloadingStrategy).\u0275providers:[],{provide:cv,multi:!0,useFactory:HP},r?.initialNavigation?WP(r):[],[{provide:J_,useFactory:Z_},{provide:uv,multi:!0,useExisting:J_}]]}}static forChild(n){return{ngModule:e,providers:[{provide:uo,multi:!0,useValue:n}]}}}return e.\u0275fac=function(n){return new(n||e)(S(Q_,8))},e.\u0275mod=_t({type:e}),e.\u0275inj=it({imports:[Pd]}),e})();function zP(e){if(Ni&&e)throw new C(4007,"The Router was provided more than once. This can happen if 'forRoot' is used outside of the root injector. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function WP(e){return["disabled"===e.initialNavigation?Hn(3,[{provide:Zs,multi:!0,useFactory:()=>{const t=$(gt);return()=>{t.setUpLocationChangeListener()}}},{provide:Wd,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?Hn(2,[{provide:Wd,useValue:0},{provide:Zs,multi:!0,deps:[kt],useFactory:t=>{const n=t.get(mR,Promise.resolve());return()=>n.then(()=>new Promise(r=>{const o=t.get(gt),i=t.get(K_);(function FP(e,t){e.events.pipe(Ut(n=>n instanceof ur||n instanceof Aa||n instanceof Id||n instanceof Ta),B(n=>n instanceof ur||n instanceof Ta?mt.COMPLETE:n instanceof Aa&&(0===n.code||1===n.code)?mt.REDIRECTING:mt.FAILED),Ut(n=>n!==mt.REDIRECTING),mi(1)).subscribe(()=>{t()})})(o,()=>{r(!0)}),t.get(ja).afterPreactivation=()=>(r(!0),i.closed?A(void 0):i),o.initialNavigation()}))}}]).\u0275providers:[]]}const J_=new M(Ni?"Router Initializer":"");let X_=(()=>{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)(v(yn),v(nt))},e.\u0275dir=O({type:e}),e})(),cr=(()=>{class e extends X_{}return e.\u0275fac=function(){let t;return function(r){return(t||(t=ke(e)))(r||e)}}(),e.\u0275dir=O({type:e,features:[Q]}),e})();const Gt=new M("NgValueAccessor"),YP={provide:Gt,useExisting:X(()=>qd),multi:!0},JP=new M("CompositionEventMode");let qd=(()=>{class e extends X_{constructor(n,r,o){super(n,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function QP(){const e=wn()?wn().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(n){this.setProperty("value",n??"")}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}}return e.\u0275fac=function(n){return new(n||e)(v(yn),v(nt),v(JP,8))},e.\u0275dir=O({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&&Le("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:[ue([YP]),Q]}),e})();const XP=!1,ze=new M("NgValidators"),$n=new M("NgAsyncValidators");function cC(e){return null!=e}function dC(e){const t=Zo(e)?we(e):e;if(XP&&!Gu(t)){let n="Expected async validator to return Promise or Observable.";throw"object"==typeof e&&(n+=" Are you using a synchronous validator where an async validator is expected?"),new C(-1101,n)}return t}function fC(e){let t={};return e.forEach(n=>{t=null!=n?{...t,...n}:t}),0===Object.keys(t).length?null:t}function hC(e,t){return t.map(n=>n(e))}function pC(e){return e.map(t=>function t1(e){return!e.validate}(t)?t:n=>t.validate(n))}function Zd(e){return null!=e?function gC(e){if(!e)return null;const t=e.filter(cC);return 0==t.length?null:function(n){return fC(hC(n,t))}}(pC(e)):null}function Kd(e){return null!=e?function mC(e){if(!e)return null;const t=e.filter(cC);return 0==t.length?null:function(n){return function ZP(...e){const t=Hf(e),{args:n,keys:r}=jD(e),o=new me(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{d||(d=!0,u--),a[c]=f},()=>l--,void 0,()=>{(!l||!d)&&(u||i.next(r?BD(r,a):a),i.complete())}))}});return t?o.pipe(HD(t)):o}(hC(n,t).map(dC)).pipe(B(fC))}}(pC(e)):null}function yC(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function Yd(e){return e?Array.isArray(e)?e:[e]:[]}function Ua(e,t){return Array.isArray(e)?e.includes(t):e===t}function _C(e,t){const n=Yd(t);return Yd(e).forEach(o=>{Ua(n,o)||n.push(o)}),n}function CC(e,t){return Yd(t).filter(n=>!Ua(e,n))}class wC{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=Zd(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Kd(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,n){return!!this.control&&this.control.hasError(t,n)}getError(t,n){return this.control?this.control.getError(t,n):null}}class Qe extends wC{get formDirective(){return null}get path(){return null}}class Un extends wC{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class EC{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 xi=(()=>{class e extends EC{constructor(n){super(n)}}return e.\u0275fac=function(n){return new(n||e)(v(Un,2))},e.\u0275dir=O({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){2&n&&Vs("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:[Q]}),e})();const Fi="VALID",za="INVALID",fo="PENDING",Oi="DISABLED";function Wa(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class IC{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===Fi}get invalid(){return this.status===za}get pending(){return this.status==fo}get disabled(){return this.status===Oi}get enabled(){return this.status!==Oi}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(_C(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(_C(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(CC(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(CC(t,this._rawAsyncValidators))}hasValidator(t){return Ua(this._rawValidators,t)}hasAsyncValidator(t){return Ua(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(n=>{n.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=fo,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=Oi,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=Fi,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===Fi||this.status===fo)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Oi:Fi}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=fo,this._hasOwnPendingAsyncValidator=!0;const n=dC(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 de,this.statusChanges=new de}_calculateStatus(){return this._allControlsDisabled()?Oi:this.errors?za:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(fo)?fo:this._anyControlsHaveStatus(za)?za:Fi}_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){Wa(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 u1(e){return Array.isArray(e)?Zd(e):e||null}(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=function c1(e){return Array.isArray(e)?Kd(e):e||null}(this._rawAsyncValidators)}}const ho=new M("CallSetDisabledState",{providedIn:"root",factory:()=>qa}),qa="always";function Pi(e,t,n=qa){(function rf(e,t){const n=function vC(e){return e._rawValidators}(e);null!==t.validator?e.setValidators(yC(n,t.validator)):"function"==typeof n&&e.setValidators([n]);const r=function DC(e){return e._rawAsyncValidators}(e);null!==t.asyncValidator?e.setAsyncValidators(yC(r,t.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const o=()=>e.updateValueAndValidity();Ya(t._rawValidators,o),Ya(t._rawAsyncValidators,o)})(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||"always"===n)&&t.valueAccessor.setDisabledState?.(e.disabled),function h1(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&AC(e,t)})}(e,t),function g1(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 p1(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&AC(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function f1(e,t){if(t.valueAccessor.setDisabledState){const n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}(e,t)}function Ya(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function AC(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function NC(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function xC(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const FC=class extends IC{constructor(t=null,n,r){super(function ef(e){return(Wa(e)?e.validators:e)||null}(n),function tf(e,t){return(Wa(t)?t.asyncValidators:e)||null}(r,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Wa(n)&&(n.nonNullable||n.initialValueIsDefault)&&(this.defaultValue=xC(t)?t.value:t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==n.emitViewToModelChange)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){NC(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){NC(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){xC(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}},E1={provide:Un,useExisting:X(()=>dr)},kC=(()=>Promise.resolve())();let dr=(()=>{class e extends Un{constructor(n,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new FC,this._registered=!1,this.update=new de,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=function lf(e,t){if(!t)return null;let n,r,o;return Array.isArray(t),t.forEach(i=>{i.constructor===qd?n=i:function v1(e){return Object.getPrototypeOf(e.constructor)===cr}(i)?r=i:o=i}),o||r||n||null}(0,i)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){const r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),function af(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(){Pi(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){kC.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){const r=n.isDisabled.currentValue,o=0!==r&&Xr(r);kC.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?function Za(e,t){return[...t.path,e]}(n,this._parent):[n]}}return e.\u0275fac=function(n){return new(n||e)(v(Qe,9),v(ze,10),v($n,10),v(Gt,10),v(si,8),v(ho,8))},e.\u0275dir=O({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:[ue([E1]),Q,lt]}),e})(),VC=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=_t({type:e}),e.\u0275inj=it({}),e})(),Z1=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=_t({type:e}),e.\u0275inj=it({imports:[VC]}),e})(),mf=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:ho,useValue:n.callSetDisabledState??qa}]}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=_t({type:e}),e.\u0275inj=it({imports:[Z1]}),e})();const Y1=new M("HighlightJs-Config");let Ja=(()=>{class e{constructor(n,r,o,i,s){this.el=n,this.ngModel=r,this.doc=o,this.ngZone=s,this.lang="html",this.mode="simple",Object.assign(this,i)}escapeHTML(n){return(n||"").replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}init(){this.ngZone.runOutsideAngular(()=>{this.destroy();const n=this.el.nativeElement,r=this.code||""+n.innerHTML.trim();if(this.codeEl=this.doc.createElement("default"===this.mode?"div":"pre"),null==this.codeEl)return;const o="simple"===this.mode;o?(this.lang&&(this.codeEl.className=this.lang),this.parentEl=n.parentNode,this.parentEl.insertBefore(this.codeEl,n.nextSibling)):(this.parentEl=n,this.parentEl.innerHTML="",this.parentEl.appendChild(this.codeEl)),this.codeEl.innerHTML=r,hljs.configure({...this.options}),o?hljs.highlightElement(this.codeEl):this.codeEl.querySelectorAll("pre code").forEach(i=>{hljs.highlightElement(i)})})}destroy(){this.codeEl&&this.parentEl&&(this.parentEl.removeChild(this.codeEl),this.codeEl=void 0)}ngAfterViewInit(){this.init(),this.ngModel?this.modelValue$=this.ngModel.valueChanges?.subscribe(n=>{this.code=this.escapeHTML(n),this.init()}):this.initMutation()}ngOnDestroy(){this.destroy(),this.destroyMutation(),this.modelValue$&&this.modelValue$.unsubscribe()}initMutation(){typeof MutationObserver>"u"||this.ngZone.runOutsideAngular(()=>{this.observer=new MutationObserver(this.init.bind(this)),this.observer.observe(this.el.nativeElement,{characterData:!0,childList:!0,subtree:!0})})}destroyMutation(){this.observer&&this.observer.disconnect()}}return e.\u0275fac=function(n){return new(n||e)(v(nt),v(dr,8),v(be),v(Y1,8),v(fe))},e.\u0275dir=O({type:e,selectors:[["","highlight-js",""]],hostVars:2,hostBindings:function(n,r){2&n&&Ku("display","simple"===r.mode?"none":null)},inputs:{options:"options",lang:"lang",code:"code",mode:"mode"},exportAs:["highlightJs"],standalone:!0}),e})(),Q1=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=_t({type:e}),e.\u0275inj=it({imports:[mf]}),e})();function nw(e,t,n){return function r(o,i,s){const a=`$$__${i}`;return Object.prototype.hasOwnProperty.call(o,a)&&console.warn(`The prop "${a}" is already exist, it will be overrided by ${e} decorator.`),Object.defineProperty(o,a,{configurable:!0,writable:!0}),{get(){return s&&s.get?s.get.bind(this)():this[a]},set(l){s&&s.set&&s.set.bind(this)(t(l,n)),this[a]=t(l,n)}}}}function J1(e,t=!1){return t&&typeof e>"u"?void 0:null!=e&&"false"!=`${e}`}function rw(e=!1){return nw("InputNumber",J1,e)}function X1(e,t=0){return isNaN(parseFloat(e))||isNaN(Number(e))?t:Number(e)}class ow{constructor(){this.baseURL="./assets/tinymce/",this.fileName="tinymce.min.js"}}function iw(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(u){return void n(u)}a.done?t(l):Promise.resolve(l).then(r,o)}let nk=(()=>{class e{constructor(n){this.doc=n,this.list={},this.cached={},this._notify=new It([])}fixPaths(n){return n=n||[],Array.isArray(n)||(n=[n]),n.map(r=>{const o="string"==typeof r?{path:r}:r;return o.type||(o.type=o.path.endsWith(".js")||o.callback?"script":"style"),o})}monitor(n){const r=this.fixPaths(n),o=[Gf(),Ut(i=>0!==i.length)];return r.length>0&&o.push(Ut(i=>i.length===r.length&&i.every(s=>"ok"===s.status&&r.find(a=>a.path===s.path)))),this._notify.asObservable().pipe(wf.apply(this,o))}clear(){this.list={},this.cached={}}load(n){var r=this;return function tk(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(l){iw(i,r,o,s,a,"next",l)}function a(l){iw(i,r,o,s,a,"throw",l)}s(void 0)})}}(function*(){return n=r.fixPaths(n),Promise.all(n.map(o=>"script"===o.type?r.loadScript(o.path,{callback:o.callback}):r.loadStyle(o.path))).then(o=>(r._notify.next(o),Promise.resolve(o)))})()}loadScript(n,r){const{innerContent:o}={...r};return new Promise(i=>{if(!0===this.list[n])return void i({...this.cached[n],status:"loading"});this.list[n]=!0;const s=u=>{"ok"===u.status&&r?.callback?window[r?.callback]=()=>{a(u)}:a(u)},a=u=>{u.type="script",this.cached[n]=u,i(u),this._notify.next([u])},l=this.doc.createElement("script");l.type="text/javascript",l.src=n,l.charset="utf-8",o&&(l.innerHTML=o),l.readyState?l.onreadystatechange=()=>{("loaded"===l.readyState||"complete"===l.readyState)&&(l.onreadystatechange=null,s({path:n,status:"ok"}))}:l.onload=()=>s({path:n,status:"ok"}),l.onerror=u=>s({path:n,status:"error",error:u}),this.doc.getElementsByTagName("head")[0].appendChild(l)})}loadStyle(n,r){const{rel:o,innerContent:i}={rel:"stylesheet",...r};return new Promise(s=>{if(!0===this.list[n])return void s(this.cached[n]);this.list[n]=!0;const a=this.doc.createElement("link");a.rel=o,a.type="text/css",a.href=n,i&&(a.innerHTML=i),this.doc.getElementsByTagName("head")[0].appendChild(a);const l={path:n,status:"ok",type:"style"};this.cached[n]=l,s(l)})}}return e.\u0275fac=function(n){return new(n||e)(S(be))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function rk(e,t){if(1&e&&Rn(0,"textarea",3),2&e){const n=Ko();bt("id",n.id)("placeholder",n.placeholder)}}function ok(e,t){1&e&&(ee(0,"div"),function Qg(e,t=0,n){const r=_(),o=W(),i=Lr(o,le+e,16,null,n||null);null===i.projection&&(i.projection=t),bl(),32!=(32&i.flags)&&function Qb(e,t,n){Cp(t[U],0,t,n,fp(e,n,t),mp(n.parent||t[He],n,t))}(o,r,i)}(1),te()),2&e&&bt("id",Ko().id)}function ik(e,t){if(1&e&&(Ps(0),Ee(1),ks()),2&e){const n=Ko(2);Pt(1),Qu(n._loading)}}function sk(e,t){if(1&e&&(ee(0,"div",4),qo(1,ik,2,1,"ng-container",5),te()),2&e){const n=Ko();Pt(1),pt("ngIf",n._loading)("ngIfElse",n._loadingTpl)}}const sw=!("object"==typeof document&&document);class Tt{constructor(t,n,r,o,i){this.defConfig=t,this.lazySrv=n,this.ngZone=r,this.doc=o,this.cd=i,this.value="",this.load=!0,this.id=`_tinymce-${Math.random().toString(36).substring(2)}`,this.placeholder="",this.inline=!1,this._disabled=!1,this._loading=null,this._loadingTpl=null,this.delay=0,this.ready=new de}set disabled(t){this._disabled=t,this.setDisabled()}set loading(t){t instanceof rn?(this._loading=null,this._loadingTpl=t):this._loading=t}get instance(){return this._instance}_getWin(){return this.doc.defaultView||window}initDelay(){sw||setTimeout(()=>this.init(),Math.max(0,this.delay))}init(){const t=this._getWin();if(!t.tinymce)throw new Error("tinymce js\u6587\u4ef6\u52a0\u8f7d\u5931\u8d25");const{defConfig:n,config:r,id:o,inline:i}=this;if(this._instance)return;if(n.baseURL){let l=""+n.baseURL;l.endsWith("/")&&(l=l.substring(0,l.length-1)),t.tinymce.baseURL=l}const s={...n.config,...r},a={selector:"#"+o,inline:i,...n.config,...r,setup:l=>{this._instance=l,this.onChange&&l.on("change keyup",()=>{this.value=l.getContent(),this.ngZone.run(()=>this.onChange(this.value))}),"function"==typeof s.setup&&s.setup(l)},init_instance_callback:l=>{l&&this.value&&l.setContent(this.value),this.setDisabled(),"function"==typeof s.init_instance_callback&&s.init_instance_callback(l),this.ready.emit(this._instance)}};s.auto_focus&&(a.auto_focus=o),this.ngZone.runOutsideAngular(()=>t.tinymce.init(a)),this.load=!1,this.cd.detectChanges()}destroy(){this._instance&&(this.ngZone.runOutsideAngular(()=>{this._instance.off(),this._instance.remove("#"+this.id)}),this._instance=null)}setDisabled(){this._instance&&this.ngZone.runOutsideAngular(()=>{const t=this._disabled?"readonly":"design";"function"==typeof this._instance.setMode?this._instance.setMode(t):this._instance.mode.set(t)})}ngAfterViewInit(){if(sw)return;if(this._getWin().tinymce)return void this.initDelay();const{defConfig:t}=this,o=(t&&t.baseURL||"./assets/tinymce/")+(t&&t.fileName||"tinymce.min.js");this.lazySrv.monitor(o).subscribe(()=>this.initDelay()),this.lazySrv.load(o)}ngOnChanges(t){this._instance&&t.config&&(this.destroy(),this.initDelay())}ngOnDestroy(){this.destroy()}writeValue(t){this.value=t||"",this._instance&&this.ngZone.runOutsideAngular(()=>this._instance.setContent(this.value))}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t,this.setDisabled()}}Tt.\u0275fac=function(t){return new(t||Tt)(v(ow),v(nk),v(fe),v(be),v(si))},Tt.\u0275cmp=An({type:Tt,selectors:[["tinymce"]],inputs:{config:"config",placeholder:"placeholder",inline:"inline",disabled:"disabled",loading:"loading",delay:"delay"},outputs:{ready:"ready"},exportAs:["tinymce"],features:[ue([{provide:Gt,useExisting:X(()=>Tt),multi:!0}]),lt],ngContentSelectors:["*"],decls:3,vars:3,consts:[["class","tinymce-selector",4,"ngIf"],[4,"ngIf"],["class","loading",4,"ngIf"],[1,"tinymce-selector"],[1,"loading"],[4,"ngIf","ngIfElse"]],template:function(t,n){1&t&&(function Yg(e){const t=_()[Be][He];if(!t.projection){const r=t.projection=No(e?e.length:1,null),o=r.slice();let i=t.child;for(;null!==i;){const s=e?kI(i,e):0;null!==s&&(o[s]?o[s].projectionNext=i:r[s]=i,o[s]=i),i=i.next}}}(),qo(0,rk,1,2,"textarea",0),qo(1,ok,2,1,"div",1),qo(2,sk,2,2,"div",2)),2&t&&(pt("ngIf",!n.inline),Pt(1),pt("ngIf",n.inline),Pt(1),pt("ngIf",n.load))},dependencies:[Zv],styles:["tinymce .tinymce-selector{display:none}\n"],encapsulation:2,changeDetection:0}),il([rw()],Tt.prototype,"inline",void 0),il([rw()],Tt.prototype,"disabled",null),il([function ek(e=0){return nw("InputNumber",X1,e)}()],Tt.prototype,"delay",void 0);let aw=(()=>{class e{static forRoot(n){return{ngModule:e,providers:[{provide:ow,useValue:n}]}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=_t({type:e}),e.\u0275inj=it({imports:[Xc]}),e})(),lk=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=An({type:e,selectors:[["app-root"]],decls:23,vars:0,consts:[[1,"navbar","navbar-expand-lg","navbar-light","bg-light"],["routerLink","/",1,"navbar-brand"],["type","button","data-toggle","collapse","data-target","#navbarNav","aria-controls","navbarNav","aria-expanded","false","aria-label","Toggle navigation",1,"navbar-toggler"],[1,"navbar-toggler-icon"],[1,"collapse","navbar-collapse"],[1,"navbar-nav"],[1,"nav-item"],["routerLink","/",1,"nav-link"],["routerLink","/other",1,"nav-link"],["routerLink","/inline",1,"nav-link"],["routerLink","/standalone",1,"nav-link"],[2,"line-height","30px"],[2,"margin-top","16px"]],template:function(n,r){1&n&&(ee(0,"nav",0)(1,"a",1),Ee(2,"ngx-tinymce"),te(),ee(3,"button",2),Rn(4,"span",3),te(),ee(5,"div",4)(6,"ul",5)(7,"li",6)(8,"a",7),Ee(9,"Home"),te()(),ee(10,"li",6)(11,"a",8),Ee(12,"Other"),te()(),ee(13,"li",6)(14,"a",9),Ee(15,"Inline"),te()(),ee(16,"li",6)(17,"a",10),Ee(18,"Standalone"),te()()()()(),ee(19,"p",11),Ee(20,"Angular for tinymce"),te(),ee(21,"div",12),Rn(22,"router-outlet"),te())},dependencies:[Od,Ba],encapsulation:2}),e})(),uk=(()=>{class e{constructor(n){this.san=n,this.html='\n

TinyMCE Logo\n

\n

Welcome to the TinyMCE Cloud demo!

\n
Note, this includes some "enterprise/premium" features.
Visit the pricing page to learn more about our premium plugins.
\n

Please try out the features provided in this full featured example.

\n\n

Got questions or need help?

\n \n\n

A simple table to play with

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
ProductCostReally?
TinyMCE CloudGet started for freeYES!
PluploadFreeYES!
\n\n

Found a bug?

\n

If you think you have found a bug please create an issue on the GitHub repo to report it to the developers.

\n\n

Finally ...

\n

Don\'t forget to check out our other product Plupload, your ultimate upload solution featuring HTML5 upload support.

\n

Thanks for supporting TinyMCE! We hope it helps you and your users create great content.
All the best from the TinyMCE team.

\n ',this.config={height:350}}}return e.\u0275fac=function(n){return new(n||e)(v(cd))},e.\u0275cmp=An({type:e,selectors:[["app-home"]],decls:17,vars:4,consts:[[1,"card","mb-3"],[1,"card-header"],[1,"card-body"],["highlight-js",""],[3,"ngModel","config","ngModelChange"],[1,"card","card-outline-secondary","mt-3"],[1,"card-bodyquote",3,"innerHTML"],["disabled","",3,"ngModel","ngModelChange"]],template:function(n,r){1&n&&(ee(0,"div",0)(1,"div",1),Ee(2,"Basic"),te(),ee(3,"div",2)(4,"textarea",3),Ee(5,"<"),Ee(6,'tinymce [config]="config" [(ngModel)]="html">'),te(),ee(7,"tinymce",4),Le("ngModelChange",function(i){return r.html=i}),te(),Ee(8," Result: "),ee(9,"div",5)(10,"div",2),Rn(11,"blockquote",6),te()()()(),ee(12,"div",0)(13,"div",1),Ee(14,"Disabled"),te(),ee(15,"div",2)(16,"tinymce",7),Le("ngModelChange",function(i){return r.html=i}),te()()()),2&n&&(Pt(7),pt("ngModel",r.html)("config",r.config),Pt(4),pt("innerHTML",r.san.bypassSecurityTrustHtml(r.html),hu),Pt(5),pt("ngModel",r.html))},dependencies:[xi,dr,Ja,Tt],encapsulation:2}),e})(),ck=(()=>{class e{constructor(){this.html="now: "+ +new Date,this.config={height:500,menubar:!1,plugins:["advlist autolink lists link image charmap print preview anchor","searchreplace visualblocks code fullscreen","insertdatetime media table paste code help wordcount"],toolbar:"undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat | help",content_css:"//www.tiny.cloud/css/codepen.min.css"}}ready(n){console.log("ready",n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=An({type:e,selectors:[["app-other"]],decls:8,vars:2,consts:[[1,"card","mb-3"],[1,"card-header"],[1,"card-body"],["highlight-js",""],["loading","\u52a0\u8f7d\u4e2d\u2026\u2026",3,"ngModel","config","ngModelChange","ready"]],template:function(n,r){1&n&&(ee(0,"div",0)(1,"div",1),Ee(2,"Loading"),te(),ee(3,"div",2)(4,"textarea",3),Ee(5,"<"),Ee(6,'tinymce [config]="config" [(ngModel)]="html">'),te(),ee(7,"tinymce",4),Le("ngModelChange",function(i){return r.html=i})("ready",function(i){return r.ready(i)}),te()()()),2&n&&(Pt(7),pt("ngModel",r.html)("config",r.config))},dependencies:[xi,dr,Ja,Tt]}),e})(),dk=(()=>{class e{constructor(n){this.san=n,this.html='\n
\n
\n

\n

The world’s first rich text editor in the cloud

\n

\n
\n

\n Have you heard about Tiny Cloud? It’s the first step in our journey to help you deliver great content creation\n experiences, no matter your level of expertise. 50,000 developers already agree. They get free access to our global CDN, image\n proxy services and auto updates to the TinyMCE editor. They’re also ready for some exciting updates coming soon.\n

\n

\n One of these enhancements is Tiny Drive: imagine file management for TinyMCE, in the cloud, made super easy.\n Learn more at tiny.cloud/tinydrive, where you’ll find a working demo and an\n opportunity to provide feedback to the product team.\n

\n
\n
\n

An editor for every project

\n
\n

Here are some of our customer’s most common use cases for TinyMCE:

\n
    \n
  • Content Management Systems (e.g. WordPress, Umbraco)
  • \n
  • Learning Management Systems (e.g. Blackboard)
  • \n
  • Customer Relationship Management and marketing automation (e.g. Marketo)
  • \n
  • Email marketing (e.g. Constant Contact)
  • \n
  • Content creation in SaaS systems (e.g. Eventbrite, Evernote, GoFundMe, Zendesk)
  • \n
\n

\n And those use cases are just the start. TinyMCE is incredibly flexible, and with hundreds of APIs there’s likely a\n solution for your editor project. If you haven’t experienced Tiny Cloud, get started today. You’ll even get a free\n trial of our premium plugins – no credit card required!\n

\n
\n
'}ready(n){console.log("ready",n)}}return e.\u0275fac=function(n){return new(n||e)(v(cd))},e.\u0275cmp=An({type:e,selectors:[["app-inline"]],decls:12,vars:2,consts:[[1,"card","mb-3"],[1,"card-header"],[1,"card-body"],["highlight-js",""],["inline","",3,"ngModel","ngModelChange"],[1,"card","card-outline-secondary","mt-3"],[1,"card-bodyquote",3,"innerHTML"]],template:function(n,r){1&n&&(ee(0,"div",0)(1,"div",1),Ee(2,"Inline mode"),te(),ee(3,"div",2)(4,"textarea",3),Ee(5,"<"),Ee(6,'tinymce [config]="config" [(ngModel)]="html" inline>'),te(),ee(7,"tinymce",4),Le("ngModelChange",function(i){return r.html=i}),te(),Ee(8," Result: "),ee(9,"div",5)(10,"div",2),Rn(11,"blockquote",6),te()()()()),2&n&&(Pt(7),pt("ngModel",r.html),Pt(4),pt("innerHTML",r.san.bypassSecurityTrustHtml(r.html),hu))},dependencies:[xi,dr,Ja,Tt],encapsulation:2}),e})(),fk=(()=>{class e{constructor(){this.html="HTMLS",this.config={height:350}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=An({type:e,selectors:[["standalone-demo"]],standalone:!0,features:[sc],decls:1,vars:2,consts:[[3,"ngModel","config","ngModelChange"]],template:function(n,r){1&n&&(ee(0,"tinymce",0),Le("ngModelChange",function(i){return r.html=i}),te()),2&n&&pt("ngModel",r.html)("config",r.config)},dependencies:[mf,xi,dr,aw,Tt],encapsulation:2}),e})(),hk=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=_t({type:e,bootstrap:[lk]}),e.\u0275inj=it({imports:[Ox,Xc,mf,fF,Q1,BP.forRoot([{path:"",component:uk},{path:"other",component:ck},{path:"inline",component:dk},{path:"standalone",component:fk}],{useHash:!0}),aw.forRoot({baseURL:"//cdn.tiny.cloud/1/no-api-key/tinymce/6/"})]}),e})();Fx().bootstrapModule(hk).catch(e=>console.error(e))}},re=>{re(re.s=626)}]); \ No newline at end of file diff --git a/main.2b5518a7badec099.js b/main.2b5518a7badec099.js new file mode 100644 index 0000000..fbaca0a --- /dev/null +++ b/main.2b5518a7badec099.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkngx_tinymce=self.webpackChunkngx_tinymce||[]).push([[179],{819:()=>{function te(e){return"function"==typeof e}function Eo(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 Qi=Eo(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 bo(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class _t{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(te(r))try{r()}catch(i){t=i instanceof Qi?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 Qi?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Qi(t)}}add(t){var n;if(t&&t!==this)if(this.closed)eh(t);else{if(t instanceof _t){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)&&bo(n,t)}remove(t){const{_finalizers:n}=this;n&&bo(n,t),t instanceof _t&&t._removeParent(this)}}_t.EMPTY=(()=>{const e=new _t;return e.closed=!0,e})();const Kf=_t.EMPTY;function Xf(e){return e instanceof _t||e&&"closed"in e&&te(e.remove)&&te(e.add)&&te(e.unsubscribe)}function eh(e){te(e)?e():e.unsubscribe()}const qn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Ji={setTimeout(e,t,...n){const{delegate:r}=Ji;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=Ji;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function th(e){Ji.setTimeout(()=>{const{onUnhandledError:t}=qn;if(!t)throw e;t(e)})}function nh(){}const bE=_u("C",void 0,void 0);function _u(e,t,n){return{kind:e,value:t,error:n}}let Zn=null;function Ki(e){if(qn.useDeprecatedSynchronousErrorHandling){const t=!Zn;if(t&&(Zn={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=Zn;if(Zn=null,n)throw r}}else e()}class wu extends _t{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Xf(t)&&t.add(this)):this.destination=RE}static create(t,n,r){return new Mo(t,n,r)}next(t){this.isStopped?bu(function SE(e){return _u("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?bu(function ME(e){return _u("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?bu(bE,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 AE=Function.prototype.bind;function Eu(e,t){return AE.call(e,t)}class TE{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Xi(r)}}error(t){const{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Xi(r)}else Xi(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Xi(n)}}}class Mo extends wu{constructor(t,n,r){let o;if(super(),te(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&qn.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Eu(t.next,i),error:t.error&&Eu(t.error,i),complete:t.complete&&Eu(t.complete,i)}):o=t}this.destination=new TE(o)}}function Xi(e){qn.useDeprecatedSynchronousErrorHandling?function IE(e){qn.useDeprecatedSynchronousErrorHandling&&Zn&&(Zn.errorThrown=!0,Zn.error=e)}(e):th(e)}function bu(e,t){const{onStoppedNotification:n}=qn;n&&Ji.setTimeout(()=>n(e,t))}const RE={closed:!0,next:nh,error:function NE(e){throw e},complete:nh},Mu="function"==typeof Symbol&&Symbol.observable||"@@observable";function Tn(e){return e}function rh(...e){return oh(e)}function oh(e){return 0===e.length?Tn:1===e.length?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}let ye=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){const r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){const i=function xE(e){return e&&e instanceof wu||function OE(e){return e&&te(e.next)&&te(e.error)&&te(e.complete)}(e)&&Xf(e)}(n)?n:new Mo(n,r,o);return Ki(()=>{const{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return new(r=ih(r))((o,i)=>{const s=new Mo({next:a=>{try{n(a)}catch(u){i(u),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(n)}[Mu](){return this}pipe(...n){return oh(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??qn.Promise)&&void 0!==t?t:Promise}const FE=Eo(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let fn=(()=>{class e extends ye{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new sh(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new FE}next(n){Ki(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){Ki(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;const{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Ki(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return(null===(n=this.observers)||void 0===n?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){const{hasError:r,isStopped:o,observers:i}=this;return r||o?Kf:(this.currentObservers=null,i.push(n),new _t(()=>{this.currentObservers=null,bo(i,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){const n=new ye;return n.source=this,n}}return e.create=(t,n)=>new sh(t,n),e})();class sh extends fn{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:Kf}}class ut extends fn{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 ah(e){return te(e?.lift)}function xe(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 Se(e,t,n,r,o){return new PE(e,t,n,r,o)}class PE extends wu{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(u){t.error(u)}}:super._next,this._error=o?function(a){try{o(a)}catch(u){t.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:n}=this;super.unsubscribe(),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function Z(e,t){return xe((n,r)=>{let o=0;n.subscribe(Se(r,i=>{r.next(e.call(t,i,o++))}))})}function es(e,t,n,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(i=(o<3?s(i):o>3?s(t,n,i):s(t,n))||i);return o>3&&i&&Object.defineProperty(t,n,i),i}function Nn(e){return this instanceof Nn?(this.v=e,this):new Nn(e)}function dh(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 Tu(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,u){!function o(i,s,a,u){Promise.resolve(u).then(function(l){i({value:l,done:a})},s)}(a,u,(s=e[i](s)).done,s.value)})}}}const fh=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function hh(e){return te(e?.then)}function ph(e){return te(e[Mu])}function gh(e){return Symbol.asyncIterator&&te(e?.[Symbol.asyncIterator])}function mh(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 yh=function XE(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function vh(e){return te(e?.[yh])}function Dh(e){return function ch(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=n.apply(e,t||[]),i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(f){r[f]&&(o[f]=function(h){return new Promise(function(p,g){i.push([f,h,p,g])>1||a(f,h)})})}function a(f,h){try{!function u(f){f.value instanceof Nn?Promise.resolve(f.value.v).then(l,c):d(i[0][2],f)}(r[f](h))}catch(p){d(i[0][3],p)}}function l(f){a("next",f)}function c(f){a("throw",f)}function d(f,h){f(h),i.shift(),i.length&&a(i[0][0],i[0][1])}}(this,arguments,function*(){const n=e.getReader();try{for(;;){const{value:r,done:o}=yield Nn(n.read());if(o)return yield Nn(void 0);yield yield Nn(r)}}finally{n.releaseLock()}})}function Ch(e){return te(e?.getReader)}function wt(e){if(e instanceof ye)return e;if(null!=e){if(ph(e))return function eb(e){return new ye(t=>{const n=e[Mu]();if(te(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(fh(e))return function tb(e){return new ye(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,th)})}(e);if(gh(e))return _h(e);if(vh(e))return function rb(e){return new ye(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if(Ch(e))return function ob(e){return _h(Dh(e))}(e)}throw mh(e)}function _h(e){return new ye(t=>{(function ib(e,t){var n,r,o,i;return function uh(e,t,n,r){return new(n||(n=Promise))(function(i,s){function a(c){try{l(r.next(c))}catch(d){s(d)}}function u(c){try{l(r.throw(c))}catch(d){s(d)}}function l(c){c.done?i(c.value):function o(i){return i instanceof n?i:new n(function(s){s(i)})}(c.value).then(a,u)}l((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){try{for(n=dh(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 hn(e,t,n,r=0,o=!1){const i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function Fe(e,t,n=1/0){return te(t)?Fe((r,o)=>Z((i,s)=>t(r,i,o,s))(wt(e(r,o))),n):("number"==typeof t&&(n=t),xe((r,o)=>function sb(e,t,n,r,o,i,s,a){const u=[];let l=0,c=0,d=!1;const f=()=>{d&&!u.length&&!l&&t.complete()},h=g=>l{i&&t.next(g),l++;let y=!1;wt(n(g,c++)).subscribe(Se(t,_=>{o?.(_),i?h(_):t.next(_)},()=>{y=!0},void 0,()=>{if(y)try{for(l--;u.length&&lp(_)):p(_)}f()}catch(_){t.error(_)}}))};return e.subscribe(Se(t,h,()=>{d=!0,f()})),()=>{a?.()}}(r,o,e,n)))}function Dr(e=1/0){return Fe(Tn,e)}const Wt=new ye(e=>e.complete());function Nu(e){return e[e.length-1]}function wh(e){return te(Nu(e))?e.pop():void 0}function So(e){return function ub(e){return e&&te(e.schedule)}(Nu(e))?e.pop():void 0}function Eh(e,t=0){return xe((n,r)=>{n.subscribe(Se(r,o=>hn(r,e,()=>r.next(o),t),()=>hn(r,e,()=>r.complete(),t),o=>hn(r,e,()=>r.error(o),t)))})}function bh(e,t=0){return xe((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Mh(e,t){if(!e)throw new Error("Iterable cannot be null");return new ye(n=>{hn(n,t,()=>{const r=e[Symbol.asyncIterator]();hn(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Ie(e,t){return t?function gb(e,t){if(null!=e){if(ph(e))return function cb(e,t){return wt(e).pipe(bh(t),Eh(t))}(e,t);if(fh(e))return function fb(e,t){return new ye(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(hh(e))return function db(e,t){return wt(e).pipe(bh(t),Eh(t))}(e,t);if(gh(e))return Mh(e,t);if(vh(e))return function hb(e,t){return new ye(n=>{let r;return hn(n,t,()=>{r=e[yh](),hn(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)}),()=>te(r?.return)&&r.return()})}(e,t);if(Ch(e))return function pb(e,t){return Mh(Dh(e),t)}(e,t)}throw mh(e)}(e,t):wt(e)}function x(...e){return Ie(e,So(e))}function Ru(e={}){const{connector:t=(()=>new fn),resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,u,l=0,c=!1,d=!1;const f=()=>{a?.unsubscribe(),a=void 0},h=()=>{f(),s=u=void 0,c=d=!1},p=()=>{const g=s;h(),g?.unsubscribe()};return xe((g,y)=>{l++,!d&&!c&&f();const _=u=u??t();y.add(()=>{l--,0===l&&!d&&!c&&(a=Ou(p,o))}),_.subscribe(y),!s&&l>0&&(s=new Mo({next:m=>_.next(m),error:m=>{d=!0,f(),a=Ou(h,n,m),_.error(m)},complete:()=>{c=!0,f(),a=Ou(h,r),_.complete()}}),wt(g).subscribe(s))})(i)}}function Ou(e,t,...n){if(!0===t)return void e();if(!1===t)return;const r=new Mo({next:()=>{r.unsubscribe(),e()}});return wt(t(...n)).subscribe(r)}function vb(e,t){return e===t}function K(e){for(let t in e)if(e[t]===K)return t;throw Error("Could not find renamed property on target object.")}function xu(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Ae(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Ae).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 Fu(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Db=K({__forward_ref__:K});function ne(e){return e.__forward_ref__=ne,e.toString=function(){return Ae(this())},e}function k(e){return Pu(e)?e():e}function Pu(e){return"function"==typeof e&&e.hasOwnProperty(Db)&&e.__forward_ref__===ne}function ku(e){return e&&!!e.\u0275providers}const Sh="https://g.co/ng/security#xss";class C extends Error{constructor(t,n){super(function ts(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function L(e){return"string"==typeof e?e:null==e?"":String(e)}function ns(e,t){throw new C(-201,!1)}function Et(e,t){null==e&&function J(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function A(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function ct(e){return{providers:e.providers||[],imports:e.imports||[]}}function rs(e){return Ih(e,os)||Ih(e,Th)}function Ih(e,t){return e.hasOwnProperty(t)?e[t]:null}function Ah(e){return e&&(e.hasOwnProperty(Lu)||e.hasOwnProperty(Ib))?e[Lu]:null}const os=K({\u0275prov:K}),Lu=K({\u0275inj:K}),Th=K({ngInjectableDef:K}),Ib=K({ngInjectorDef:K});var T=(()=>((T=T||{})[T.Default=0]="Default",T[T.Host=1]="Host",T[T.Self=2]="Self",T[T.SkipSelf=4]="SkipSelf",T[T.Optional=8]="Optional",T))();let Vu;function Ke(e){const t=Vu;return Vu=e,t}function Rh(e,t,n){const r=rs(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&T.Optional?null:void 0!==t?t:void ns(Ae(e))}const ie=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Io={},Hu="__NG_DI_FLAG__",is="ngTempTokenPath",Tb=/\n/gm,Oh="__source";let Cr;function On(e){const t=Cr;return Cr=e,t}function Ob(e,t=T.Default){if(void 0===Cr)throw new C(-203,!1);return null===Cr?Rh(e,void 0,t):Cr.get(e,t&T.Optional?null:void 0,t)}function I(e,t=T.Default){return(function Nh(){return Vu}()||Ob)(k(e),t)}function M(e,t=T.Default){return I(e,ss(t))}function ss(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function ju(e){const t=[];for(let n=0;n((qt=qt||{})[qt.OnPush=0]="OnPush",qt[qt.Default=1]="Default",qt))(),dt=(()=>{return(e=dt||(dt={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",dt;var e})();const gn={},q=[],as=K({\u0275cmp:K}),Bu=K({\u0275dir:K}),$u=K({\u0275pipe:K}),Fh=K({\u0275mod:K}),mn=K({\u0275fac:K}),To=K({__NG_ELEMENT_ID__:K}),Ph=K({__NG_ENV_ID__:K});function kh(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 Uu(e,t,n){let r=0;for(;rt){s=i-1;break}}}for(;ii?"":o[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==kh(h,l,0)||2&r&&l!==f){if(Ot(r))return!1;s=!0}}}}else{if(!s&&!Ot(r)&&!Ot(u))return!1;if(s&&Ot(u))continue;s=!1,r=u|1&r}}return Ot(r)||s}function Ot(e){return 0==(1&e)}function Hb(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!Ot(s)&&(t+=Uh(i,o),o=""),r=s,i=i||!Ot(r);n++}return""!==o&&(t+=Uh(i,o)),t}function xn(e){return pn(()=>{const t=zh(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===qt.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,data:e.data||{},encapsulation:e.encapsulation||dt.Emulated,styles:e.styles||q,_:null,schemas:e.schemas||null,tView:null,id:""};Wh(n);const r=e.dependencies;return n.directiveDefs=us(r,!1),n.pipeDefs=us(r,!0),n.id=function Kb(e){let t=0;const n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}(n),n})}function Zb(e){return Y(e)||Be(e)}function Yb(e){return null!==e}function bt(e){return pn(()=>({type:e.type,bootstrap:e.bootstrap||q,declarations:e.declarations||q,imports:e.imports||q,exports:e.exports||q,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Gh(e,t){if(null==e)return gn;const n={};for(const r in e)if(e.hasOwnProperty(r)){let o=e[r],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),n[o]=r,t&&(t[o]=i)}return n}function F(e){return pn(()=>{const t=zh(e);return Wh(t),t})}function Y(e){return e[as]||null}function Be(e){return e[Bu]||null}function et(e){return e[$u]||null}function ft(e,t){const n=e[Fh]||null;if(!n&&!0===t)throw new Error(`Type ${Ae(e)} does not have '\u0275mod' property.`);return n}function zh(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||q,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Gh(e.inputs,t),outputs:Gh(e.outputs)}}function Wh(e){e.features?.forEach(t=>t(e))}function us(e,t){if(!e)return null;const n=t?et:Zb;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(Yb)}const Te=0,E=1,j=2,de=3,xt=4,Yn=5,$e=6,wr=7,ge=8,Er=9,Qn=10,V=11,Ro=12,qh=13,br=14,_e=15,Oo=16,Mr=17,Zt=18,xo=19,Zh=20,Fn=21,yn=22,ls=23,cs=24,z=25,Gu=1,Yh=2,Yt=7,ds=8,Sr=9,Le=11;function ht(e){return Array.isArray(e)&&"object"==typeof e[Gu]}function tt(e){return Array.isArray(e)&&!0===e[Gu]}function zu(e){return 0!=(4&e.flags)}function Jn(e){return e.componentOffset>-1}function fs(e){return 1==(1&e.flags)}function Ft(e){return!!e.template}function Wu(e){return 0!=(512&e[j])}function Kn(e,t){return e.hasOwnProperty(mn)?e[mn]:null}let rM=ie.WeakRef??class nM{constructor(t){this.ref=t}deref(){return this.ref}},iM=0,Qt=null,hs=!1;function Pe(e){const t=Qt;return Qt=e,t}class ep{constructor(){this.id=iM++,this.ref=function oM(e){return new rM(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=hs;hs=!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{hs=t}}producerAccessed(){if(hs)throw new Error("");if(null===Qt)return;let t=Qt.producers.get(this.id);void 0===t?(t={consumerNode:Qt.ref,producerNode:this.ref,seenValueVersion:this.valueVersion,atTrackingVersion:Qt.trackingVersion},Qt.producers.set(this.id,t),this.consumers.set(Qt.id,t)):(t.seenValueVersion=this.valueVersion,t.atTrackingVersion=Qt.trackingVersion)}get hasProducers(){return this.producers.size>0}get producerUpdatesAllowed(){return!1!==Qt?.consumerAllowSignalWrites}producerPollStatus(t){return this.valueVersion!==t||(this.onProducerUpdateValueVersion(),this.valueVersion!==t)}}let tp=null;const rp=()=>{};class lM extends ep{constructor(t,n,r){super(),this.watch=t,this.schedule=n,this.dirty=!1,this.cleanupFn=rp,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=Pe(this);this.trackingVersion++;try{this.cleanupFn(),this.cleanupFn=rp,this.watch(this.registerOnCleanup)}finally{Pe(t)}}cleanup(){this.cleanupFn()}}class cM{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function pt(){return op}function op(e){return e.type.prototype.ngOnChanges&&(e.setInput=fM),dM}function dM(){const e=sp(this),t=e?.current;if(t){const n=e.previous;if(n===gn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function fM(e,t,n,r){const o=this.declaredInputs[n],i=sp(e)||function hM(e,t){return e[ip]=t}(e,{previous:gn,current:null}),s=i.current||(i.current={}),a=i.previous,u=a[o];s[o]=new cM(u&&u.currentValue,t,a===gn),e[r]=t}pt.ngInherit=!0;const ip="__ngSimpleChanges__";function sp(e){return e[ip]||null}const Jt=function(e,t,n){};function ue(e){for(;Array.isArray(e);)e=e[Te];return e}function ms(e,t){return ue(t[e])}function nt(e,t){return ue(t[e.index])}function lp(e,t){return e.data[t]}function rt(e,t){const n=t[e];return ht(n)?n:n[Te]}function ys(e){return 128==(128&e[j])}function Pn(e,t){return null==t?null:e[t]}function cp(e){e[Mr]=0}function DM(e){1024&e[j]||(e[j]|=1024,fp(e,1))}function dp(e){1024&e[j]&&(e[j]&=-1025,fp(e,-1))}function fp(e,t){let n=e[de];if(null===n)return;n[Yn]+=t;let r=n;for(n=n[de];null!==n&&(1===t&&1===r[Yn]||-1===t&&0===r[Yn]);)n[Yn]+=t,r=n,n=n[de]}const P={lFrame:Ep(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function gp(){return P.bindingsEnabled}function Ar(){return null!==P.skipHydrationRootTNode}function D(){return P.lFrame.lView}function W(){return P.lFrame.tView}function Ve(){let e=mp();for(;null!==e&&64===e.type;)e=e.parent;return e}function mp(){return P.lFrame.currentTNode}function Kt(e,t){const n=P.lFrame;n.currentTNode=e,n.isParent=t}function Ku(){return P.lFrame.isParent}function Xu(){P.lFrame.isParent=!1}function Tr(){return P.lFrame.bindingIndex++}function xM(e,t){const n=P.lFrame;n.bindingIndex=n.bindingRootIndex=e,el(t)}function el(e){P.lFrame.currentDirectiveIndex=e}function nl(e){P.lFrame.currentQueryIndex=e}function PM(e){const t=e[E];return 2===t.type?t.declTNode:1===t.type?e[$e]:null}function _p(e,t,n){if(n&T.SkipSelf){let o=t,i=e;for(;!(o=o.parent,null!==o||n&T.Host||(o=PM(i),null===o||(i=i[br],10&o.type))););if(null===o)return!1;t=o,e=i}const r=P.lFrame=wp();return r.currentTNode=t,r.lView=e,!0}function rl(e){const t=wp(),n=e[E];P.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function wp(){const e=P.lFrame,t=null===e?null:e.child;return null===t?Ep(e):t}function Ep(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 bp(){const e=P.lFrame;return P.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Mp=bp;function ol(){const e=bp();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 qe(){return P.lFrame.selectedIndex}function Xn(e){P.lFrame.selectedIndex=e}function fe(){const e=P.lFrame;return lp(e.tView,e.selectedIndex)}let Ip=!0;function vs(){return Ip}function kn(e){Ip=e}function Ds(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[u]<0&&(e[Mr]+=65536),(a>12>16&&(3&e[j])===t&&(e[j]+=4096,Tp(a,i)):Tp(a,i)}const Nr=-1;class ko{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Np(e){return e!==Nr}function ws(e){return 32767&e}function Es(e,t){let n=function qM(e){return e>>16}(e),r=t;for(;n>0;)r=r[br],n--;return r}let al=!0;function bs(e){const t=al;return al=e,t}const Rp=255,Op=5;let ZM=0;const Xt={};function Ms(e,t){const n=xp(e,t);if(-1!==n)return n;const r=t[E];r.firstCreatePass&&(e.injectorIndex=t.length,ul(r.data,e),ul(t,null),ul(r.blueprint,null));const o=ll(e,t),i=e.injectorIndex;if(Np(o)){const s=ws(o),a=Es(o,t),u=a[E].data;for(let l=0;l<8;l++)t[i+l]=a[s+l]|u[s+l]}return t[i+8]=o,i}function ul(e,t){e.push(0,0,0,0,0,0,0,0,t)}function xp(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function ll(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=jp(o),null===r)return Nr;if(n++,o=o[br],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return Nr}function cl(e,t,n){!function YM(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(To)&&(r=n[To]),null==r&&(r=n[To]=ZM++);const o=r&Rp;t.data[e+(o>>Op)]|=1<=0?t&Rp:XM:t}(n);if("function"==typeof i){if(!_p(t,e,r))return r&T.Host?Fp(o,0,r):Pp(t,n,r,o);try{const s=i(r);if(null!=s||r&T.Optional)return s;ns()}finally{Mp()}}else if("number"==typeof i){let s=null,a=xp(e,t),u=Nr,l=r&T.Host?t[_e][$e]:null;for((-1===a||r&T.SkipSelf)&&(u=-1===a?ll(e,t):t[a+8],u!==Nr&&Hp(r,!1)?(s=t[E],a=ws(u),t=Es(u,t)):a=-1);-1!==a;){const c=t[E];if(Vp(i,a,c.data)){const d=JM(a,t,n,s,r,l);if(d!==Xt)return d}u=t[a+8],u!==Nr&&Hp(r,t[E].data[a+8]===l)&&Vp(i,a,t)?(s=c,a=ws(u),t=Es(u,t)):a=-1}}return o}function JM(e,t,n,r,o,i){const s=t[E],a=s.data[e+8],c=function Ss(e,t,n,r,o){const i=e.providerIndexes,s=t.data,a=1048575&i,u=e.directiveStart,c=i>>20,f=o?a+c:e.directiveEnd;for(let h=r?a:a+c;h=u&&p.type===n)return h}if(o){const h=s[u];if(h&&Ft(h)&&h.type===n)return u}return null}(a,s,n,null==r?Jn(a)&&al:r!=s&&0!=(3&a.type),o&T.Host&&i===a);return null!==c?er(t,s,c,a):Xt}function er(e,t,n,r){let o=e[n];const i=t.data;if(function GM(e){return e instanceof ko}(o)){const s=o;s.resolving&&function Cb(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new C(-200,`Circular dependency in DI detected for ${e}${n}`)}(function Q(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():L(e)}(i[n]));const a=bs(s.canSeeViewProviders);s.resolving=!0;const u=s.injectImpl?Ke(s.injectImpl):null;_p(e,r,T.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&function $M(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){const s=op(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!==u&&Ke(u),bs(a),s.resolving=!1,Mp()}}return o}function Vp(e,t,n){return!!(n[t+(e>>Op)]&1<{const t=e.prototype.constructor,n=t[mn]||dl(t),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const i=o[mn]||dl(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function dl(e){return Pu(e)?()=>{const t=dl(k(e));return t&&t()}:Kn(e)}function jp(e){const t=e[E],n=t.type;return 2===n?t.declTNode:1===n?e[$e]:null}const xr="__parameters__";function Pr(e,t,n){return pn(()=>{const r=function fl(e){return function(...n){if(e){const r=e(...n);for(const o in r)this[o]=r[o]}}}(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;const s=new o(...i);return a.annotation=s,a;function a(u,l,c){const d=u.hasOwnProperty(xr)?u[xr]:Object.defineProperty(u,xr,{value:[]})[xr];for(;d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(s),u}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function Ho(e,t){e.forEach(n=>Array.isArray(n)?Ho(n,t):t(n))}function $p(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function As(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function jo(e,t){const n=[];for(let r=0;r=0?e[1|r]=n:(r=~r,function iS(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 hl(e,t){const n=kr(e,t);if(n>=0)return e[1|n]}function kr(e,t){return function Up(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){const i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<((ot=ot||{})[ot.Important=1]="Important",ot[ot.DashCase=2]="DashCase",ot))();const SS=/^>|^->||--!>|)/,AS="\u200b$1\u200b";const Dl=new Map;let TS=0;const _l="__ngContext__";function Ue(e,t){ht(t)?(e[_l]=t[xo],function RS(e){Dl.set(e[xo],e)}(t)):e[_l]=t}let wl;function El(e,t){return wl(e,t)}function Uo(e){const t=e[de];return tt(t)?t[de]:t}function bl(e){return ug(e[Ro])}function Ml(e){return ug(e[xt])}function ug(e){for(;null!==e&&!tt(e);)e=e[xt];return e}function Hr(e,t,n,r,o){if(null!=r){let i,s=!1;tt(r)?i=r:ht(r)&&(s=!0,r=r[Te]);const a=ue(r);0===e&&null!==n?null==o?hg(t,n,a):tr(t,n,a,o||null,!0):1===e&&null!==n?tr(t,n,a,o||null,!0):2===e?function Bs(e,t,n){const r=Hs(e,t);r&&function QS(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=i&&function XS(e,t,n,r,o){const i=n[Yt];i!==ue(n)&&Hr(t,e,r,i,o);for(let a=Le;at.replace(IS,AS))}(t))}function Vs(e,t,n){return e.createElement(t,n)}function cg(e,t){const n=e[Sr],r=n.indexOf(t);dp(t),n.splice(r,1)}function Il(e,t){if(e.length<=Le)return;const n=Le+t,r=e[n];if(r){const o=r[Oo];null!==o&&o!==e&&cg(o,r),t>0&&(e[n-1][xt]=r[xt]);const i=As(e,Le+t);!function $S(e,t){zo(e,t,t[V],2,null,null),t[Te]=null,t[$e]=null}(r[E],r);const s=i[Zt];null!==s&&s.detachView(i[E]),r[de]=null,r[xt]=null,r[j]&=-129}return r}function dg(e,t){if(!(256&t[j])){const n=t[V];t[ls]?.destroy(),t[cs]?.destroy(),n.destroyNode&&zo(e,t,n,3,null,null),function zS(e){let t=e[Ro];if(!t)return Al(e[E],e);for(;t;){let n=null;if(ht(t))n=t[Ro];else{const r=t[Le];r&&(n=r)}if(!n){for(;t&&!t[xt]&&t!==e;)ht(t)&&Al(t[E],t),t=t[de];null===t&&(t=e),ht(t)&&Al(t[E],t),n=t&&t[xt]}t=n}}(t)}}function Al(e,t){if(!(256&t[j])){t[j]&=-129,t[j]|=256,function YS(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?r[s]():r[-s].unsubscribe(),i+=2}else n[i].call(r[n[i+1]]);null!==r&&(t[wr]=null);const o=t[Fn];if(null!==o){t[Fn]=null;for(let i=0;i-1){const{encapsulation:i}=e.data[r.directiveStart+o];if(i===dt.None||i===dt.Emulated)return null}return nt(r,n)}}(e,t.parent,n)}function tr(e,t,n,r,o){e.insertBefore(t,n,r,o)}function hg(e,t,n){e.appendChild(t,n)}function pg(e,t,n,r,o){null!==r?tr(e,t,n,r,o):hg(e,t,n)}function Hs(e,t){return e.parentNode(t)}function gg(e,t,n){return yg(e,t,n)}let Nl,$s,Fl,Us,yg=function mg(e,t,n){return 40&e.type?nt(e,n):null};function js(e,t,n,r){const o=Tl(e,r,t),i=t[V],a=gg(r.parent||t[$e],r,t);if(null!=o)if(Array.isArray(n))for(let u=0;ue,createScript:e=>e,createScriptURL:e=>e})}catch{}return $s}()?.createHTML(e)||e}function Wo(){if(void 0!==Fl)return Fl;if(typeof document<"u")return document;throw new C(210,!1)}function Pl(){if(void 0===Us&&(Us=null,ie.trustedTypes))try{Us=ie.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Us}function bg(e){return Pl()?.createHTML(e)||e}function Sg(e){return Pl()?.createScriptURL(e)||e}class nr{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Sh})`}}class sI extends nr{getTypeName(){return"HTML"}}class aI extends nr{getTypeName(){return"Style"}}class uI extends nr{getTypeName(){return"Script"}}class lI extends nr{getTypeName(){return"URL"}}class cI extends nr{getTypeName(){return"ResourceURL"}}function mt(e){return e instanceof nr?e.changingThisBreaksApplicationSecurity:e}function en(e,t){const n=function dI(e){return e instanceof nr&&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 ${Sh})`)}return n===t}class yI{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const n=(new window.DOMParser).parseFromString(jr(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch{return null}}}class vI{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const n=this.inertDocument.createElement("template");return n.innerHTML=jr(t),n}}const CI=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Gs(e){return(e=String(e)).match(CI)?e:"unsafe:"+e}function Cn(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function qo(...e){const t={};for(const n of e)for(const r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}const Ag=Cn("area,br,col,hr,img,wbr"),Tg=Cn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ng=Cn("rp,rt"),kl=qo(Ag,qo(Tg,Cn("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),qo(Ng,Cn("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),qo(Ng,Tg)),Ll=Cn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Rg=qo(Ll,Cn("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Cn("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),_I=Cn("script,style,template");class wI{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0;for(;n;)if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild)n=n.firstChild;else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let o=this.checkClobberedElement(n,n.nextSibling);if(o){n=o;break}n=this.checkClobberedElement(n,n.parentNode)}return this.buf.join("")}startElement(t){const n=t.nodeName.toLowerCase();if(!kl.hasOwnProperty(n))return this.sanitizedSomething=!0,!_I.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const r=t.attributes;for(let o=0;o"),!0}endElement(t){const n=t.nodeName.toLowerCase();kl.hasOwnProperty(n)&&!Ag.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(Og(t))}checkClobberedElement(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return n}}const EI=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,bI=/([^\#-~ |!])/g;function Og(e){return e.replace(/&/g,"&").replace(EI,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(bI,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let zs;function xg(e,t){let n=null;try{zs=zs||function Ig(e){const t=new vI(e);return function DI(){try{return!!(new window.DOMParser).parseFromString(jr(""),"text/html")}catch{return!1}}()?new yI(t):t}(e);let r=t?String(t):"";n=zs.getInertBodyElement(r);let o=5,i=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=zs.getInertBodyElement(r)}while(r!==i);return jr((new wI).sanitizeChildren(Vl(n)||n))}finally{if(n){const r=Vl(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function Vl(e){return"content"in e&&function MI(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var se=(()=>((se=se||{})[se.NONE=0]="NONE",se[se.HTML=1]="HTML",se[se.STYLE=2]="STYLE",se[se.SCRIPT=3]="SCRIPT",se[se.URL=4]="URL",se[se.RESOURCE_URL=5]="RESOURCE_URL",se))();function Hl(e){const t=Zo();return t?bg(t.sanitize(se.HTML,e)||""):en(e,"HTML")?bg(mt(e)):xg(Wo(),L(e))}function Fg(e){const t=Zo();return t?t.sanitize(se.URL,e)||"":en(e,"URL")?mt(e):Gs(L(e))}function Pg(e){const t=Zo();if(t)return Sg(t.sanitize(se.RESOURCE_URL,e)||"");if(en(e,"ResourceURL"))return Sg(mt(e));throw new C(904,!1)}function Zo(){const e=D();return e&&e[Qn].sanitizer}class S{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=A({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const Yo=new S("ENVIRONMENT_INITIALIZER"),Lg=new S("INJECTOR",-1),Vg=new S("INJECTOR_DEF_TYPES");class Hg{get(t,n=Io){if(n===Io){const r=new Error(`NullInjectorError: No provider for ${Ae(t)}!`);throw r.name="NullInjectorError",r}return n}}function RI(...e){return{\u0275providers:jg(0,e),\u0275fromNgModule:!0}}function jg(e,...t){const n=[],r=new Set;let o;return Ho(t,i=>{const s=i;Bl(s,n,[],r)&&(o||=[],o.push(s))}),void 0!==o&&Bg(o,n),n}function Bg(e,t){for(let n=0;n{t.push(i)})}}function Bl(e,t,n,r){if(!(e=k(e)))return!1;let o=null,i=Ah(e);const s=!i&&Y(e);if(i||s){if(s&&!s.standalone)return!1;o=e}else{const u=e.ngModule;if(i=Ah(u),!i)return!1;o=u}const a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){const u="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const l of u)Bl(l,t,n,r)}}else{if(!i)return!1;{if(null!=i.imports&&!a){let l;r.add(o);try{Ho(i.imports,c=>{Bl(c,t,n,r)&&(l||=[],l.push(c))})}finally{}void 0!==l&&Bg(l,t)}if(!a){const l=Kn(o)||(()=>new o);t.push({provide:o,useFactory:l,deps:q},{provide:Vg,useValue:o,multi:!0},{provide:Yo,useValue:()=>I(o),multi:!0})}const u=i.providers;null==u||a||$l(u,c=>{t.push(c)})}}return o!==e&&void 0!==e.providers}function $l(e,t){for(let n of e)ku(n)&&(n=n.\u0275providers),Array.isArray(n)?$l(n,t):t(n)}const OI=K({provide:String,useValue:K});function Ul(e){return null!==e&&"object"==typeof e&&OI in e}function rr(e){return"function"==typeof e}const Gl=new S("Set Injector scope."),Ws={},FI={};let zl;function qs(){return void 0===zl&&(zl=new Hg),zl}class tn{}class Wl extends tn{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,Zl(t,s=>this.processProvider(s)),this.records.set(Lg,Br(void 0,this)),o.has("environment")&&this.records.set(tn,Br(void 0,this));const i=this.records.get(Gl);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Vg.multi,q,T.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();const t=this._onDestroyHooks;this._onDestroyHooks=[];for(const n of t)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const n=On(this),r=Ke(void 0);try{return t()}finally{On(n),Ke(r)}}get(t,n=Io,r=T.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(Ph))return t[Ph](this);r=ss(r);const o=On(this),i=Ke(void 0);try{if(!(r&T.SkipSelf)){let a=this.records.get(t);if(void 0===a){const u=function HI(e){return"function"==typeof e||"object"==typeof e&&e instanceof S}(t)&&rs(t);a=u&&this.injectableDefInScope(u)?Br(ql(t),Ws):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&T.Self?qs():this.parent).get(t,n=r&T.Optional&&n===Io?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[is]=s[is]||[]).unshift(Ae(t)),o)throw s;return function Fb(e,t,n,r){const o=e[is];throw t[Oh]&&o.unshift(t[Oh]),e.message=function Pb(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=Ae(t);if(Array.isArray(t))o=t.map(Ae).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):Ae(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(Tb,"\n ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e[is]=null,e}(s,t,"R3InjectorError",this.source)}throw s}finally{Ke(i),On(o)}}resolveInjectorInitializers(){const t=On(this),n=Ke(void 0);try{const r=this.get(Yo.multi,q,T.Self);for(const o of r)o()}finally{On(t),Ke(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(Ae(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new C(205,!1)}processProvider(t){let n=rr(t=k(t))?t:k(t&&t.provide);const r=function kI(e){return Ul(e)?Br(void 0,e.useValue):Br(Gg(e),Ws)}(t);if(rr(t)||!0!==t.multi)this.records.get(n);else{let o=this.records.get(n);o||(o=Br(void 0,Ws,!0),o.factory=()=>ju(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===Ws&&(n.value=FI,n.value=n.factory()),"object"==typeof n.value&&n.value&&function VI(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=k(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 ql(e){const t=rs(e),n=null!==t?t.factory:Kn(e);if(null!==n)return n;if(e instanceof S)throw new C(204,!1);if(e instanceof Function)return function PI(e){const t=e.length;if(t>0)throw jo(t,"?"),new C(204,!1);const n=function Sb(e){return e&&(e[os]||e[Th])||null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new C(204,!1)}function Gg(e,t,n){let r;if(rr(e)){const o=k(e);return Kn(o)||ql(o)}if(Ul(e))r=()=>k(e.useValue);else if(function Ug(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...ju(e.deps||[]));else if(function $g(e){return!(!e||!e.useExisting)}(e))r=()=>I(k(e.useExisting));else{const o=k(e&&(e.useClass||e.provide));if(!function LI(e){return!!e.deps}(e))return Kn(o)||ql(o);r=()=>new o(...ju(e.deps))}return r}function Br(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Zl(e,t){for(const n of e)Array.isArray(n)?Zl(n,t):n&&ku(n)?Zl(n.\u0275providers,t):t(n)}const Zs=new S("AppId",{providedIn:"root",factory:()=>jI}),jI="ng",zg=new S("Platform Initializer"),or=new S("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Wg=new S("CSP nonce",{providedIn:"root",factory:()=>Wo().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let Zg=(e,t)=>null;function Yg(e,t){return Zg(e,t)}class YI{}class Kg{}class JI{resolveComponentFactory(t){throw function QI(e){const t=Error(`No component factory found for ${Ae(e)}.`);return t.ngComponent=e,t}(t)}}let Xs=(()=>{class e{}return e.NULL=new JI,e})();function KI(){return $r(Ve(),D())}function $r(e,t){return new st(nt(e,t))}let st=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=KI,e})();class em{}let _n=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function e0(){const e=D(),n=rt(Ve().index,e);return(ht(n)?n:e)[V]}(),e})(),t0=(()=>{class e{}return e.\u0275prov=A({token:e,providedIn:"root",factory:()=>null}),e})();class Xo{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const n0=new Xo("16.0.4"),ic={};function ei(e){for(;e;){e[j]|=64;const t=Uo(e);if(Wu(e)&&!t)return e;e=t}return null}function sc(e){return e.ngOriginalError}class ir{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&&sc(t);for(;n&&sc(n);)n=sc(n);return n||null}}const rm=new S("",{providedIn:"root",factory:()=>!1});function wn(e){return e instanceof Function?e():e}class um extends ep{constructor(){super(...arguments),this.consumerAllowSignalWrites=!1,this._lView=null}set lView(t){this._lView=t}onConsumerDependencyMayHaveChanged(){ei(this._lView)}onProducerUpdateValueVersion(){}get hasReadASignal(){return this.hasProducers}runInContext(t,n,r){const o=Pe(this);this.trackingVersion++;try{t(n,r)}finally{Pe(o)}}destroy(){this.trackingVersion++}}let ta=null;function lm(){return ta??=new um,ta}function cm(e,t){return e[t]??lm()}function dm(e,t){const n=lm();n.hasReadASignal&&(e[t]=ta,n.lView=e,ta=new um)}const H={};function Pt(e){fm(W(),D(),qe()+e,!1)}function fm(e,t,n,r){if(!r)if(3==(3&t[j])){const i=e.preOrderCheckHooks;null!==i&&Cs(t,i,n)}else{const i=e.preOrderHooks;null!==i&&_s(t,i,0,n)}Xn(n)}function mm(e,t=null,n=null,r){const o=ym(e,t,n,r);return o.resolveInjectorInitializers(),o}function ym(e,t=null,n=null,r,o=new Set){const i=[n||q,RI(e)];return r=r||("object"==typeof e?void 0:Ae(e)),new Wl(i,t||qs(),r||null,o)}let kt=(()=>{class e{static create(n,r){if(Array.isArray(n))return mm({name:""},r,n,"");{const o=n.name??"";return mm({name:o},n.parent,n.providers,o)}}}return e.THROW_IF_NOT_FOUND=Io,e.NULL=new Hg,e.\u0275prov=A({token:e,providedIn:"any",factory:()=>I(Lg)}),e.__NG_ELEMENT_ID__=-1,e})();function v(e,t=T.Default){const n=D();return null===n?I(e,t):kp(Ve(),n,k(e),t)}function na(e,t,n,r,o,i,s,a,u,l,c){const d=t.blueprint.slice();return d[Te]=o,d[j]=140|r,(null!==l||e&&2048&e[j])&&(d[j]|=2048),cp(d),d[de]=d[br]=e,d[ge]=n,d[Qn]=s||e&&e[Qn],d[V]=a||e&&e[V],d[Er]=u||e&&e[Er]||null,d[$e]=i,d[xo]=function NS(){return TS++}(),d[yn]=c,d[Zh]=l,d[_e]=2==t.type?e[_e]:d,d}function Gr(e,t,n,r,o){let i=e.data[t];if(null===i)i=function ac(e,t,n,r,o){const i=mp(),s=Ku(),u=e.data[t]=function b0(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Ar()&&(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=u),null!==i&&(s?null==i.child&&null!==u.parent&&(i.child=u):null===i.next&&(i.next=u,u.prev=i)),u}(e,t,n,r,o),function OM(){return P.lFrame.inI18n}()&&(i.flags|=32);else if(64&i.type){i.type=n,i.value=r,i.attrs=o;const s=function Po(){const e=P.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();i.injectorIndex=null===s?-1:s.injectorIndex}return Kt(i,!0),i}function ti(e,t,n,r){if(0===n)return-1;const o=t.length;for(let i=0;iz&&fm(e,t,z,!1),Jt(a?2:0,o),a)i.runInContext(n,r,o);else{const l=Pe(null);try{n(r,o)}finally{Pe(l)}}}finally{a&&null===t[ls]&&dm(t,ls),Xn(s),Jt(a?3:1,o)}}function uc(e,t,n){if(zu(t)){const r=Pe(null);try{const i=t.directiveEnd;for(let s=t.directiveStart;snull;function wm(e,t,n,r){for(let o in e)if(e.hasOwnProperty(o)){n=null===n?{}:n;const i=e[o];null===r?Em(n,t,o,i):r.hasOwnProperty(o)&&Em(n,t,r[o],i)}return n}function Em(e,t,n,r){e.hasOwnProperty(n)?e[n].push(t,r):e[n]=[t,r]}function fc(e,t,n,r){if(gp()){const o=null===r?null:{"":-1},i=function x0(e,t){const n=e.directiveRegistry;let r=null,o=null;if(n)for(let i=0;i0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=a&&s.push(a),s.push(n,r,i)}}(e,t,r,ti(e,n,o.hostVars,H),o)}function nn(e,t,n,r,o,i){const s=nt(e,t);!function pc(e,t,n,r,o,i,s){if(null==i)e.removeAttribute(t,o,n);else{const a=null==s?L(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}(t[V],s,i,e.value,n,r,o)}function H0(e,t,n,r,o,i){const s=i[t];if(null!==s)for(let a=0;a{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 lM(n,l=>{this.all.has(l)&&this.queue.set(l,i)},o);let a;this.all.add(s),s.notify();const u=()=>{s.cleanup(),a?.(),this.all.delete(s),this.queue.delete(s)};return a=r?.onDestroy(u),{destroy:u}}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=A({token:e,providedIn:"root",factory:()=>new e}),e})();function oa(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(null!==t)for(let s=0;s0&&vc(n)}}function vc(e){for(let r=bl(e);null!==r;r=Ml(r))for(let o=Le;o0&&vc(i)}const n=e[E].components;if(null!==n)for(let r=0;r0&&vc(o)}}class ri{get rootNodes(){const t=this._lView,n=t[E];return ni(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[ge]}set context(t){this._lView[ge]=t}get destroyed(){return 256==(256&this._lView[j])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[de];if(tt(t)){const n=t[ds],r=n?n.indexOf(this):-1;r>-1&&(Il(t,r),As(n,r))}this._attachedToViewContainer=!1}dg(this._lView[E],this._lView)}onDestroy(t){!function hp(e,t){if(256==(256&e[j]))throw new C(911,!1);null===e[Fn]&&(e[Fn]=[]),e[Fn].push(t)}(this._lView,t)}markForCheck(){ei(this._cdRefInjectingView||this._lView)}detach(){this._lView[j]&=-129}reattach(){this._lView[j]|=128}detectChanges(){ia(this._lView[E],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new C(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function GS(e,t){zo(e,t,t[V],2,null,null)}(this._lView[E],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new C(902,!1);this._appRef=t}}class K0 extends ri{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;ia(t[E],t,t[ge],!1)}checkNoChanges(){}get context(){return null}}class Fm extends Xs{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=Y(t);return new oi(n,this.ngModule)}}function Pm(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class eA{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=ss(r);const o=this.injector.get(t,ic,r);return o!==ic||n===ic?o:this.parentInjector.get(t,n,r)}}class oi extends Kg{get inputs(){return Pm(this.componentDef.inputs)}get outputs(){return Pm(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function zb(e){return e.map(Gb).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,o){let i=(o=o||this.ngModule)instanceof tn?o:o?.injector;i&&null!==this.componentDef.getStandaloneInjector&&(i=this.componentDef.getStandaloneInjector(i)||i);const s=i?new eA(t,i):t,a=s.get(em,null);if(null===a)throw new C(407,!1);const c={rendererFactory:a,sanitizer:s.get(t0,null),effectManager:s.get(xm,null)},d=a.createRenderer(null,this.componentDef),f=this.componentDef.selectors[0][0]||"div",h=r?function D0(e,t,n,r){const i=r.get(rm,!1)||n===dt.ShadowDom,s=e.selectRootElement(t,i);return function C0(e){_m(e)}(s),s}(d,r,this.componentDef.encapsulation,s):Vs(d,f,function X0(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(f)),p=this.componentDef.onPush?576:528,g=dc(0,null,null,1,0,null,null,null,null,null,null),y=na(null,g,null,p,null,null,c,d,s,null,null);let _,m;rl(y);try{const w=this.componentDef;let R,U=null;w.findHostDirectiveDefs?(R=[],U=new Map,w.findHostDirectiveDefs(w,R,U),R.push(w)):R=[w];const Ct=function nA(e,t){const n=e[E],r=z;return e[r]=t,Gr(n,r,2,"#host",null)}(y,h),EE=function rA(e,t,n,r,o,i,s){const a=o[E];!function oA(e,t,n,r){for(const o of e)t.mergedAttrs=No(t.mergedAttrs,o.hostAttrs);null!==t.mergedAttrs&&(oa(t,t.mergedAttrs,!0),null!==n&&Eg(r,n,t))}(r,e,t,s);let u=null;null!==t&&(u=Yg(t,o[Er]));const l=i.rendererFactory.createRenderer(t,n),c=na(o,Cm(n),null,n.onPush?64:16,o[e.index],e,i,l,null,null,u);return a.firstCreatePass&&hc(a,e,r.length-1),ra(o,c),o[e.index]=c}(Ct,h,w,R,y,c,d);m=lp(g,z),h&&function sA(e,t,n,r){if(r)Uu(e,n,["ng-version",n0.full]);else{const{attrs:o,classes:i}=function Wb(e){const t=[],n=[];let r=1,o=2;for(;r0&&wg(e,n,i.join(" "))}}(d,w,h,r),void 0!==n&&function aA(e,t,n){const r=e.projection=[];for(let o=0;o=0;r--){const o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=No(o.hostAttrs,n=No(n,o.hostAttrs))}}(r)}function Dc(e){return e===gn?{}:e===q?[]:e}function cA(e,t){const n=e.viewQuery;e.viewQuery=n?(r,o)=>{t(r,o),n(r,o)}:t}function dA(e,t){const n=e.contentQueries;e.contentQueries=n?(r,o,i)=>{t(r,o,i),n(r,o,i)}:t}function fA(e,t){const n=e.hostBindings;e.hostBindings=n?(r,o)=>{t(r,o),n(r,o)}:t}function Ge(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function It(e,t,n,r){const o=D();return Ge(o,Tr(),t)&&(W(),nn(fe(),o,e,t,n,r)),It}function li(e,t,n,r,o,i,s,a){const u=D(),l=W(),c=e+z,d=l.firstCreatePass?function LA(e,t,n,r,o,i,s,a,u){const l=t.consts,c=Gr(t,e,4,s||null,Pn(l,a));fc(t,n,c,Pn(l,u)),Ds(t,c);const d=c.tView=dc(2,c,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,l,null);return null!==t.queries&&(t.queries.template(t,c),d.queries=t.queries.embeddedTView(c)),c}(c,l,u,t,n,r,o,i,s):l.data[c];Kt(d,!1);const f=Km(l,u,d,e);vs()&&js(l,u,f,d),Ue(f,u),ra(u,u[c]=Im(f,u,f,d)),fs(d)&&lc(l,u,d),null!=s&&cc(u,d,a)}let Km=function Xm(e,t,n,r){return kn(!0),t[V].createComment("")};function vt(e,t,n){const r=D();return Ge(r,Tr(),t)&&function yt(e,t,n,r,o,i,s,a){const u=nt(t,n);let c,l=t.inputs;!a&&null!=l&&(c=l[r])?(mc(e,n,c,r,o),Jn(t)&&function I0(e,t){const n=rt(t,e);16&n[j]||(n[j]|=64)}(n,t.index)):3&t.type&&(r=function S0(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),o=null!=s?s(o,t.value||"",r):o,i.setProperty(u,r,o))}(W(),fe(),r,e,t,r[V],n,!1),vt}function Sc(e,t,n,r,o){const s=o?"class":"style";mc(e,n,t.inputs[s],s,r)}function re(e,t,n,r){const o=D(),i=W(),s=z+e,a=o[V],u=i.firstCreatePass?function $A(e,t,n,r,o,i){const s=t.consts,u=Gr(t,e,2,r,Pn(s,o));return fc(t,n,u,Pn(s,i)),null!==u.attrs&&oa(u,u.attrs,!1),null!==u.mergedAttrs&&oa(u,u.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,u),u}(s,i,o,t,n,r):i.data[s],l=ey(i,o,u,a,t,e);o[s]=l;const c=fs(u);return Kt(u,!0),Eg(a,l,u),32!=(32&u.flags)&&vs()&&js(i,o,l,u),0===function _M(){return P.lFrame.elementDepthCount}()&&Ue(l,o),function wM(){P.lFrame.elementDepthCount++}(),c&&(lc(i,o,u),uc(i,u,o)),null!==r&&cc(o,u),re}function oe(){let e=Ve();Ku()?Xu():(e=e.parent,Kt(e,!1));const t=e;(function bM(e){return P.skipHydrationRootTNode===e})(t)&&function AM(){P.skipHydrationRootTNode=null}(),function EM(){P.lFrame.elementDepthCount--}();const n=W();return n.firstCreatePass&&(Ds(n,e),zu(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function zM(e){return 0!=(8&e.flags)}(t)&&Sc(n,t,D(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function WM(e){return 0!=(16&e.flags)}(t)&&Sc(n,t,D(),t.stylesWithoutHost,!1),oe}function Ln(e,t,n,r){return re(e,t,n,r),oe(),Ln}let ey=(e,t,n,r,o,i)=>(kn(!0),Vs(r,o,function Sp(){return P.lFrame.currentNamespace}()));function fa(e,t,n){const r=D(),o=W(),i=e+z,s=o.firstCreatePass?function zA(e,t,n,r,o){const i=t.consts,s=Pn(i,r),a=Gr(t,e,8,"ng-container",s);return null!==s&&oa(a,s,!0),fc(t,n,a,Pn(i,o)),null!==t.queries&&t.queries.elementStart(t,a),a}(i,o,r,t,n):o.data[i];Kt(s,!0);const a=ny(o,r,s,e);return r[i]=a,vs()&&js(o,r,a,s),Ue(a,r),fs(s)&&(lc(o,r,s),uc(o,s,r)),null!=n&&cc(r,s),fa}function ha(){let e=Ve();const t=W();return Ku()?Xu():(e=e.parent,Kt(e,!1)),t.firstCreatePass&&(Ds(t,e),zu(e)&&t.queries.elementEnd(e)),ha}let ny=(e,t,n,r)=>(kn(!0),Sl(t[V],""));function ci(e){return!!e&&"function"==typeof e.then}function ry(e){return!!e&&"function"==typeof e.subscribe}function je(e,t,n,r){const o=D(),i=W(),s=Ve();return function iy(e,t,n,r,o,i,s){const a=fs(r),l=e.firstCreatePass&&function Nm(e){return e.cleanup||(e.cleanup=[])}(e),c=t[ge],d=function Tm(e){return e[wr]||(e[wr]=[])}(t);let f=!0;if(3&r.type||s){const g=nt(r,t),y=s?s(g):g,_=d.length,m=s?R=>s(ue(R[r.index])):r.index;let w=null;if(!s&&a&&(w=function YA(e,t,n,r){const o=e.cleanup;if(null!=o)for(let i=0;iu?a[u]:null}"string"==typeof s&&(i+=2)}return null}(e,t,o,r.index)),null!==w)(w.__ngLastListenerFn__||w).__ngNextListenerFn__=i,w.__ngLastListenerFn__=i,f=!1;else{i=ay(r,t,c,i,!1);const R=n.listen(y,o,i);d.push(i,R),l&&l.push(o,m,_,_+1)}}else i=ay(r,t,c,i,!1);const h=r.outputs;let p;if(f&&null!==h&&(p=h[o])){const g=p.length;if(g)for(let y=0;y-1?rt(e.index,t):t);let u=sy(t,n,r,s),l=i.__ngNextListenerFn__;for(;l;)u=sy(t,n,l,s)&&u,l=l.__ngNextListenerFn__;return o&&!1===u&&s.preventDefault(),u}}function di(e=1){return function kM(e){return(P.lFrame.contextLView=function LM(e,t){for(;e>0;)t=t[br],e--;return t}(e,P.lFrame.contextLView))[ge]}(e)}function QA(e,t){let n=null;const r=function jb(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(!(1&n))return t[n+1]}return null}(e);for(let o=0;o>17&32767}function Ac(e){return 2|e}function ar(e){return(131068&e)>>2}function Tc(e,t){return-131069&e|t<<2}function Nc(e){return 1|e}function Dy(e,t,n,r,o){const i=e[n+1],s=null===t;let a=r?Vn(i):ar(i),u=!1;for(;0!==a&&(!1===u||s);){const c=e[a+1];nT(e[a],t)&&(u=!0,e[a+1]=r?Nc(c):Ac(c)),a=r?Vn(c):ar(c)}u&&(e[n+1]=r?Ac(i):Nc(i))}function nT(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&kr(e,t)>=0}function Rc(e,t,n){return Lt(e,t,n,!1),Rc}function ga(e,t){return Lt(e,t,null,!0),ga}function Lt(e,t,n,r){const o=D(),i=W(),s=function Dn(e){const t=P.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}(2);i.firstUpdatePass&&function Iy(e,t,n,r){const o=e.data;if(null===o[n+1]){const i=o[qe()],s=function Sy(e,t){return t>=e.expandoStartIndex}(e,n);(function Ry(e,t){return 0!=(e.flags&(t?8:16))})(i,r)&&null===t&&!s&&(t=!1),t=function dT(e,t,n,r){const o=function tl(e){const t=P.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=fi(n=Oc(null,e,t,n,r),t.attrs,r),i=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==o)if(n=Oc(o,e,t,n,r),null===i){let u=function fT(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==ar(r))return e[Vn(r)]}(e,t,r);void 0!==u&&Array.isArray(u)&&(u=Oc(null,e,t,u[1],r),u=fi(u,t.attrs,r),function hT(e,t,n,r){e[Vn(n?t.classBindings:t.styleBindings)]=r}(e,t,r,u))}else i=function pT(e,t,n){let r;const o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0)&&(l=!0)):c=n,o)if(0!==u){const f=Vn(e[a+1]);e[r+1]=pa(f,a),0!==f&&(e[f+1]=Tc(e[f+1],r)),e[a+1]=function KA(e,t){return 131071&e|t<<17}(e[a+1],r)}else e[r+1]=pa(a,0),0!==a&&(e[a+1]=Tc(e[a+1],r)),a=r;else e[r+1]=pa(u,0),0===a?a=r:e[u+1]=Tc(e[u+1],r),u=r;l&&(e[r+1]=Ac(e[r+1])),Dy(e,c,r,!0),Dy(e,c,r,!1),function tT(e,t,n,r,o){const i=o?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof t&&kr(i,t)>=0&&(n[r+1]=Nc(n[r+1]))}(t,c,e,r,i),s=pa(a,u),i?t.classBindings=s:t.styleBindings=s}(o,i,t,n,s,r)}}(i,e,s,r),t!==H&&Ge(o,s,t)&&function Ty(e,t,n,r,o,i,s,a){if(!(3&t.type))return;const u=e.data,l=u[a+1],c=function XA(e){return 1==(1&e)}(l)?Ny(u,t,n,o,ar(l),s):void 0;ma(c)||(ma(i)||function JA(e){return 2==(2&e)}(l)&&(i=Ny(u,null,n,o,a,s)),function eI(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=-1===r.indexOf("-")?void 0:ot.DashCase;null==o?e.removeStyle(n,r,i):("string"==typeof o&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=ot.Important),e.setStyle(n,r,o,i))}}(r,s,ms(qe(),n),o,i))}(i,i.data[qe()],o,o[V],e,o[s+1]=function vT(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=Ae(mt(e)))),e}(t,n),r,s)}function Oc(e,t,n,r,o){let i=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const u=e[o],l=Array.isArray(u),c=l?u[1]:u,d=null===c;let f=n[o+1];f===H&&(f=d?q:void 0);let h=d?hl(f,r):c===r?f:void 0;if(l&&!ma(h)&&(h=hl(u,r)),ma(h)&&(a=h,s))return a;const p=e[o+1];o=s?Vn(p):ar(p)}if(null!==t){let u=i?t.residualClasses:t.residualStyles;null!=u&&(a=hl(u,r))}return a}function ma(e){return void 0!==e}function we(e,t=""){const n=D(),r=W(),o=e+z,i=r.firstCreatePass?Gr(r,o,1,t,null):r.data[o],s=Oy(r,n,i,t,e);n[o]=s,vs()&&js(r,n,s,i),Kt(i,!1)}let Oy=(e,t,n,r,o)=>(kn(!0),function Ls(e,t){return e.createText(t)}(t[V],r));function xc(e){return Fc("",e,""),xc}function Fc(e,t,n){const r=D(),o=function Wr(e,t,n,r){return Ge(e,Tr(),n)?t+L(n)+r:H}(r,e,t,n);return o!==H&&function En(e,t,n){const r=ms(t,e);!function lg(e,t,n){e.setValue(t,n)}(e[V],r,n)}(r,qe(),o),Fc}const no="en-US";let ev=no;function Lc(e,t,n,r,o){if(e=k(e),Array.isArray(e))for(let i=0;i>20;if(rr(e)||!e.multi){const h=new ko(u,o,v),p=Hc(a,t,o?c:c+f,d);-1===p?(cl(Ms(l,s),i,a),Vc(i,e,t.length),t.push(a),l.directiveStart++,l.directiveEnd++,o&&(l.providerIndexes+=1048576),n.push(h),s.push(h)):(n[p]=h,s[p]=h)}else{const h=Hc(a,t,c+f,d),p=Hc(a,t,c,c+f),y=p>=0&&n[p];if(o&&!y||!o&&!(h>=0&&n[h])){cl(Ms(l,s),i,a);const _=function VN(e,t,n,r,o){const i=new ko(e,n,v);return i.multi=[],i.index=t,i.componentProviders=0,Mv(i,o,r&&!n),i}(o?LN:kN,n.length,o,r,u);!o&&y&&(n[p].providerFactory=_),Vc(i,e,t.length,0),t.push(a),l.directiveStart++,l.directiveEnd++,o&&(l.providerIndexes+=1048576),n.push(_),s.push(_)}else Vc(i,e,h>-1?h:p,Mv(n[o?p:h],u,!o&&r));!o&&r&&y&&n[p].componentProviders++}}}function Vc(e,t,n,r){const o=rr(t),i=function xI(e){return!!e.useClass}(t);if(o||i){const u=(i?k(t.useClass):t).prototype.ngOnDestroy;if(u){const l=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const c=l.indexOf(n);-1===c?l.push(n,[r,u]):l[c+1].push(r,u)}else l.push(n,u)}}}function Mv(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Hc(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>function PN(e,t,n){const r=W();if(r.firstCreatePass){const o=Ft(e);Lc(n,r.data,r.blueprint,o,!0),Lc(t,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,t)}}class ro{}class Sv{}class Bc extends ro{constructor(t,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Fm(this);const o=ft(t);this._bootstrapComponents=wn(o.bootstrap),this._r3Injector=ym(t,n,[{provide:ro,useValue:this},{provide:Xs,useValue:this.componentFactoryResolver},...r],Ae(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 $c extends Sv{constructor(t){super(),this.moduleType=t}create(t){return new Bc(this.moduleType,t,[])}}class Iv extends ro{constructor(t){super(),this.componentFactoryResolver=new Fm(this),this.instance=null;const n=new Wl([...t.providers,{provide:ro,useValue:this},{provide:Xs,useValue:this.componentFactoryResolver}],t.parent||qs(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function Uc(e,t,n=null){return new Iv({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}let BN=(()=>{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=jg(0,n.type),o=r.length>0?Uc([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n.id,o)}return this.cachedInjectors.get(n.id)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}}return e.\u0275prov=A({token:e,providedIn:"environment",factory:()=>new e(I(tn))}),e})();function Gc(e){e.getStandaloneInjector=t=>t.get(BN).getOrCreateStandaloneInjector(e)}function Wc(e){return t=>{setTimeout(e,void 0,t)}}const he=class hR extends fn{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&"object"==typeof t){const u=t;o=u.next?.bind(u),i=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(i=Wc(i),o&&(o=Wc(o)),s&&(s=Wc(s)));const a=super.subscribe({next:o,error:i,complete:s});return t instanceof _t&&t.add(a),a}};let an=(()=>{class e{}return e.__NG_ELEMENT_ID__=yR,e})();const gR=an,mR=class extends gR{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=na(this._declarationLView,o,t,16,null,o.declTNode,null,null,null,n||null,r||null);i[Oo]=this._declarationLView[this._declarationTContainer.index];const a=this._declarationLView[Zt];return null!==a&&(i[Zt]=a.createEmbeddedView(o)),yc(o,i,t),new ri(i)}};function yR(){return function _a(e,t){return 4&e.type?new mR(t,e,$r(e,t)):null}(Ve(),D())}let Ht=(()=>{class e{}return e.__NG_ELEMENT_ID__=bR,e})();function bR(){return function Gv(e,t){let n;const r=t[e.index];return tt(r)?n=r:(n=Im(r,t,null,e),t[e.index]=n,ra(t,n)),zv(n,t,e,r),new $v(n,e,t)}(Ve(),D())}const MR=Ht,$v=class extends MR{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return $r(this._hostTNode,this._hostLView)}get injector(){return new Rr(this._hostTNode,this._hostLView)}get parentInjector(){const t=ll(this._hostTNode,this._hostLView);if(Np(t)){const n=Es(t,this._hostLView),r=ws(t);return new Rr(n[E].data[r+8],n)}return new Rr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Uv(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-Le}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 Vo(e){return"function"==typeof e}(t);let a;if(s)a=n;else{const g=n||{};a=g.index,r=g.injector,o=g.projectableNodes,i=g.environmentInjector||g.ngModuleRef}const u=s?t:new oi(Y(t)),l=r||this.parentInjector;if(!i&&null==u.ngModule){const y=(s?l:this.parentInjector).get(tn,null);y&&(i=y)}Y(u.componentType??{});const h=u.create(l,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[E];if(function vM(e){return tt(e[de])}(o)){const u=this.indexOf(t);if(-1!==u)this.detach(u);else{const l=o[de],c=new $v(l,l[$e],l[de]);c.detach(c.indexOf(t))}}const s=this._adjustIndex(n),a=this._lContainer;if(function WS(e,t,n,r){const o=Le+r,i=n.length;r>0&&(n[o-1][xt]=t),r{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=M(sd,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const o of this.appInits){const i=o();if(ci(i))n.push(i);else if(ry(i)){const s=new Promise((a,u)=>{i.subscribe({complete:a,error:u})});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=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),yD=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const bn=new S("LocaleId",{providedIn:"root",factory:()=>M(bn,T.Optional|T.SkipSelf)||function rO(){return typeof $localize<"u"&&$localize.locale||no}()});let Ea=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new ut(!1)}add(){this.hasPendingTasks.next(!0);const n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class iO{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let vD=(()=>{class e{compileModuleSync(n){return new $c(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),i=wn(ft(n).declarations).reduce((s,a)=>{const u=Y(a);return u&&s.push(new oi(u)),s},[]);return new iO(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const uO=(()=>Promise.resolve(0))();function ud(e){typeof Zone>"u"?uO.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}function _D(...e){}class ce{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new he(!1),this.onMicrotaskEmpty=new he(!1),this.onStable=new he(!1),this.onError=new he(!1),typeof Zone>"u")throw new C(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function lO(){let e=ie.requestAnimationFrame,t=ie.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 fO(e){const t=()=>{!function dO(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(ie,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,cd(e),e.isCheckStableRunning=!0,ld(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),cd(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{try{return wD(e),n.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&t(),ED(e)}},onInvoke:(n,r,o,i,s,a,u)=>{try{return wD(e),n.invoke(o,i,s,a,u)}finally{e.shouldCoalesceRunChangeDetection&&t(),ED(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,cd(e),ld(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(!ce.isInAngularZone())throw new C(909,!1)}static assertNotInAngularZone(){if(ce.isInAngularZone())throw new C(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,cO,_D,_D);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 cO={};function ld(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 cd(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function wD(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function ED(e){e._nesting--,ld(e)}class hO{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new he,this.onMicrotaskEmpty=new he,this.onStable=new he,this.onError=new he}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 bD=new S("",{providedIn:"root",factory:MD});function MD(){const e=M(ce);let t=!0;return function mb(...e){const t=So(e),n=function lb(e,t){return"number"==typeof Nu(e)?e.pop():t}(e,1/0),r=e;return r.length?1===r.length?wt(r[0]):Dr(n)(Ie(r,t)):Wt}(new ye(o=>{t=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{o.next(t),o.complete()})}),new ye(o=>{let i;e.runOutsideAngular(()=>{i=e.onStable.subscribe(()=>{ce.assertNotInAngularZone(),ud(()=>{!t&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(t=!0,o.next(!0))})})});const s=e.onUnstable.subscribe(()=>{ce.assertInAngularZone(),t&&(t=!1,e.runOutsideAngular(()=>{o.next(!1)}))});return()=>{i.unsubscribe(),s.unsubscribe()}}).pipe(Ru()))}const SD=new S(""),ba=new S("");let hd,dd=(()=>{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,hd||(function pO(e){hd=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:()=>{ce.assertNotInAngularZone(),ud(()=>{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())ud(()=>{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)(I(ce),I(fd),I(ba))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})(),fd=(()=>{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 hd?.findTestabilityInTree(this,n,r)??null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})(),Hn=null;const ID=new S("AllowMultipleToken"),pd=new S("PlatformDestroyListeners"),gd=new S("appBootstrapListener");class TD{constructor(t,n){this.name=t,this.token=n}}function RD(e,t,n=[]){const r=`Platform: ${t}`,o=new S(r);return(i=[])=>{let s=md();if(!s||s.injector.get(ID,!1)){const a=[...n,...i,{provide:o,useValue:!0}];e?e(a):function yO(e){if(Hn&&!Hn.get(ID,!1))throw new C(400,!1);(function AD(){!function aM(e){tp=e}(()=>{throw new C(600,!1)})})(),Hn=e;const t=e.get(xD);(function ND(e){e.get(zg,null)?.forEach(n=>n())})(e)}(function OD(e=[],t){return kt.create({name:t,providers:[{provide:Gl,useValue:"platform"},{provide:pd,useValue:new Set([()=>Hn=null])},...e]})}(a,r))}return function DO(e){const t=md();if(!t)throw new C(401,!1);return t}()}}function md(){return Hn?.get(xD)??null}let xD=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const o=function CO(e="zone.js",t){return"noop"===e?new hO:"zone.js"===e?new ce(t):e}(r?.ngZone,function FD(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return o.run(()=>{const i=function jN(e,t,n){return new Bc(e,t,n)}(n.moduleType,this.injector,function HD(e){return[{provide:ce,useFactory:e},{provide:Yo,multi:!0,useFactory:()=>{const t=M(wO,{optional:!0});return()=>t.initialize()}},{provide:VD,useFactory:_O},{provide:bD,useFactory:MD}]}(()=>o)),s=i.injector.get(ir,null);return o.runOutsideAngular(()=>{const a=o.onError.subscribe({next:u=>{s.handleError(u)}});i.onDestroy(()=>{Ma(this._modules,i),a.unsubscribe()})}),function PD(e,t,n){try{const r=n();return ci(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(ad);return a.runInitializers(),a.donePromise.then(()=>(function tv(e){Et(e,"Expected localeId to be defined"),"string"==typeof e&&(ev=e.toLowerCase().replace(/_/g,"-"))}(i.injector.get(bn,no)||no),this._moduleDoBootstrap(i),i))})})}bootstrapModule(n,r=[]){const o=kD({},r);return function gO(e,t,n){const r=new $c(n);return Promise.resolve(r)}(0,0,n).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(n){const r=n.injector.get(so);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new C(-403,!1);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new C(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(pd,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)(I(kt))},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function kD(e,t){return Array.isArray(t)?t.reduce(kD,e):{...e,...t}}let so=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=M(VD),this.zoneIsStable=M(bD),this.componentTypes=[],this.components=[],this.isStable=M(Ea).hasPendingTasks.pipe(Fe(n=>n?x(!1):this.zoneIsStable),function yb(e,t=Tn){return e=e??vb,xe((n,r)=>{let o,i=!0;n.subscribe(Se(r,s=>{const a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}(),Ru()),this._injector=M(tn)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const o=n instanceof Kg;if(!this._injector.get(ad).done)throw!o&&function _r(e){const t=Y(e)||Be(e)||et(e);return null!==t&&t.standalone}(n),new C(405,!1);let s;s=o?n:this._injector.get(Xs).resolveComponentFactory(n),this.componentTypes.push(s.componentType);const a=function mO(e){return e.isBoundToModule}(s)?void 0:this._injector.get(ro),l=s.create(kt.NULL,[],r||s.selector,a),c=l.location.nativeElement,d=l.injector.get(SD,null);return d?.registerApplication(c),l.onDestroy(()=>{this.detachView(l.hostView),Ma(this.components,l),d?.unregisterApplication(c)}),this._loadComponent(l),l}tick(){if(this._runningTick)throw new C(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this.internalErrorHandler(n)}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;Ma(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(gd,[]);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),()=>Ma(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new C(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Ma(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const VD=new S("",{providedIn:"root",factory:()=>M(ir).handleError.bind(void 0)});function _O(){const e=M(ce),t=M(ir);return n=>e.runOutsideAngular(()=>t.handleError(n))}let wO=(()=>{class e{constructor(){this.zone=M(ce),this.applicationRef=M(so)}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=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();let _i=(()=>{class e{}return e.__NG_ELEMENT_ID__=bO,e})();function bO(e){return function MO(e,t,n){if(Jn(e)&&!n){const r=rt(e.index,t);return new ri(r,r)}return 47&e.type?new ri(t[_e],t):null}(Ve(),D(),16==(16&e))}const VO=RD(null,"core",[]);let HO=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(I(so))},e.\u0275mod=bt({type:e}),e.\u0275inj=ct({}),e})();function ao(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}let Ed=null;function jn(){return Ed}class JO{}const ke=new S("DocumentToken");let bd=(()=>{class e{historyGo(n){throw new Error("Not implemented")}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:function(){return M(XO)},providedIn:"platform"}),e})();const KO=new S("Location Initialized");let XO=(()=>{class e extends bd{constructor(){super(),this._doc=M(ke),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return jn().getBaseHref(this._doc)}onPopState(n){const r=jn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){const r=jn().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=A({token:e,factory:function(){return new e},providedIn:"platform"}),e})();function Md(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 tC(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 Mn(e){return e&&"?"!==e[0]?"?"+e:e}let cr=(()=>{class e{historyGo(n){throw new Error("Not implemented")}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:function(){return M(rC)},providedIn:"root"}),e})();const nC=new S("appBaseHref");let rC=(()=>{class e extends cr{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??M(ke).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 Md(this._baseHref,n)}path(n=!1){const r=this._platformLocation.pathname+Mn(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){const s=this.prepareExternalUrl(o+Mn(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){const s=this.prepareExternalUrl(o+Mn(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)(I(bd),I(nC,8))},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),ex=(()=>{class e extends cr{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=Md(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+Mn(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+Mn(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)(I(bd),I(nC,8))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})(),Sd=(()=>{class e{constructor(n){this._subject=new he,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;const r=this._locationStrategy.getBaseHref();this._basePath=function rx(e){if(new RegExp("^(https?:)?//").test(e)){const[,n]=e.split(/\/\/[^\/]+/);return n}return e}(tC(oC(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+Mn(r))}normalize(n){return e.stripTrailingSlash(function nx(e,t){if(!e||!t.startsWith(e))return t;const n=t.substring(e.length);return""===n||["/",";","?","#"].includes(n[0])?n:t}(this._basePath,oC(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+Mn(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Mn(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=Mn,e.joinWithSlash=Md,e.stripTrailingSlash=tC,e.\u0275fac=function(n){return new(n||e)(I(cr))},e.\u0275prov=A({token:e,factory:function(){return function tx(){return new Sd(I(cr))}()},providedIn:"root"}),e})();function oC(e){return e.replace(/\/index.html$/,"")}function hC(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const r=n.indexOf("="),[o,i]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}let yC=(()=>{class e{constructor(n,r){this._viewContainer=n,this._context=new Gx,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){vC("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){vC("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)(v(Ht),v(an))},e.\u0275dir=F({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),e})();class Gx{constructor(){this.$implicit=null,this.ngIf=null}}function vC(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Ae(t)}'.`)}let Bd=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=ct({}),e})();function wC(e){return"server"===e}let vF=(()=>{class e{}return e.\u0275prov=A({token:e,providedIn:"root",factory:()=>new DF(I(ke),window)}),e})();class DF{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 CF(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=EC(this.window.history)||EC(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 EC(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}class bC{}class qF extends JO{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Gd extends qF{static makeCurrent(){!function QO(e){Ed||(Ed=e)}(new Gd)}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 ZF(){return Si=Si||document.querySelector("base"),Si?Si.getAttribute("href"):null}();return null==n?null:function YF(e){$a=$a||document.createElement("a"),$a.setAttribute("href",e);const t=$a.pathname;return"/"===t.charAt(0)?t:`/${t}`}(n)}resetBaseElement(){Si=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return hC(document.cookie,t)}}let $a,Si=null,JF=(()=>{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();const zd=new S("EventManagerPlugins");let TC=(()=>{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 C(5101,!1);return this._eventNameToPlugin.set(n,r),r}}return e.\u0275fac=function(n){return new(n||e)(I(zd),I(ce))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();class NC{constructor(t){this._doc=t}}const Wd="ng-app-id";let RC=(()=>{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=wC(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[${Wd}="${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(Wd),i;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(Wd,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)(I(ke),I(Zs),I(Wg,8),I(or))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();const qd={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/"},Zd=/%COMP%/g,tP=new S("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function xC(e,t){return t.map(n=>n.replace(Zd,e))}let FC=(()=>{class e{constructor(n,r,o,i,s,a,u,l=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestory=i,this.doc=s,this.platformId=a,this.ngZone=u,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=wC(a),this.defaultRenderer=new Yd(n,s,u,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===dt.ShadowDom&&(r={...r,encapsulation:dt.Emulated});const o=this.getOrCreateRenderer(n,r);return o instanceof kC?o.applyToHost(n):o instanceof Qd&&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,u=this.eventManager,l=this.sharedStylesHost,c=this.removeStylesOnCompDestory,d=this.platformIsServer;switch(r.encapsulation){case dt.Emulated:i=new kC(u,l,r,this.appId,c,s,a,d);break;case dt.ShadowDom:return new iP(u,l,n,r,s,a,this.nonce,d);default:i=new Qd(u,l,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)(I(TC),I(RC),I(Zs),I(tP),I(ke),I(or),I(ce),I(Wg))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();class Yd{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(qd[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(PC(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(PC(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 C(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=qd[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const o=qd[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&(ot.DashCase|ot.Important)?t.style.setProperty(n,r,o&ot.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&ot.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=jn().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()}}}function PC(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class iP extends Yd{constructor(t,n,r,o,i,s,a,u){super(t,i,s,u),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=xC(o.id,o.styles);for(const c of l){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 Qd extends Yd{constructor(t,n,r,o,i,s,a,u){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestory=o,this.rendererUsageCount=0,this.styles=u?xC(u,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 kC extends Qd{constructor(t,n,r,o,i,s,a,u){const l=o+"-"+r.id;super(t,n,r,i,s,a,u,l),this.contentAttr=function nP(e){return"_ngcontent-%COMP%".replace(Zd,e)}(l),this.hostAttr=function rP(e){return"_nghost-%COMP%".replace(Zd,e)}(l)}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 sP=(()=>{class e extends NC{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)(I(ke))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();const LC=["alt","control","meta","shift"],aP={"\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"},uP={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let lP=(()=>{class e extends NC{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(()=>jn().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."),LC.forEach(l=>{const c=r.indexOf(l);c>-1&&(r.splice(c,1),s+=l+".")}),s+=i,0!=r.length||0===i.length)return null;const u={};return u.domEventName=o,u.fullKey=s,u}static matchEventFullKeyCode(n,r){let o=aP[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"),LC.forEach(s=>{s!==o&&(0,uP[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)(I(ke))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();const hP=RD(VO,"browser",[{provide:or,useValue:"browser"},{provide:zg,useValue:function cP(){Gd.makeCurrent()},multi:!0},{provide:ke,useFactory:function fP(){return function iI(e){Fl=e}(document),document},deps:[]}]),pP=new S(""),jC=[{provide:ba,useClass:class QF{addToWindow(t){ie.getAngularTestability=(r,o=!0)=>{const i=t.findTestabilityInTree(r,o);if(null==i)throw new C(5103,!1);return i},ie.getAllAngularTestabilities=()=>t.getAllTestabilities(),ie.getAllAngularRootElements=()=>t.getAllRootElements(),ie.frameworkStabilizers||(ie.frameworkStabilizers=[]),ie.frameworkStabilizers.push(r=>{const o=ie.getAllAngularTestabilities();let i=o.length,s=!1;const a=function(u){s=s||u,i--,0==i&&r(s)};o.forEach(function(u){u.whenStable(a)})})}findTestabilityInTree(t,n,r){return null==n?null:t.getTestability(n)??(r?jn().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},deps:[]},{provide:SD,useClass:dd,deps:[ce,fd,ba]},{provide:dd,useClass:dd,deps:[ce,fd,ba]}],BC=[{provide:Gl,useValue:"root"},{provide:ir,useFactory:function dP(){return new ir},deps:[]},{provide:zd,useClass:sP,multi:!0,deps:[ke,ce,or]},{provide:zd,useClass:lP,multi:!0,deps:[ke]},FC,RC,TC,{provide:em,useExisting:FC},{provide:bC,useClass:JF,deps:[]},[]];let gP=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:Zs,useValue:n.appId}]}}}return e.\u0275fac=function(n){return new(n||e)(I(pP,12))},e.\u0275mod=bt({type:e}),e.\u0275inj=ct({providers:[...BC,...jC],imports:[Bd,HO]}),e})(),$C=(()=>{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)(I(ke))},e.\u0275prov=A({token:e,factory:function(n){let r=null;return r=n?new n:function yP(){return new $C(I(ke))}(),r},providedIn:"root"}),e})();typeof window<"u"&&window;let Kd=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:function(n){let r=null;return r=n?new(n||e):I(zC),r},providedIn:"root"}),e})(),zC=(()=>{class e extends Kd{constructor(n){super(),this._doc=n}sanitize(n,r){if(null==r)return null;switch(n){case se.NONE:return r;case se.HTML:return en(r,"HTML")?mt(r):xg(this._doc,String(r)).toString();case se.STYLE:return en(r,"Style")?mt(r):r;case se.SCRIPT:if(en(r,"Script"))return mt(r);throw new C(5200,!1);case se.URL:return en(r,"URL")?mt(r):Gs(String(r));case se.RESOURCE_URL:if(en(r,"ResourceURL"))return mt(r);throw new C(5201,!1);default:throw new C(5202,!1)}}bypassSecurityTrustHtml(n){return function fI(e){return new sI(e)}(n)}bypassSecurityTrustStyle(n){return function hI(e){return new aI(e)}(n)}bypassSecurityTrustScript(n){return function pI(e){return new uI(e)}(n)}bypassSecurityTrustUrl(n){return function gI(e){return new lI(e)}(n)}bypassSecurityTrustResourceUrl(n){return function mI(e){return new cI(e)}(n)}}return e.\u0275fac=function(n){return new(n||e)(I(ke))},e.\u0275prov=A({token:e,factory:function(n){let r=null;return r=n?new n:function _P(e){return new zC(e.get(ke))}(I(kt)),r},providedIn:"root"}),e})();function uo(e,t){return te(t)?Fe(e,t,1):Fe(e,1)}function Ut(e,t){return xe((n,r)=>{let o=0;n.subscribe(Se(r,i=>e.call(t,i,o++)&&r.next(i)))})}function Ii(e){return xe((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function un(e,t){return xe((n,r)=>{let o=null,i=0,s=!1;const a=()=>s&&!o&&r.complete();n.subscribe(Se(r,u=>{o?.unsubscribe();let l=0;const c=i++;wt(e(u,c)).subscribe(o=Se(r,d=>r.next(t?t(u,d,c,l++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}class Ua{}class Xd{}class ln{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 ln?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 ln;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof ln?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 EP{encodeKey(t){return qC(t)}encodeValue(t){return qC(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const MP=/%(\d[a-f0-9])/gi,SP={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function qC(e){return encodeURIComponent(e).replace(MP,(t,n)=>SP[n]??t)}function Ga(e){return`${e}`}class $n{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new EP,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))],u=n.get(s)||[];u.push(a),n.set(s,u)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{const r=t.fromObject[n],o=Array.isArray(r)?r.map(Ga):[Ga(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){const n=[];return Object.keys(t).forEach(r=>{const o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const n=new $n({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const n=("a"===t.op?this.map.get(t.param):void 0)||[];n.push(Ga(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(Ga(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 IP{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 ZC(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function YC(e){return typeof Blob<"u"&&e instanceof Blob}function QC(e){return typeof FormData<"u"&&e instanceof FormData}class Ai{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 ln),this.context||(this.context=new IP),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=n;else{const a=n.indexOf("?");this.urlWithParams=n+(-1===a?"?":ad.set(f,t.setHeaders[f]),u)),t.setParams&&(l=Object.keys(t.setParams).reduce((d,f)=>d.set(f,t.setParams[f]),l)),new Ai(n,r,i,{params:l,headers:u,context:c,reportProgress:a,responseType:o,withCredentials:s})}}var Me=(()=>((Me=Me||{})[Me.Sent=0]="Sent",Me[Me.UploadProgress=1]="UploadProgress",Me[Me.ResponseHeader=2]="ResponseHeader",Me[Me.DownloadProgress=3]="DownloadProgress",Me[Me.Response=4]="Response",Me[Me.User=5]="User",Me))();class ef{constructor(t,n=200,r="OK"){this.headers=t.headers||new ln,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 tf extends ef{constructor(t={}){super(t),this.type=Me.ResponseHeader}clone(t={}){return new tf({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 lo extends ef{constructor(t={}){super(t),this.type=Me.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new lo({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 JC extends ef{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 nf(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 NP=(()=>{class e{constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof Ai)i=n;else{let u,l;u=o.headers instanceof ln?o.headers:new ln(o.headers),o.params&&(l=o.params instanceof $n?o.params:new $n({fromObject:o.params})),i=new Ai(n,r,void 0!==o.body?o.body:null,{headers:u,context:o.context,params:l,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const s=x(i).pipe(uo(u=>this.handler.handle(u)));if(n instanceof Ai||"events"===o.observe)return s;const a=s.pipe(Ut(u=>u instanceof lo));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(Z(u=>{if(null!==u.body&&!(u.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return u.body}));case"blob":return a.pipe(Z(u=>{if(null!==u.body&&!(u.body instanceof Blob))throw new Error("Response is not a Blob.");return u.body}));case"text":return a.pipe(Z(u=>{if(null!==u.body&&"string"!=typeof u.body)throw new Error("Response is not a string.");return u.body}));default:return a.pipe(Z(u=>u.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:(new $n).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,nf(o,r))}post(n,r,o={}){return this.request("POST",n,nf(o,r))}put(n,r,o={}){return this.request("PUT",n,nf(o,r))}}return e.\u0275fac=function(n){return new(n||e)(I(Ua))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();function KC(e,t){return t(e)}function RP(e,t){return(n,r)=>t.intercept(n,{handle:o=>e(o,r)})}const xP=new S(""),Ti=new S(""),XC=new S("");function FP(){let e=null;return(t,n)=>{null===e&&(e=(M(xP,{optional:!0})??[]).reduceRight(RP,KC));const r=M(Ea),o=r.add();return e(t,n).pipe(Ii(()=>r.remove(o)))}}let e_=(()=>{class e extends Ua{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null,this.pendingTasks=M(Ea)}handle(n){if(null===this.chain){const o=Array.from(new Set([...this.injector.get(Ti),...this.injector.get(XC,[])]));this.chain=o.reduceRight((i,s)=>function OP(e,t,n){return(r,o)=>n.runInContext(()=>t(r,i=>e(i,o)))}(i,s,this.injector),KC)}const r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(Ii(()=>this.pendingTasks.remove(r)))}}return e.\u0275fac=function(n){return new(n||e)(I(Xd),I(tn))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();const VP=/^\)\]\}',?\n/;let n_=(()=>{class e{constructor(n){this.xhrFactory=n}handle(n){if("JSONP"===n.method)throw new C(-2800,!1);const r=this.xhrFactory;return(r.\u0275loadImpl?Ie(r.\u0275loadImpl()):x(null)).pipe(un(()=>new ye(i=>{const s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((g,y)=>s.setRequestHeader(g,y.join(","))),n.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){const g=n.detectContentTypeHeader();null!==g&&s.setRequestHeader("Content-Type",g)}if(n.responseType){const g=n.responseType.toLowerCase();s.responseType="json"!==g?g:"text"}const a=n.serializeBody();let u=null;const l=()=>{if(null!==u)return u;const g=s.statusText||"OK",y=new ln(s.getAllResponseHeaders()),_=function HP(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 u=new tf({headers:y,status:s.status,statusText:g,url:_}),u},c=()=>{let{headers:g,status:y,statusText:_,url:m}=l(),w=null;204!==y&&(w=typeof s.response>"u"?s.responseText:s.response),0===y&&(y=w?200:0);let R=y>=200&&y<300;if("json"===n.responseType&&"string"==typeof w){const U=w;w=w.replace(VP,"");try{w=""!==w?JSON.parse(w):null}catch(Ct){w=U,R&&(R=!1,w={error:Ct,text:w})}}R?(i.next(new lo({body:w,headers:g,status:y,statusText:_,url:m||void 0})),i.complete()):i.error(new JC({error:w,headers:g,status:y,statusText:_,url:m||void 0}))},d=g=>{const{url:y}=l(),_=new JC({error:g,status:s.status||0,statusText:s.statusText||"Unknown Error",url:y||void 0});i.error(_)};let f=!1;const h=g=>{f||(i.next(l()),f=!0);let y={type:Me.DownloadProgress,loaded:g.loaded};g.lengthComputable&&(y.total=g.total),"text"===n.responseType&&s.responseText&&(y.partialText=s.responseText),i.next(y)},p=g=>{let y={type:Me.UploadProgress,loaded:g.loaded};g.lengthComputable&&(y.total=g.total),i.next(y)};return 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)),s.send(a),i.next({type:Me.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",c),s.removeEventListener("timeout",d),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)(I(bC))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();const rf=new S("XSRF_ENABLED"),r_=new S("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),o_=new S("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class i_{}let $P=(()=>{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=hC(n,this.cookieName),this.lastCookieString=n),this.lastToken}}return e.\u0275fac=function(n){return new(n||e)(I(ke),I(or),I(r_))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();function UP(e,t){const n=e.url.toLowerCase();if(!M(rf)||"GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t(e);const r=M(i_).getToken(),o=M(o_);return null!=r&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),t(e)}var Ce=(()=>((Ce=Ce||{})[Ce.Interceptors=0]="Interceptors",Ce[Ce.LegacyInterceptors=1]="LegacyInterceptors",Ce[Ce.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Ce[Ce.NoXsrfProtection=3]="NoXsrfProtection",Ce[Ce.JsonpSupport=4]="JsonpSupport",Ce[Ce.RequestsMadeViaParent=5]="RequestsMadeViaParent",Ce))();function co(e,t){return{\u0275kind:e,\u0275providers:t}}function GP(...e){const t=[NP,n_,e_,{provide:Ua,useExisting:e_},{provide:Xd,useExisting:n_},{provide:Ti,useValue:UP,multi:!0},{provide:rf,useValue:!0},{provide:i_,useClass:$P}];for(const n of e)t.push(...n.\u0275providers);return function jl(e){return{\u0275providers:e}}(t)}const s_=new S("LEGACY_INTERCEPTOR_FN");let WP=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=ct({providers:[GP(co(Ce.LegacyInterceptors,[{provide:s_,useFactory:FP},{provide:Ti,useExisting:s_,multi:!0}]))]}),e})();const{isArray:XP}=Array,{getPrototypeOf:e1,prototype:t1,keys:n1}=Object;function a_(e){if(1===e.length){const t=e[0];if(XP(t))return{args:t,keys:null};if(function r1(e){return e&&"object"==typeof e&&e1(e)===t1}(t)){const n=n1(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}const{isArray:o1}=Array;function u_(e){return Z(t=>function i1(e,t){return o1(t)?e(...t):e(t)}(e,t))}function l_(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function sf(...e){const t=So(e),n=wh(e),{args:r,keys:o}=a_(e);if(0===r.length)return Ie([],t);const i=new ye(function s1(e,t,n=Tn){return r=>{c_(t,()=>{const{length:o}=e,i=new Array(o);let s=o,a=o;for(let u=0;u{const l=Ie(e[u],t);let c=!1;l.subscribe(Se(r,d=>{i[u]=d,c||(c=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,t,o?s=>l_(o,s):Tn));return n?i.pipe(u_(n)):i}function c_(e,t,n){e?hn(n,e,t):t()}const Wa=Eo(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function af(...e){return function a1(){return Dr(1)}()(Ie(e,So(e)))}function d_(e){return new ye(t=>{wt(e()).subscribe(t)})}function Ni(e,t){const n=te(e)?e:()=>e,r=o=>o.error(n());return new ye(t?o=>t.schedule(r,0,o):r)}function uf(){return xe((e,t)=>{let n=null;e._refCount++;const r=Se(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 f_ extends ye{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 _t;const n=this.getSubject();t.add(this.source.subscribe(Se(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=_t.EMPTY)}return t}refCount(){return uf()(this)}}function fo(e){return e<=0?()=>Wt:xe((t,n)=>{let r=0;t.subscribe(Se(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function qa(e){return xe((t,n)=>{let r=!1;t.subscribe(Se(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function h_(e=l1){return xe((t,n)=>{let r=!1;t.subscribe(Se(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function l1(){return new Wa}function dr(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Ut((o,i)=>e(o,i,r)):Tn,fo(1),n?qa(t):h_(()=>new Wa))}function Qe(e,t,n){const r=te(e)||t||n?{next:e,error:t,complete:n}:e;return r?xe((o,i)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;o.subscribe(Se(i,u=>{var l;null===(l=r.next)||void 0===l||l.call(r,u),i.next(u)},()=>{var u;a=!1,null===(u=r.complete)||void 0===u||u.call(r),i.complete()},u=>{var l;a=!1,null===(l=r.error)||void 0===l||l.call(r,u),i.error(u)},()=>{var u,l;a&&(null===(u=r.unsubscribe)||void 0===u||u.call(r)),null===(l=r.finalize)||void 0===l||l.call(r)}))}):Tn}function fr(e){return xe((t,n)=>{let i,r=null,o=!1;r=t.subscribe(Se(n,void 0,void 0,s=>{i=wt(e(s,fr(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function lf(e){return e<=0?()=>Wt:xe((t,n)=>{let r=[];t.subscribe(Se(n,o=>{r.push(o),e{for(const o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}const B="primary",Ri=Symbol("RouteTitle");class p1{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 ho(e){return new p1(e)}function g1(e,t,n){const r=n.path.split("/");if(r.length>e.length||"full"===n.pathMatch&&(t.hasChildren()||r.lengthr[i]===o)}return e===t}function g_(e){return e.length>0?e[e.length-1]:null}function Un(e){return function KP(e){return!!e&&(e instanceof ye||te(e.lift)&&te(e.subscribe))}(e)?e:ci(e)?Ie(Promise.resolve(e)):x(e)}const y1={exact:function v_(e,t,n){if(!hr(e.segments,t.segments)||!Za(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(const r in t.children)if(!e.children[r]||!v_(e.children[r],t.children[r],n))return!1;return!0},subset:D_},m_={exact:function v1(e,t){return cn(e,t)},subset:function D1(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>p_(e[n],t[n]))},ignored:()=>!0};function y_(e,t,n){return y1[n.paths](e.root,t.root,n.matrixParams)&&m_[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function D_(e,t,n){return C_(e,t,t.segments,n)}function C_(e,t,n,r){if(e.segments.length>n.length){const o=e.segments.slice(0,n.length);return!(!hr(o,n)||t.hasChildren()||!Za(o,n,r))}if(e.segments.length===n.length){if(!hr(e.segments,n)||!Za(e.segments,n,r))return!1;for(const o in t.children)if(!e.children[o]||!D_(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!!(hr(e.segments,o)&&Za(e.segments,o,r)&&e.children[B])&&C_(e.children[B],t,i,r)}}function Za(e,t,n){return t.every((r,o)=>m_[n](e[o].parameters,r.parameters))}class po{constructor(t=new ee([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ho(this.queryParams)),this._queryParamMap}toString(){return w1.serialize(this)}}class ee{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 Ya(this)}}class Oi{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap||(this._parameterMap=ho(this.parameters)),this._parameterMap}toString(){return E_(this)}}function hr(e,t){return e.length===t.length&&e.every((n,r)=>n.path===t[r].path)}let xi=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:function(){return new cf},providedIn:"root"}),e})();class cf{parse(t){const n=new x1(t);return new po(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){const n=`/${Fi(t.root,!0)}`,r=function M1(e){const t=Object.keys(e).map(n=>{const r=e[n];return Array.isArray(r)?r.map(o=>`${Qa(n)}=${Qa(o)}`).join("&"):`${Qa(n)}=${Qa(r)}`}).filter(n=>!!n);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${n}${r}${"string"==typeof t.fragment?`#${function E1(e){return encodeURI(e)}(t.fragment)}`:""}`}}const w1=new cf;function Ya(e){return e.segments.map(t=>E_(t)).join("/")}function Fi(e,t){if(!e.hasChildren())return Ya(e);if(t){const n=e.children[B]?Fi(e.children[B],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==B&&r.push(`${o}:${Fi(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=function _1(e,t){let n=[];return Object.entries(e.children).forEach(([r,o])=>{r===B&&(n=n.concat(t(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==B&&(n=n.concat(t(o,r)))}),n}(e,(r,o)=>o===B?[Fi(e.children[B],!1)]:[`${o}:${Fi(r,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[B]?`${Ya(e)}/${n[0]}`:`${Ya(e)}/(${n.join("//")})`}}function __(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Qa(e){return __(e).replace(/%3B/gi,";")}function df(e){return __(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ja(e){return decodeURIComponent(e)}function w_(e){return Ja(e.replace(/\+/g,"%20"))}function E_(e){return`${df(e.path)}${function b1(e){return Object.keys(e).map(t=>`;${df(t)}=${df(e[t])}`).join("")}(e.parameters)}`}const S1=/^[^\/()?;#]+/;function ff(e){const t=e.match(S1);return t?t[0]:""}const I1=/^[^\/()?;=#]+/,T1=/^[^=?&#]+/,R1=/^[^&#]+/;class x1{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ee([],{}):new ee([],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[B]=new ee(t,n)),r}parseSegment(){const t=ff(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new C(4009,!1);return this.capture(t),new Oi(Ja(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const n=function A1(e){const t=e.match(I1);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const o=ff(this.remaining);o&&(r=o,this.capture(r))}t[Ja(n)]=Ja(r)}parseQueryParam(t){const n=function N1(e){const t=e.match(T1);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const s=function O1(e){const t=e.match(R1);return t?t[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const o=w_(n),i=w_(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=ff(this.remaining),o=this.remaining[r.length];if("/"!==o&&")"!==o&&";"!==o)throw new C(4010,!1);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=B);const s=this.parseChildren();n[i]=1===Object.keys(s).length?s[B]:new ee([],s),this.consumeOptional("//")}return n}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new C(4011,!1)}}function b_(e){return e.segments.length>0?new ee([],{[B]:e}):e}function M_(e){const t={};for(const r of Object.keys(e.children)){const i=M_(e.children[r]);if(r===B&&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 F1(e){if(1===e.numberOfChildren&&e.children[B]){const t=e.children[B];return new ee(e.segments.concat(t.segments),t.children)}return e}(new ee(e.segments,t))}function pr(e){return e instanceof po}function S_(e){let t;const o=b_(function n(i){const s={};for(const u of i.children){const l=n(u);s[u.outlet]=l}const a=new ee(i.url,s);return i===e&&(t=a),a}(e.root));return t??o}function I_(e,t,n,r){let o=e;for(;o.parent;)o=o.parent;if(0===t.length)return hf(o,o,o,n,r);const i=function k1(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new T_(!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(([u,l])=>{a[u]="string"==typeof l?l.split("/"):l}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return"string"!=typeof i?[...o,i]:0===s?(i.split("/").forEach((a,u)=>{0==u&&"."===a||(0==u&&""===a?n=!0:".."===a?t++:""!=a&&o.push(a))}),o):[...o,i]},[]);return new T_(n,t,r)}(t);if(i.toRoot())return hf(o,o,new ee([],{}),n,r);const s=function L1(e,t,n){if(e.isAbsolute)return new Xa(t,!0,0);if(!n)return new Xa(t,!1,NaN);if(null===n.parent)return new Xa(n,!0,0);const r=Ka(e.commands[0])?0:1;return function V1(e,t,n){let r=e,o=t,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new C(4005,!1);o=r.segments.length}return new Xa(r,!1,o-i)}(n,n.segments.length-1+r,e.numberOfDoubleDots)}(i,o,e),a=s.processChildren?ki(s.segmentGroup,s.index,i.commands):N_(s.segmentGroup,s.index,i.commands);return hf(o,s.segmentGroup,a,n,r)}function Ka(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function Pi(e){return"object"==typeof e&&null!=e&&e.outlets}function hf(e,t,n,r,o){let s,i={};r&&Object.entries(r).forEach(([u,l])=>{i[u]=Array.isArray(l)?l.map(c=>`${c}`):`${l}`}),s=e===t?n:A_(e,t,n);const a=b_(M_(s));return new po(a,i,o)}function A_(e,t,n){const r={};return Object.entries(e.children).forEach(([o,i])=>{r[o]=i===t?n:A_(i,t,n)}),new ee(e.segments,r)}class T_{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&Ka(r[0]))throw new C(4003,!1);const o=r.find(Pi);if(o&&o!==g_(r))throw new C(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Xa{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}}function N_(e,t,n){if(e||(e=new ee([],{})),0===e.segments.length&&e.hasChildren())return ki(e,t,n);const r=function j1(e,t,n){let r=0,o=t;const i={match:!1,pathIndex:0,commandIndex:0};for(;o=n.length)return i;const s=e.segments[o],a=n[r];if(Pi(a))break;const u=`${a}`,l=r0&&void 0===u)break;if(u&&l&&"object"==typeof l&&void 0===l.outlets){if(!O_(u,l,s))return i;r+=2}else{if(!O_(u,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex{"string"==typeof s&&(s=[s]),null!==s&&(o[i]=N_(e.children[i],t,s))}),Object.entries(e.children).forEach(([i,s])=>{void 0===r[i]&&(o[i]=s)}),new ee(e.segments,o)}}function pf(e,t,n){const r=e.segments.slice(0,t);let o=0;for(;o{"string"==typeof r&&(r=[r]),null!==r&&(t[n]=pf(new ee([],{}),0,r))}),t}function R_(e){const t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function O_(e,t,n){return e==n.path&&cn(t,n.parameters)}const Li="imperative";class dn{constructor(t,n){this.id=t,this.url=n}}class gf extends dn{constructor(t,n,r="imperative",o=null){super(t,n),this.type=0,this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class gr extends dn{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class eu extends dn{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Vi extends dn{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=16}}class mf extends dn{constructor(t,n,r,o){super(t,n),this.error=r,this.target=o,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class $1 extends dn{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class U1 extends dn{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class G1 extends dn{constructor(t,n,r,o,i){super(t,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class z1 extends dn{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class W1 extends dn{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class q1{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Z1{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Y1{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Q1{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class J1{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class K1{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class x_{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 X1{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Hi,this.attachRef=null}}let Hi=(()=>{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 X1,this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class F_{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=yf(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){const n=yf(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){const n=vf(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return vf(t,this._root).map(n=>n.value)}}function yf(e,t){if(e===t.value)return t;for(const n of t.children){const r=yf(e,n);if(r)return r}return null}function vf(e,t){if(e===t.value)return[t];for(const n of t.children){const r=vf(e,n);if(r.length)return r.unshift(t),r}return[]}class In{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}}function go(e){const t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}class P_ extends F_{constructor(t,n){super(t),this.snapshot=n,Df(this,t)}toString(){return this.snapshot.toString()}}function k_(e,t){const n=function ek(e,t){const s=new tu([],{},{},"",{},B,t,null,{});return new V_("",new In(s,[]))}(0,t),r=new ut([new Oi("",{})]),o=new ut({}),i=new ut({}),s=new ut({}),a=new ut(""),u=new mo(r,o,s,a,i,B,t,n.root);return u.snapshot=n.root,new P_(new In(u,[]),n)}class mo{constructor(t,n,r,o,i,s,a,u){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=u,this.title=this.dataSubject?.pipe(Z(l=>l[Ri]))??x(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(Z(t=>ho(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Z(t=>ho(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function L_(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 tk(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 tu{get title(){return this.data?.[Ri]}constructor(t,n,r,o,i,s,a,u,l){this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=u,this._resolve=l}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=ho(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ho(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class V_ extends F_{constructor(t,n){super(n),this.url=t,Df(this,n)}toString(){return H_(this._root)}}function Df(e,t){t.value._routerState=e,t.children.forEach(n=>Df(e,n))}function H_(e){const t=e.children.length>0?` { ${e.children.map(H_).join(", ")} } `:"";return`${e.value}${t}`}function Cf(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,cn(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),cn(t.params,n.params)||e.paramsSubject.next(n.params),function m1(e,t){if(e.length!==t.length)return!1;for(let n=0;ncn(n.parameters,t[r].parameters))}(e.url,t.url);return n&&!(!e.parent!=!t.parent)&&(!e.parent||_f(e.parent,t.parent))}let wf=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=B,this.activateEvents=new he,this.deactivateEvents=new he,this.attachEvents=new he,this.detachEvents=new he,this.parentContexts=M(Hi),this.location=M(Ht),this.changeDetector=M(_i),this.environmentInjector=M(tn),this.inputBinder=M(nu,{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 C(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new C(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new C(4012,!1);this.location.detach();const 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 C(4013,!1);this._activatedRoute=n;const o=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,u=new nk(n,a,o.injector);this.activated=o.createComponent(s,{index:o.length,injector:u,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=F({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[pt]}),e})();class nk{constructor(t,n,r){this.route=t,this.childContexts=n,this.parent=r}get(t,n){return t===mo?this.route:t===Hi?this.childContexts:this.parent.get(t,n)}}const nu=new S("");let j_=(()=>{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=sf([r.queryParams,r.params,r.data]).pipe(un(([i,s,a],u)=>(a={...i,...s,...a},0===u?x(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 YO(e){const t=Y(e);if(!t)return null;const n=new oi(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=A({token:e,factory:e.\u0275fac}),e})();function ji(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=t.value;const o=function ok(e,t,n){return t.children.map(r=>{for(const o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return ji(e,r,o);return ji(e,r)})}(e,t,n);return new In(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=>ji(e,a)),s}}const r=function ik(e){return new mo(new ut(e.url),new ut(e.params),new ut(e.queryParams),new ut(e.fragment),new ut(e.data),e.outlet,e.component,e)}(t.value),o=t.children.map(i=>ji(e,i));return new In(r,o)}}const Ef="ngNavigationCancelingError";function B_(e,t){const{redirectTo:n,navigationBehaviorOptions:r}=pr(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=$_(!1,0,t);return o.url=n,o.navigationBehaviorOptions=r,o}function $_(e,t,n){const r=new Error("NavigationCancelingError: "+(e||""));return r[Ef]=!0,r.cancellationCode=t,n&&(r.url=n),r}function U_(e){return G_(e)&&pr(e.url)}function G_(e){return e&&e[Ef]}let z_=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=xn({type:e,selectors:[["ng-component"]],standalone:!0,features:[Gc],decls:1,vars:0,template:function(n,r){1&n&&Ln(0,"router-outlet")},dependencies:[wf],encapsulation:2}),e})();function bf(e){const t=e.children&&e.children.map(bf),n=t?{...e,children:t}:{...e};return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==B&&(n.component=z_),n}function Gt(e){return e.outlet||B}function Bi(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 fk{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),Cf(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){const o=go(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=go(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=go(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=go(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new K1(i.value.snapshot))}),t.children.length&&this.forwardEvent(new Q1(t.value.snapshot))}activateRoutes(t,n,r){const o=t.value,i=n?n.value:null;if(Cf(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),Cf(a.route.value),this.activateChildRoutes(t,null,s.children)}else{const a=Bi(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 W_{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class ru{constructor(t,n){this.component=t,this.route=n}}function hk(e,t,n){const r=e._root;return $i(r,t?t._root:null,n,[r.value])}function yo(e,t){const n=Symbol(),r=t.get(e,n);return r===n?"function"!=typeof e||function Mb(e){return null!==rs(e)}(e)?t.get(e):e:r}function $i(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=go(t);return e.children.forEach(s=>{(function gk(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){const u=function mk(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!hr(e.url,t.url);case"pathParamsOrQueryParamsChange":return!hr(e.url,t.url)||!cn(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!_f(e,t)||!cn(e.queryParams,t.queryParams);default:return!_f(e,t)}}(s,i,i.routeConfig.runGuardsAndResolvers);u?o.canActivateChecks.push(new W_(r)):(i.data=s.data,i._resolvedData=s._resolvedData),$i(e,t,i.component?a?a.children:null:n,r,o),u&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new ru(a.outlet.component,s))}else s&&Ui(t,a,o),o.canActivateChecks.push(new W_(r)),$i(e,null,i.component?a?a.children:null:n,r,o)})(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>Ui(a,n.getContext(s),o)),o}function Ui(e,t,n){const r=go(e),o=e.value;Object.entries(r).forEach(([i,s])=>{Ui(s,o.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new ru(o.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,o))}function Gi(e){return"function"==typeof e}function q_(e){return e instanceof Wa||"EmptyError"===e?.name}const ou=Symbol("INITIAL_VALUE");function vo(){return un(e=>sf(e.map(t=>t.pipe(fo(1),function u1(...e){const t=So(e);return xe((n,r)=>{(t?af(e,n,t):af(e,n)).subscribe(r)})}(ou)))).pipe(Z(t=>{for(const n of t)if(!0!==n){if(n===ou)return ou;if(!1===n||n instanceof po)return n}return!0}),Ut(t=>t!==ou),fo(1)))}function Z_(e){return rh(Qe(t=>{if(pr(t))throw B_(0,t)}),Z(t=>!0===t))}class iu{constructor(t){this.segmentGroup=t||null}}class Y_{constructor(t){this.urlTree=t}}function Do(e){return Ni(new iu(e))}function Q_(e){return Ni(new Y_(e))}class kk{constructor(t,n){this.urlSerializer=t,this.urlTree=n}noMatchError(t){return new C(4002,!1)}lineralizeSegments(t,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),0===o.numberOfChildren)return x(r);if(o.numberOfChildren>1||!o.children[B])return Ni(new C(4e3,!1));o=o.children[B]}}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 po(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,u])=>{s[a]=this.createSegmentGroup(t,u,r,o)}),new ee(i,s)}createSegments(t,n,r,o){return n.map(i=>i.path.startsWith(":")?this.findPosParam(t,i,o):this.findOrReturn(i,r))}findPosParam(t,n,r){const o=r[n.path.substring(1)];if(!o)throw new C(4001,!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 Mf={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Lk(e,t,n,r,o){const i=Sf(e,t,n);return i.matched?(r=function sk(e,t){return e.providers&&!e._injector&&(e._injector=Uc(e.providers,t,`Route: ${e.path}`)),e._injector??t}(t,r),function xk(e,t,n,r){const o=t.canMatch;return o&&0!==o.length?x(o.map(s=>{const a=yo(s,e);return Un(function wk(e){return e&&Gi(e.canMatch)}(a)?a.canMatch(t,n):e.runInContext(()=>a(t,n)))})).pipe(vo(),Z_()):x(!0)}(r,t,n).pipe(Z(s=>!0===s?i:{...Mf}))):x(i)}function Sf(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{...Mf}:{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};const o=(t.matcher||g1)(n,e,t);if(!o)return{...Mf};const i={};Object.entries(o.posParams??{}).forEach(([a,u])=>{i[a]=u.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 J_(e,t,n,r){return n.length>0&&function jk(e,t,n){return n.some(r=>su(e,t,r)&&Gt(r)!==B)}(e,n,r)?{segmentGroup:new ee(t,Hk(r,new ee(n,e.children))),slicedSegments:[]}:0===n.length&&function Bk(e,t,n){return n.some(r=>su(e,t,r))}(e,n,r)?{segmentGroup:new ee(e.segments,Vk(e,0,n,r,e.children)),slicedSegments:n}:{segmentGroup:new ee(e.segments,e.children),slicedSegments:n}}function Vk(e,t,n,r,o){const i={};for(const s of r)if(su(e,n,s)&&!o[Gt(s)]){const a=new ee([],{});i[Gt(s)]=a}return{...o,...i}}function Hk(e,t){const n={};n[B]=t;for(const r of e)if(""===r.path&&Gt(r)!==B){const o=new ee([],{});n[Gt(r)]=o}return n}function su(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 kk(this.urlSerializer,this.urlTree)}noMatchError(t){return new C(4002,!1)}recognize(){const t=J_(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,B).pipe(fr(n=>{if(n instanceof Y_)return this.allowRedirects=!1,this.urlTree=n.urlTree,this.match(n.urlTree);throw n instanceof iu?this.noMatchError(n):n}),Z(n=>{const r=new tu([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},B,this.rootComponentType,null,{}),o=new In(r,n),i=new V_("",o),s=function P1(e,t,n=null,r=null){return I_(S_(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,B).pipe(fr(r=>{throw r instanceof iu?this.noMatchError(r):r}))}inheritParamsAndData(t){const n=t.value,r=L_(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 Ie(o).pipe(uo(i=>{const s=r.children[i],a=function ck(e,t){const n=e.filter(r=>Gt(r)===t);return n.push(...e.filter(r=>Gt(r)!==t)),n}(n,i);return this.processSegmentGroup(t,a,s,i)}),function d1(e,t){return xe(function c1(e,t,n,r,o){return(i,s)=>{let a=n,u=t,l=0;i.subscribe(Se(s,c=>{const d=l++;u=a?e(u,c,d):(a=!0,c),r&&s.next(u)},o&&(()=>{a&&s.next(u),s.complete()})))}}(e,t,arguments.length>=2,!0))}((i,s)=>(i.push(...s),i)),qa(null),function f1(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Ut((o,i)=>e(o,i,r)):Tn,lf(1),n?qa(t):h_(()=>new Wa))}(),Fe(i=>{if(null===i)return Do(r);const s=K_(i);return function Wk(e){e.sort((t,n)=>t.value.outlet===B?-1:n.value.outlet===B?1:t.value.outlet.localeCompare(n.value.outlet))}(s),x(s)}))}processSegment(t,n,r,o,i,s){return Ie(n).pipe(uo(a=>this.processSegmentAgainstRoute(a._injector??t,n,a,r,o,i,s).pipe(fr(u=>{if(u instanceof iu)return x(null);throw u}))),dr(a=>!!a),fr(a=>{if(q_(a))return function Uk(e,t,n){return 0===t.length&&!e.children[n]}(r,o,i)?x([]):Do(r);throw a}))}processSegmentAgainstRoute(t,n,r,o,i,s,a){return function $k(e,t,n,r){return!!(Gt(e)===r||r!==B&&su(t,n,e))&&("**"===e.path||Sf(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):Do(o):Do(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("/")?Q_(i):this.applyRedirects.lineralizeSegments(r,i).pipe(Fe(s=>{const a=new ee(s,{});return this.processSegment(t,n,a,s,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s){const{matched:a,consumedSegments:u,remainingSegments:l,positionalParamSegments:c}=Sf(n,o,i);if(!a)return Do(n);const d=this.applyRedirects.applyRedirectCommands(u,o.redirectTo,c);return o.redirectTo.startsWith("/")?Q_(d):this.applyRedirects.lineralizeSegments(o,d).pipe(Fe(f=>this.processSegment(t,r,n,f.concat(l),s,!1)))}matchSegmentAgainstRoute(t,n,r,o,i,s){let a;if("**"===r.path){const u=o.length>0?g_(o).parameters:{};a=x({snapshot:new tu(o,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,X_(r),Gt(r),r.component??r._loadedComponent??null,r,ew(r)),consumedSegments:[],remainingSegments:[]}),n.children={}}else a=Lk(n,r,o,t).pipe(Z(({matched:u,consumedSegments:l,remainingSegments:c,parameters:d})=>u?{snapshot:new tu(l,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,X_(r),Gt(r),r.component??r._loadedComponent??null,r,ew(r)),consumedSegments:l,remainingSegments:c}:null));return a.pipe(un(u=>null===u?Do(n):this.getChildConfig(t=r._injector??t,r,o).pipe(un(({routes:l})=>{const c=r._loadedInjector??t,{snapshot:d,consumedSegments:f,remainingSegments:h}=u,{segmentGroup:p,slicedSegments:g}=J_(n,f,h,l);if(0===g.length&&p.hasChildren())return this.processChildren(c,l,p).pipe(Z(_=>null===_?null:[new In(d,_)]));if(0===l.length&&0===g.length)return x([new In(d,[])]);const y=Gt(r)===i;return this.processSegment(c,l,p,g,y?B:i,!0).pipe(Z(_=>[new In(d,_)]))}))))}getChildConfig(t,n,r){return n.children?x({routes:n.children,injector:t}):n.loadChildren?void 0!==n._loadedRoutes?x({routes:n._loadedRoutes,injector:n._loadedInjector}):function Ok(e,t,n,r){const o=t.canLoad;return void 0===o||0===o.length?x(!0):x(o.map(s=>{const a=yo(s,e);return Un(function vk(e){return e&&Gi(e.canLoad)}(a)?a.canLoad(t,n):e.runInContext(()=>a(t,n)))})).pipe(vo(),Z_())}(t,n,r).pipe(Fe(o=>o?this.configLoader.loadChildren(t,n).pipe(Qe(i=>{n._loadedRoutes=i.routes,n._loadedInjector=i.injector})):function Pk(e){return Ni($_(!1,3))}())):x({routes:[],injector:t})}}function qk(e){const t=e.value.routeConfig;return t&&""===t.path}function K_(e){const t=[],n=new Set;for(const r of e){if(!qk(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=K_(r.children);t.push(new In(r.value,o))}return t.filter(r=>!n.has(r))}function X_(e){return e.data||{}}function ew(e){return e.resolve||{}}function tw(e){return"string"==typeof e.title||null===e.title}function If(e){return un(t=>{const n=e(t);return n?Ie(n).pipe(Z(()=>t)):x(t)})}const Co=new S("ROUTES");let Af=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=M(vD)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return x(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);const r=Un(n.loadComponent()).pipe(Z(nw),Qe(i=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=i}),Ii(()=>{this.componentLoaders.delete(n)})),o=new f_(r,()=>new fn).pipe(uf());return this.componentLoaders.set(n,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return x({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const i=this.loadModuleFactoryOrRoutes(r.loadChildren).pipe(Z(a=>{this.onLoadEndListener&&this.onLoadEndListener(r);let u,l;return Array.isArray(a)?l=a:(u=a.create(n).injector,l=u.get(Co,[],T.Self|T.Optional).flat()),{routes:l.map(bf),injector:u}}),Ii(()=>{this.childrenLoaders.delete(r)})),s=new f_(i,()=>new fn).pipe(uf());return this.childrenLoaders.set(r,s),s}loadModuleFactoryOrRoutes(n){return Un(n()).pipe(Z(nw),Fe(r=>r instanceof Sv||Array.isArray(r)?x(r):Ie(this.compiler.compileModuleAsync(r))))}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function nw(e){return function eL(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let au=(()=>{class e{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new fn,this.configLoader=M(Af),this.environmentInjector=M(tn),this.urlSerializer=M(xi),this.rootContexts=M(Hi),this.inputBindingEnabled=null!==M(nu,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>x(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new Z1(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new q1(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 ut({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:Li,restoredState:null,currentSnapshot:n.routerState.snapshot,targetSnapshot:null,currentRouterState:n.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Ut(r=>0!==r.id),Z(r=>({...r,extractedUrl:n.urlHandlingStrategy.extract(r.rawUrl)})),un(r=>{let o=!1,i=!1;return x(r).pipe(Qe(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}}),un(s=>{const a=n.browserUrlTree.toString(),u=!n.navigated||s.extractedUrl.toString()!==a||a!==n.currentUrlTree.toString();if(!u&&"reload"!==(s.extras.onSameUrlNavigation??n.onSameUrlNavigation)){const c="";return this.events.next(new Vi(s.id,n.serializeUrl(r.rawUrl),c,0)),n.rawUrlTree=s.rawUrl,s.resolve(null),Wt}if(n.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return rw(s.source)&&(n.browserUrlTree=s.extractedUrl),x(s).pipe(un(c=>{const d=this.transitions?.getValue();return this.events.next(new gf(c.id,this.urlSerializer.serialize(c.extractedUrl),c.source,c.restoredState)),d!==this.transitions?.getValue()?Wt:Promise.resolve(c)}),function Zk(e,t,n,r,o,i){return Fe(s=>function Gk(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(Z(({state:a,tree:u})=>({...s,targetSnapshot:a,urlAfterRedirects:u}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,n.paramsInheritanceStrategy),Qe(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 $1(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}));if(u&&n.urlHandlingStrategy.shouldProcessUrl(n.rawUrlTree)){const{id:c,extractedUrl:d,source:f,restoredState:h,extras:p}=s,g=new gf(c,this.urlSerializer.serialize(d),f,h);this.events.next(g);const y=k_(0,this.rootComponentType).snapshot;return x(r={...s,targetSnapshot:y,urlAfterRedirects:d,extras:{...p,skipLocationChange:!1,replaceUrl:!1}})}{const c="";return this.events.next(new Vi(s.id,n.serializeUrl(r.extractedUrl),c,1)),n.rawUrlTree=s.rawUrl,s.resolve(null),Wt}}),Qe(s=>{const a=new U1(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),Z(s=>r={...s,guards:hk(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function bk(e,t){return Fe(n=>{const{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return 0===s.length&&0===i.length?x({...n,guardsResult:!0}):function Mk(e,t,n,r){return Ie(e).pipe(Fe(o=>function Rk(e,t,n,r,o){const i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return i&&0!==i.length?x(i.map(a=>{const u=Bi(t)??o,l=yo(a,u);return Un(function _k(e){return e&&Gi(e.canDeactivate)}(l)?l.canDeactivate(e,t,n,r):u.runInContext(()=>l(e,t,n,r))).pipe(dr())})).pipe(vo()):x(!0)}(o.component,o.route,n,t,r)),dr(o=>!0!==o,!0))}(s,r,o,e).pipe(Fe(a=>a&&function yk(e){return"boolean"==typeof e}(a)?function Sk(e,t,n,r){return Ie(t).pipe(uo(o=>af(function Ak(e,t){return null!==e&&t&&t(new Y1(e)),x(!0)}(o.route.parent,r),function Ik(e,t){return null!==e&&t&&t(new J1(e)),x(!0)}(o.route,r),function Nk(e,t,n){const r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(s=>function pk(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=>d_(()=>x(s.guards.map(u=>{const l=Bi(s.node)??n,c=yo(u,l);return Un(function Ck(e){return e&&Gi(e.canActivateChild)}(c)?c.canActivateChild(r,e):l.runInContext(()=>c(r,e))).pipe(dr())})).pipe(vo())));return x(i).pipe(vo())}(e,o.path,n),function Tk(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||0===r.length)return x(!0);const o=r.map(i=>d_(()=>{const s=Bi(t)??n,a=yo(i,s);return Un(function Dk(e){return e&&Gi(e.canActivate)}(a)?a.canActivate(t,e):s.runInContext(()=>a(t,e))).pipe(dr())}));return x(o).pipe(vo())}(e,o.route,n))),dr(o=>!0!==o,!0))}(r,i,e,t):x(a)),Z(a=>({...n,guardsResult:a})))})}(this.environmentInjector,s=>this.events.next(s)),Qe(s=>{if(r.guardsResult=s.guardsResult,pr(s.guardsResult))throw B_(0,s.guardsResult);const a=new G1(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),Ut(s=>!!s.guardsResult||(n.restoreHistory(s),this.cancelNavigationTransition(s,"",3),!1)),If(s=>{if(s.guards.canActivateChecks.length)return x(s).pipe(Qe(a=>{const u=new z1(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(u)}),un(a=>{let u=!1;return x(a).pipe(function Yk(e,t){return Fe(n=>{const{targetSnapshot:r,guards:{canActivateChecks:o}}=n;if(!o.length)return x(n);let i=0;return Ie(o).pipe(uo(s=>function Qk(e,t,n,r){const o=e.routeConfig,i=e._resolve;return void 0!==o?.title&&!tw(o)&&(i[Ri]=o.title),function Jk(e,t,n,r){const o=function Kk(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===o.length)return x({});const i={};return Ie(o).pipe(Fe(s=>function Xk(e,t,n,r){const o=Bi(t)??r,i=yo(e,o);return Un(i.resolve?i.resolve(t,n):o.runInContext(()=>i(t,n)))}(e[s],t,n,r).pipe(dr(),Qe(a=>{i[s]=a}))),lf(1),function h1(e){return Z(()=>e)}(i),fr(s=>q_(s)?Wt:Ni(s)))}(i,e,t,r).pipe(Z(s=>(e._resolvedData=s,e.data=L_(e,n).resolve,o&&tw(o)&&(e.data[Ri]=o.title),null)))}(s.route,r,e,t)),Qe(()=>i++),lf(1),Fe(s=>i===o.length?x(n):Wt))})}(n.paramsInheritanceStrategy,this.environmentInjector),Qe({next:()=>u=!0,complete:()=>{u||(n.restoreHistory(a),this.cancelNavigationTransition(a,"",2))}}))}),Qe(a=>{const u=new W1(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(u)}))}),If(s=>{const a=u=>{const l=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&l.push(this.configLoader.loadComponent(u.routeConfig).pipe(Qe(c=>{u.component=c}),Z(()=>{})));for(const c of u.children)l.push(...a(c));return l};return sf(a(s.targetSnapshot.root)).pipe(qa(),fo(1))}),If(()=>this.afterPreactivation()),Z(s=>{const a=function rk(e,t,n){const r=ji(e,t._root,n?n._root:void 0);return new P_(r,t)}(n.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return r={...s,targetRouterState:a}}),Qe(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)=>Z(o=>(new fk(t,o.targetRouterState,o.currentRouterState,n,r).activate(e),o)))(this.rootContexts,n.routeReuseStrategy,s=>this.events.next(s),this.inputBindingEnabled),fo(1),Qe({next:s=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,n.navigated=!0,this.events.next(new gr(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(n.currentUrlTree))),n.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{o=!0}}),Ii(()=>{o||i||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),fr(s=>{if(i=!0,G_(s)){U_(s)||(n.navigated=!0,n.restoreHistory(r,!0));const a=new eu(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode);if(this.events.next(a),U_(s)){const u=n.urlHandlingStrategy.merge(s.url,n.rawUrlTree),l={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===n.urlUpdateStrategy||rw(r.source)};n.scheduleNavigation(u,Li,null,l,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{n.restoreHistory(r,!0);const a=new mf(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);this.events.next(a);try{r.resolve(n.errorHandler(s))}catch(u){r.reject(u)}}return Wt}))}))}cancelNavigationTransition(n,r,o){const i=new eu(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(i),n.resolve(!1)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function rw(e){return e!==Li}let ow=(()=>{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===B);return r}getResolvedTitleForRoute(n){return n.data[Ri]}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:function(){return M(tL)},providedIn:"root"}),e})(),tL=(()=>{class e extends ow{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)(I($C))},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),nL=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:function(){return M(oL)},providedIn:"root"}),e})();class rL{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}}let oL=(()=>{class e extends rL{}return e.\u0275fac=function(){let t;return function(r){return(t||(t=He(e)))(r||e)}}(),e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const uu=new S("",{providedIn:"root",factory:()=>({})});let iL=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:function(){return M(sL)},providedIn:"root"}),e})(),sL=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var Dt=(()=>((Dt=Dt||{})[Dt.COMPLETE=0]="COMPLETE",Dt[Dt.FAILED=1]="FAILED",Dt[Dt.REDIRECTING=2]="REDIRECTING",Dt))();function iw(e,t){e.events.pipe(Ut(n=>n instanceof gr||n instanceof eu||n instanceof mf||n instanceof Vi),Z(n=>n instanceof gr||n instanceof Vi?Dt.COMPLETE:n instanceof eu&&(0===n.code||1===n.code)?Dt.REDIRECTING:Dt.FAILED),Ut(n=>n!==Dt.REDIRECTING),fo(1)).subscribe(()=>{t()})}function aL(e){throw e}function uL(e,t,n){return t.parse("/")}const lL={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},cL={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Nt=(()=>{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=M(yD),this.isNgZoneEnabled=!1,this.options=M(uu,{optional:!0})||{},this.pendingTasks=M(Ea),this.errorHandler=this.options.errorHandler||aL,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||uL,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=M(iL),this.routeReuseStrategy=M(nL),this.titleStrategy=M(ow),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=M(Co,{optional:!0})?.flat()??[],this.navigationTransitions=M(au),this.urlSerializer=M(xi),this.location=M(Sd),this.componentInputBindingEnabled=!!M(nu,{optional:!0}),this.isNgZoneEnabled=M(ce)instanceof ce&&ce.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new po,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=k_(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),Li,n)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(n=>{const r="popstate"===n.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{this.navigateToSyncWithBrowser(n.url,r,n.state)},0)}))}navigateToSyncWithBrowser(n,r,o){const i={replaceUrl:!0},s=o?.navigationId?o:null;if(o){const u={...o};delete u.navigationId,delete u.\u0275routerPageId,0!==Object.keys(u).length&&(i.state=u)}const a=this.parseUrl(n);this.scheduleNavigation(a,r,s,i)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(bf),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(n,r={}){const{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:u}=r,l=u?this.currentUrlTree.fragment:s;let 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=S_(o?o.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof n[0]||!n[0].startsWith("/"))&&(n=[]),d=this.currentUrlTree.root}return I_(d,n,c,l??null)}navigateByUrl(n,r={skipLocationChange:!1}){const o=pr(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,Li,null,r)}navigate(n,r={skipLocationChange:!1}){return function dL(e){for(let t=0;t{const i=n[o];return null!=i&&(r[o]=i),r},{})}scheduleNavigation(n,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let a,u,l;s?(a=s.resolve,u=s.reject,l=s.promise):l=new Promise((d,f)=>{a=d,u=f});const c=this.pendingTasks.add();return iw(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:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(d=>Promise.reject(d))}setBrowserUrl(n,r){const o=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){const s={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId)};this.location.replaceState(o,"",s)}else{const i={...r.extras.state,...this.generateNgRouterState(r.id,(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=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),lu=(()=>{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 fn;const u=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===u||"area"===u,this.isAnchorElement?this.subscription=n.events.subscribe(l=>{l instanceof gr&&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 kg(e,t,n){return function NI(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?Pg:Fg}(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)(v(Nt),v(mo),function Is(e){return function QM(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{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(Ut(n=>n instanceof gr),uo(()=>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=Uc(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 Ie(o).pipe(Dr())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let o;o=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(n,r):x(null);const i=o.pipe(Fe(s=>null===s?x(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??n,s.routes))));return r.loadComponent&&!r._loadedComponent?Ie([i,this.loader.loadComponent(r)]).pipe(Dr()):i})}}return e.\u0275fac=function(n){return new(n||e)(I(Nt),I(vD),I(tn),I(sw),I(Af))},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Tf=new S("");let aw=(()=>{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 gf?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof gr?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof Vi&&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 x_&&(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 x_(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return e.\u0275fac=function(n){!function vm(){throw new Error("invalid")}()},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();function An(e,t){return{\u0275kind:e,\u0275providers:t}}function lw(){const e=M(kt);return t=>{const n=e.get(so);if(t!==n.components[0])return;const r=e.get(Nt),o=e.get(cw);1===e.get(Nf)&&r.initialNavigation(),e.get(dw,null,T.Optional)?.setUpPreloading(),e.get(Tf,null,T.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}const cw=new S("",{factory:()=>new fn}),Nf=new S("",{providedIn:"root",factory:()=>1}),dw=new S("");function vL(e){return An(0,[{provide:dw,useExisting:pL},{provide:sw,useExisting:e}])}const fw=new S("ROUTER_FORROOT_GUARD"),CL=[Sd,{provide:xi,useClass:cf},Nt,Hi,{provide:mo,useFactory:function uw(e){return e.routerState.root},deps:[Nt]},Af,[]];function _L(){return new TD("Router",Nt)}let wL=(()=>{class e{constructor(n){}static forRoot(n,r){return{ngModule:e,providers:[CL,[],{provide:Co,multi:!0,useValue:n},{provide:fw,useFactory:SL,deps:[[Nt,new Ns,new Rs]]},{provide:uu,useValue:r||{}},r?.useHash?{provide:cr,useClass:ex}:{provide:cr,useClass:rC},{provide:Tf,useFactory:()=>{const e=M(vF),t=M(ce),n=M(uu),r=M(au),o=M(xi);return n.scrollOffset&&e.setOffset(n.scrollOffset),new aw(o,r,e,t,n)}},r?.preloadingStrategy?vL(r.preloadingStrategy).\u0275providers:[],{provide:TD,multi:!0,useFactory:_L},r?.initialNavigation?IL(r):[],r?.bindToComponentInputs?An(8,[j_,{provide:nu,useExisting:j_}]).\u0275providers:[],[{provide:hw,useFactory:lw},{provide:gd,multi:!0,useExisting:hw}]]}}static forChild(n){return{ngModule:e,providers:[{provide:Co,multi:!0,useValue:n}]}}}return e.\u0275fac=function(n){return new(n||e)(I(fw,8))},e.\u0275mod=bt({type:e}),e.\u0275inj=ct({}),e})();function SL(e){return"guarded"}function IL(e){return["disabled"===e.initialNavigation?An(3,[{provide:sd,multi:!0,useFactory:()=>{const t=M(Nt);return()=>{t.setUpLocationChangeListener()}}},{provide:Nf,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?An(2,[{provide:Nf,useValue:0},{provide:sd,multi:!0,deps:[kt],useFactory:t=>{const n=t.get(KO,Promise.resolve());return()=>n.then(()=>new Promise(r=>{const o=t.get(Nt),i=t.get(cw);iw(o,()=>{r(!0)}),t.get(au).afterPreactivation=()=>(r(!0),i.closed?x(void 0):i),o.initialNavigation()}))}}]).\u0275providers:[]]}const hw=new S("");let pw=(()=>{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)(v(_n),v(st))},e.\u0275dir=F({type:e}),e})(),mr=(()=>{class e extends pw{}return e.\u0275fac=function(){let t;return function(r){return(t||(t=He(e)))(r||e)}}(),e.\u0275dir=F({type:e,features:[X]}),e})();const zt=new S("NgValueAccessor"),RL={provide:zt,useExisting:ne(()=>Rf),multi:!0},xL=new S("CompositionEventMode");let Rf=(()=>{class e extends pw{constructor(n,r,o){super(n,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function OL(){const e=jn()?jn().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)(v(_n),v(st),v(xL,8))},e.\u0275dir=F({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,r){1&n&&je("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:[le([RL]),X]}),e})();const ze=new S("NgValidators"),zn=new S("NgAsyncValidators");function Mw(e){return null!=e}function Sw(e){return ci(e)?Ie(e):e}function Iw(e){let t={};return e.forEach(n=>{t=null!=n?{...t,...n}:t}),0===Object.keys(t).length?null:t}function Aw(e,t){return t.map(n=>n(e))}function Tw(e){return e.map(t=>function PL(e){return!e.validate}(t)?t:n=>t.validate(n))}function Of(e){return null!=e?function Nw(e){if(!e)return null;const t=e.filter(Mw);return 0==t.length?null:function(n){return Iw(Aw(n,t))}}(Tw(e)):null}function xf(e){return null!=e?function Rw(e){if(!e)return null;const t=e.filter(Mw);return 0==t.length?null:function(n){return function TL(...e){const t=wh(e),{args:n,keys:r}=a_(e),o=new ye(i=>{const{length:s}=n;if(!s)return void i.complete();const a=new Array(s);let u=s,l=s;for(let c=0;c{d||(d=!0,l--),a[c]=f},()=>u--,void 0,()=>{(!u||!d)&&(l||i.next(r?l_(r,a):a),i.complete())}))}});return t?o.pipe(u_(t)):o}(Aw(n,t).map(Sw)).pipe(Z(Iw))}}(Tw(e)):null}function Ow(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function Ff(e){return e?Array.isArray(e)?e:[e]:[]}function du(e,t){return Array.isArray(e)?e.includes(t):e===t}function Pw(e,t){const n=Ff(t);return Ff(e).forEach(o=>{du(n,o)||n.push(o)}),n}function kw(e,t){return Ff(t).filter(n=>!du(e,n))}class Lw{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=Of(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=xf(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 Je extends Lw{get formDirective(){return null}get path(){return null}}class Wn extends Lw{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Vw{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 zi=(()=>{class e extends Vw{constructor(n){super(n)}}return e.\u0275fac=function(n){return new(n||e)(v(Wn,2))},e.\u0275dir=F({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){2&n&&ga("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:[X]}),e})();const Wi="VALID",hu="INVALID",_o="PENDING",qi="DISABLED";function pu(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class $w{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===Wi}get invalid(){return this.status===hu}get pending(){return this.status==_o}get disabled(){return this.status===qi}get enabled(){return this.status!==qi}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(Pw(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Pw(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(kw(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(kw(t,this._rawAsyncValidators))}hasValidator(t){return du(this._rawValidators,t)}hasAsyncValidator(t){return du(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=_o,!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=qi,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=Wi,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===Wi||this.status===_o)&&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()?qi:Wi}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=_o,this._hasOwnPendingAsyncValidator=!0;const n=Sw(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 he,this.statusChanges=new he}_calculateStatus(){return this._allControlsDisabled()?qi:this.errors?hu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(_o)?_o:this._anyControlsHaveStatus(hu)?hu:Wi}_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){pu(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 jL(e){return Array.isArray(e)?Of(e):e||null}(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=function BL(e){return Array.isArray(e)?xf(e):e||null}(this._rawAsyncValidators)}}const wo=new S("CallSetDisabledState",{providedIn:"root",factory:()=>gu}),gu="always";function Zi(e,t,n=gu){(function jf(e,t){const n=function xw(e){return e._rawValidators}(e);null!==t.validator?e.setValidators(Ow(n,t.validator)):"function"==typeof n&&e.setValidators([n]);const r=function Fw(e){return e._rawAsyncValidators}(e);null!==t.asyncValidator?e.setAsyncValidators(Ow(r,t.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const o=()=>e.updateValueAndValidity();vu(t._rawValidators,o),vu(t._rawAsyncValidators,o)})(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||"always"===n)&&t.valueAccessor.setDisabledState?.(e.disabled),function GL(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&Uw(e,t)})}(e,t),function WL(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 zL(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&Uw(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function UL(e,t){if(t.valueAccessor.setDisabledState){const n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}(e,t)}function vu(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function Uw(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function Ww(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function qw(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const Zw=class extends $w{constructor(t=null,n,r){super(function Lf(e){return(pu(e)?e.validators:e)||null}(n),function Vf(e,t){return(pu(t)?t.asyncValidators:e)||null}(r,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),pu(n)&&(n.nonNullable||n.initialValueIsDefault)&&(this.defaultValue=qw(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){Ww(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Ww(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){qw(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}},eV={provide:Wn,useExisting:ne(()=>yr)},Jw=(()=>Promise.resolve())();let yr=(()=>{class e extends Wn{constructor(n,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new Zw,this._registered=!1,this.name="",this.update=new he,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=function Uf(e,t){if(!t)return null;let n,r,o;return Array.isArray(t),t.forEach(i=>{i.constructor===Rf?n=i:function YL(e){return Object.getPrototypeOf(e.constructor)===mr}(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 $f(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(){Zi(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){Jw.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){const r=n.isDisabled.currentValue,o=0!==r&&ao(r);Jw.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?function mu(e,t){return[...t.path,e]}(n,this._parent):[n]}}return e.\u0275fac=function(n){return new(n||e)(v(Je,9),v(ze,10),v(zn,10),v(zt,10),v(_i,8),v(wo,8))},e.\u0275dir=F({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[le([eV]),X,pt]}),e})(),Xw=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=ct({}),e})(),MV=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=ct({imports:[Xw]}),e})(),Jf=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:wo,useValue:n.callSetDisabledState??gu}]}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=ct({imports:[MV]}),e})();const IV=new S("HighlightJs-Config");let Cu=(()=>{class e{constructor(n,r,o,i,s){this.el=n,this.ngModel=r,this.doc=o,this.ngZone=s,this.lang="html",this.mode="simple",Object.assign(this,i)}escapeHTML(n){return(n||"").replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}init(){this.ngZone.runOutsideAngular(()=>{this.destroy();const n=this.el.nativeElement,r=this.code||""+n.innerHTML.trim();if(this.codeEl=this.doc.createElement("default"===this.mode?"div":"pre"),null==this.codeEl)return;const o="simple"===this.mode;o?(this.lang&&(this.codeEl.className=this.lang),this.parentEl=n.parentNode,this.parentEl.insertBefore(this.codeEl,n.nextSibling)):(this.parentEl=n,this.parentEl.innerHTML="",this.parentEl.appendChild(this.codeEl)),this.codeEl.innerHTML=r,hljs.configure({...this.options}),o?hljs.highlightElement(this.codeEl):this.codeEl.querySelectorAll("pre code").forEach(i=>{hljs.highlightElement(i)})})}destroy(){this.codeEl&&this.parentEl&&(this.parentEl.removeChild(this.codeEl),this.codeEl=void 0)}ngAfterViewInit(){this.init(),this.ngModel?this.modelValue$=this.ngModel.valueChanges?.subscribe(n=>{this.code=this.escapeHTML(n),this.init()}):this.initMutation()}ngOnDestroy(){this.destroy(),this.destroyMutation(),this.modelValue$&&this.modelValue$.unsubscribe()}initMutation(){typeof MutationObserver>"u"||this.ngZone.runOutsideAngular(()=>{this.observer=new MutationObserver(this.init.bind(this)),this.observer.observe(this.el.nativeElement,{characterData:!0,childList:!0,subtree:!0})})}destroyMutation(){this.observer&&this.observer.disconnect()}}return e.\u0275fac=function(n){return new(n||e)(v(st),v(yr,8),v(ke),v(IV,8),v(ce))},e.\u0275dir=F({type:e,selectors:[["","highlight-js",""]],hostVars:2,hostBindings:function(n,r){2&n&&Rc("display","simple"===r.mode?"none":null)},inputs:{options:"options",lang:"lang",code:"code",mode:"mode"},exportAs:["highlightJs"],standalone:!0}),e})(),AV=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=ct({imports:[Jf]}),e})();function yE(e,t,n){return function r(o,i,s){const a=`$$__${i}`;return Object.prototype.hasOwnProperty.call(o,a)&&console.warn(`The prop "${a}" is already exist, it will be overrided by ${e} decorator.`),Object.defineProperty(o,a,{configurable:!0,writable:!0}),{get(){return s&&s.get?s.get.bind(this)():this[a]},set(u){s&&s.set&&s.set.bind(this)(t(u,n)),this[a]=t(u,n)}}}}function TV(e,t=!1){return t&&typeof e>"u"?void 0:null!=e&&"false"!=`${e}`}function vE(e=!1){return yE("InputNumber",TV,e)}function NV(e,t=0){return isNaN(parseFloat(e))||isNaN(Number(e))?t:Number(e)}class DE{constructor(){this.baseURL="./assets/tinymce/",this.fileName="tinymce.min.js"}}function CE(e,t,n,r,o,i,s){try{var a=e[i](s),u=a.value}catch(l){return void n(l)}a.done?t(u):Promise.resolve(u).then(r,o)}let xV=(()=>{class e{constructor(n){this.doc=n,this.list={},this.cached={},this._notify=new ut([])}fixPaths(n){return n=n||[],Array.isArray(n)||(n=[n]),n.map(r=>{const o="string"==typeof r?{path:r}:r;return o.type||(o.type=o.path.endsWith(".js")||o.callback?"script":"style"),o})}monitor(n){const r=this.fixPaths(n),o=[Ru(),Ut(i=>0!==i.length)];return r.length>0&&o.push(Ut(i=>i.length===r.length&&i.every(s=>"ok"===s.status&&r.find(a=>a.path===s.path)))),this._notify.asObservable().pipe(rh.apply(this,o))}clear(){this.list={},this.cached={}}load(n){var r=this;return function OV(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(u){CE(i,r,o,s,a,"next",u)}function a(u){CE(i,r,o,s,a,"throw",u)}s(void 0)})}}(function*(){return n=r.fixPaths(n),Promise.all(n.map(o=>"script"===o.type?r.loadScript(o.path,{callback:o.callback}):r.loadStyle(o.path))).then(o=>(r._notify.next(o),Promise.resolve(o)))})()}loadScript(n,r){const{innerContent:o}={...r};return new Promise(i=>{if(!0===this.list[n])return void i({...this.cached[n],status:"loading"});this.list[n]=!0;const s=l=>{"ok"===l.status&&r?.callback?window[r?.callback]=()=>{a(l)}:a(l)},a=l=>{l.type="script",this.cached[n]=l,i(l),this._notify.next([l])},u=this.doc.createElement("script");u.type="text/javascript",u.src=n,u.charset="utf-8",o&&(u.innerHTML=o),u.readyState?u.onreadystatechange=()=>{("loaded"===u.readyState||"complete"===u.readyState)&&(u.onreadystatechange=null,s({path:n,status:"ok"}))}:u.onload=()=>s({path:n,status:"ok"}),u.onerror=l=>s({path:n,status:"error",error:l}),this.doc.getElementsByTagName("head")[0].appendChild(u)})}loadStyle(n,r){const{rel:o,innerContent:i}={rel:"stylesheet",...r};return new Promise(s=>{if(!0===this.list[n])return void s(this.cached[n]);this.list[n]=!0;const a=this.doc.createElement("link");a.rel=o,a.type="text/css",a.href=n,i&&(a.innerHTML=i),this.doc.getElementsByTagName("head")[0].appendChild(a);const u={path:n,status:"ok",type:"style"};this.cached[n]=u,s(u)})}}return e.\u0275fac=function(n){return new(n||e)(I(ke))},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function FV(e,t){if(1&e&&Ln(0,"textarea",3),2&e){const n=di();It("id",n.id)("placeholder",n.placeholder)}}function PV(e,t){1&e&&(re(0,"div"),function ly(e,t=0,n){const r=D(),o=W(),i=Gr(o,z+e,16,null,n||null);null===i.projection&&(i.projection=t),Xu(),(!r[yn]||Ar())&&32!=(32&i.flags)&&function KS(e,t,n){_g(t[V],0,t,n,Tl(e,n,t),gg(n.parent||t[$e],n,t))}(o,r,i)}(1),oe()),2&e&&It("id",di().id)}function kV(e,t){if(1&e&&(fa(0),we(1),ha()),2&e){const n=di(2);Pt(1),xc(n._loading)}}function LV(e,t){if(1&e&&(re(0,"div",4),li(1,kV,2,1,"ng-container",5),oe()),2&e){const n=di();Pt(1),vt("ngIf",n._loading)("ngIfElse",n._loadingTpl)}}const _E=!("object"==typeof document&&document);class Rt{set disabled(t){this._disabled=t,this.setDisabled()}set loading(t){t instanceof an?(this._loading=null,this._loadingTpl=t):this._loading=t}get instance(){return this._instance}_getWin(){return this.doc.defaultView||window}constructor(t,n,r,o,i){this.defConfig=t,this.lazySrv=n,this.ngZone=r,this.doc=o,this.cd=i,this.value="",this.load=!0,this.id=`_tinymce-${Math.random().toString(36).substring(2)}`,this.placeholder="",this.inline=!1,this._disabled=!1,this._loading=null,this._loadingTpl=null,this.delay=0,this.ready=new he}initDelay(){_E||setTimeout(()=>this.init(),Math.max(0,this.delay))}init(){const t=this._getWin();if(!t.tinymce)throw new Error("tinymce js\u6587\u4ef6\u52a0\u8f7d\u5931\u8d25");const{defConfig:n,config:r,id:o,inline:i}=this;if(this._instance)return;if(n.baseURL){let u=""+n.baseURL;u.endsWith("/")&&(u=u.substring(0,u.length-1)),t.tinymce.baseURL=u}const s={...n.config,...r},a={selector:"#"+o,inline:i,...n.config,...r,setup:u=>{this._instance=u,this.onChange&&u.on("change keyup",()=>{this.value=u.getContent(),this.ngZone.run(()=>this.onChange(this.value))}),"function"==typeof s.setup&&s.setup(u)},init_instance_callback:u=>{u&&this.value&&u.setContent(this.value),this.setDisabled(),"function"==typeof s.init_instance_callback&&s.init_instance_callback(u),this.ready.emit(this._instance)}};s.auto_focus&&(a.auto_focus=o),this.ngZone.runOutsideAngular(()=>t.tinymce.init(a)),this.load=!1,this.cd.detectChanges()}destroy(){this._instance&&(this.ngZone.runOutsideAngular(()=>{this._instance.off(),this._instance.remove("#"+this.id)}),this._instance=null)}setDisabled(){this._instance&&this.ngZone.runOutsideAngular(()=>{const t=this._disabled?"readonly":"design";"function"==typeof this._instance.setMode?this._instance.setMode(t):this._instance.mode.set(t)})}ngAfterViewInit(){if(_E)return;if(this._getWin().tinymce)return void this.initDelay();const{defConfig:t}=this,o=(t&&t.baseURL||"./assets/tinymce/")+(t&&t.fileName||"tinymce.min.js");this.lazySrv.monitor(o).subscribe(()=>this.initDelay()),this.lazySrv.load(o)}ngOnChanges(t){this._instance&&t.config&&(this.destroy(),this.initDelay())}ngOnDestroy(){this.destroy()}writeValue(t){this.value=t||"",this._instance&&this.ngZone.runOutsideAngular(()=>this._instance.setContent(this.value))}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t,this.setDisabled()}}Rt.\u0275fac=function(t){return new(t||Rt)(v(DE),v(xV),v(ce),v(ke),v(_i))},Rt.\u0275cmp=xn({type:Rt,selectors:[["tinymce"]],inputs:{config:"config",placeholder:"placeholder",inline:"inline",disabled:"disabled",loading:"loading",delay:"delay"},outputs:{ready:"ready"},exportAs:["tinymce"],features:[le([{provide:zt,useExisting:ne(()=>Rt),multi:!0}]),pt],ngContentSelectors:["*"],decls:3,vars:3,consts:[["class","tinymce-selector",4,"ngIf"],[4,"ngIf"],["class","loading",4,"ngIf"],[1,"tinymce-selector"],[1,"loading"],[4,"ngIf","ngIfElse"]],template:function(t,n){1&t&&(function uy(e){const t=D()[_e][$e];if(!t.projection){const r=t.projection=jo(e?e.length:1,null),o=r.slice();let i=t.child;for(;null!==i;){const s=e?QA(i,e):0;null!==s&&(o[s]?o[s].projectionNext=i:r[s]=i,o[s]=i),i=i.next}}}(),li(0,FV,1,2,"textarea",0),li(1,PV,2,1,"div",1),li(2,LV,2,2,"div",2)),2&t&&(vt("ngIf",!n.inline),Pt(1),vt("ngIf",n.inline),Pt(1),vt("ngIf",n.load))},dependencies:[yC],styles:["tinymce .tinymce-selector{display:none}\n"],encapsulation:2,changeDetection:0}),es([vE()],Rt.prototype,"inline",void 0),es([vE()],Rt.prototype,"disabled",null),es([function RV(e=0){return yE("InputNumber",NV,e)}()],Rt.prototype,"delay",void 0);let wE=(()=>{class e{static forRoot(n){return{ngModule:e,providers:[{provide:DE,useValue:n}]}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=ct({imports:[Bd]}),e})(),HV=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=xn({type:e,selectors:[["app-root"]],decls:23,vars:0,consts:[[1,"navbar","navbar-expand-lg","navbar-light","bg-light"],["routerLink","/",1,"navbar-brand"],["type","button","data-toggle","collapse","data-target","#navbarNav","aria-controls","navbarNav","aria-expanded","false","aria-label","Toggle navigation",1,"navbar-toggler"],[1,"navbar-toggler-icon"],[1,"collapse","navbar-collapse"],[1,"navbar-nav"],[1,"nav-item"],["routerLink","/",1,"nav-link"],["routerLink","/other",1,"nav-link"],["routerLink","/inline",1,"nav-link"],["routerLink","/standalone",1,"nav-link"],[2,"line-height","30px"],[2,"margin-top","16px"]],template:function(n,r){1&n&&(re(0,"nav",0)(1,"a",1),we(2,"ngx-tinymce"),oe(),re(3,"button",2),Ln(4,"span",3),oe(),re(5,"div",4)(6,"ul",5)(7,"li",6)(8,"a",7),we(9,"Home"),oe()(),re(10,"li",6)(11,"a",8),we(12,"Other"),oe()(),re(13,"li",6)(14,"a",9),we(15,"Inline"),oe()(),re(16,"li",6)(17,"a",10),we(18,"Standalone"),oe()()()()(),re(19,"p",11),we(20,"Angular for tinymce"),oe(),re(21,"div",12),Ln(22,"router-outlet"),oe())},dependencies:[wf,lu],encapsulation:2}),e})(),jV=(()=>{class e{constructor(n){this.san=n,this.html='\n

TinyMCE Logo\n

\n

Welcome to the TinyMCE Cloud demo!

\n
Note, this includes some "enterprise/premium" features.
Visit the pricing page to learn more about our premium plugins.
\n

Please try out the features provided in this full featured example.

\n\n

Got questions or need help?

\n \n\n

A simple table to play with

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
ProductCostReally?
TinyMCE CloudGet started for freeYES!
PluploadFreeYES!
\n\n

Found a bug?

\n

If you think you have found a bug please create an issue on the GitHub repo to report it to the developers.

\n\n

Finally ...

\n

Don\'t forget to check out our other product Plupload, your ultimate upload solution featuring HTML5 upload support.

\n

Thanks for supporting TinyMCE! We hope it helps you and your users create great content.
All the best from the TinyMCE team.

\n ',this.config={height:350}}}return e.\u0275fac=function(n){return new(n||e)(v(Kd))},e.\u0275cmp=xn({type:e,selectors:[["app-home"]],decls:17,vars:4,consts:[[1,"card","mb-3"],[1,"card-header"],[1,"card-body"],["highlight-js",""],[3,"ngModel","config","ngModelChange"],[1,"card","card-outline-secondary","mt-3"],[1,"card-bodyquote",3,"innerHTML"],["disabled","",3,"ngModel","ngModelChange"]],template:function(n,r){1&n&&(re(0,"div",0)(1,"div",1),we(2,"Basic"),oe(),re(3,"div",2)(4,"textarea",3),we(5,"<"),we(6,'tinymce [config]="config" [(ngModel)]="html">'),oe(),re(7,"tinymce",4),je("ngModelChange",function(i){return r.html=i}),oe(),we(8," Result: "),re(9,"div",5)(10,"div",2),Ln(11,"blockquote",6),oe()()()(),re(12,"div",0)(13,"div",1),we(14,"Disabled"),oe(),re(15,"div",2)(16,"tinymce",7),je("ngModelChange",function(i){return r.html=i}),oe()()()),2&n&&(Pt(7),vt("ngModel",r.html)("config",r.config),Pt(4),vt("innerHTML",r.san.bypassSecurityTrustHtml(r.html),Hl),Pt(5),vt("ngModel",r.html))},dependencies:[zi,yr,Cu,Rt],encapsulation:2}),e})(),BV=(()=>{class e{constructor(){this.html="now: "+ +new Date,this.config={height:500,menubar:!1,plugins:["advlist autolink lists link image charmap print preview anchor","searchreplace visualblocks code fullscreen","insertdatetime media table paste code help wordcount"],toolbar:"undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat | help",content_css:"//www.tiny.cloud/css/codepen.min.css"}}ready(n){console.log("ready",n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=xn({type:e,selectors:[["app-other"]],decls:8,vars:2,consts:[[1,"card","mb-3"],[1,"card-header"],[1,"card-body"],["highlight-js",""],["loading","\u52a0\u8f7d\u4e2d\u2026\u2026",3,"ngModel","config","ngModelChange","ready"]],template:function(n,r){1&n&&(re(0,"div",0)(1,"div",1),we(2,"Loading"),oe(),re(3,"div",2)(4,"textarea",3),we(5,"<"),we(6,'tinymce [config]="config" [(ngModel)]="html">'),oe(),re(7,"tinymce",4),je("ngModelChange",function(i){return r.html=i})("ready",function(i){return r.ready(i)}),oe()()()),2&n&&(Pt(7),vt("ngModel",r.html)("config",r.config))},dependencies:[zi,yr,Cu,Rt]}),e})(),$V=(()=>{class e{constructor(n){this.san=n,this.html='\n
\n
\n

\n

The world’s first rich text editor in the cloud

\n

\n
\n

\n Have you heard about Tiny Cloud? It’s the first step in our journey to help you deliver great content creation\n experiences, no matter your level of expertise. 50,000 developers already agree. They get free access to our global CDN, image\n proxy services and auto updates to the TinyMCE editor. They’re also ready for some exciting updates coming soon.\n

\n

\n One of these enhancements is Tiny Drive: imagine file management for TinyMCE, in the cloud, made super easy.\n Learn more at tiny.cloud/tinydrive, where you’ll find a working demo and an\n opportunity to provide feedback to the product team.\n

\n
\n
\n

An editor for every project

\n
\n

Here are some of our customer’s most common use cases for TinyMCE:

\n
    \n
  • Content Management Systems (e.g. WordPress, Umbraco)
  • \n
  • Learning Management Systems (e.g. Blackboard)
  • \n
  • Customer Relationship Management and marketing automation (e.g. Marketo)
  • \n
  • Email marketing (e.g. Constant Contact)
  • \n
  • Content creation in SaaS systems (e.g. Eventbrite, Evernote, GoFundMe, Zendesk)
  • \n
\n

\n And those use cases are just the start. TinyMCE is incredibly flexible, and with hundreds of APIs there’s likely a\n solution for your editor project. If you haven’t experienced Tiny Cloud, get started today. You’ll even get a free\n trial of our premium plugins – no credit card required!\n

\n
\n
'}ready(n){console.log("ready",n)}}return e.\u0275fac=function(n){return new(n||e)(v(Kd))},e.\u0275cmp=xn({type:e,selectors:[["app-inline"]],decls:12,vars:2,consts:[[1,"card","mb-3"],[1,"card-header"],[1,"card-body"],["highlight-js",""],["inline","",3,"ngModel","ngModelChange"],[1,"card","card-outline-secondary","mt-3"],[1,"card-bodyquote",3,"innerHTML"]],template:function(n,r){1&n&&(re(0,"div",0)(1,"div",1),we(2,"Inline mode"),oe(),re(3,"div",2)(4,"textarea",3),we(5,"<"),we(6,'tinymce [config]="config" [(ngModel)]="html" inline>'),oe(),re(7,"tinymce",4),je("ngModelChange",function(i){return r.html=i}),oe(),we(8," Result: "),re(9,"div",5)(10,"div",2),Ln(11,"blockquote",6),oe()()()()),2&n&&(Pt(7),vt("ngModel",r.html),Pt(4),vt("innerHTML",r.san.bypassSecurityTrustHtml(r.html),Hl))},dependencies:[zi,yr,Cu,Rt],encapsulation:2}),e})(),UV=(()=>{class e{constructor(){this.html="HTMLS",this.config={height:350}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=xn({type:e,selectors:[["standalone-demo"]],standalone:!0,features:[Gc],decls:1,vars:2,consts:[[3,"ngModel","config","ngModelChange"]],template:function(n,r){1&n&&(re(0,"tinymce",0),je("ngModelChange",function(i){return r.html=i}),oe()),2&n&&vt("ngModel",r.html)("config",r.config)},dependencies:[Jf,zi,yr,wE,Rt],encapsulation:2}),e})(),GV=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=bt({type:e,bootstrap:[HV]}),e.\u0275inj=ct({imports:[gP,Bd,Jf,WP,AV,wL.forRoot([{path:"",component:jV},{path:"other",component:BV},{path:"inline",component:$V},{path:"standalone",component:UV}],{useHash:!0}),wE.forRoot({baseURL:"//cdn.tiny.cloud/1/no-api-key/tinymce/6/"})]}),e})();hP().bootstrapModule(GV).catch(e=>console.error(e))}},te=>{te(te.s=819)}]); \ No newline at end of file diff --git a/polyfills.bbb89331bcc2bfb7.js b/polyfills.bbb89331bcc2bfb7.js new file mode 100644 index 0000000..365aaae --- /dev/null +++ b/polyfills.bbb89331bcc2bfb7.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkngx_tinymce=self.webpackChunkngx_tinymce||[]).push([[429],{583:()=>{!function(t){const n=t.performance;function i(L){n&&n.mark&&n.mark(L)}function o(L,T){n&&n.measure&&n.measure(L,T)}i("Zone");const c=t.__Zone_symbol_prefix||"__zone_symbol__";function a(L){return c+L}const y=!0===t[a("forceDuplicateZoneCheck")];if(t.Zone){if(y||"function"!=typeof t.Zone.__symbol__)throw new Error("Zone already loaded.");return t.Zone}let d=(()=>{class L{static assertZonePatched(){if(t.Promise!==oe.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let e=L.current;for(;e.parent;)e=e.parent;return e}static get current(){return U.zone}static get currentTask(){return re}static __load_patch(e,r,k=!1){if(oe.hasOwnProperty(e)){if(!k&&y)throw Error("Already loaded patch: "+e)}else if(!t["__Zone_disable_"+e]){const C="Zone:"+e;i(C),oe[e]=r(t,L,z),o(C,C)}}get parent(){return this._parent}get name(){return this._name}constructor(e,r){this._parent=e,this._name=r?r.name||"unnamed":"",this._properties=r&&r.properties||{},this._zoneDelegate=new v(this,this._parent&&this._parent._zoneDelegate,r)}get(e){const r=this.getZoneWith(e);if(r)return r._properties[e]}getZoneWith(e){let r=this;for(;r;){if(r._properties.hasOwnProperty(e))return r;r=r._parent}return null}fork(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)}wrap(e,r){if("function"!=typeof e)throw new Error("Expecting function got: "+e);const k=this._zoneDelegate.intercept(this,e,r),C=this;return function(){return C.runGuarded(k,this,arguments,r)}}run(e,r,k,C){U={parent:U,zone:this};try{return this._zoneDelegate.invoke(this,e,r,k,C)}finally{U=U.parent}}runGuarded(e,r=null,k,C){U={parent:U,zone:this};try{try{return this._zoneDelegate.invoke(this,e,r,k,C)}catch($){if(this._zoneDelegate.handleError(this,$))throw $}}finally{U=U.parent}}runTask(e,r,k){if(e.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(e.zone||J).name+"; Execution: "+this.name+")");if(e.state===x&&(e.type===Q||e.type===P))return;const C=e.state!=E;C&&e._transitionTo(E,A),e.runCount++;const $=re;re=e,U={parent:U,zone:this};try{e.type==P&&e.data&&!e.data.isPeriodic&&(e.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,e,r,k)}catch(l){if(this._zoneDelegate.handleError(this,l))throw l}}finally{e.state!==x&&e.state!==h&&(e.type==Q||e.data&&e.data.isPeriodic?C&&e._transitionTo(A,E):(e.runCount=0,this._updateTaskCount(e,-1),C&&e._transitionTo(x,E,x))),U=U.parent,re=$}}scheduleTask(e){if(e.zone&&e.zone!==this){let k=this;for(;k;){if(k===e.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${e.zone.name}`);k=k.parent}}e._transitionTo(X,x);const r=[];e._zoneDelegates=r,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(k){throw e._transitionTo(h,X,x),this._zoneDelegate.handleError(this,k),k}return e._zoneDelegates===r&&this._updateTaskCount(e,1),e.state==X&&e._transitionTo(A,X),e}scheduleMicroTask(e,r,k,C){return this.scheduleTask(new m(I,e,r,k,C,void 0))}scheduleMacroTask(e,r,k,C,$){return this.scheduleTask(new m(P,e,r,k,C,$))}scheduleEventTask(e,r,k,C,$){return this.scheduleTask(new m(Q,e,r,k,C,$))}cancelTask(e){if(e.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(e.zone||J).name+"; Execution: "+this.name+")");if(e.state===A||e.state===E){e._transitionTo(G,A,E);try{this._zoneDelegate.cancelTask(this,e)}catch(r){throw e._transitionTo(h,G),this._zoneDelegate.handleError(this,r),r}return this._updateTaskCount(e,-1),e._transitionTo(x,G),e.runCount=0,e}}_updateTaskCount(e,r){const k=e._zoneDelegates;-1==r&&(e._zoneDelegates=null);for(let C=0;CL.hasTask(e,r),onScheduleTask:(L,T,e,r)=>L.scheduleTask(e,r),onInvokeTask:(L,T,e,r,k,C)=>L.invokeTask(e,r,k,C),onCancelTask:(L,T,e,r)=>L.cancelTask(e,r)};class v{constructor(T,e,r){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=T,this._parentDelegate=e,this._forkZS=r&&(r&&r.onFork?r:e._forkZS),this._forkDlgt=r&&(r.onFork?e:e._forkDlgt),this._forkCurrZone=r&&(r.onFork?this.zone:e._forkCurrZone),this._interceptZS=r&&(r.onIntercept?r:e._interceptZS),this._interceptDlgt=r&&(r.onIntercept?e:e._interceptDlgt),this._interceptCurrZone=r&&(r.onIntercept?this.zone:e._interceptCurrZone),this._invokeZS=r&&(r.onInvoke?r:e._invokeZS),this._invokeDlgt=r&&(r.onInvoke?e:e._invokeDlgt),this._invokeCurrZone=r&&(r.onInvoke?this.zone:e._invokeCurrZone),this._handleErrorZS=r&&(r.onHandleError?r:e._handleErrorZS),this._handleErrorDlgt=r&&(r.onHandleError?e:e._handleErrorDlgt),this._handleErrorCurrZone=r&&(r.onHandleError?this.zone:e._handleErrorCurrZone),this._scheduleTaskZS=r&&(r.onScheduleTask?r:e._scheduleTaskZS),this._scheduleTaskDlgt=r&&(r.onScheduleTask?e:e._scheduleTaskDlgt),this._scheduleTaskCurrZone=r&&(r.onScheduleTask?this.zone:e._scheduleTaskCurrZone),this._invokeTaskZS=r&&(r.onInvokeTask?r:e._invokeTaskZS),this._invokeTaskDlgt=r&&(r.onInvokeTask?e:e._invokeTaskDlgt),this._invokeTaskCurrZone=r&&(r.onInvokeTask?this.zone:e._invokeTaskCurrZone),this._cancelTaskZS=r&&(r.onCancelTask?r:e._cancelTaskZS),this._cancelTaskDlgt=r&&(r.onCancelTask?e:e._cancelTaskDlgt),this._cancelTaskCurrZone=r&&(r.onCancelTask?this.zone:e._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const k=r&&r.onHasTask;(k||e&&e._hasTaskZS)&&(this._hasTaskZS=k?r:b,this._hasTaskDlgt=e,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=T,r.onScheduleTask||(this._scheduleTaskZS=b,this._scheduleTaskDlgt=e,this._scheduleTaskCurrZone=this.zone),r.onInvokeTask||(this._invokeTaskZS=b,this._invokeTaskDlgt=e,this._invokeTaskCurrZone=this.zone),r.onCancelTask||(this._cancelTaskZS=b,this._cancelTaskDlgt=e,this._cancelTaskCurrZone=this.zone))}fork(T,e){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,T,e):new d(T,e)}intercept(T,e,r){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,T,e,r):e}invoke(T,e,r,k,C){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,T,e,r,k,C):e.apply(r,k)}handleError(T,e){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,T,e)}scheduleTask(T,e){let r=e;if(this._scheduleTaskZS)this._hasTaskZS&&r._zoneDelegates.push(this._hasTaskDlgtOwner),r=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,T,e),r||(r=e);else if(e.scheduleFn)e.scheduleFn(e);else{if(e.type!=I)throw new Error("Task is missing scheduleFn.");R(e)}return r}invokeTask(T,e,r,k){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,T,e,r,k):e.callback.apply(r,k)}cancelTask(T,e){let r;if(this._cancelTaskZS)r=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,T,e);else{if(!e.cancelFn)throw Error("Task is not cancelable");r=e.cancelFn(e)}return r}hasTask(T,e){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,T,e)}catch(r){this.handleError(T,r)}}_updateTaskCount(T,e){const r=this._taskCounts,k=r[T],C=r[T]=k+e;if(C<0)throw new Error("More tasks executed then were scheduled.");0!=k&&0!=C||this.hasTask(this.zone,{microTask:r.microTask>0,macroTask:r.macroTask>0,eventTask:r.eventTask>0,change:T})}}class m{constructor(T,e,r,k,C,$){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=T,this.source=e,this.data=k,this.scheduleFn=C,this.cancelFn=$,!r)throw new Error("callback is not defined");this.callback=r;const l=this;this.invoke=T===Q&&k&&k.useG?m.invokeTask:function(){return m.invokeTask.call(t,l,this,arguments)}}static invokeTask(T,e,r){T||(T=this),ee++;try{return T.runCount++,T.zone.runTask(T,e,r)}finally{1==ee&&_(),ee--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(x,X)}_transitionTo(T,e,r){if(this._state!==e&&this._state!==r)throw new Error(`${this.type} '${this.source}': can not transition to '${T}', expecting state '${e}'${r?" or '"+r+"'":""}, was '${this._state}'.`);this._state=T,T==x&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const M=a("setTimeout"),O=a("Promise"),N=a("then");let K,B=[],H=!1;function q(L){if(K||t[O]&&(K=t[O].resolve(0)),K){let T=K[N];T||(T=K.then),T.call(K,L)}else t[M](L,0)}function R(L){0===ee&&0===B.length&&q(_),L&&B.push(L)}function _(){if(!H){for(H=!0;B.length;){const L=B;B=[];for(let T=0;TU,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:R,showUncaughtError:()=>!d[a("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:q};let U={parent:null,zone:new d(null,null)},re=null,ee=0;function W(){}o("Zone","Zone"),t.Zone=d}(typeof window<"u"&&window||typeof self<"u"&&self||global);const ue=Object.getOwnPropertyDescriptor,me=Object.defineProperty,ve=Object.getPrototypeOf,Se=Object.create,it=Array.prototype.slice,De="addEventListener",Ze="removeEventListener",Oe=Zone.__symbol__(De),Ne=Zone.__symbol__(Ze),ie="true",ce="false",pe=Zone.__symbol__("");function Ie(t,n){return Zone.current.wrap(t,n)}function Le(t,n,i,o,c){return Zone.current.scheduleMacroTask(t,n,i,o,c)}const j=Zone.__symbol__,be=typeof window<"u",_e=be?window:void 0,Y=be&&_e||"object"==typeof self&&self||global,ct="removeAttribute";function Me(t,n){for(let i=t.length-1;i>=0;i--)"function"==typeof t[i]&&(t[i]=Ie(t[i],n+"_"+i));return t}function Ve(t){return!t||!1!==t.writable&&!("function"==typeof t.get&&typeof t.set>"u")}const Fe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Pe=!("nw"in Y)&&typeof Y.process<"u"&&"[object process]"==={}.toString.call(Y.process),Ae=!Pe&&!Fe&&!(!be||!_e.HTMLElement),Be=typeof Y.process<"u"&&"[object process]"==={}.toString.call(Y.process)&&!Fe&&!(!be||!_e.HTMLElement),we={},Ue=function(t){if(!(t=t||Y.event))return;let n=we[t.type];n||(n=we[t.type]=j("ON_PROPERTY"+t.type));const i=this||t.target||Y,o=i[n];let c;return Ae&&i===_e&&"error"===t.type?(c=o&&o.call(this,t.message,t.filename,t.lineno,t.colno,t.error),!0===c&&t.preventDefault()):(c=o&&o.apply(this,arguments),null!=c&&!c&&t.preventDefault()),c};function We(t,n,i){let o=ue(t,n);if(!o&&i&&ue(i,n)&&(o={enumerable:!0,configurable:!0}),!o||!o.configurable)return;const c=j("on"+n+"patched");if(t.hasOwnProperty(c)&&t[c])return;delete o.writable,delete o.value;const a=o.get,y=o.set,d=n.slice(2);let b=we[d];b||(b=we[d]=j("ON_PROPERTY"+d)),o.set=function(v){let m=this;!m&&t===Y&&(m=Y),m&&("function"==typeof m[b]&&m.removeEventListener(d,Ue),y&&y.call(m,null),m[b]=v,"function"==typeof v&&m.addEventListener(d,Ue,!1))},o.get=function(){let v=this;if(!v&&t===Y&&(v=Y),!v)return null;const m=v[b];if(m)return m;if(a){let M=a.call(this);if(M)return o.set.call(this,M),"function"==typeof v[ct]&&v.removeAttribute(n),M}return null},me(t,n,o),t[c]=!0}function qe(t,n,i){if(n)for(let o=0;ofunction(y,d){const b=i(y,d);return b.cbIdx>=0&&"function"==typeof d[b.cbIdx]?Le(b.name,d[b.cbIdx],b,c):a.apply(y,d)})}function le(t,n){t[j("OriginalDelegate")]=n}let Xe=!1,je=!1;function ft(){if(Xe)return je;Xe=!0;try{const t=_e.navigator.userAgent;(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/")||-1!==t.indexOf("Edge/"))&&(je=!0)}catch{}return je}Zone.__load_patch("ZoneAwarePromise",(t,n,i)=>{const o=Object.getOwnPropertyDescriptor,c=Object.defineProperty,y=i.symbol,d=[],b=!0===t[y("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],v=y("Promise"),m=y("then"),M="__creationTrace__";i.onUnhandledError=l=>{if(i.showUncaughtError()){const u=l&&l.rejection;u?console.error("Unhandled Promise rejection:",u instanceof Error?u.message:u,"; Zone:",l.zone.name,"; Task:",l.task&&l.task.source,"; Value:",u,u instanceof Error?u.stack:void 0):console.error(l)}},i.microtaskDrainDone=()=>{for(;d.length;){const l=d.shift();try{l.zone.runGuarded(()=>{throw l.throwOriginal?l.rejection:l})}catch(u){N(u)}}};const O=y("unhandledPromiseRejectionHandler");function N(l){i.onUnhandledError(l);try{const u=n[O];"function"==typeof u&&u.call(this,l)}catch{}}function B(l){return l&&l.then}function H(l){return l}function K(l){return e.reject(l)}const q=y("state"),R=y("value"),_=y("finally"),J=y("parentPromiseValue"),x=y("parentPromiseState"),X="Promise.then",A=null,E=!0,G=!1,h=0;function I(l,u){return s=>{try{z(l,u,s)}catch(f){z(l,!1,f)}}}const P=function(){let l=!1;return function(s){return function(){l||(l=!0,s.apply(null,arguments))}}},Q="Promise resolved with itself",oe=y("currentTaskTrace");function z(l,u,s){const f=P();if(l===s)throw new TypeError(Q);if(l[q]===A){let g=null;try{("object"==typeof s||"function"==typeof s)&&(g=s&&s.then)}catch(w){return f(()=>{z(l,!1,w)})(),l}if(u!==G&&s instanceof e&&s.hasOwnProperty(q)&&s.hasOwnProperty(R)&&s[q]!==A)re(s),z(l,s[q],s[R]);else if(u!==G&&"function"==typeof g)try{g.call(s,f(I(l,u)),f(I(l,!1)))}catch(w){f(()=>{z(l,!1,w)})()}else{l[q]=u;const w=l[R];if(l[R]=s,l[_]===_&&u===E&&(l[q]=l[x],l[R]=l[J]),u===G&&s instanceof Error){const p=n.currentTask&&n.currentTask.data&&n.currentTask.data[M];p&&c(s,oe,{configurable:!0,enumerable:!1,writable:!0,value:p})}for(let p=0;p{try{const S=l[R],D=!!s&&_===s[_];D&&(s[J]=S,s[x]=w);const Z=u.run(p,void 0,D&&p!==K&&p!==H?[]:[S]);z(s,!0,Z)}catch(S){z(s,!1,S)}},s)}const L=function(){},T=t.AggregateError;class e{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(u){return z(new this(null),E,u)}static reject(u){return z(new this(null),G,u)}static any(u){if(!u||"function"!=typeof u[Symbol.iterator])return Promise.reject(new T([],"All promises were rejected"));const s=[];let f=0;try{for(let p of u)f++,s.push(e.resolve(p))}catch{return Promise.reject(new T([],"All promises were rejected"))}if(0===f)return Promise.reject(new T([],"All promises were rejected"));let g=!1;const w=[];return new e((p,S)=>{for(let D=0;D{g||(g=!0,p(Z))},Z=>{w.push(Z),f--,0===f&&(g=!0,S(new T(w,"All promises were rejected")))})})}static race(u){let s,f,g=new this((S,D)=>{s=S,f=D});function w(S){s(S)}function p(S){f(S)}for(let S of u)B(S)||(S=this.resolve(S)),S.then(w,p);return g}static all(u){return e.allWithCallback(u)}static allSettled(u){return(this&&this.prototype instanceof e?this:e).allWithCallback(u,{thenCallback:f=>({status:"fulfilled",value:f}),errorCallback:f=>({status:"rejected",reason:f})})}static allWithCallback(u,s){let f,g,w=new this((Z,V)=>{f=Z,g=V}),p=2,S=0;const D=[];for(let Z of u){B(Z)||(Z=this.resolve(Z));const V=S;try{Z.then(F=>{D[V]=s?s.thenCallback(F):F,p--,0===p&&f(D)},F=>{s?(D[V]=s.errorCallback(F),p--,0===p&&f(D)):g(F)})}catch(F){g(F)}p++,S++}return p-=2,0===p&&f(D),w}constructor(u){const s=this;if(!(s instanceof e))throw new Error("Must be an instanceof Promise.");s[q]=A,s[R]=[];try{const f=P();u&&u(f(I(s,E)),f(I(s,G)))}catch(f){z(s,!1,f)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return e}then(u,s){let f=this.constructor?.[Symbol.species];(!f||"function"!=typeof f)&&(f=this.constructor||e);const g=new f(L),w=n.current;return this[q]==A?this[R].push(w,g,u,s):ee(this,w,g,u,s),g}catch(u){return this.then(null,u)}finally(u){let s=this.constructor?.[Symbol.species];(!s||"function"!=typeof s)&&(s=e);const f=new s(L);f[_]=_;const g=n.current;return this[q]==A?this[R].push(g,f,u,u):ee(this,g,f,u,u),f}}e.resolve=e.resolve,e.reject=e.reject,e.race=e.race,e.all=e.all;const r=t[v]=t.Promise;t.Promise=e;const k=y("thenPatched");function C(l){const u=l.prototype,s=o(u,"then");if(s&&(!1===s.writable||!s.configurable))return;const f=u.then;u[m]=f,l.prototype.then=function(g,w){return new e((S,D)=>{f.call(this,S,D)}).then(g,w)},l[k]=!0}return i.patchThen=C,r&&(C(r),ae(t,"fetch",l=>function $(l){return function(u,s){let f=l.apply(u,s);if(f instanceof e)return f;let g=f.constructor;return g[k]||C(g),f}}(l))),Promise[n.__symbol__("uncaughtPromiseErrors")]=d,e}),Zone.__load_patch("toString",t=>{const n=Function.prototype.toString,i=j("OriginalDelegate"),o=j("Promise"),c=j("Error"),a=function(){if("function"==typeof this){const v=this[i];if(v)return"function"==typeof v?n.call(v):Object.prototype.toString.call(v);if(this===Promise){const m=t[o];if(m)return n.call(m)}if(this===Error){const m=t[c];if(m)return n.call(m)}}return n.call(this)};a[i]=n,Function.prototype.toString=a;const y=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":y.call(this)}});let Ee=!1;if(typeof window<"u")try{const t=Object.defineProperty({},"passive",{get:function(){Ee=!0}});window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch{Ee=!1}const ht={useG:!0},te={},ze={},Ye=new RegExp("^"+pe+"(\\w+)(true|false)$"),$e=j("propagationStopped");function Je(t,n){const i=(n?n(t):t)+ce,o=(n?n(t):t)+ie,c=pe+i,a=pe+o;te[t]={},te[t][ce]=c,te[t][ie]=a}function dt(t,n,i,o){const c=o&&o.add||De,a=o&&o.rm||Ze,y=o&&o.listeners||"eventListeners",d=o&&o.rmAll||"removeAllListeners",b=j(c),v="."+c+":",m="prependListener",M="."+m+":",O=function(R,_,J){if(R.isRemoved)return;const x=R.callback;let X;"object"==typeof x&&x.handleEvent&&(R.callback=E=>x.handleEvent(E),R.originalDelegate=x);try{R.invoke(R,_,[J])}catch(E){X=E}const A=R.options;return A&&"object"==typeof A&&A.once&&_[a].call(_,J.type,R.originalDelegate?R.originalDelegate:R.callback,A),X};function N(R,_,J){if(!(_=_||t.event))return;const x=R||_.target||t,X=x[te[_.type][J?ie:ce]];if(X){const A=[];if(1===X.length){const E=O(X[0],x,_);E&&A.push(E)}else{const E=X.slice();for(let G=0;G{throw G})}}}const B=function(R){return N(this,R,!1)},H=function(R){return N(this,R,!0)};function K(R,_){if(!R)return!1;let J=!0;_&&void 0!==_.useG&&(J=_.useG);const x=_&&_.vh;let X=!0;_&&void 0!==_.chkDup&&(X=_.chkDup);let A=!1;_&&void 0!==_.rt&&(A=_.rt);let E=R;for(;E&&!E.hasOwnProperty(c);)E=ve(E);if(!E&&R[c]&&(E=R),!E||E[b])return!1;const G=_&&_.eventNameToString,h={},I=E[b]=E[c],P=E[j(a)]=E[a],Q=E[j(y)]=E[y],oe=E[j(d)]=E[d];let z;_&&_.prepend&&(z=E[j(_.prepend)]=E[_.prepend]);const e=J?function(s){if(!h.isExisting)return I.call(h.target,h.eventName,h.capture?H:B,h.options)}:function(s){return I.call(h.target,h.eventName,s.invoke,h.options)},r=J?function(s){if(!s.isRemoved){const f=te[s.eventName];let g;f&&(g=f[s.capture?ie:ce]);const w=g&&s.target[g];if(w)for(let p=0;pfunction(c,a){c[$e]=!0,o&&o.apply(c,a)})}function Et(t,n,i,o,c){const a=Zone.__symbol__(o);if(n[a])return;const y=n[a]=n[o];n[o]=function(d,b,v){return b&&b.prototype&&c.forEach(function(m){const M=`${i}.${o}::`+m,O=b.prototype;try{if(O.hasOwnProperty(m)){const N=t.ObjectGetOwnPropertyDescriptor(O,m);N&&N.value?(N.value=t.wrapWithCurrentZone(N.value,M),t._redefineProperty(b.prototype,m,N)):O[m]&&(O[m]=t.wrapWithCurrentZone(O[m],M))}else O[m]&&(O[m]=t.wrapWithCurrentZone(O[m],M))}catch{}}),y.call(n,d,b,v)},t.attachOriginToPatched(n[o],y)}function Qe(t,n,i){if(!i||0===i.length)return n;const o=i.filter(a=>a.target===t);if(!o||0===o.length)return n;const c=o[0].ignoreProperties;return n.filter(a=>-1===c.indexOf(a))}function et(t,n,i,o){t&&qe(t,Qe(t,n,i),o)}function He(t){return Object.getOwnPropertyNames(t).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}Zone.__load_patch("util",(t,n,i)=>{const o=He(t);i.patchOnProperties=qe,i.patchMethod=ae,i.bindArguments=Me,i.patchMacroTask=lt;const c=n.__symbol__("BLACK_LISTED_EVENTS"),a=n.__symbol__("UNPATCHED_EVENTS");t[a]&&(t[c]=t[a]),t[c]&&(n[c]=n[a]=t[c]),i.patchEventPrototype=_t,i.patchEventTarget=dt,i.isIEOrEdge=ft,i.ObjectDefineProperty=me,i.ObjectGetOwnPropertyDescriptor=ue,i.ObjectCreate=Se,i.ArraySlice=it,i.patchClass=ge,i.wrapWithCurrentZone=Ie,i.filterProperties=Qe,i.attachOriginToPatched=le,i._redefineProperty=Object.defineProperty,i.patchCallbacks=Et,i.getGlobalObjects=()=>({globalSources:ze,zoneSymbolEventNames:te,eventNames:o,isBrowser:Ae,isMix:Be,isNode:Pe,TRUE_STR:ie,FALSE_STR:ce,ZONE_SYMBOL_PREFIX:pe,ADD_EVENT_LISTENER_STR:De,REMOVE_EVENT_LISTENER_STR:Ze})});const Re=j("zoneTask");function Te(t,n,i,o){let c=null,a=null;i+=o;const y={};function d(v){const m=v.data;return m.args[0]=function(){return v.invoke.apply(this,arguments)},m.handleId=c.apply(t,m.args),v}function b(v){return a.call(t,v.data.handleId)}c=ae(t,n+=o,v=>function(m,M){if("function"==typeof M[0]){const O={isPeriodic:"Interval"===o,delay:"Timeout"===o||"Interval"===o?M[1]||0:void 0,args:M},N=M[0];M[0]=function(){try{return N.apply(this,arguments)}finally{O.isPeriodic||("number"==typeof O.handleId?delete y[O.handleId]:O.handleId&&(O.handleId[Re]=null))}};const B=Le(n,M[0],O,d,b);if(!B)return B;const H=B.data.handleId;return"number"==typeof H?y[H]=B:H&&(H[Re]=B),H&&H.ref&&H.unref&&"function"==typeof H.ref&&"function"==typeof H.unref&&(B.ref=H.ref.bind(H),B.unref=H.unref.bind(H)),"number"==typeof H||H?H:B}return v.apply(t,M)}),a=ae(t,i,v=>function(m,M){const O=M[0];let N;"number"==typeof O?N=y[O]:(N=O&&O[Re],N||(N=O)),N&&"string"==typeof N.type?"notScheduled"!==N.state&&(N.cancelFn&&N.data.isPeriodic||0===N.runCount)&&("number"==typeof O?delete y[O]:O&&(O[Re]=null),N.zone.cancelTask(N)):v.apply(t,M)})}Zone.__load_patch("legacy",t=>{const n=t[Zone.__symbol__("legacyPatch")];n&&n()}),Zone.__load_patch("queueMicrotask",(t,n,i)=>{i.patchMethod(t,"queueMicrotask",o=>function(c,a){n.current.scheduleMicroTask("queueMicrotask",a[0])})}),Zone.__load_patch("timers",t=>{const n="set",i="clear";Te(t,n,i,"Timeout"),Te(t,n,i,"Interval"),Te(t,n,i,"Immediate")}),Zone.__load_patch("requestAnimationFrame",t=>{Te(t,"request","cancel","AnimationFrame"),Te(t,"mozRequest","mozCancel","AnimationFrame"),Te(t,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(t,n)=>{const i=["alert","prompt","confirm"];for(let o=0;ofunction(b,v){return n.current.run(a,t,v,d)})}),Zone.__load_patch("EventTarget",(t,n,i)=>{(function pt(t,n){n.patchEventPrototype(t,n)})(t,i),function mt(t,n){if(Zone[n.symbol("patchEventTarget")])return;const{eventNames:i,zoneSymbolEventNames:o,TRUE_STR:c,FALSE_STR:a,ZONE_SYMBOL_PREFIX:y}=n.getGlobalObjects();for(let b=0;b{ge("MutationObserver"),ge("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(t,n,i)=>{ge("IntersectionObserver")}),Zone.__load_patch("FileReader",(t,n,i)=>{ge("FileReader")}),Zone.__load_patch("on_property",(t,n,i)=>{!function Tt(t,n){if(Pe&&!Be||Zone[t.symbol("patchEvents")])return;const i=n.__Zone_ignore_on_properties;let o=[];if(Ae){const c=window;o=o.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const a=function ut(){try{const t=_e.navigator.userAgent;if(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:c,ignoreProperties:["error"]}]:[];et(c,He(c),i&&i.concat(a),ve(c))}o=o.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let c=0;c{!function yt(t,n){const{isBrowser:i,isMix:o}=n.getGlobalObjects();(i||o)&&t.customElements&&"customElements"in t&&n.patchCallbacks(n,t.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(t,i)}),Zone.__load_patch("XHR",(t,n)=>{!function b(v){const m=v.XMLHttpRequest;if(!m)return;const M=m.prototype;let N=M[Oe],B=M[Ne];if(!N){const h=v.XMLHttpRequestEventTarget;if(h){const I=h.prototype;N=I[Oe],B=I[Ne]}}const H="readystatechange",K="scheduled";function q(h){const I=h.data,P=I.target;P[a]=!1,P[d]=!1;const Q=P[c];N||(N=P[Oe],B=P[Ne]),Q&&B.call(P,H,Q);const oe=P[c]=()=>{if(P.readyState===P.DONE)if(!I.aborted&&P[a]&&h.state===K){const U=P[n.__symbol__("loadfalse")];if(0!==P.status&&U&&U.length>0){const re=h.invoke;h.invoke=function(){const ee=P[n.__symbol__("loadfalse")];for(let W=0;Wfunction(h,I){return h[o]=0==I[2],h[y]=I[1],J.apply(h,I)}),X=j("fetchTaskAborting"),A=j("fetchTaskScheduling"),E=ae(M,"send",()=>function(h,I){if(!0===n.current[A]||h[o])return E.apply(h,I);{const P={target:h,url:h[y],isPeriodic:!1,args:I,aborted:!1},Q=Le("XMLHttpRequest.send",R,P,q,_);h&&!0===h[d]&&!P.aborted&&Q.state===K&&Q.invoke()}}),G=ae(M,"abort",()=>function(h,I){const P=function O(h){return h[i]}(h);if(P&&"string"==typeof P.type){if(null==P.cancelFn||P.data&&P.data.aborted)return;P.zone.cancelTask(P)}else if(!0===n.current[X])return G.apply(h,I)})}(t);const i=j("xhrTask"),o=j("xhrSync"),c=j("xhrListener"),a=j("xhrScheduled"),y=j("xhrURL"),d=j("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",t=>{t.navigator&&t.navigator.geolocation&&function at(t,n){const i=t.constructor.name;for(let o=0;o{const b=function(){return d.apply(this,Me(arguments,i+"."+c))};return le(b,d),b})(a)}}}(t.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(t,n)=>{function i(o){return function(c){Ke(t,o).forEach(y=>{const d=t.PromiseRejectionEvent;if(d){const b=new d(o,{promise:c.promise,reason:c.rejection});y.invoke(b)}})}}t.PromiseRejectionEvent&&(n[j("unhandledPromiseRejectionHandler")]=i("unhandledrejection"),n[j("rejectionHandledHandler")]=i("rejectionhandled"))})}},ue=>{ue(ue.s=583)}]); \ No newline at end of file diff --git a/polyfills.bcd13f6cbbbb05bd.js b/polyfills.bcd13f6cbbbb05bd.js deleted file mode 100644 index 99a0035..0000000 --- a/polyfills.bcd13f6cbbbb05bd.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkngx_tinymce=self.webpackChunkngx_tinymce||[]).push([[429],{583:()=>{!function(t){const n=t.performance;function i(L){n&&n.mark&&n.mark(L)}function o(L,T){n&&n.measure&&n.measure(L,T)}i("Zone");const c=t.__Zone_symbol_prefix||"__zone_symbol__";function a(L){return c+L}const m=!0===t[a("forceDuplicateZoneCheck")];if(t.Zone){if(m||"function"!=typeof t.Zone.__symbol__)throw new Error("Zone already loaded.");return t.Zone}let d=(()=>{class L{constructor(e,r){this._parent=e,this._name=r?r.name||"unnamed":"",this._properties=r&&r.properties||{},this._zoneDelegate=new v(this,this._parent&&this._parent._zoneDelegate,r)}static assertZonePatched(){if(t.Promise!==oe.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let e=L.current;for(;e.parent;)e=e.parent;return e}static get current(){return U.zone}static get currentTask(){return re}static __load_patch(e,r,k=!1){if(oe.hasOwnProperty(e)){if(!k&&m)throw Error("Already loaded patch: "+e)}else if(!t["__Zone_disable_"+e]){const C="Zone:"+e;i(C),oe[e]=r(t,L,z),o(C,C)}}get parent(){return this._parent}get name(){return this._name}get(e){const r=this.getZoneWith(e);if(r)return r._properties[e]}getZoneWith(e){let r=this;for(;r;){if(r._properties.hasOwnProperty(e))return r;r=r._parent}return null}fork(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)}wrap(e,r){if("function"!=typeof e)throw new Error("Expecting function got: "+e);const k=this._zoneDelegate.intercept(this,e,r),C=this;return function(){return C.runGuarded(k,this,arguments,r)}}run(e,r,k,C){U={parent:U,zone:this};try{return this._zoneDelegate.invoke(this,e,r,k,C)}finally{U=U.parent}}runGuarded(e,r=null,k,C){U={parent:U,zone:this};try{try{return this._zoneDelegate.invoke(this,e,r,k,C)}catch($){if(this._zoneDelegate.handleError(this,$))throw $}}finally{U=U.parent}}runTask(e,r,k){if(e.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(e.zone||J).name+"; Execution: "+this.name+")");if(e.state===x&&(e.type===Q||e.type===w))return;const C=e.state!=E;C&&e._transitionTo(E,j),e.runCount++;const $=re;re=e,U={parent:U,zone:this};try{e.type==w&&e.data&&!e.data.isPeriodic&&(e.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,e,r,k)}catch(l){if(this._zoneDelegate.handleError(this,l))throw l}}finally{e.state!==x&&e.state!==h&&(e.type==Q||e.data&&e.data.isPeriodic?C&&e._transitionTo(j,E):(e.runCount=0,this._updateTaskCount(e,-1),C&&e._transitionTo(x,E,x))),U=U.parent,re=$}}scheduleTask(e){if(e.zone&&e.zone!==this){let k=this;for(;k;){if(k===e.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${e.zone.name}`);k=k.parent}}e._transitionTo(X,x);const r=[];e._zoneDelegates=r,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(k){throw e._transitionTo(h,X,x),this._zoneDelegate.handleError(this,k),k}return e._zoneDelegates===r&&this._updateTaskCount(e,1),e.state==X&&e._transitionTo(j,X),e}scheduleMicroTask(e,r,k,C){return this.scheduleTask(new p(I,e,r,k,C,void 0))}scheduleMacroTask(e,r,k,C,$){return this.scheduleTask(new p(w,e,r,k,C,$))}scheduleEventTask(e,r,k,C,$){return this.scheduleTask(new p(Q,e,r,k,C,$))}cancelTask(e){if(e.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(e.zone||J).name+"; Execution: "+this.name+")");if(e.state===j||e.state===E){e._transitionTo(G,j,E);try{this._zoneDelegate.cancelTask(this,e)}catch(r){throw e._transitionTo(h,G),this._zoneDelegate.handleError(this,r),r}return this._updateTaskCount(e,-1),e._transitionTo(x,G),e.runCount=0,e}}_updateTaskCount(e,r){const k=e._zoneDelegates;-1==r&&(e._zoneDelegates=null);for(let C=0;CL.hasTask(e,r),onScheduleTask:(L,T,e,r)=>L.scheduleTask(e,r),onInvokeTask:(L,T,e,r,k,C)=>L.invokeTask(e,r,k,C),onCancelTask:(L,T,e,r)=>L.cancelTask(e,r)};class v{constructor(T,e,r){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=T,this._parentDelegate=e,this._forkZS=r&&(r&&r.onFork?r:e._forkZS),this._forkDlgt=r&&(r.onFork?e:e._forkDlgt),this._forkCurrZone=r&&(r.onFork?this.zone:e._forkCurrZone),this._interceptZS=r&&(r.onIntercept?r:e._interceptZS),this._interceptDlgt=r&&(r.onIntercept?e:e._interceptDlgt),this._interceptCurrZone=r&&(r.onIntercept?this.zone:e._interceptCurrZone),this._invokeZS=r&&(r.onInvoke?r:e._invokeZS),this._invokeDlgt=r&&(r.onInvoke?e:e._invokeDlgt),this._invokeCurrZone=r&&(r.onInvoke?this.zone:e._invokeCurrZone),this._handleErrorZS=r&&(r.onHandleError?r:e._handleErrorZS),this._handleErrorDlgt=r&&(r.onHandleError?e:e._handleErrorDlgt),this._handleErrorCurrZone=r&&(r.onHandleError?this.zone:e._handleErrorCurrZone),this._scheduleTaskZS=r&&(r.onScheduleTask?r:e._scheduleTaskZS),this._scheduleTaskDlgt=r&&(r.onScheduleTask?e:e._scheduleTaskDlgt),this._scheduleTaskCurrZone=r&&(r.onScheduleTask?this.zone:e._scheduleTaskCurrZone),this._invokeTaskZS=r&&(r.onInvokeTask?r:e._invokeTaskZS),this._invokeTaskDlgt=r&&(r.onInvokeTask?e:e._invokeTaskDlgt),this._invokeTaskCurrZone=r&&(r.onInvokeTask?this.zone:e._invokeTaskCurrZone),this._cancelTaskZS=r&&(r.onCancelTask?r:e._cancelTaskZS),this._cancelTaskDlgt=r&&(r.onCancelTask?e:e._cancelTaskDlgt),this._cancelTaskCurrZone=r&&(r.onCancelTask?this.zone:e._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const k=r&&r.onHasTask;(k||e&&e._hasTaskZS)&&(this._hasTaskZS=k?r:P,this._hasTaskDlgt=e,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=T,r.onScheduleTask||(this._scheduleTaskZS=P,this._scheduleTaskDlgt=e,this._scheduleTaskCurrZone=this.zone),r.onInvokeTask||(this._invokeTaskZS=P,this._invokeTaskDlgt=e,this._invokeTaskCurrZone=this.zone),r.onCancelTask||(this._cancelTaskZS=P,this._cancelTaskDlgt=e,this._cancelTaskCurrZone=this.zone))}fork(T,e){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,T,e):new d(T,e)}intercept(T,e,r){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,T,e,r):e}invoke(T,e,r,k,C){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,T,e,r,k,C):e.apply(r,k)}handleError(T,e){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,T,e)}scheduleTask(T,e){let r=e;if(this._scheduleTaskZS)this._hasTaskZS&&r._zoneDelegates.push(this._hasTaskDlgtOwner),r=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,T,e),r||(r=e);else if(e.scheduleFn)e.scheduleFn(e);else{if(e.type!=I)throw new Error("Task is missing scheduleFn.");R(e)}return r}invokeTask(T,e,r,k){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,T,e,r,k):e.callback.apply(r,k)}cancelTask(T,e){let r;if(this._cancelTaskZS)r=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,T,e);else{if(!e.cancelFn)throw Error("Task is not cancelable");r=e.cancelFn(e)}return r}hasTask(T,e){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,T,e)}catch(r){this.handleError(T,r)}}_updateTaskCount(T,e){const r=this._taskCounts,k=r[T],C=r[T]=k+e;if(C<0)throw new Error("More tasks executed then were scheduled.");0!=k&&0!=C||this.hasTask(this.zone,{microTask:r.microTask>0,macroTask:r.macroTask>0,eventTask:r.eventTask>0,change:T})}}class p{constructor(T,e,r,k,C,$){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=T,this.source=e,this.data=k,this.scheduleFn=C,this.cancelFn=$,!r)throw new Error("callback is not defined");this.callback=r;const l=this;this.invoke=T===Q&&k&&k.useG?p.invokeTask:function(){return p.invokeTask.call(t,l,this,arguments)}}static invokeTask(T,e,r){T||(T=this),ee++;try{return T.runCount++,T.zone.runTask(T,e,r)}finally{1==ee&&_(),ee--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(x,X)}_transitionTo(T,e,r){if(this._state!==e&&this._state!==r)throw new Error(`${this.type} '${this.source}': can not transition to '${T}', expecting state '${e}'${r?" or '"+r+"'":""}, was '${this._state}'.`);this._state=T,T==x&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const M=a("setTimeout"),Z=a("Promise"),N=a("then");let K,B=[],H=!1;function q(L){if(K||t[Z]&&(K=t[Z].resolve(0)),K){let T=K[N];T||(T=K.then),T.call(K,L)}else t[M](L,0)}function R(L){0===ee&&0===B.length&&q(_),L&&B.push(L)}function _(){if(!H){for(H=!0;B.length;){const L=B;B=[];for(let T=0;TU,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:R,showUncaughtError:()=>!d[a("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:q};let U={parent:null,zone:new d(null,null)},re=null,ee=0;function W(){}o("Zone","Zone"),t.Zone=d}(typeof window<"u"&&window||typeof self<"u"&&self||global);const ue=Object.getOwnPropertyDescriptor,me=Object.defineProperty,ve=Object.getPrototypeOf,Se=Object.create,it=Array.prototype.slice,De="addEventListener",Oe="removeEventListener",Ze=Zone.__symbol__(De),Ne=Zone.__symbol__(Oe),ie="true",ce="false",pe=Zone.__symbol__("");function Ie(t,n){return Zone.current.wrap(t,n)}function Le(t,n,i,o,c){return Zone.current.scheduleMacroTask(t,n,i,o,c)}const A=Zone.__symbol__,be=typeof window<"u",_e=be?window:void 0,Y=be&&_e||"object"==typeof self&&self||global,ct="removeAttribute";function Me(t,n){for(let i=t.length-1;i>=0;i--)"function"==typeof t[i]&&(t[i]=Ie(t[i],n+"_"+i));return t}function Ve(t){return!t||!1!==t.writable&&!("function"==typeof t.get&&typeof t.set>"u")}const Fe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Pe=!("nw"in Y)&&typeof Y.process<"u"&&"[object process]"==={}.toString.call(Y.process),je=!Pe&&!Fe&&!(!be||!_e.HTMLElement),Be=typeof Y.process<"u"&&"[object process]"==={}.toString.call(Y.process)&&!Fe&&!(!be||!_e.HTMLElement),we={},Ue=function(t){if(!(t=t||Y.event))return;let n=we[t.type];n||(n=we[t.type]=A("ON_PROPERTY"+t.type));const i=this||t.target||Y,o=i[n];let c;return je&&i===_e&&"error"===t.type?(c=o&&o.call(this,t.message,t.filename,t.lineno,t.colno,t.error),!0===c&&t.preventDefault()):(c=o&&o.apply(this,arguments),null!=c&&!c&&t.preventDefault()),c};function We(t,n,i){let o=ue(t,n);if(!o&&i&&ue(i,n)&&(o={enumerable:!0,configurable:!0}),!o||!o.configurable)return;const c=A("on"+n+"patched");if(t.hasOwnProperty(c)&&t[c])return;delete o.writable,delete o.value;const a=o.get,m=o.set,d=n.slice(2);let P=we[d];P||(P=we[d]=A("ON_PROPERTY"+d)),o.set=function(v){let p=this;!p&&t===Y&&(p=Y),p&&("function"==typeof p[P]&&p.removeEventListener(d,Ue),m&&m.call(p,null),p[P]=v,"function"==typeof v&&p.addEventListener(d,Ue,!1))},o.get=function(){let v=this;if(!v&&t===Y&&(v=Y),!v)return null;const p=v[P];if(p)return p;if(a){let M=a.call(this);if(M)return o.set.call(this,M),"function"==typeof v[ct]&&v.removeAttribute(n),M}return null},me(t,n,o),t[c]=!0}function qe(t,n,i){if(n)for(let o=0;ofunction(m,d){const P=i(m,d);return P.cbIdx>=0&&"function"==typeof d[P.cbIdx]?Le(P.name,d[P.cbIdx],P,c):a.apply(m,d)})}function le(t,n){t[A("OriginalDelegate")]=n}let Xe=!1,Ae=!1;function ft(){if(Xe)return Ae;Xe=!0;try{const t=_e.navigator.userAgent;(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/")||-1!==t.indexOf("Edge/"))&&(Ae=!0)}catch{}return Ae}Zone.__load_patch("ZoneAwarePromise",(t,n,i)=>{const o=Object.getOwnPropertyDescriptor,c=Object.defineProperty,m=i.symbol,d=[],P=!0===t[m("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],v=m("Promise"),p=m("then"),M="__creationTrace__";i.onUnhandledError=l=>{if(i.showUncaughtError()){const u=l&&l.rejection;u?console.error("Unhandled Promise rejection:",u instanceof Error?u.message:u,"; Zone:",l.zone.name,"; Task:",l.task&&l.task.source,"; Value:",u,u instanceof Error?u.stack:void 0):console.error(l)}},i.microtaskDrainDone=()=>{for(;d.length;){const l=d.shift();try{l.zone.runGuarded(()=>{throw l.throwOriginal?l.rejection:l})}catch(u){N(u)}}};const Z=m("unhandledPromiseRejectionHandler");function N(l){i.onUnhandledError(l);try{const u=n[Z];"function"==typeof u&&u.call(this,l)}catch{}}function B(l){return l&&l.then}function H(l){return l}function K(l){return e.reject(l)}const q=m("state"),R=m("value"),_=m("finally"),J=m("parentPromiseValue"),x=m("parentPromiseState"),X="Promise.then",j=null,E=!0,G=!1,h=0;function I(l,u){return s=>{try{z(l,u,s)}catch(f){z(l,!1,f)}}}const w=function(){let l=!1;return function(s){return function(){l||(l=!0,s.apply(null,arguments))}}},Q="Promise resolved with itself",oe=m("currentTaskTrace");function z(l,u,s){const f=w();if(l===s)throw new TypeError(Q);if(l[q]===j){let g=null;try{("object"==typeof s||"function"==typeof s)&&(g=s&&s.then)}catch(b){return f(()=>{z(l,!1,b)})(),l}if(u!==G&&s instanceof e&&s.hasOwnProperty(q)&&s.hasOwnProperty(R)&&s[q]!==j)re(s),z(l,s[q],s[R]);else if(u!==G&&"function"==typeof g)try{g.call(s,f(I(l,u)),f(I(l,!1)))}catch(b){f(()=>{z(l,!1,b)})()}else{l[q]=u;const b=l[R];if(l[R]=s,l[_]===_&&u===E&&(l[q]=l[x],l[R]=l[J]),u===G&&s instanceof Error){const y=n.currentTask&&n.currentTask.data&&n.currentTask.data[M];y&&c(s,oe,{configurable:!0,enumerable:!1,writable:!0,value:y})}for(let y=0;y{try{const S=l[R],D=!!s&&_===s[_];D&&(s[J]=S,s[x]=b);const O=u.run(y,void 0,D&&y!==K&&y!==H?[]:[S]);z(s,!0,O)}catch(S){z(s,!1,S)}},s)}const L=function(){},T=t.AggregateError;class e{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(u){return z(new this(null),E,u)}static reject(u){return z(new this(null),G,u)}static any(u){if(!u||"function"!=typeof u[Symbol.iterator])return Promise.reject(new T([],"All promises were rejected"));const s=[];let f=0;try{for(let y of u)f++,s.push(e.resolve(y))}catch{return Promise.reject(new T([],"All promises were rejected"))}if(0===f)return Promise.reject(new T([],"All promises were rejected"));let g=!1;const b=[];return new e((y,S)=>{for(let D=0;D{g||(g=!0,y(O))},O=>{b.push(O),f--,0===f&&(g=!0,S(new T(b,"All promises were rejected")))})})}static race(u){let s,f,g=new this((S,D)=>{s=S,f=D});function b(S){s(S)}function y(S){f(S)}for(let S of u)B(S)||(S=this.resolve(S)),S.then(b,y);return g}static all(u){return e.allWithCallback(u)}static allSettled(u){return(this&&this.prototype instanceof e?this:e).allWithCallback(u,{thenCallback:f=>({status:"fulfilled",value:f}),errorCallback:f=>({status:"rejected",reason:f})})}static allWithCallback(u,s){let f,g,b=new this((O,V)=>{f=O,g=V}),y=2,S=0;const D=[];for(let O of u){B(O)||(O=this.resolve(O));const V=S;try{O.then(F=>{D[V]=s?s.thenCallback(F):F,y--,0===y&&f(D)},F=>{s?(D[V]=s.errorCallback(F),y--,0===y&&f(D)):g(F)})}catch(F){g(F)}y++,S++}return y-=2,0===y&&f(D),b}constructor(u){const s=this;if(!(s instanceof e))throw new Error("Must be an instanceof Promise.");s[q]=j,s[R]=[];try{const f=w();u&&u(f(I(s,E)),f(I(s,G)))}catch(f){z(s,!1,f)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return e}then(u,s){var f;let g=null===(f=this.constructor)||void 0===f?void 0:f[Symbol.species];(!g||"function"!=typeof g)&&(g=this.constructor||e);const b=new g(L),y=n.current;return this[q]==j?this[R].push(y,b,u,s):ee(this,y,b,u,s),b}catch(u){return this.then(null,u)}finally(u){var s;let f=null===(s=this.constructor)||void 0===s?void 0:s[Symbol.species];(!f||"function"!=typeof f)&&(f=e);const g=new f(L);g[_]=_;const b=n.current;return this[q]==j?this[R].push(b,g,u,u):ee(this,b,g,u,u),g}}e.resolve=e.resolve,e.reject=e.reject,e.race=e.race,e.all=e.all;const r=t[v]=t.Promise;t.Promise=e;const k=m("thenPatched");function C(l){const u=l.prototype,s=o(u,"then");if(s&&(!1===s.writable||!s.configurable))return;const f=u.then;u[p]=f,l.prototype.then=function(g,b){return new e((S,D)=>{f.call(this,S,D)}).then(g,b)},l[k]=!0}return i.patchThen=C,r&&(C(r),ae(t,"fetch",l=>function $(l){return function(u,s){let f=l.apply(u,s);if(f instanceof e)return f;let g=f.constructor;return g[k]||C(g),f}}(l))),Promise[n.__symbol__("uncaughtPromiseErrors")]=d,e}),Zone.__load_patch("toString",t=>{const n=Function.prototype.toString,i=A("OriginalDelegate"),o=A("Promise"),c=A("Error"),a=function(){if("function"==typeof this){const v=this[i];if(v)return"function"==typeof v?n.call(v):Object.prototype.toString.call(v);if(this===Promise){const p=t[o];if(p)return n.call(p)}if(this===Error){const p=t[c];if(p)return n.call(p)}}return n.call(this)};a[i]=n,Function.prototype.toString=a;const m=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":m.call(this)}});let Ee=!1;if(typeof window<"u")try{const t=Object.defineProperty({},"passive",{get:function(){Ee=!0}});window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch{Ee=!1}const ht={useG:!0},te={},ze={},Ye=new RegExp("^"+pe+"(\\w+)(true|false)$"),$e=A("propagationStopped");function Je(t,n){const i=(n?n(t):t)+ce,o=(n?n(t):t)+ie,c=pe+i,a=pe+o;te[t]={},te[t][ce]=c,te[t][ie]=a}function dt(t,n,i,o){const c=o&&o.add||De,a=o&&o.rm||Oe,m=o&&o.listeners||"eventListeners",d=o&&o.rmAll||"removeAllListeners",P=A(c),v="."+c+":",p="prependListener",M="."+p+":",Z=function(R,_,J){if(R.isRemoved)return;const x=R.callback;let X;"object"==typeof x&&x.handleEvent&&(R.callback=E=>x.handleEvent(E),R.originalDelegate=x);try{R.invoke(R,_,[J])}catch(E){X=E}const j=R.options;return j&&"object"==typeof j&&j.once&&_[a].call(_,J.type,R.originalDelegate?R.originalDelegate:R.callback,j),X};function N(R,_,J){if(!(_=_||t.event))return;const x=R||_.target||t,X=x[te[_.type][J?ie:ce]];if(X){const j=[];if(1===X.length){const E=Z(X[0],x,_);E&&j.push(E)}else{const E=X.slice();for(let G=0;G{throw G})}}}const B=function(R){return N(this,R,!1)},H=function(R){return N(this,R,!0)};function K(R,_){if(!R)return!1;let J=!0;_&&void 0!==_.useG&&(J=_.useG);const x=_&&_.vh;let X=!0;_&&void 0!==_.chkDup&&(X=_.chkDup);let j=!1;_&&void 0!==_.rt&&(j=_.rt);let E=R;for(;E&&!E.hasOwnProperty(c);)E=ve(E);if(!E&&R[c]&&(E=R),!E||E[P])return!1;const G=_&&_.eventNameToString,h={},I=E[P]=E[c],w=E[A(a)]=E[a],Q=E[A(m)]=E[m],oe=E[A(d)]=E[d];let z;_&&_.prepend&&(z=E[A(_.prepend)]=E[_.prepend]);const e=J?function(s){if(!h.isExisting)return I.call(h.target,h.eventName,h.capture?H:B,h.options)}:function(s){return I.call(h.target,h.eventName,s.invoke,h.options)},r=J?function(s){if(!s.isRemoved){const f=te[s.eventName];let g;f&&(g=f[s.capture?ie:ce]);const b=g&&s.target[g];if(b)for(let y=0;yfunction(c,a){c[$e]=!0,o&&o.apply(c,a)})}function Et(t,n,i,o,c){const a=Zone.__symbol__(o);if(n[a])return;const m=n[a]=n[o];n[o]=function(d,P,v){return P&&P.prototype&&c.forEach(function(p){const M=`${i}.${o}::`+p,Z=P.prototype;try{if(Z.hasOwnProperty(p)){const N=t.ObjectGetOwnPropertyDescriptor(Z,p);N&&N.value?(N.value=t.wrapWithCurrentZone(N.value,M),t._redefineProperty(P.prototype,p,N)):Z[p]&&(Z[p]=t.wrapWithCurrentZone(Z[p],M))}else Z[p]&&(Z[p]=t.wrapWithCurrentZone(Z[p],M))}catch{}}),m.call(n,d,P,v)},t.attachOriginToPatched(n[o],m)}function Qe(t,n,i){if(!i||0===i.length)return n;const o=i.filter(a=>a.target===t);if(!o||0===o.length)return n;const c=o[0].ignoreProperties;return n.filter(a=>-1===c.indexOf(a))}function et(t,n,i,o){t&&qe(t,Qe(t,n,i),o)}function He(t){return Object.getOwnPropertyNames(t).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}Zone.__load_patch("util",(t,n,i)=>{const o=He(t);i.patchOnProperties=qe,i.patchMethod=ae,i.bindArguments=Me,i.patchMacroTask=lt;const c=n.__symbol__("BLACK_LISTED_EVENTS"),a=n.__symbol__("UNPATCHED_EVENTS");t[a]&&(t[c]=t[a]),t[c]&&(n[c]=n[a]=t[c]),i.patchEventPrototype=_t,i.patchEventTarget=dt,i.isIEOrEdge=ft,i.ObjectDefineProperty=me,i.ObjectGetOwnPropertyDescriptor=ue,i.ObjectCreate=Se,i.ArraySlice=it,i.patchClass=ge,i.wrapWithCurrentZone=Ie,i.filterProperties=Qe,i.attachOriginToPatched=le,i._redefineProperty=Object.defineProperty,i.patchCallbacks=Et,i.getGlobalObjects=()=>({globalSources:ze,zoneSymbolEventNames:te,eventNames:o,isBrowser:je,isMix:Be,isNode:Pe,TRUE_STR:ie,FALSE_STR:ce,ZONE_SYMBOL_PREFIX:pe,ADD_EVENT_LISTENER_STR:De,REMOVE_EVENT_LISTENER_STR:Oe})});const Re=A("zoneTask");function Te(t,n,i,o){let c=null,a=null;i+=o;const m={};function d(v){const p=v.data;return p.args[0]=function(){return v.invoke.apply(this,arguments)},p.handleId=c.apply(t,p.args),v}function P(v){return a.call(t,v.data.handleId)}c=ae(t,n+=o,v=>function(p,M){if("function"==typeof M[0]){const Z={isPeriodic:"Interval"===o,delay:"Timeout"===o||"Interval"===o?M[1]||0:void 0,args:M},N=M[0];M[0]=function(){try{return N.apply(this,arguments)}finally{Z.isPeriodic||("number"==typeof Z.handleId?delete m[Z.handleId]:Z.handleId&&(Z.handleId[Re]=null))}};const B=Le(n,M[0],Z,d,P);if(!B)return B;const H=B.data.handleId;return"number"==typeof H?m[H]=B:H&&(H[Re]=B),H&&H.ref&&H.unref&&"function"==typeof H.ref&&"function"==typeof H.unref&&(B.ref=H.ref.bind(H),B.unref=H.unref.bind(H)),"number"==typeof H||H?H:B}return v.apply(t,M)}),a=ae(t,i,v=>function(p,M){const Z=M[0];let N;"number"==typeof Z?N=m[Z]:(N=Z&&Z[Re],N||(N=Z)),N&&"string"==typeof N.type?"notScheduled"!==N.state&&(N.cancelFn&&N.data.isPeriodic||0===N.runCount)&&("number"==typeof Z?delete m[Z]:Z&&(Z[Re]=null),N.zone.cancelTask(N)):v.apply(t,M)})}Zone.__load_patch("legacy",t=>{const n=t[Zone.__symbol__("legacyPatch")];n&&n()}),Zone.__load_patch("queueMicrotask",(t,n,i)=>{i.patchMethod(t,"queueMicrotask",o=>function(c,a){n.current.scheduleMicroTask("queueMicrotask",a[0])})}),Zone.__load_patch("timers",t=>{const n="set",i="clear";Te(t,n,i,"Timeout"),Te(t,n,i,"Interval"),Te(t,n,i,"Immediate")}),Zone.__load_patch("requestAnimationFrame",t=>{Te(t,"request","cancel","AnimationFrame"),Te(t,"mozRequest","mozCancel","AnimationFrame"),Te(t,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(t,n)=>{const i=["alert","prompt","confirm"];for(let o=0;ofunction(P,v){return n.current.run(a,t,v,d)})}),Zone.__load_patch("EventTarget",(t,n,i)=>{(function pt(t,n){n.patchEventPrototype(t,n)})(t,i),function mt(t,n){if(Zone[n.symbol("patchEventTarget")])return;const{eventNames:i,zoneSymbolEventNames:o,TRUE_STR:c,FALSE_STR:a,ZONE_SYMBOL_PREFIX:m}=n.getGlobalObjects();for(let P=0;P{ge("MutationObserver"),ge("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(t,n,i)=>{ge("IntersectionObserver")}),Zone.__load_patch("FileReader",(t,n,i)=>{ge("FileReader")}),Zone.__load_patch("on_property",(t,n,i)=>{!function Tt(t,n){if(Pe&&!Be||Zone[t.symbol("patchEvents")])return;const i=n.__Zone_ignore_on_properties;let o=[];if(je){const c=window;o=o.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const a=function ut(){try{const t=_e.navigator.userAgent;if(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:c,ignoreProperties:["error"]}]:[];et(c,He(c),i&&i.concat(a),ve(c))}o=o.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let c=0;c{!function yt(t,n){const{isBrowser:i,isMix:o}=n.getGlobalObjects();(i||o)&&t.customElements&&"customElements"in t&&n.patchCallbacks(n,t.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(t,i)}),Zone.__load_patch("XHR",(t,n)=>{!function P(v){const p=v.XMLHttpRequest;if(!p)return;const M=p.prototype;let N=M[Ze],B=M[Ne];if(!N){const h=v.XMLHttpRequestEventTarget;if(h){const I=h.prototype;N=I[Ze],B=I[Ne]}}const H="readystatechange",K="scheduled";function q(h){const I=h.data,w=I.target;w[a]=!1,w[d]=!1;const Q=w[c];N||(N=w[Ze],B=w[Ne]),Q&&B.call(w,H,Q);const oe=w[c]=()=>{if(w.readyState===w.DONE)if(!I.aborted&&w[a]&&h.state===K){const U=w[n.__symbol__("loadfalse")];if(0!==w.status&&U&&U.length>0){const re=h.invoke;h.invoke=function(){const ee=w[n.__symbol__("loadfalse")];for(let W=0;Wfunction(h,I){return h[o]=0==I[2],h[m]=I[1],J.apply(h,I)}),X=A("fetchTaskAborting"),j=A("fetchTaskScheduling"),E=ae(M,"send",()=>function(h,I){if(!0===n.current[j]||h[o])return E.apply(h,I);{const w={target:h,url:h[m],isPeriodic:!1,args:I,aborted:!1},Q=Le("XMLHttpRequest.send",R,w,q,_);h&&!0===h[d]&&!w.aborted&&Q.state===K&&Q.invoke()}}),G=ae(M,"abort",()=>function(h,I){const w=function Z(h){return h[i]}(h);if(w&&"string"==typeof w.type){if(null==w.cancelFn||w.data&&w.data.aborted)return;w.zone.cancelTask(w)}else if(!0===n.current[X])return G.apply(h,I)})}(t);const i=A("xhrTask"),o=A("xhrSync"),c=A("xhrListener"),a=A("xhrScheduled"),m=A("xhrURL"),d=A("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",t=>{t.navigator&&t.navigator.geolocation&&function at(t,n){const i=t.constructor.name;for(let o=0;o{const P=function(){return d.apply(this,Me(arguments,i+"."+c))};return le(P,d),P})(a)}}}(t.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(t,n)=>{function i(o){return function(c){Ke(t,o).forEach(m=>{const d=t.PromiseRejectionEvent;if(d){const P=new d(o,{promise:c.promise,reason:c.rejection});m.invoke(P)}})}}t.PromiseRejectionEvent&&(n[A("unhandledPromiseRejectionHandler")]=i("unhandledrejection"),n[A("rejectionHandledHandler")]=i("rejectionhandled"))})}},ue=>{ue(ue.s=583)}]); \ No newline at end of file