"use strict";(self.webpackChunkbgp_ce_bel_loginbel=self.webpackChunkbgp_ce_bel_loginbel||[]).push([[179],{378:()=>{function ee(e){return"function"==typeof e}function nr(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 Mi=nr(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 rr(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class et{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(const i of n)i.remove(this);else n.remove(this);const{initialTeardown:r}=this;if(ee(r))try{r()}catch(i){t=i instanceof Mi?i.errors:[i]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const i of o)try{rf(i)}catch(s){t=t??[],s instanceof Mi?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Mi(t)}}add(t){var n;if(t&&t!==this)if(this.closed)rf(t);else{if(t instanceof et){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)&&rr(n,t)}remove(t){const{_finalizers:n}=this;n&&rr(n,t),t instanceof et&&t._removeParent(this)}}et.EMPTY=(()=>{const e=new et;return e.closed=!0,e})();const tf=et.EMPTY;function nf(e){return e instanceof et||e&&"closed"in e&&ee(e.remove)&&ee(e.add)&&ee(e.unsubscribe)}function rf(e){ee(e)?e():e.unsubscribe()}const Pn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Ii={setTimeout(e,t,...n){const{delegate:r}=Ii;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=Ii;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function sf(e){Ii.setTimeout(()=>{const{onUnhandledError:t}=Pn;if(!t)throw e;t(e)})}function af(){}const YC=Ha("C",void 0,void 0);function Ha(e,t,n){return{kind:e,value:t,error:n}}let kn=null;function Ai(e){if(Pn.useDeprecatedSynchronousErrorHandling){const t=!kn;if(t&&(kn={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=kn;if(kn=null,n)throw r}}else e()}class Ga extends et{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,nf(t)&&t.add(this)):this.destination=rw}static create(t,n,r){return new so(t,n,r)}next(t){this.isStopped?Wa(function XC(e){return Ha("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?Wa(function QC(e){return Ha("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Wa(YC,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 ew=Function.prototype.bind;function za(e,t){return ew.call(e,t)}class tw{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Ti(r)}}error(t){const{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Ti(r)}else Ti(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Ti(n)}}}class so extends Ga{constructor(t,n,r){let o;if(super(),ee(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Pn.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&za(t.next,i),error:t.error&&za(t.error,i),complete:t.complete&&za(t.complete,i)}):o=t}this.destination=new tw(o)}}function Ti(e){Pn.useDeprecatedSynchronousErrorHandling?function JC(e){Pn.useDeprecatedSynchronousErrorHandling&&kn&&(kn.errorThrown=!0,kn.error=e)}(e):sf(e)}function Wa(e,t){const{onStoppedNotification:n}=Pn;n&&Ii.setTimeout(()=>n(e,t))}const rw={closed:!0,next:af,error:function nw(e){throw e},complete:af},qa="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ln(e){return e}function uf(e){return 0===e.length?Ln:1===e.length?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}let fe=(()=>{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 sw(e){return e&&e instanceof Ga||function iw(e){return e&&ee(e.next)&&ee(e.error)&&ee(e.complete)}(e)&&nf(e)}(n)?n:new so(n,r,o);return Ai(()=>{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=lf(r))((o,i)=>{const s=new so({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)}[qa](){return this}pipe(...n){return uf(n)(this)}toPromise(n){return new(n=lf(n))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function lf(e){var t;return null!==(t=e??Pn.Promise)&&void 0!==t?t:Promise}const aw=nr(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Xt=(()=>{class e extends fe{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new cf(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new aw}next(n){Ai(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){Ai(()=>{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(){Ai(()=>{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?tf:(this.currentObservers=null,i.push(n),new et(()=>{this.currentObservers=null,rr(i,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){const n=new fe;return n.source=this,n}}return e.create=(t,n)=>new cf(t,n),e})();class cf extends Xt{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:tf}}function df(e){return ee(e?.lift)}function Se(e){return t=>{if(df(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 De(e,t,n,r,o){return new uw(e,t,n,r,o)}class uw extends Ga{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(u){t.error(u)}}:super._next,this._error=o?function(a){try{o(a)}catch(u){t.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:n}=this;super.unsubscribe(),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function U(e,t){return Se((n,r)=>{let o=0;n.subscribe(De(r,i=>{r.next(e.call(t,i,o++))}))})}function Vn(e){return this instanceof Vn?(this.v=e,this):new Vn(e)}function fw(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 pf(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 gf=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function mf(e){return ee(e?.then)}function yf(e){return ee(e[qa])}function vf(e){return Symbol.asyncIterator&&ee(e?.[Symbol.asyncIterator])}function Df(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 _f=function pw(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Cf(e){return ee(e?.[_f])}function wf(e){return function dw(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 Vn?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 Vn(n.read());if(o)return yield Vn(void 0);yield yield Vn(r)}}finally{n.releaseLock()}})}function Ef(e){return ee(e?.getReader)}function tt(e){if(e instanceof fe)return e;if(null!=e){if(yf(e))return function gw(e){return new fe(t=>{const n=e[qa]();if(ee(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(gf(e))return function mw(e){return new fe(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,sf)})}(e);if(vf(e))return bf(e);if(Cf(e))return function vw(e){return new fe(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if(Ef(e))return function Dw(e){return bf(wf(e))}(e)}throw Df(e)}function bf(e){return new fe(t=>{(function _w(e,t){var n,r,o,i;return function lw(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=fw(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 Ot(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 Te(e,t,n=1/0){return ee(t)?Te((r,o)=>U((i,s)=>t(r,i,o,s))(tt(e(r,o))),n):("number"==typeof t&&(n=t),Se((r,o)=>function Cw(e,t,n,r,o,i,s,a){const u=[];let l=0,c=0,d=!1;const f=()=>{d&&!u.length&&!l&&t.complete()},h=g=>l{i&&t.next(g),l++;let m=!1;tt(n(g,c++)).subscribe(De(t,v=>{o?.(v),i?h(v):t.next(v)},()=>{m=!0},void 0,()=>{if(m)try{for(l--;u.length&&lp(v)):p(v)}f()}catch(v){t.error(v)}}))};return e.subscribe(De(t,h,()=>{d=!0,f()})),()=>{a?.()}}(r,o,e,n)))}function or(e=1/0){return Te(Ln,e)}const Pt=new fe(e=>e.complete());function Za(e){return e[e.length-1]}function Sf(e){return ee(Za(e))?e.pop():void 0}function ao(e){return function Ew(e){return e&&ee(e.schedule)}(Za(e))?e.pop():void 0}function Mf(e,t=0){return Se((n,r)=>{n.subscribe(De(r,o=>Ot(r,e,()=>r.next(o),t),()=>Ot(r,e,()=>r.complete(),t),o=>Ot(r,e,()=>r.error(o),t)))})}function If(e,t=0){return Se((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Af(e,t){if(!e)throw new Error("Iterable cannot be null");return new fe(n=>{Ot(n,t,()=>{const r=e[Symbol.asyncIterator]();Ot(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function _e(e,t){return t?function Rw(e,t){if(null!=e){if(yf(e))return function Sw(e,t){return tt(e).pipe(If(t),Mf(t))}(e,t);if(gf(e))return function Iw(e,t){return new fe(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(mf(e))return function Mw(e,t){return tt(e).pipe(If(t),Mf(t))}(e,t);if(vf(e))return Af(e,t);if(Cf(e))return function Aw(e,t){return new fe(n=>{let r;return Ot(n,t,()=>{r=e[_f](),Ot(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){return void n.error(s)}i?n.complete():n.next(o)},0,!0)}),()=>ee(r?.return)&&r.return()})}(e,t);if(Ef(e))return function Tw(e,t){return Af(wf(e),t)}(e,t)}throw Df(e)}(e,t):tt(e)}function Ya(e,t,...n){if(!0===t)return void e();if(!1===t)return;const r=new so({next:()=>{r.unsubscribe(),e()}});return tt(t(...n)).subscribe(r)}function X(e){for(let t in e)if(e[t]===X)return t;throw Error("Could not find renamed property on target object.")}function Qa(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function te(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(te).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 Xa(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Fw=X({__forward_ref__:X});function ne(e){return e.__forward_ref__=ne,e.toString=function(){return te(this())},e}function N(e){return Ja(e)?e():e}function Ja(e){return"function"==typeof e&&e.hasOwnProperty(Fw)&&e.__forward_ref__===ne}function eu(e){return e&&!!e.\u0275providers}class C extends Error{constructor(t,n){super(Ri(t,n)),this.code=t}}function Ri(e,t){return`NG0${Math.abs(e)}${t?": "+t.trim():""}`}function P(e){return"string"==typeof e?e:null==e?"":String(e)}function Ni(e,t){throw new C(-201,!1)}function ft(e,t){null==e&&function Z(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 ht(e){return{providers:e.providers||[],imports:e.imports||[]}}function xi(e){return Rf(e,Fi)||Rf(e,xf)}function Rf(e,t){return e.hasOwnProperty(t)?e[t]:null}function Nf(e){return e&&(e.hasOwnProperty(tu)||e.hasOwnProperty($w))?e[tu]:null}const Fi=X({\u0275prov:X}),tu=X({\u0275inj:X}),xf=X({ngInjectableDef:X}),$w=X({ngInjectorDef:X});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 nu;function pt(e){const t=nu;return nu=e,t}function Ff(e,t,n){const r=xi(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 Ni(te(e))}const oe=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),uo={},ru="__NG_DI_FLAG__",Oi="ngTempTokenPath",Gw="ngTokenPath",zw=/\n/gm,Ww="\u0275",Of="__source";let lo;function ir(e){const t=lo;return lo=e,t}function qw(e,t=x.Default){if(void 0===lo)throw new C(-203,!1);return null===lo?Ff(e,void 0,t):lo.get(e,t&x.Optional?null:void 0,t)}function M(e,t=x.Default){return(function Hw(){return nu}()||qw)(N(e),t)}function $(e,t=x.Default){return M(e,Pi(t))}function Pi(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function ou(e){const t=[];for(let n=0;n((kt=kt||{})[kt.OnPush=0]="OnPush",kt[kt.Default=1]="Default",kt))(),Lt=(()=>{return(e=Lt||(Lt={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",Lt;var e})();const en={},q=[],ki=X({\u0275cmp:X}),iu=X({\u0275dir:X}),su=X({\u0275pipe:X}),kf=X({\u0275mod:X}),tn=X({\u0275fac:X}),fo=X({__NG_ELEMENT_ID__:X});let Qw=0;function au(e){return Jt(()=>{const t=Vf(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===kt.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,data:e.data||{},encapsulation:e.encapsulation||Lt.Emulated,id:"c"+Qw++,styles:e.styles||q,_:null,schemas:e.schemas||null,tView:null};jf(n);const r=e.dependencies;return n.directiveDefs=Li(r,!1),n.pipeDefs=Li(r,!0),n})}function Jw(e){return Y(e)||Oe(e)}function eE(e){return null!==e}function wt(e){return Jt(()=>({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 Lf(e,t){if(null==e)return en;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 Jt(()=>{const t=Vf(e);return jf(t),t})}function Y(e){return e[ki]||null}function Oe(e){return e[iu]||null}function Ze(e){return e[su]||null}function rt(e,t){const n=e[kf]||null;if(!n&&!0===t)throw new Error(`Type ${te(e)} does not have '\u0275mod' property.`);return n}function Vf(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:Lf(e.inputs,t),outputs:Lf(e.outputs)}}function jf(e){e.features?.forEach(t=>t(e))}function Li(e,t){if(!e)return null;const n=t?Ze:Jw;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(eE)}const nn=0,b=1,j=2,le=3,Et=4,jn=5,Pe=6,ar=7,he=8,Vi=9,ji=10,H=11,uu=12,ho=13,Bf=14,ur=15,ke=16,po=17,lr=18,Vt=19,go=20,Uf=21,ie=22,lu=1,$f=2,Bi=7,Ui=8,cr=9,Ue=10;function ot(e){return Array.isArray(e)&&"object"==typeof e[lu]}function bt(e){return Array.isArray(e)&&!0===e[lu]}function cu(e){return 0!=(4&e.flags)}function mo(e){return e.componentOffset>-1}function $i(e){return 1==(1&e.flags)}function St(e){return!!e.template}function nE(e){return 0!=(256&e[j])}function Bn(e,t){return e.hasOwnProperty(tn)?e[tn]:null}class iE{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function gt(){return zf}function zf(e){return e.type.prototype.ngOnChanges&&(e.setInput=aE),sE}function sE(){const e=qf(this),t=e?.current;if(t){const n=e.previous;if(n===en)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function aE(e,t,n,r){const o=this.declaredInputs[n],i=qf(e)||function uE(e,t){return e[Wf]=t}(e,{previous:en,current:null}),s=i.current||(i.current={}),a=i.previous,u=a[o];s[o]=new iE(u&&u.currentValue,t,a===en),e[r]=t}gt.ngInherit=!0;const Wf="__ngSimpleChanges__";function qf(e){return e[Wf]||null}const mt=function(e,t,n){};function Re(e){for(;Array.isArray(e);)e=e[nn];return e}function it(e,t){return Re(t[e.index])}function Yf(e,t){return e.data[t]}function st(e,t){const n=t[e];return ot(n)?n:n[nn]}function Gi(e){return 64==(64&e[j])}function Cn(e,t){return null==t?null:e[t]}function Qf(e){e[lr]=0}function fu(e,t){e[jn]+=t;let n=e,r=e[le];for(;null!==r&&(1===t&&1===n[jn]||-1===t&&0===n[jn]);)r[jn]+=t,n=r,r=r[le]}const k={lFrame:ah(null),bindingsEnabled:!0};function Jf(){return k.bindingsEnabled}function D(){return k.lFrame.lView}function W(){return k.lFrame.tView}function Ne(){let e=eh();for(;null!==e&&64===e.type;)e=e.parent;return e}function eh(){return k.lFrame.currentTNode}function jt(e,t){const n=k.lFrame;n.currentTNode=e,n.isParent=t}function hu(){return k.lFrame.isParent}function fr(){return k.lFrame.bindingIndex++}function EE(e,t){const n=k.lFrame;n.bindingIndex=n.bindingRootIndex=e,gu(t)}function gu(e){k.lFrame.currentDirectiveIndex=e}function yu(e){k.lFrame.currentQueryIndex=e}function SE(e){const t=e[b];return 2===t.type?t.declTNode:1===t.type?e[Pe]:null}function ih(e,t,n){if(n&x.SkipSelf){let o=t,i=e;for(;!(o=o.parent,null!==o||n&x.Host||(o=SE(i),null===o||(i=i[ur],10&o.type))););if(null===o)return!1;t=o,e=i}const r=k.lFrame=sh();return r.currentTNode=t,r.lView=e,!0}function vu(e){const t=sh(),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 sh(){const e=k.lFrame,t=null===e?null:e.child;return null===t?ah(e):t}function ah(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 uh(){const e=k.lFrame;return k.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const lh=uh;function Du(){const e=uh();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 He(){return k.lFrame.selectedIndex}function Un(e){k.lFrame.selectedIndex=e}function ae(){const e=k.lFrame;return Yf(e.tView,e.selectedIndex)}function zi(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[u]<0&&(e[lr]+=65536),(a>11>16&&(3&e[j])===t){e[j]+=2048,mt(4,a,i);try{i.call(a)}finally{mt(5,a,i)}}}else{mt(4,a,i);try{i.call(a)}finally{mt(5,a,i)}}}const hr=-1;class vo{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function wu(e,t,n){let r=0;for(;rt){s=i-1;break}}}for(;i>16}(e),r=t;for(;n>0;)r=r[ur],n--;return r}let Eu=!0;function Yi(e){const t=Eu;return Eu=e,t}const gh=255,mh=5;let jE=0;const Bt={};function Qi(e,t){const n=yh(e,t);if(-1!==n)return n;const r=t[b];r.firstCreatePass&&(e.injectorIndex=t.length,bu(r.data,e),bu(t,null),bu(r.blueprint,null));const o=Su(e,t),i=e.injectorIndex;if(ph(o)){const s=Ki(o),a=Zi(o,t),u=a[b].data;for(let l=0;l<8;l++)t[i+l]=a[s+l]|u[s+l]}return t[i+8]=o,i}function bu(e,t){e.push(0,0,0,0,0,0,0,0,t)}function yh(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Su(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=bh(o),null===r)return hr;if(n++,o=o[ur],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return hr}function Mu(e,t,n){!function BE(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(fo)&&(r=n[fo]),null==r&&(r=n[fo]=jE++);const o=r&gh;t.data[e+(o>>mh)]|=1<=0?t&gh:GE:t}(n);if("function"==typeof i){if(!ih(t,e,r))return r&x.Host?vh(o,0,r):Dh(t,n,r,o);try{const s=i(r);if(null!=s||r&x.Optional)return s;Ni()}finally{lh()}}else if("number"==typeof i){let s=null,a=yh(e,t),u=hr,l=r&x.Host?t[ke][Pe]:null;for((-1===a||r&x.SkipSelf)&&(u=-1===a?Su(e,t):t[a+8],u!==hr&&Eh(r,!1)?(s=t[b],a=Ki(u),t=Zi(u,t)):a=-1);-1!==a;){const c=t[b];if(wh(i,a,c.data)){const d=$E(a,t,n,s,r,l);if(d!==Bt)return d}u=t[a+8],u!==hr&&Eh(r,t[b].data[a+8]===l)&&wh(i,a,t)?(s=c,a=Ki(u),t=Zi(u,t)):a=-1}}return o}function $E(e,t,n,r,o,i){const s=t[b],a=s.data[e+8],c=function Xi(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&&St(h)&&h.type===n)return u}return null}(a,s,n,null==r?mo(a)&&Eu:r!=s&&0!=(3&a.type),o&x.Host&&i===a);return null!==c?$n(t,s,c,a):Bt}function $n(e,t,n,r){let o=e[n];const i=t.data;if(function PE(e){return e instanceof vo}(o)){const s=o;s.resolving&&function Ow(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new C(-200,`Circular dependency in DI detected for ${e}${n}`)}(function K(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=Yi(s.canSeeViewProviders);s.resolving=!0;const u=s.injectImpl?pt(s.injectImpl):null;ih(e,r,x.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&function FE(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){const s=zf(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,o),i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,i))}(n,i[n],t)}finally{null!==u&&pt(u),Yi(a),s.resolving=!1,lh()}}return o}function wh(e,t,n){return!!(n[t+(e>>mh)]&1<{const t=e.prototype.constructor,n=t[tn]||Iu(t),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const i=o[tn]||Iu(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Iu(e){return Ja(e)?()=>{const t=Iu(N(e));return t&&t()}:Bn(e)}function bh(e){const t=e[b],n=t.type;return 2===n?t.declTNode:1===n?e[Pe]:null}const mr="__parameters__";function vr(e,t,n){return Jt(()=>{const r=function Au(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(mr)?u[mr]:Object.defineProperty(u,mr,{value:[]})[mr];for(;d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(s),u}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}class S{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=I({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Hn(e,t){e.forEach(n=>Array.isArray(n)?Hn(n,t):t(n))}function Mh(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function es(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function at(e,t,n){let r=Dr(e,t);return r>=0?e[1|r]=n:(r=~r,function ZE(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 Ru(e,t){const n=Dr(e,t);if(n>=0)return e[1|n]}function Dr(e,t){return function Ih(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<((Ye=Ye||{})[Ye.Important=1]="Important",Ye[Ye.DashCase=2]="DashCase",Ye))();const ku=new Map;let yb=0;const Vu="__ngContext__";function Le(e,t){ot(t)?(e[Vu]=t[go],function Db(e){ku.set(e[go],e)}(t)):e[Vu]=t}let ju;function Bu(e,t){return ju(e,t)}function Ao(e){const t=e[le];return bt(t)?t[le]:t}function Uu(e){return qh(e[ho])}function $u(e){return qh(e[Et])}function qh(e){for(;null!==e&&!bt(e);)e=e[Et];return e}function Cr(e,t,n,r,o){if(null!=r){let i,s=!1;bt(r)?i=r:ot(r)&&(s=!0,r=r[nn]);const a=Re(r);0===e&&null!==n?null==o?Jh(t,n,a):Gn(t,n,a,o||null,!0):1===e&&null!==n?Gn(t,n,a,o||null,!0):2===e?function Zu(e,t,n){const r=os(e,t);r&&function jb(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=i&&function $b(e,t,n,r,o){const i=n[Bi];i!==Re(n)&&Cr(t,e,r,i,o);for(let a=Ue;a0&&(e[n-1][Et]=r[Et]);const i=es(e,Ue+t);!function Nb(e,t){To(e,t,t[H],2,null,null),t[nn]=null,t[Pe]=null}(r[b],r);const s=i[Vt];null!==s&&s.detachView(i[b]),r[le]=null,r[Et]=null,r[j]&=-65}return r}function Yh(e,t){if(!(128&t[j])){const n=t[H];n.destroyNode&&To(e,t,n,3,null,null),function Ob(e){let t=e[ho];if(!t)return Wu(e[b],e);for(;t;){let n=null;if(ot(t))n=t[ho];else{const r=t[Ue];r&&(n=r)}if(!n){for(;t&&!t[Et]&&t!==e;)ot(t)&&Wu(t[b],t),t=t[le];null===t&&(t=e),ot(t)&&Wu(t[b],t),n=t&&t[Et]}t=n}}(t)}}function Wu(e,t){if(!(128&t[j])){t[j]&=-65,t[j]|=128,function Vb(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===Lt.None||i===Lt.Emulated)return null}return it(r,n)}}(e,t.parent,n)}function Gn(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Jh(e,t,n){e.appendChild(t,n)}function ep(e,t,n,r,o){null!==r?Gn(e,t,n,r,o):Jh(e,t,n)}function os(e,t){return e.parentNode(t)}let qu,Xu,rp=function np(e,t,n){return 40&e.type?it(e,n):null};function is(e,t,n,r){const o=Qh(e,r,t),i=t[H],a=function tp(e,t,n){return rp(e,t,n)}(r.parent||t[Pe],r,t);if(null!=o)if(Array.isArray(n))for(let u=0;u{const s=i;ol(s,n,[],r)&&(o||(o=[]),o.push(s))}),void 0!==o&&Ip(o,n),n}function Ip(e,t){for(let n=0;n{t.push(i)})}}function ol(e,t,n,r){if(!(e=N(e)))return!1;let o=null,i=Nf(e);const s=!i&&Y(e);if(i||s){if(s&&!s.standalone)return!1;o=e}else{const u=e.ngModule;if(i=Nf(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)ol(l,t,n,r)}}else{if(!i)return!1;{if(null!=i.imports&&!a){let l;r.add(o);try{Hn(i.imports,c=>{ol(c,t,n,r)&&(l||(l=[]),l.push(c))})}finally{}void 0!==l&&Ip(l,t)}if(!a){const l=Bn(o)||(()=>new o);t.push({provide:o,useFactory:l,deps:q},{provide:bp,useValue:o,multi:!0},{provide:cs,useValue:()=>M(o),multi:!0})}const u=i.providers;null==u||a||il(u,c=>{t.push(c)})}}return o!==e&&void 0!==e.providers}function il(e,t){for(let n of e)eu(n)&&(n=n.\u0275providers),Array.isArray(n)?il(n,t):t(n)}const DS=X({provide:String,useValue:X});function sl(e){return null!==e&&"object"==typeof e&&DS in e}function zn(e){return"function"==typeof e}const al=new S("Set Injector scope."),ds={},CS={};let ul;function fs(){return void 0===ul&&(ul=new Sp),ul}class Ut{}class Rp extends Ut{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,cl(t,s=>this.processProvider(s)),this.records.set(Ep,Er(void 0,this)),o.has("environment")&&this.records.set(Ut,Er(void 0,this));const i=this.records.get(al);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(bp.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=ir(this),r=pt(void 0);try{return t()}finally{ir(n),pt(r)}}get(t,n=uo,r=x.Default){this.assertNotDestroyed(),r=Pi(r);const o=ir(this),i=pt(void 0);try{if(!(r&x.SkipSelf)){let a=this.records.get(t);if(void 0===a){const u=function MS(e){return"function"==typeof e||"object"==typeof e&&e instanceof S}(t)&&xi(t);a=u&&this.injectableDefInScope(u)?Er(ll(t),ds):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&x.Self?fs():this.parent).get(t,n=r&x.Optional&&n===uo?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[Oi]=s[Oi]||[]).unshift(te(t)),o)throw s;return function Zw(e,t,n,r){const o=e[Oi];throw t[Of]&&o.unshift(t[Of]),e.message=function Yw(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&e.charAt(1)==Ww?e.slice(2):e;let o=te(t);if(Array.isArray(t))o=t.map(te).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):te(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(zw,"\n ")}`}("\n"+e.message,o,n,r),e[Gw]=o,e[Oi]=null,e}(s,t,"R3InjectorError",this.source)}throw s}finally{pt(i),ir(o)}}resolveInjectorInitializers(){const t=ir(this),n=pt(void 0);try{const r=this.get(cs.multi,q,x.Self);for(const o of r)o()}finally{ir(t),pt(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(te(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new C(205,!1)}processProvider(t){let n=zn(t=N(t))?t:N(t&&t.provide);const r=function ES(e){return sl(e)?Er(void 0,e.useValue):Er(Np(e),ds)}(t);if(zn(t)||!0!==t.multi)this.records.get(n);else{let o=this.records.get(n);o||(o=Er(void 0,ds,!0),o.factory=()=>ou(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===ds&&(n.value=CS,n.value=n.factory()),"object"==typeof n.value&&n.value&&function SS(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 ll(e){const t=xi(e),n=null!==t?t.factory:Bn(e);if(null!==n)return n;if(e instanceof S)throw new C(204,!1);if(e instanceof Function)return function wS(e){const t=e.length;if(t>0)throw function wo(e,t){const n=[];for(let r=0;rn.factory(e):()=>new e}(e);throw new C(204,!1)}function Np(e,t,n){let r;if(zn(e)){const o=N(e);return Bn(o)||ll(o)}if(sl(e))r=()=>N(e.useValue);else if(function Tp(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...ou(e.deps||[]));else if(function Ap(e){return!(!e||!e.useExisting)}(e))r=()=>M(N(e.useExisting));else{const o=N(e&&(e.useClass||e.provide));if(!function bS(e){return!!e.deps}(e))return Bn(o)||ll(o);r=()=>new o(...ou(e.deps))}return r}function Er(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function cl(e,t){for(const n of e)Array.isArray(n)?cl(n,t):n&&eu(n)?cl(n.\u0275providers,t):t(n)}class IS{}class xp{}class TS{resolveComponentFactory(t){throw function AS(e){const t=Error(`No component factory found for ${te(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let Fo=(()=>{class e{}return e.NULL=new TS,e})();function RS(){return br(Ne(),D())}function br(e,t){return new ut(it(e,t))}let ut=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=RS,e})();class Op{}let an=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function xS(){const e=D(),n=st(Ne().index,e);return(ot(n)?n:e)[H]}(),e})(),FS=(()=>{class e{}return e.\u0275prov=I({token:e,providedIn:"root",factory:()=>null}),e})();class Oo{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const OS=new Oo("15.2.5"),dl={},fl="ngOriginalError";function hl(e){return e[fl]}class Sr{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&&hl(t);for(;n&&hl(n);)n=hl(n);return n||null}}function un(e){return e instanceof Function?e():e}function kp(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 Lp="ng-template";function zS(e,t,n){let r=0,o=!0;for(;ri?"":o[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==kp(h,l,0)||2&r&&l!==f){if(Mt(r))return!1;s=!0}}}}else{if(!s&&!Mt(r)&&!Mt(u))return!1;if(s&&Mt(u))continue;s=!1,r=u|1&r}}return Mt(r)||s}function Mt(e){return 0==(1&e)}function KS(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&&!Mt(s)&&(t+=Bp(i,o),o=""),r=s,i=i||!Mt(r);n++}return""!==o&&(t+=Bp(i,o)),t}const L={};function pl(e){Up(W(),D(),He()+e,!1)}function Up(e,t,n,r){if(!r)if(3==(3&t[j])){const i=e.preOrderCheckHooks;null!==i&&Wi(t,i,n)}else{const i=e.preOrderHooks;null!==i&&qi(t,i,0,n)}Un(n)}function zp(e,t=null,n=null,r){const o=Wp(e,t,n,r);return o.resolveInjectorInitializers(),o}function Wp(e,t=null,n=null,r,o=new Set){const i=[n||q,vS(e)];return r=r||("object"==typeof e?void 0:te(e)),new Rp(i,t||fs(),r||null,o)}let $t=(()=>{class e{static create(n,r){if(Array.isArray(n))return zp({name:""},r,n,"");{const o=n.name??"";return zp({name:o},n.parent,n.providers,o)}}}return e.THROW_IF_NOT_FOUND=uo,e.NULL=new Sp,e.\u0275prov=I({token:e,providedIn:"any",factory:()=>M(Ep)}),e.__NG_ELEMENT_ID__=-1,e})();function _(e,t=x.Default){const n=D();return null===n?M(e,t):_h(Ne(),n,N(e),t)}function eg(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;rie&&Up(e,t,ie,!1),mt(s?2:0,o),n(r,o)}finally{Un(i),mt(s?3:1,o)}}function Cl(e,t,n){if(cu(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,Po(e,n,o.hostVars,L),o)}function Ht(e,t,n,r,o,i){const s=it(e,t);!function Il(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[H],s,i,e.value,n,r,o)}function jM(e,t,n,r,o,i){const s=i[t];if(null!==s){const a=r.setInput;for(let u=0;u0&&Al(n)}}function Al(e){for(let r=Uu(e);null!==r;r=$u(r))for(let o=Ue;o0&&Al(i)}const n=e[b].components;if(null!==n)for(let r=0;r0&&Al(o)}}function GM(e,t){const n=st(t,e),r=n[b];(function zM(e,t){for(let n=t.length;n-1&&(zu(t,r),es(n,r))}this._attachedToViewContainer=!1}Yh(this._lView[b],this._lView)}onDestroy(t){!function rg(e,t,n,r){const o=cg(t);null===n?o.push(r):(o.push(n),e.firstCreatePass&&dg(e).push(r,o.length-1))}(this._lView[b],this._lView,null,t)}markForCheck(){Tl(this._cdRefInjectingView||this._lView)}detach(){this._lView[j]&=-65}reattach(){this._lView[j]|=64}detectChanges(){ys(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 Fb(e,t){To(e,t,t[H],2,null,null)}(this._lView[b],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new C(902,!1);this._appRef=t}}class WM extends ko{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;ys(t[b],t,t[he],!1)}checkNoChanges(){}get context(){return null}}class pg extends Fo{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=Y(t);return new Lo(n,this.ngModule)}}function gg(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class KM{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=Pi(r);const o=this.injector.get(t,dl,r);return o!==dl||n===dl?o:this.parentInjector.get(t,n,r)}}class Lo extends xp{get inputs(){return gg(this.componentDef.inputs)}get outputs(){return gg(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function eM(e){return e.map(JS).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,o){let i=(o=o||this.ngModule)instanceof Ut?o:o?.injector;i&&null!==this.componentDef.getStandaloneInjector&&(i=this.componentDef.getStandaloneInjector(i)||i);const s=i?new KM(t,i):t,a=s.get(Op,null);if(null===a)throw new C(407,!1);const u=s.get(FS,null),l=a.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",d=r?function bM(e,t,n){return e.selectRootElement(t,n===Lt.ShadowDom)}(l,r,this.componentDef.encapsulation):Gu(l,c,function qM(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(c)),f=this.componentDef.onPush?288:272,h=bl(0,null,null,1,0,null,null,null,null,null),p=ps(null,h,null,f,null,null,a,l,u,s,null);let g,m;vu(p);try{const v=this.componentDef;let w,y=null;v.findHostDirectiveDefs?(w=[],y=new Map,v.findHostDirectiveDefs(v,w,y),w.push(v)):w=[v];const R=function YM(e,t){const n=e[b],r=ie;return e[r]=t,Ar(n,r,2,"#host",null)}(p,d),J=function QM(e,t,n,r,o,i,s,a){const u=o[b];!function XM(e,t,n,r){for(const o of e)t.mergedAttrs=Do(t.mergedAttrs,o.hostAttrs);null!==t.mergedAttrs&&(vs(t,t.mergedAttrs,!0),null!==n&&up(r,n,t))}(r,e,t,s);const l=i.createRenderer(t,n),c=ps(o,ng(n),null,n.onPush?32:16,o[e.index],e,i,l,a||null,null,null);return u.firstCreatePass&&Ml(u,e,r.length-1),ms(o,c),o[e.index]=c}(R,d,v,w,p,a,l);m=Yf(h,ie),d&&function eI(e,t,n,r){if(r)wu(e,n,["ng-version",OS.full]);else{const{attrs:o,classes:i}=function tM(e){const t=[],n=[];let r=1,o=2;for(;r0&&ap(e,n,i.join(" "))}}(l,v,d,r),void 0!==n&&function tI(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=Do(o.hostAttrs,n=Do(n,o.hostAttrs))}}(r)}function xl(e){return e===en?{}:e===q?[]:e}function oI(e,t){const n=e.viewQuery;e.viewQuery=n?(r,o)=>{t(r,o),n(r,o)}:t}function iI(e,t){const n=e.contentQueries;e.contentQueries=n?(r,o,i)=>{t(r,o,i),n(r,o,i)}:t}function sI(e,t){const n=e.hostBindings;e.hostBindings=n?(r,o)=>{t(r,o),n(r,o)}:t}function Ve(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function zt(e,t,n,r){const o=D();return Ve(o,fr(),t)&&(W(),Ht(ae(),o,e,t,n,r)),zt}function ws(e,t,n){const r=D();return Ve(r,fr(),t)&&function lt(e,t,n,r,o,i,s,a){const u=it(t,n);let c,l=t.inputs;!a&&null!=l&&(c=l[r])?(Nl(e,n,c,r,o),mo(t)&&sg(n,t.index)):3&t.type&&(r=function IM(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(),ae(),r,e,t,r[H],n,!1),ws}function Ol(e,t,n,r,o){const s=o?"class":"style";Nl(e,n,t.inputs[s],s,r)}function Vr(e,t,n,r){const o=D(),i=W(),s=ie+e,a=o[H],u=i.firstCreatePass?function DI(e,t,n,r,o,i){const s=t.consts,u=Ar(t,e,2,r,Cn(s,o));return function Sl(e,t,n,r){if(Jf()){const o=null===r?null:{"":-1},i=function FM(e,t){const n=e.directiveRegistry;let r=null,o=null;if(n)for(let i=0;is(Re(R[r.index])):r.index;let y=null;if(!s&&a&&(y=function wI(e,t,n,r){const o=e.cleanup;if(null!=o)for(let i=0;iu?a[u]:null}"string"==typeof s&&(i+=2)}return null}(e,t,o,r.index)),null!==y)(y.__ngLastListenerFn__||y).__ngNextListenerFn__=i,y.__ngLastListenerFn__=i,f=!1;else{i=Pg(r,t,c,i,!1);const R=n.listen(m,o,i);d.push(i,R),l&&l.push(o,w,v,v+1)}}else i=Pg(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?st(e.index,t):t);let u=Og(t,n,r,s),l=i.__ngNextListenerFn__;for(;l;)u=Og(t,n,l,s)&&u,l=l.__ngNextListenerFn__;return o&&!1===u&&(s.preventDefault(),s.returnValue=!1),u}}function bs(e,t){return e<<17|t<<2}function En(e){return e>>17&32767}function jl(e){return 2|e}function qn(e){return(131068&e)>>2}function Bl(e,t){return-131069&e|t<<2}function Ul(e){return 1|e}function zg(e,t,n,r,o){const i=e[n+1],s=null===t;let a=r?En(i):qn(i),u=!1;for(;0!==a&&(!1===u||s);){const c=e[a+1];xI(e[a],t)&&(u=!0,e[a+1]=r?Ul(c):jl(c)),a=r?En(c):qn(c)}u&&(e[n+1]=r?jl(i):Ul(i))}function xI(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Dr(e,t)>=0}function Ss(e,t){return function It(e,t,n,r){const o=D(),i=W(),s=function on(e){const t=k.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}(2);i.firstUpdatePass&&function em(e,t,n,r){const o=e.data;if(null===o[n+1]){const i=o[He()],s=function Jg(e,t){return t>=e.expandoStartIndex}(e,n);(function om(e,t){return 0!=(e.flags&(t?8:16))})(i,r)&&null===t&&!s&&(t=!1),t=function UI(e,t,n,r){const o=function mu(e){const t=k.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let i=r?t.residualClasses:t.residualStyles;if(null===o)0===(r?t.classBindings:t.styleBindings)&&(n=Uo(n=$l(null,e,t,n,r),t.attrs,r),i=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==o)if(n=$l(o,e,t,n,r),null===i){let u=function $I(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==qn(r))return e[En(r)]}(e,t,r);void 0!==u&&Array.isArray(u)&&(u=$l(null,e,t,u[1],r),u=Uo(u,t.attrs,r),function HI(e,t,n,r){e[En(n?t.classBindings:t.styleBindings)]=r}(e,t,r,u))}else i=function GI(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=En(e[a+1]);e[r+1]=bs(f,a),0!==f&&(e[f+1]=Bl(e[f+1],r)),e[a+1]=function AI(e,t){return 131071&e|t<<17}(e[a+1],r)}else e[r+1]=bs(a,0),0!==a&&(e[a+1]=Bl(e[a+1],r)),a=r;else e[r+1]=bs(u,0),0===a?a=r:e[u+1]=Bl(e[u+1],r),u=r;l&&(e[r+1]=jl(e[r+1])),zg(e,c,r,!0),zg(e,c,r,!1),function NI(e,t,n,r,o){const i=o?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof t&&Dr(i,t)>=0&&(n[r+1]=Ul(n[r+1]))}(t,c,e,r,i),s=bs(a,u),i?t.classBindings=s:t.styleBindings=s}(o,i,t,n,s,r)}}(i,e,s,r),t!==L&&Ve(o,s,t)&&function nm(e,t,n,r,o,i,s,a){if(!(3&t.type))return;const u=e.data,l=u[a+1],c=function TI(e){return 1==(1&e)}(l)?rm(u,t,n,o,qn(l),s):void 0;Ms(c)||(Ms(i)||function II(e){return 2==(2&e)}(l)&&(i=rm(u,null,n,o,a,s)),function Hb(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=-1===r.indexOf("-")?void 0:Ye.DashCase;null==o?e.removeStyle(n,r,i):("string"==typeof o&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=Ye.Important),e.setStyle(n,r,o,i))}}(r,s,function Hi(e,t){return Re(t[e])}(He(),n),o,i))}(i,i.data[He()],o,o[H],e,o[s+1]=function qI(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=te(function wn(e){return e instanceof hp?e.changingThisBreaksApplicationSecurity:e}(e)))),e}(t,n),r,s)}(e,t,null,!0),Ss}function $l(e,t,n,r,o){let i=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const u=e[o],l=Array.isArray(u),c=l?u[1]:u,d=null===c;let f=n[o+1];f===L&&(f=d?q:void 0);let h=d?Ru(f,r):c===r?f:void 0;if(l&&!Ms(h)&&(h=Ru(u,r)),Ms(h)&&(a=h,s))return a;const p=e[o+1];o=s?En(p):qn(p)}if(null!==t){let u=i?t.residualClasses:t.residualStyles;null!=u&&(a=Ru(u,r))}return a}function Ms(e){return void 0!==e}const Ur="en-US";let Im=Ur;function Wl(e,t,n,r,o){if(e=N(e),Array.isArray(e))for(let i=0;i>20;if(zn(e)||!e.multi){const h=new vo(u,o,_),p=Kl(a,t,o?c:c+f,d);-1===p?(Mu(Qi(l,s),i,a),ql(i,e,t.length),t.push(a),l.directiveStart++,l.directiveEnd++,o&&(l.providerIndexes+=1048576),n.push(h),s.push(h)):(n[p]=h,s[p]=h)}else{const h=Kl(a,t,c+f,d),p=Kl(a,t,c,c+f),m=p>=0&&n[p];if(o&&!m||!o&&!(h>=0&&n[h])){Mu(Qi(l,s),i,a);const v=function hA(e,t,n,r,o){const i=new vo(e,n,_);return i.multi=[],i.index=t,i.componentProviders=0,Xm(i,o,r&&!n),i}(o?fA:dA,n.length,o,r,u);!o&&m&&(n[p].providerFactory=v),ql(i,e,t.length,0),t.push(a),l.directiveStart++,l.directiveEnd++,o&&(l.providerIndexes+=1048576),n.push(v),s.push(v)}else ql(i,e,h>-1?h:p,Xm(n[o?p:h],u,!o&&r));!o&&r&&m&&n[p].componentProviders++}}}function ql(e,t,n,r){const o=zn(t),i=function _S(e){return!!e.useClass}(t);if(o||i){const u=(i?N(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 Xm(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Kl(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>function cA(e,t,n){const r=W();if(r.firstCreatePass){const o=St(e);Wl(n,r.data,r.blueprint,o,!0),Wl(t,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,t)}}class $r{}class Jm{}class ey extends $r{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new pg(this);const r=rt(t);this._bootstrapComponents=un(r.bootstrap),this._r3Injector=Wp(t,n,[{provide:$r,useValue:this},{provide:Fo,useValue:this.componentFactoryResolver}],te(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 Yl extends Jm{constructor(t){super(),this.moduleType=t}create(t){return new ey(this.moduleType,t)}}class gA extends $r{constructor(t,n,r){super(),this.componentFactoryResolver=new pg(this),this.instance=null;const o=new Rp([...t,{provide:$r,useValue:this},{provide:Fo,useValue:this.componentFactoryResolver}],n||fs(),r,new Set(["environment"]));this.injector=o,o.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function Ns(e,t,n=null){return new gA(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=Mp(0,n.type),o=r.length>0?Ns([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(M(Ut))}),e})();function ty(e){e.getStandaloneInjector=t=>t.get(mA).getOrCreateStandaloneInjector(e)}function Xl(e){return t=>{setTimeout(e,void 0,t)}}const de=class $A extends Xt{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=Xl(i),o&&(o=Xl(o)),s&&(s=Xl(s)));const a=super.subscribe({next:o,error:i,complete:s});return t instanceof et&&t.add(a),a}};let Tt=(()=>{class e{}return e.__NG_ELEMENT_ID__=qA,e})();function qA(){return function gy(e,t){let n;const r=t[e.index];if(bt(r))n=r;else{let o;if(8&e.type)o=Re(r);else{const i=t[H];o=i.createComment("");const s=it(e,t);Gn(i,os(i,s),o,function Bb(e,t){return e.nextSibling(t)}(i,s),!1)}t[e.index]=n=function lg(e,t,n,r){return[e,!0,!1,t,null,0,r,n,null,null]}(r,t,o,e),ms(t,n)}return new hy(n,e,t)}(Ne(),D())}const KA=Tt,hy=class extends KA{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return br(this._hostTNode,this._hostLView)}get injector(){return new pr(this._hostTNode,this._hostLView)}get parentInjector(){const t=Su(this._hostTNode,this._hostLView);if(ph(t)){const n=Zi(t,this._hostLView),r=Ki(t);return new pr(n[b].data[r+8],n)}return new pr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=py(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-Ue}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 Co(e){return"function"==typeof e}(t);let a;if(s)a=n;else{const d=n||{};a=d.index,r=d.injector,o=d.projectableNodes,i=d.environmentInjector||d.ngModuleRef}const u=s?t:new Lo(Y(t)),l=r||this.parentInjector;if(!i&&null==u.ngModule){const f=(s?l:this.parentInjector).get(Ut,null);f&&(i=f)}const c=u.create(l,o,void 0,i);return this.insert(c.hostView,a),c}insert(t,n){const r=t._lView,o=r[b];if(function hE(e){return bt(e[le])}(r)){const c=this.indexOf(t);if(-1!==c)this.detach(c);else{const d=r[le],f=new hy(d,d[Pe],d[le]);f.detach(f.indexOf(t))}}const i=this._adjustIndex(n),s=this._lContainer;!function Pb(e,t,n,r){const o=Ue+r,i=n.length;r>0&&(n[o-1][Et]=t),r{class e{constructor(n){this.appInits=n,this.resolve=Os,this.reject=Os,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,o)=>{this.resolve=r,this.reject=o})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let o=0;o{i.subscribe({complete:a,error:u})});n.push(s)}}Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(M(Ps,8))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Yo=new S("AppId",{providedIn:"root",factory:function Uy(){return`${dc()}${dc()}${dc()}`}});function dc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const $y=new S("Platform Initializer"),fc=new S("Platform ID",{providedIn:"platform",factory:()=>"unknown"});let wT=(()=>{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 dn=new S("LocaleId",{providedIn:"root",factory:()=>$(dn,x.Optional|x.SkipSelf)||function ET(){return typeof $localize<"u"&&$localize.locale||Ur}()});class ST{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let Hy=(()=>{class e{compileModuleSync(n){return new Yl(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),i=un(rt(n).declarations).reduce((s,a)=>{const u=Y(a);return u&&s.push(new Lo(u)),s},[]);return new ST(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 AT=(()=>Promise.resolve(0))();function hc(e){typeof Zone>"u"?AT.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class pe{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 TT(){let e=oe.requestAnimationFrame,t=oe.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 xT(e){const t=()=>{!function NT(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(oe,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,gc(e),e.isCheckStableRunning=!0,pc(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),gc(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{try{return Wy(e),n.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&t(),qy(e)}},onInvoke:(n,r,o,i,s,a,u)=>{try{return Wy(e),n.invoke(o,i,s,a,u)}finally{e.shouldCoalesceRunChangeDetection&&t(),qy(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,gc(e),pc(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(!pe.isInAngularZone())throw new C(909,!1)}static assertNotInAngularZone(){if(pe.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,RT,Os,Os);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 RT={};function pc(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 gc(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Wy(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function qy(e){e._nesting--,pc(e)}class FT{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 Ky=new S(""),Ls=new S("");let vc,mc=(()=>{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,vc||(function OT(e){vc=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:()=>{pe.assertNotInAngularZone(),hc(()=>{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())hc(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:i,updateCb:o})}whenStable(n,r,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,o){return[]}}return e.\u0275fac=function(n){return new(n||e)(M(pe),M(yc),M(Ls))},e.\u0275prov=I({token:e,factory:e.\u0275fac}),e})(),yc=(()=>{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 vc?.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 fn=!1;let bn=null;const Zy=new S("AllowMultipleToken"),Dc=new S("PlatformDestroyListeners"),Yy=new S("appBootstrapListener");class Qy{constructor(t,n){this.name=t,this.token=n}}function Jy(e,t,n=[]){const r=`Platform: ${t}`,o=new S(r);return(i=[])=>{let s=_c();if(!s||s.injector.get(Zy,!1)){const a=[...n,...i,{provide:o,useValue:!0}];e?e(a):function LT(e){if(bn&&!bn.get(Zy,!1))throw new C(400,!1);bn=e;const t=e.get(tv);(function Xy(e){const t=e.get($y,null);t&&t.forEach(n=>n())})(e)}(function ev(e=[],t){return $t.create({name:t,providers:[{provide:al,useValue:"platform"},{provide:Dc,useValue:new Set([()=>bn=null])},...e]})}(a,r))}return function jT(e){const t=_c();if(!t)throw new C(401,!1);return t}()}}function _c(){return bn?.get(tv)??null}let tv=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const o=function rv(e,t){let n;return n="noop"===e?new FT:("zone.js"===e?void 0:e)||new pe(t),n}(r?.ngZone,function nv(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!e||!e.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!e||!e.ngZoneRunCoalescing)||!1}}(r)),i=[{provide:pe,useValue:o}];return o.run(()=>{const s=$t.create({providers:i,parent:this.injector,name:n.moduleType.name}),a=n.create(s),u=a.injector.get(Sr,null);if(!u)throw new C(402,!1);return o.runOutsideAngular(()=>{const l=o.onError.subscribe({next:c=>{u.handleError(c)}});a.onDestroy(()=>{js(this._modules,a),l.unsubscribe()})}),function ov(e,t,n){try{const r=n();return Bo(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(u,o,()=>{const l=a.injector.get(ks);return l.runInitializers(),l.donePromise.then(()=>(function Am(e){ft(e,"Expected localeId to be defined"),"string"==typeof e&&(Im=e.toLowerCase().replace(/_/g,"-"))}(a.injector.get(dn,Ur)||Ur),this._moduleDoBootstrap(a),a))})})}bootstrapModule(n,r=[]){const o=iv({},r);return function PT(e,t,n){const r=new Yl(n);return Promise.resolve(r)}(0,0,n).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(n){const r=n.injector.get(Vs);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(Dc,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(M($t))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function iv(e,t){return Array.isArray(t)?t.reduce(iv,e):{...e,...t}}let Vs=(()=>{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 fe(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new fe(a=>{let u;this._zone.runOutsideAngular(()=>{u=this._zone.onStable.subscribe(()=>{pe.assertNotInAngularZone(),hc(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const l=this._zone.onUnstable.subscribe(()=>{pe.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{u.unsubscribe(),l.unsubscribe()}});this.isStable=function Nw(...e){const t=ao(e),n=function bw(e,t){return"number"==typeof Za(e)?e.pop():t}(e,1/0),r=e;return r.length?1===r.length?tt(r[0]):or(n)(_e(r,t)):Pt}(i,s.pipe(function xw(e={}){const{connector:t=(()=>new Xt),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 Se((g,m)=>{l++,!d&&!c&&f();const v=u=u??t();m.add(()=>{l--,0===l&&!d&&!c&&(a=Ya(p,o))}),v.subscribe(m),!s&&l>0&&(s=new so({next:w=>v.next(w),error:w=>{d=!0,f(),a=Ya(h,n,w),v.error(w)},complete:()=>{c=!0,f(),a=Ya(h,r),v.complete()}}),tt(g).subscribe(s))})(i)}}()))}bootstrap(n,r){const o=n instanceof xp;if(!this._injector.get(ks).done){!o&&function sr(e){const t=Y(e)||Oe(e)||Ze(e);return null!==t&&t.standalone}(n);throw new C(405,fn)}let s;s=o?n:this._injector.get(Fo).resolveComponentFactory(n),this.componentTypes.push(s.componentType);const a=function kT(e){return e.isBoundToModule}(s)?void 0:this._injector.get($r),l=s.create($t.NULL,[],r||s.selector,a),c=l.location.nativeElement,d=l.injector.get(Ky,null);return d?.registerApplication(c),l.onDestroy(()=>{this.detachView(l.hostView),js(this.components,l),d?.unregisterApplication(c)}),this._loadComponent(l),l}tick(){if(this._runningTick)throw new C(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;js(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(Yy,[]);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)(M(pe),M(Ut),M(Sr))},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 Bs=(()=>{class e{}return e.__NG_ELEMENT_ID__=UT,e})();function UT(e){return function $T(e,t,n){if(mo(e)&&!n){const r=st(e.index,t);return new ko(r,r)}return 47&e.type?new ko(t[ke],t):null}(Ne(),D(),16==(16&e))}const tR=Jy(null,"core",[]);let nR=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(M(Vs))},e.\u0275mod=wt({type:e}),e.\u0275inj=ht({}),e})();function zr(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}let Sc=null;function hn(){return Sc}class iR{}const We=new S("DocumentToken");let Mc=(()=>{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 sR(){return M(mv)}()},providedIn:"platform"}),e})();const aR=new S("Location Initialized");let mv=(()=>{class e extends Mc{constructor(n){super(),this._doc=n,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return hn().getBaseHref(this._doc)}onPopState(n){const r=hn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){const r=hn().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){yv()?this._history.pushState(n,r,o):this._location.hash=o}replaceState(n,r,o){yv()?this._history.replaceState(n,r,o):this._location.hash=o}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}}return e.\u0275fac=function(n){return new(n||e)(M(We))},e.\u0275prov=I({token:e,factory:function(){return function uR(){return new mv(M(We))}()},providedIn:"platform"}),e})();function yv(){return!!window.history.pushState}function Ic(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 vv(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 pn(e){return e&&"?"!==e[0]?"?"+e:e}let Yn=(()=>{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 $(_v)},providedIn:"root"}),e})();const Dv=new S("appBaseHref");let _v=(()=>{class e extends Yn{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??$(We).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 Ic(this._baseHref,n)}path(n=!1){const r=this._platformLocation.pathname+pn(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){const s=this.prepareExternalUrl(o+pn(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){const s=this.prepareExternalUrl(o+pn(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}}return e.\u0275fac=function(n){return new(n||e)(M(Mc),M(Dv,8))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),lR=(()=>{class e extends Yn{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=Ic(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+pn(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+pn(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}}return e.\u0275fac=function(n){return new(n||e)(M(Mc),M(Dv,8))},e.\u0275prov=I({token:e,factory:e.\u0275fac}),e})(),Ac=(()=>{class e{constructor(n){this._subject=new de,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;const r=this._locationStrategy.getBaseHref();this._basePath=function fR(e){if(new RegExp("^(https?:)?//").test(e)){const[,n]=e.split(/\/\/[^\/]+/);return n}return e}(vv(Cv(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+pn(r))}normalize(n){return e.stripTrailingSlash(function dR(e,t){if(!e||!t.startsWith(e))return t;const n=t.substring(e.length);return""===n||["/",";","?","#"].includes(n[0])?n:t}(this._basePath,Cv(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+pn(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+pn(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=pn,e.joinWithSlash=Ic,e.stripTrailingSlash=vv,e.\u0275fac=function(n){return new(n||e)(M(Yn))},e.\u0275prov=I({token:e,factory:function(){return function cR(){return new Ac(M(Yn))}()},providedIn:"root"}),e})();function Cv(e){return e.replace(/\/index.html$/,"")}function Rv(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 MN=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=ht({}),e})();let RN=(()=>{class e{}return e.\u0275prov=I({token:e,providedIn:"root",factory:()=>new NN(M(We),window)}),e})();class NN{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 xN(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=jv(this.window.history)||jv(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 jv(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}class Bv{}class ix extends iR{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class zc extends ix{static makeCurrent(){!function oR(e){Sc||(Sc=e)}(new zc)}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 sx(){return ti=ti||document.querySelector("base"),ti?ti.getAttribute("href"):null}();return null==n?null:function ax(e){ta=ta||document.createElement("a"),ta.setAttribute("href",e);const t=ta.pathname;return"/"===t.charAt(0)?t:`/${t}`}(n)}resetBaseElement(){ti=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Rv(document.cookie,t)}}let ta,ti=null;const zv=new S("TRANSITION_ID"),lx=[{provide:Ps,useFactory:function ux(e,t,n){return()=>{n.get(ks).donePromise.then(()=>{const r=hn(),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 na=new S("EventManagerPlugins");let ra=(()=>{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})(),ni=(()=>{class e extends qv{constructor(n){super(),this.doc=n,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(n){for(const r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){const r=this.styleRef;r.get(n)?.forEach(i=>i.remove()),r.delete(n)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(const r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}addStyleToHost(n,r){const o=this.doc.createElement("style");o.textContent=r,n.appendChild(o);const i=this.styleRef.get(r);i?i.push(o):this.styleRef.set(r,[o])}resetHostNodes(){const n=this.hostNodes;n.clear(),n.add(this.doc.head)}}return e.\u0275fac=function(n){return new(n||e)(M(We))},e.\u0275prov=I({token:e,factory:e.\u0275fac}),e})();const Wc={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/"},qc=/%COMP%/g,Yv=new S("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function Qv(e,t){return t.flat(100).map(n=>n.replace(qc,e))}function Xv(e){return t=>{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let Kc=(()=>{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 Zc(n)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;const o=this.getOrCreateRenderer(n,r);return o instanceof tD?o.applyToHost(n):o instanceof Yc&&o.applyStyles(),o}getOrCreateRenderer(n,r){const o=this.rendererByCompId;let i=o.get(r.id);if(!i){const s=this.eventManager,a=this.sharedStylesHost,u=this.removeStylesOnCompDestory;switch(r.encapsulation){case Lt.Emulated:i=new tD(s,a,r,this.appId,u);break;case Lt.ShadowDom:return new vx(s,a,n,r);default:i=new Yc(s,a,r,u)}i.onDestroy=()=>o.delete(r.id),o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return e.\u0275fac=function(n){return new(n||e)(M(ra),M(ni),M(Yo),M(Yv))},e.\u0275prov=I({token:e,factory:e.\u0275fac}),e})();class Zc{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,n){return n?document.createElementNS(Wc[n]||n,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,n){(eD(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(eD(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=Wc[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const o=Wc[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&(Ye.DashCase|Ye.Important)?t.style.setProperty(n,r,o&Ye.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&Ye.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,Xv(r)):this.eventManager.addEventListener(t,n,Xv(r))}}function eD(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class vx extends Zc{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=Qv(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 Yc extends Zc{constructor(t,n,r,o,i=r.id){super(t),this.sharedStylesHost=n,this.removeStylesOnCompDestory=o,this.rendererUsageCount=0,this.styles=Qv(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 tD extends Yc{constructor(t,n,r,o,i){const s=o+"-"+r.id;super(t,n,r,i,s),this.contentAttr=function gx(e){return"_ngcontent-%COMP%".replace(qc,e)}(s),this.hostAttr=function mx(e){return"_nghost-%COMP%".replace(qc,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 Dx=(()=>{class e extends Wv{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}}return e.\u0275fac=function(n){return new(n||e)(M(We))},e.\u0275prov=I({token:e,factory:e.\u0275fac}),e})();const nD=["alt","control","meta","shift"],_x={"\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"},Cx={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let wx=(()=>{class e extends Wv{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(()=>hn().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."),nD.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=_x[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"),nD.forEach(s=>{s!==o&&(0,Cx[s])(n)&&(i+=s+".")}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return e.\u0275fac=function(n){return new(n||e)(M(We))},e.\u0275prov=I({token:e,factory:e.\u0275fac}),e})();const Mx=Jy(tR,"browser",[{provide:fc,useValue:"browser"},{provide:$y,useValue:function Ex(){zc.makeCurrent()},multi:!0},{provide:We,useFactory:function Sx(){return function Kb(e){Xu=e}(document),document},deps:[]}]),iD=new S(""),sD=[{provide:Ls,useClass:class cx{addToWindow(t){oe.getAngularTestability=(r,o=!0)=>{const i=t.findTestabilityInTree(r,o);if(null==i)throw new Error("Could not find testability for element.");return i},oe.getAllAngularTestabilities=()=>t.getAllTestabilities(),oe.getAllAngularRootElements=()=>t.getAllRootElements(),oe.frameworkStabilizers||(oe.frameworkStabilizers=[]),oe.frameworkStabilizers.push(r=>{const o=oe.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?hn().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},deps:[]},{provide:Ky,useClass:mc,deps:[pe,yc,Ls]},{provide:mc,useClass:mc,deps:[pe,yc,Ls]}],aD=[{provide:al,useValue:"root"},{provide:Sr,useFactory:function bx(){return new Sr},deps:[]},{provide:na,useClass:Dx,multi:!0,deps:[We,pe,fc]},{provide:na,useClass:wx,multi:!0,deps:[We]},{provide:Kc,useClass:Kc,deps:[ra,ni,Yo,Yv]},{provide:Op,useExisting:Kc},{provide:qv,useExisting:ni},{provide:ni,useClass:ni,deps:[We]},{provide:ra,useClass:ra,deps:[na,pe]},{provide:Bv,useClass:dx,deps:[]},[]];let Ix=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:Yo,useValue:n.appId},{provide:zv,useExisting:Yo},lx]}}}return e.\u0275fac=function(n){return new(n||e)(M(iD,12))},e.\u0275mod=wt({type:e}),e.\u0275inj=ht({providers:[...aD,...sD],imports:[MN,nR]}),e})(),uD=(()=>{class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}}return e.\u0275fac=function(n){return new(n||e)(M(We))},e.\u0275prov=I({token:e,factory:function(n){let r=null;return r=n?new n:function Tx(){return new uD(M(We))}(),r},providedIn:"root"}),e})();typeof window<"u"&&window;const{isArray:Px}=Array,{getPrototypeOf:kx,prototype:Lx,keys:Vx}=Object;function dD(e){if(1===e.length){const t=e[0];if(Px(t))return{args:t,keys:null};if(function jx(e){return e&&"object"==typeof e&&kx(e)===Lx}(t)){const n=Vx(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}const{isArray:Bx}=Array;function fD(e){return U(t=>function Ux(e,t){return Bx(t)?e(...t):e(t)}(e,t))}function hD(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}let pD=(()=>{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)(_(an),_(ut))},e.\u0275dir=O({type:e}),e})(),Qn=(()=>{class e extends pD{}return e.\u0275fac=function(){let t;return function(r){return(t||(t=xe(e)))(r||e)}}(),e.\u0275dir=O({type:e,features:[Q]}),e})();const Kt=new S("NgValueAccessor"),Gx={provide:Kt,useExisting:ne(()=>oa),multi:!0},Wx=new S("CompositionEventMode");let oa=(()=>{class e extends pD{constructor(n,r,o){super(n,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function zx(){const e=hn()?hn().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)(_(an),_(ut),_(Wx,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&&Xe("input",function(i){return r._handleInput(i.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(i){return r._compositionEnd(i.target.value)})},features:[se([Gx]),Q]}),e})();const qx=!1;const je=new S("NgValidators"),In=new S("NgAsyncValidators");function DD(e){return function Mn(e){return null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}(e.value)?{required:!0}:null}function ia(e){return null}function SD(e){return null!=e}function MD(e){const t=Bo(e)?_e(e):e;if(qx&&!Ll(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 ID(e){let t={};return e.forEach(n=>{t=null!=n?{...t,...n}:t}),0===Object.keys(t).length?null:t}function AD(e,t){return t.map(n=>n(e))}function TD(e){return e.map(t=>function Zx(e){return!e.validate}(t)?t:n=>t.validate(n))}function Jc(e){return null!=e?function RD(e){if(!e)return null;const t=e.filter(SD);return 0==t.length?null:function(n){return ID(AD(n,t))}}(TD(e)):null}function ed(e){return null!=e?function ND(e){if(!e)return null;const t=e.filter(SD);return 0==t.length?null:function(n){return function $x(...e){const t=Sf(e),{args:n,keys:r}=dD(e),o=new fe(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?hD(r,a):a),i.complete())}))}});return t?o.pipe(fD(t)):o}(AD(n,t).map(MD)).pipe(U(ID))}}(TD(e)):null}function xD(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function td(e){return e?Array.isArray(e)?e:[e]:[]}function sa(e,t){return Array.isArray(e)?e.includes(t):e===t}function PD(e,t){const n=td(t);return td(e).forEach(o=>{sa(n,o)||n.push(o)}),n}function kD(e,t){return td(t).filter(n=>!sa(e,n))}class LD{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=Jc(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=ed(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 LD{get formDirective(){return null}get path(){return null}}class An extends LD{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class VD{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 jD=(()=>{class e extends VD{constructor(n){super(n)}}return e.\u0275fac=function(n){return new(n||e)(_(An,2))},e.\u0275dir=O({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){2&n&&Ss("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})(),BD=(()=>{class e extends VD{constructor(n){super(n)}}return e.\u0275fac=function(n){return new(n||e)(_(qe,10))},e.\u0275dir=O({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,r){2&n&&Ss("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},features:[Q]}),e})();function UD(e,t){return e?`with name: '${t}'`:`at index: ${t}`}const od=!1,ri="VALID",ua="INVALID",Wr="PENDING",oi="DISABLED";function id(e){return(la(e)?e.validators:e)||null}function sd(e,t){return(la(t)?t.asyncValidators:e)||null}function la(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class GD{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===ri}get invalid(){return this.status===ua}get pending(){return this.status==Wr}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(PD(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(PD(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(kD(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(kD(t,this._rawAsyncValidators))}hasValidator(t){return sa(this._rawValidators,t)}hasAsyncValidator(t){return sa(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=Wr,!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=ri,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===ri||this.status===Wr)&&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:ri}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=Wr,this._hasOwnPendingAsyncValidator=!0;const n=MD(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?ua:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Wr)?Wr:this._anyControlsHaveStatus(ua)?ua:ri}_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){la(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 nF(e){return Array.isArray(e)?Jc(e):e||null}(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=function rF(e){return Array.isArray(e)?ed(e):e||null}(this._rawAsyncValidators)}}class ad extends GD{constructor(t,n,r){super(id(n),sd(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,n){return this.controls[t]?this.controls[t]:(this.controls[t]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(t,n,r={}){this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(t,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(t,n,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],n&&this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,n={}){(function HD(e,t,n){e._forEachChild((r,o)=>{if(void 0===n[o])throw new C(1002,od?function tF(e,t){return`Must supply a value for form control ${UD(e,t)}`}(t,o):"")})})(this,!0,t),Object.keys(t).forEach(r=>{(function $D(e,t,n){const r=e.controls;if(!(t?Object.keys(r):r).length)throw new C(1e3,od?function Jx(e){return`\n There are no form controls registered with this ${e?"group":"array"} yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n `}(t):"");if(!r[n])throw new C(1001,od?function eF(e,t){return`Cannot find form control ${UD(e,t)}`}(t,n):"")})(this,!0,r),this.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){null!=t&&(Object.keys(t).forEach(r=>{const o=this.controls[r];o&&o.patchValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t={},n={}){this._forEachChild((r,o)=>{r.reset(t[o],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(t,n,r)=>(t[r]=n.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(n,r)=>!!r._syncPendingControls()||n);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(n=>{const r=this.controls[n];r&&t(r,n)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const[n,r]of Object.entries(this.controls))if(this.contains(n)&&t(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(n,r,o)=>((r.enabled||this.disabled)&&(n[o]=r.value),n))}_reduceChildren(t,n){let r=t;return this._forEachChild((o,i)=>{r=n(r,o,i)}),r}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}}const qr=new S("CallSetDisabledState",{providedIn:"root",factory:()=>ca}),ca="always";function ii(e,t,n=ca){ud(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||"always"===n)&&t.valueAccessor.setDisabledState?.(e.disabled),function sF(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&zD(e,t)})}(e,t),function uF(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 aF(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&zD(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function iF(e,t){if(t.valueAccessor.setDisabledState){const n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}(e,t)}function ha(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function ud(e,t){const n=function FD(e){return e._rawValidators}(e);null!==t.validator?e.setValidators(xD(n,t.validator)):"function"==typeof n&&e.setValidators([n]);const r=function OD(e){return e._rawAsyncValidators}(e);null!==t.asyncValidator?e.setAsyncValidators(xD(r,t.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const o=()=>e.updateValueAndValidity();ha(t._rawValidators,o),ha(t._rawAsyncValidators,o)}function zD(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}const hF={provide:qe,useExisting:ne(()=>ga)},si=(()=>Promise.resolve())();let ga=(()=>{class e extends qe{constructor(n,r,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._directives=new Set,this.ngSubmit=new de,this.form=new ad({},Jc(n),ed(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){si.then(()=>{const r=this._findContainer(n.path);n.control=r.registerControl(n.name,n.control),ii(n.control,n,this.callSetDisabledState),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){si.then(()=>{const r=this._findContainer(n.path);r&&r.removeControl(n.name),this._directives.delete(n)})}addFormGroup(n){si.then(()=>{const r=this._findContainer(n.path),o=new ad({});(function WD(e,t){ud(e,t)})(o,n),r.registerControl(n.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){si.then(()=>{const r=this._findContainer(n.path);r&&r.removeControl(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,r){si.then(()=>{this.form.get(n.path).setValue(r)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submitted=!0,function qD(e,t){e._syncPendingControls(),t.forEach(n=>{const r=n.control;"submit"===r.updateOn&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(n),"dialog"===n?.target?.method}onReset(){this.resetForm()}resetForm(n){this.form.reset(n),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(n){return n.pop(),n.length?this.form.get(n):this.form}}return e.\u0275fac=function(n){return new(n||e)(_(je,10),_(In,10),_(qr,8))},e.\u0275dir=O({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,r){1&n&&Xe("submit",function(i){return r.onSubmit(i)})("reset",function(){return r.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[se([hF]),Q]}),e})();function KD(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function ZD(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const YD=class extends GD{constructor(t=null,n,r){super(id(n),sd(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}),la(n)&&(n.nonNullable||n.initialValueIsDefault)&&(this.defaultValue=ZD(t)?t.value:t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==n.emitViewToModelChange)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){KD(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){KD(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){ZD(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}},mF={provide:An,useExisting:ne(()=>fd)},JD=(()=>Promise.resolve())();let fd=(()=>{class e extends An{constructor(n,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new YD,this._registered=!1,this.update=new de,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=function dd(e,t){if(!t)return null;let n,r,o;return Array.isArray(t),t.forEach(i=>{i.constructor===oa?n=i:function dF(e){return Object.getPrototypeOf(e.constructor)===Qn}(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 cd(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}(n,this.viewModel)&&(this._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(){ii(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){JD.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){const r=n.isDisabled.currentValue,o=0!==r&&zr(r);JD.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?function da(e,t){return[...t.path,e]}(n,this._parent):[n]}}return e.\u0275fac=function(n){return new(n||e)(_(qe,9),_(je,10),_(In,10),_(Kt,10),_(Bs,8),_(qr,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:[se([mF]),Q,gt]}),e})(),e_=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=O({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e})(),n_=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=ht({}),e})(),Xn=(()=>{class e{constructor(){this._validator=ia}ngOnChanges(n){if(this.inputName in n){const r=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):ia,this._onChange&&this._onChange()}}validate(n){return this._validator(n)}registerOnValidatorChange(n){this._onChange=n}enabled(n){return null!=n}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=O({type:e,features:[gt]}),e})();const OF={provide:je,useExisting:ne(()=>ma),multi:!0};let ma=(()=>{class e extends Xn{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=zr,this.createValidator=n=>DD}enabled(n){return n}}return e.\u0275fac=function(){let t;return function(r){return(t||(t=xe(e)))(r||e)}}(),e.\u0275dir=O({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(n,r){2&n&&zt("required",r._enabled?"":null)},inputs:{required:"required"},features:[se([OF]),Q]}),e})(),BF=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=ht({imports:[n_]}),e})(),$F=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:qr,useValue:n.callSetDisabledState??ca}]}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=ht({imports:[BF]}),e})();function A(...e){return _e(e,ao(e))}function Tn(e,t){return ee(t)?Te(e,t,1):Te(e,1)}function mn(e,t){return Se((n,r)=>{let o=0;n.subscribe(De(r,i=>e.call(t,i,o++)&&r.next(i)))})}class ya{}class vd{}class yn{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 yn?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 yn;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof yn?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 HF{encodeKey(t){return __(t)}encodeValue(t){return __(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const zF=/%(\d[a-f0-9])/gi,WF={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function __(e){return encodeURIComponent(e).replace(zF,(t,n)=>WF[n]??t)}function va(e){return`${e}`}class Rn{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new HF,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function GF(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(va):[va(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 Rn({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(va(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(va(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 qF{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 C_(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function w_(e){return typeof Blob<"u"&&e instanceof Blob}function E_(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 KF(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 yn),this.context||(this.context=new qF),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 be=(()=>((be=be||{})[be.Sent=0]="Sent",be[be.UploadProgress=1]="UploadProgress",be[be.ResponseHeader=2]="ResponseHeader",be[be.DownloadProgress=3]="DownloadProgress",be[be.Response=4]="Response",be[be.User=5]="User",be))();class Dd{constructor(t,n=200,r="OK"){this.headers=t.headers||new yn,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 _d extends Dd{constructor(t={}){super(t),this.type=be.ResponseHeader}clone(t={}){return new _d({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 Da extends Dd{constructor(t={}){super(t),this.type=be.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Da({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class b_ extends Dd{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 Cd(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 S_=(()=>{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 yn?o.headers:new yn(o.headers),o.params&&(l=o.params instanceof Rn?o.params:new Rn({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=A(i).pipe(Tn(u=>this.handler.handle(u)));if(n instanceof ai||"events"===o.observe)return s;const a=s.pipe(mn(u=>u instanceof Da));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(U(u=>{if(null!==u.body&&!(u.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return u.body}));case"blob":return a.pipe(U(u=>{if(null!==u.body&&!(u.body instanceof Blob))throw new Error("Response is not a Blob.");return u.body}));case"text":return a.pipe(U(u=>{if(null!==u.body&&"string"!=typeof u.body)throw new Error("Response is not a string.");return u.body}));default:return a.pipe(U(u=>u.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:(new Rn).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,Cd(o,r))}post(n,r,o={}){return this.request("POST",n,Cd(o,r))}put(n,r,o={}){return this.request("PUT",n,Cd(o,r))}}return e.\u0275fac=function(n){return new(n||e)(M(ya))},e.\u0275prov=I({token:e,factory:e.\u0275fac}),e})();function M_(e,t){return t(e)}function YF(e,t){return(n,r)=>t.intercept(n,{handle:o=>e(o,r)})}const XF=new S("HTTP_INTERCEPTORS"),ui=new S("HTTP_INTERCEPTOR_FNS");function JF(){let e=null;return(t,n)=>(null===e&&(e=($(XF,{optional:!0})??[]).reduceRight(YF,M_)),e(t,n))}let I_=(()=>{class e extends ya{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(ui)));this.chain=r.reduceRight((o,i)=>function QF(e,t,n){return(r,o)=>n.runInContext(()=>t(r,i=>e(i,o)))}(o,i,this.injector),M_)}return this.chain(n,r=>this.backend.handle(r))}}return e.\u0275fac=function(n){return new(n||e)(M(vd),M(Ut))},e.\u0275prov=I({token:e,factory:e.\u0275fac}),e})();const rO=/^\)\]\}',?\n/;let T_=(()=>{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 fe(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 yn(o.getAllResponseHeaders()),g=function oO(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 _d({headers:p,status:o.status,statusText:h,url:g}),s},u=()=>{let{headers:h,status:p,statusText:g,url:m}=a(),v=null;204!==p&&(v=typeof o.response>"u"?o.responseText:o.response),0===p&&(p=v?200:0);let w=p>=200&&p<300;if("json"===n.responseType&&"string"==typeof v){const y=v;v=v.replace(rO,"");try{v=""!==v?JSON.parse(v):null}catch(R){v=y,w&&(w=!1,v={error:R,text:v})}}w?(r.next(new Da({body:v,headers:h,status:p,statusText:g,url:m||void 0})),r.complete()):r.error(new b_({error:v,headers:h,status:p,statusText:g,url:m||void 0}))},l=h=>{const{url:p}=a(),g=new b_({error:h,status:o.status||0,statusText:o.statusText||"Unknown Error",url:p||void 0});r.error(g)};let c=!1;const d=h=>{c||(r.next(a()),c=!0);let p={type:be.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:be.UploadProgress,loaded:h.loaded};h.lengthComputable&&(p.total=h.total),r.next(p)};return o.addEventListener("load",u),o.addEventListener("error",l),o.addEventListener("timeout",l),o.addEventListener("abort",l),n.reportProgress&&(o.addEventListener("progress",d),null!==i&&o.upload&&o.upload.addEventListener("progress",f)),o.send(i),r.next({type:be.Sent}),()=>{o.removeEventListener("error",l),o.removeEventListener("abort",l),o.removeEventListener("load",u),o.removeEventListener("timeout",l),n.reportProgress&&(o.removeEventListener("progress",d),null!==i&&o.upload&&o.upload.removeEventListener("progress",f)),o.readyState!==o.DONE&&o.abort()}})}}return e.\u0275fac=function(n){return new(n||e)(M(Bv))},e.\u0275prov=I({token:e,factory:e.\u0275fac}),e})();const wd=new S("XSRF_ENABLED"),R_=new S("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),N_=new S("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class x_{}let aO=(()=>{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=Rv(n,this.cookieName),this.lastCookieString=n),this.lastToken}}return e.\u0275fac=function(n){return new(n||e)(M(We),M(fc),M(R_))},e.\u0275prov=I({token:e,factory:e.\u0275fac}),e})();function uO(e,t){const n=e.url.toLowerCase();if(!$(wd)||"GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t(e);const r=$(x_).getToken(),o=$(N_);return null!=r&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),t(e)}var ye=(()=>((ye=ye||{})[ye.Interceptors=0]="Interceptors",ye[ye.LegacyInterceptors=1]="LegacyInterceptors",ye[ye.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",ye[ye.NoXsrfProtection=3]="NoXsrfProtection",ye[ye.JsonpSupport=4]="JsonpSupport",ye[ye.RequestsMadeViaParent=5]="RequestsMadeViaParent",ye))();function Kr(e,t){return{\u0275kind:e,\u0275providers:t}}function lO(...e){const t=[S_,T_,I_,{provide:ya,useExisting:I_},{provide:vd,useExisting:T_},{provide:ui,useValue:uO,multi:!0},{provide:wd,useValue:!0},{provide:x_,useClass:aO}];for(const n of e)t.push(...n.\u0275providers);return function yS(e){return{\u0275providers:e}}(t)}const F_=new S("LEGACY_INTERCEPTOR_FN");let dO=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=ht({providers:[lO(Kr(ye.LegacyInterceptors,[{provide:F_,useFactory:JF},{provide:ui,useExisting:F_,multi:!0}]))]}),e})();class Ft extends Xt{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 _a=nr(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function O_(...e){const t=ao(e),n=Sf(e),{args:r,keys:o}=dD(e);if(0===r.length)return _e([],t);const i=new fe(function fO(e,t,n=Ln){return r=>{P_(t,()=>{const{length:o}=e,i=new Array(o);let s=o,a=o;for(let u=0;u{const l=_e(e[u],t);let c=!1;l.subscribe(De(r,d=>{i[u]=d,c||(c=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,t,o?s=>hD(o,s):Ln));return n?i.pipe(fD(n)):i}function P_(e,t,n){e?Ot(n,e,t):t()}function Ed(...e){return function hO(){return or(1)}()(_e(e,ao(e)))}function k_(e){return new fe(t=>{tt(e()).subscribe(t)})}function Zr(e,t){const n=ee(e)?e:()=>e,r=o=>o.error(n());return new fe(t?o=>t.schedule(r,0,o):r)}function bd(){return Se((e,t)=>{let n=null;e._refCount++;const r=De(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 L_ extends fe{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,df(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 et;const n=this.getSubject();t.add(this.source.subscribe(De(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=et.EMPTY)}return t}refCount(){return bd()(this)}}function Zt(e,t){return Se((n,r)=>{let o=null,i=0,s=!1;const a=()=>s&&!o&&r.complete();n.subscribe(De(r,u=>{o?.unsubscribe();let l=0;const c=i++;tt(e(u,c)).subscribe(o=De(r,d=>r.next(t?t(u,d,c,l++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function li(e){return e<=0?()=>Pt:Se((t,n)=>{let r=0;t.subscribe(De(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function Ca(e){return Se((t,n)=>{let r=!1;t.subscribe(De(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function V_(e=gO){return Se((t,n)=>{let r=!1;t.subscribe(De(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function gO(){return new _a}function Nn(e,t){const n=arguments.length>=2;return r=>r.pipe(e?mn((o,i)=>e(o,i,r)):Ln,li(1),n?Ca(t):V_(()=>new _a))}function Be(e,t,n){const r=ee(e)||t||n?{next:e,error:t,complete:n}:e;return r?Se((o,i)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;o.subscribe(De(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)}))}):Ln}function vn(e){return Se((t,n)=>{let i,r=null,o=!1;r=t.subscribe(De(n,void 0,void 0,s=>{i=tt(e(s,vn(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function j_(e,t){return Se(function mO(e,t,n,r,o){return(i,s)=>{let a=n,u=t,l=0;i.subscribe(De(s,c=>{const d=l++;u=a?e(u,c,d):(a=!0,c),r&&s.next(u)},o&&(()=>{a&&s.next(u),s.complete()})))}}(e,t,arguments.length>=2,!0))}function Sd(e){return e<=0?()=>Pt:Se((t,n)=>{let r=[];t.subscribe(De(n,o=>{r.push(o),e{for(const o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function B_(e,t){const n=arguments.length>=2;return r=>r.pipe(e?mn((o,i)=>e(o,i,r)):Ln,Sd(1),n?Ca(t):V_(()=>new _a))}function Md(e){return Se((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}const V="primary",ci=Symbol("RouteTitle");class DO{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 Yr(e){return new DO(e)}function _O(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 $_(e){return Array.prototype.concat.apply([],e)}function H_(e){return e.length>0?e[e.length-1]:null}function Fe(e,t){for(const n in e)e.hasOwnProperty(n)&&t(e[n],n)}function xn(e){return Ll(e)?e:Bo(e)?_e(Promise.resolve(e)):A(e)}const wa=!1,wO={exact:function W_(e,t,n){if(!Jn(e.segments,t.segments)||!Ea(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(const r in t.children)if(!e.children[r]||!W_(e.children[r],t.children[r],n))return!1;return!0},subset:q_},G_={exact:function EO(e,t){return Yt(e,t)},subset:function bO(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>U_(e[n],t[n]))},ignored:()=>!0};function z_(e,t,n){return wO[n.paths](e.root,t.root,n.matrixParams)&&G_[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function q_(e,t,n){return K_(e,t,t.segments,n)}function K_(e,t,n,r){if(e.segments.length>n.length){const o=e.segments.slice(0,n.length);return!(!Jn(o,n)||t.hasChildren()||!Ea(o,n,r))}if(e.segments.length===n.length){if(!Jn(e.segments,n)||!Ea(e.segments,n,r))return!1;for(const o in t.children)if(!e.children[o]||!q_(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!!(Jn(e.segments,o)&&Ea(e.segments,o,r)&&e.children[V])&&K_(e.children[V],t,i,r)}}function Ea(e,t,n){return t.every((r,o)=>G_[n](e[o].parameters,r.parameters))}class Fn{constructor(t=new G([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Yr(this.queryParams)),this._queryParamMap}toString(){return IO.serialize(this)}}class G{constructor(t,n){this.segments=t,this.children=n,this.parent=null,Fe(n,(r,o)=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ba(this)}}class di{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap||(this._parameterMap=Yr(this.parameters)),this._parameterMap}toString(){return Q_(this)}}function Jn(e,t){return e.length===t.length&&e.every((n,r)=>n.path===t[r].path)}let fi=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=I({token:e,factory:function(){return new Id},providedIn:"root"}),e})();class Id{parse(t){const n=new kO(t);return new Fn(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){const n=`/${hi(t.root,!0)}`,r=function RO(e){const t=Object.keys(e).map(n=>{const r=e[n];return Array.isArray(r)?r.map(o=>`${Sa(n)}=${Sa(o)}`).join("&"):`${Sa(n)}=${Sa(r)}`}).filter(n=>!!n);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${n}${r}${"string"==typeof t.fragment?`#${function AO(e){return encodeURI(e)}(t.fragment)}`:""}`}}const IO=new Id;function ba(e){return e.segments.map(t=>Q_(t)).join("/")}function hi(e,t){if(!e.hasChildren())return ba(e);if(t){const n=e.children[V]?hi(e.children[V],!1):"",r=[];return Fe(e.children,(o,i)=>{i!==V&&r.push(`${i}:${hi(o,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=function MO(e,t){let n=[];return Fe(e.children,(r,o)=>{o===V&&(n=n.concat(t(r,o)))}),Fe(e.children,(r,o)=>{o!==V&&(n=n.concat(t(r,o)))}),n}(e,(r,o)=>o===V?[hi(e.children[V],!1)]:[`${o}:${hi(r,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[V]?`${ba(e)}/${n[0]}`:`${ba(e)}/(${n.join("//")})`}}function Z_(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Sa(e){return Z_(e).replace(/%3B/gi,";")}function Ad(e){return Z_(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ma(e){return decodeURIComponent(e)}function Y_(e){return Ma(e.replace(/\+/g,"%20"))}function Q_(e){return`${Ad(e.path)}${function TO(e){return Object.keys(e).map(t=>`;${Ad(t)}=${Ad(e[t])}`).join("")}(e.parameters)}`}const NO=/^[^\/()?;=#]+/;function Ia(e){const t=e.match(NO);return t?t[0]:""}const xO=/^[^=?&#]+/,OO=/^[^&#]+/;class kO{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=Ia(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new C(4009,wa);return this.capture(t),new di(Ma(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const n=Ia(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const o=Ia(this.remaining);o&&(r=o,this.capture(r))}t[Ma(n)]=Ma(r)}parseQueryParam(t){const n=function FO(e){const t=e.match(xO);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const s=function PO(e){const t=e.match(OO);return t?t[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const o=Y_(n),i=Y_(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=Ia(this.remaining),o=this.remaining[r.length];if("/"!==o&&")"!==o&&";"!==o)throw new C(4010,wa);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,wa)}}function Td(e){return e.segments.length>0?new G([],{[V]:e}):e}function Aa(e){const t={};for(const r of Object.keys(e.children)){const i=Aa(e.children[r]);(i.segments.length>0||i.hasChildren())&&(t[r]=i)}return function LO(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 er(e){return e instanceof Fn}const Rd=!1;function VO(e,t,n,r,o){if(0===n.length)return Qr(t.root,t.root,t.root,r,o);const i=function nC(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new tC(!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 Fe(i.outlets,(u,l)=>{a[l]="string"==typeof u?u.split("/"):u}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return"string"!=typeof i?[...o,i]:0===s?(i.split("/").forEach((a,u)=>{0==u&&"."===a||(0==u&&""===a?n=!0:".."===a?t++:""!=a&&o.push(a))}),o):[...o,i]},[]);return new tC(n,t,r)}(n);return i.toRoot()?Qr(t.root,t.root,new G([],{}),r,o):function s(u){const l=function BO(e,t,n,r){if(e.isAbsolute)return new Xr(t.root,!0,0);if(-1===r)return new Xr(n,n===t.root,0);return function rC(e,t,n){let r=e,o=t,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new C(4005,Rd&&"Invalid number of '../'");o=r.segments.length}return new Xr(r,!1,o-i)}(n,r+(pi(e.commands[0])?0:1),e.numberOfDoubleDots)}(i,t,e.snapshot?._urlSegment,u),c=l.processChildren?Jr(l.segmentGroup,l.index,i.commands):Nd(l.segmentGroup,l.index,i.commands);return Qr(t.root,l.segmentGroup,c,r,o)}(e.snapshot?._lastPathIndex)}function pi(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function gi(e){return"object"==typeof e&&null!=e&&e.outlets}function Qr(e,t,n,r,o){let s,i={};r&&Fe(r,(u,l)=>{i[l]=Array.isArray(u)?u.map(c=>`${c}`):`${u}`}),s=e===t?n:eC(e,t,n);const a=Td(Aa(s));return new Fn(a,i,o)}function eC(e,t,n){const r={};return Fe(e.children,(o,i)=>{r[i]=o===t?n:eC(o,t,n)}),new G(e.segments,r)}class tC{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&pi(r[0]))throw new C(4003,Rd&&"Root segment cannot have matrix parameters");const o=r.find(gi);if(o&&o!==H_(r))throw new C(4004,Rd&&"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Xr{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}}function Nd(e,t,n){if(e||(e=new G([],{})),0===e.segments.length&&e.hasChildren())return Jr(e,t,n);const r=function $O(e,t,n){let r=0,o=t;const i={match:!1,pathIndex:0,commandIndex:0};for(;o=n.length)return i;const s=e.segments[o],a=n[r];if(gi(a))break;const u=`${a}`,l=r0&&void 0===u)break;if(u&&l&&"object"==typeof l&&void 0===l.outlets){if(!iC(u,l,s))return i;r+=2}else{if(!iC(u,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex{"string"==typeof i&&(i=[i]),null!==i&&(o[s]=Nd(e.children[s],t,i))}),Fe(e.children,(i,s)=>{void 0===r[s]&&(o[s]=i)}),new G(e.segments,o))}}function xd(e,t,n){const r=e.segments.slice(0,t);let o=0;for(;o{"string"==typeof n&&(n=[n]),null!==n&&(t[r]=xd(new G([],{}),0,n))}),t}function oC(e){const t={};return Fe(e,(n,r)=>t[r]=`${n}`),t}function iC(e,t,n){return e==n.path&&Yt(t,n.parameters)}const mi="imperative";class Qt{constructor(t,n){this.id=t,this.url=n}}class Fd extends Qt{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 tr extends Qt{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 Ta extends Qt{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 Ra extends Qt{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=16}}class Od extends Qt{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 GO extends Qt{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 zO extends Qt{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 WO extends Qt{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 qO extends Qt{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 KO extends Qt{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 ZO{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class YO{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class QO{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class XO{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class JO{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class eP{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class sC{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 rP=(()=>{class e{createUrlTree(n,r,o,i,s,a){return VO(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})(),iP=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=I({token:e,factory:function(t){return rP.\u0275fac(t)},providedIn:"root"}),e})();class aC{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=Pd(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){const n=Pd(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){const n=kd(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return kd(t,this._root).map(n=>n.value)}}function Pd(e,t){if(e===t.value)return t;for(const n of t.children){const r=Pd(e,n);if(r)return r}return null}function kd(e,t){if(e===t.value)return[t];for(const n of t.children){const r=kd(e,n);if(r.length)return r.unshift(t),r}return[]}class Dn{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}}function eo(e){const t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}class uC extends aC{constructor(t,n){super(t),this.snapshot=n,Ld(this,t)}toString(){return this.snapshot.toString()}}function lC(e,t){const n=function sP(e,t){const s=new Na([],{},{},"",{},V,t,null,e.root,-1,{});return new dC("",new Dn(s,[]))}(e,t),r=new Ft([new di("",{})]),o=new Ft({}),i=new Ft({}),s=new Ft({}),a=new Ft(""),u=new to(r,o,s,a,i,V,t,n.root);return u.snapshot=n.root,new uC(new Dn(u,[]),n)}class to{constructor(t,n,r,o,i,s,a,u){this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.title=this.data?.pipe(U(l=>l[ci]))??A(void 0),this._futureSnapshot=u}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(U(t=>Yr(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(U(t=>Yr(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function cC(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 aP(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 Na{get title(){return this.data?.[ci]}constructor(t,n,r,o,i,s,a,u,l,c,d){this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=u,this._urlSegment=l,this._lastPathIndex=c,this._resolve=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Yr(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Yr(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class dC extends aC{constructor(t,n){super(n),this.url=t,Ld(this,n)}toString(){return fC(this._root)}}function Ld(e,t){t.value._routerState=e,t.children.forEach(n=>Ld(e,n))}function fC(e){const t=e.children.length>0?` { ${e.children.map(fC).join(", ")} } `:"";return`${e.value}${t}`}function Vd(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Yt(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),Yt(t.params,n.params)||e.params.next(n.params),function CO(e,t){if(e.length!==t.length)return!1;for(let n=0;nYt(n.parameters,t[r].parameters))}(e.url,t.url);return n&&!(!e.parent!=!t.parent)&&(!e.parent||jd(e.parent,t.parent))}function yi(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=t.value;const o=function lP(e,t,n){return t.children.map(r=>{for(const o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return yi(e,r,o);return yi(e,r)})}(e,t,n);return new Dn(r,o)}{if(e.shouldAttach(t.value)){const i=e.retrieve(t.value);if(null!==i){const s=i.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>yi(e,a)),s}}const r=function cP(e){return new to(new Ft(e.url),new Ft(e.params),new Ft(e.queryParams),new Ft(e.fragment),new Ft(e.data),e.outlet,e.component,e)}(t.value),o=t.children.map(i=>yi(e,i));return new Dn(r,o)}}const Bd="ngNavigationCancelingError";function hC(e,t){const{redirectTo:n,navigationBehaviorOptions:r}=er(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=pC(!1,0,t);return o.url=n,o.navigationBehaviorOptions=r,o}function pC(e,t,n){const r=new Error("NavigationCancelingError: "+(e||""));return r[Bd]=!0,r.cancellationCode=t,n&&(r.url=n),r}function gC(e){return mC(e)&&er(e.url)}function mC(e){return e&&e[Bd]}class dP{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new vi,this.attachRef=null}}let vi=(()=>{class e{constructor(){this.contexts=new Map}onChildOutletCreated(n,r){const o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}onChildOutletDestroyed(n){const r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new dP,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 xa=!1;let yC=(()=>{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=$(vi),this.location=$(Tt),this.changeDetector=$(Bs),this.environmentInjector=$(Ut)}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,xa);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new C(4012,xa);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new C(4012,xa);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,xa);this._activatedRoute=n;const o=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,u=new fP(n,a,o.injector);if(r&&function hP(e){return!!e.resolveComponentFactory}(r)){const l=r.resolveComponentFactory(s);this.activated=o.createComponent(l,o.length,u)}else this.activated=o.createComponent(s,{index:o.length,injector:u,environmentInjector:r??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=O({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[gt]}),e})();class fP{constructor(t,n,r){this.route=t,this.childContexts=n,this.parent=r}get(t,n){return t===to?this.route:t===vi?this.childContexts:this.parent.get(t,n)}}let Ud=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=au({type:e,selectors:[["ng-component"]],standalone:!0,features:[ty],decls:1,vars:0,template:function(n,r){1&n&&Es(0,"router-outlet")},dependencies:[yC],encapsulation:2}),e})();function vC(e,t){return e.providers&&!e._injector&&(e._injector=Ns(e.providers,t,`Route: ${e.path}`)),e._injector??t}function Hd(e){const t=e.children&&e.children.map(Hd),n=t?{...e,children:t}:{...e};return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==V&&(n.component=Ud),n}function Ct(e){return e.outlet||V}function DC(e,t){const n=e.filter(r=>Ct(r)===t);return n.push(...e.filter(r=>Ct(r)!==t)),n}function Di(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){const n=t.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}class vP{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),Vd(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){const o=eo(n);t.children.forEach(i=>{const s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),Fe(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=eo(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=eo(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=eo(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new eP(i.value.snapshot))}),t.children.length&&this.forwardEvent(new XO(t.value.snapshot))}activateRoutes(t,n,r){const o=t.value,i=n?n.value:null;if(Vd(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),Vd(a.route.value),this.activateChildRoutes(t,null,s.children)}else{const a=Di(o.snapshot),u=a?.get(Fo)??null;s.attachRef=null,s.route=o,s.resolver=u,s.injector=a,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,r)}}class _C{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Fa{constructor(t,n){this.component=t,this.route=n}}function DP(e,t,n){const r=e._root;return _i(r,t?t._root:null,n,[r.value])}function no(e,t){const n=Symbol(),r=t.get(e,n);return r===n?"function"!=typeof e||function jw(e){return null!==xi(e)}(e)?t.get(e):e:r}function _i(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=eo(t);return e.children.forEach(s=>{(function CP(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 wP(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Jn(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Jn(e.url,t.url)||!Yt(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!jd(e,t)||!Yt(e.queryParams,t.queryParams);default:return!jd(e,t)}}(s,i,i.routeConfig.runGuardsAndResolvers);u?o.canActivateChecks.push(new _C(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 Fa(a.outlet.component,s))}else s&&Ci(t,a,o),o.canActivateChecks.push(new _C(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]}),Fe(i,(s,a)=>Ci(s,n.getContext(a),o)),o}function Ci(e,t,n){const r=eo(e),o=e.value;Fe(r,(i,s)=>{Ci(i,o.component?t?t.children.getContext(s):null:t,n)}),n.canDeactivateChecks.push(new Fa(o.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,o))}function wi(e){return"function"==typeof e}function Gd(e){return e instanceof _a||"EmptyError"===e?.name}const Oa=Symbol("INITIAL_VALUE");function ro(){return Zt(e=>O_(e.map(t=>t.pipe(li(1),function pO(...e){const t=ao(e);return Se((n,r)=>{(t?Ed(e,n,t):Ed(e,n)).subscribe(r)})}(Oa)))).pipe(U(t=>{for(const n of t)if(!0!==n){if(n===Oa)return Oa;if(!1===n||n instanceof Fn)return n}return!0}),mn(t=>t!==Oa),li(1)))}function CC(e){return function ow(...e){return uf(e)}(Be(t=>{if(er(t))throw hC(0,t)}),U(t=>!0===t))}const zd={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function wC(e,t,n,r,o){const i=Wd(e,t,n);return i.matched?function jP(e,t,n,r){const o=t.canMatch;return o&&0!==o.length?A(o.map(s=>{const a=no(s,e);return xn(function AP(e){return e&&wi(e.canMatch)}(a)?a.canMatch(t,n):e.runInContext(()=>a(t,n)))})).pipe(ro(),CC()):A(!0)}(r=vC(t,r),t,n).pipe(U(s=>!0===s?i:{...zd})):A(i)}function Wd(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{...zd}:{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};const o=(t.matcher||_O)(n,e,t);if(!o)return{...zd};const i={};Fe(o.posParams,(a,u)=>{i[u]=a.path});const s=o.consumed.length>0?{...i,...o.consumed[o.consumed.length-1].parameters}:i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:n.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function Pa(e,t,n,r){if(n.length>0&&function $P(e,t,n){return n.some(r=>ka(e,t,r)&&Ct(r)!==V)}(e,n,r)){const i=new G(t,function UP(e,t,n,r){const o={};o[V]=r,r._sourceSegment=e,r._segmentIndexShift=t.length;for(const i of n)if(""===i.path&&Ct(i)!==V){const s=new G([],{});s._sourceSegment=e,s._segmentIndexShift=t.length,o[Ct(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 HP(e,t,n){return n.some(r=>ka(e,t,r))}(e,n,r)){const i=new G(e.segments,function BP(e,t,n,r,o){const i={};for(const s of r)if(ka(e,n,s)&&!o[Ct(s)]){const a=new G([],{});a._sourceSegment=e,a._segmentIndexShift=t.length,i[Ct(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 ka(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function EC(e,t,n,r){return!!(Ct(e)===r||r!==V&&ka(t,n,e))&&("**"===e.path||Wd(t,e,n).matched)}function bC(e,t,n){return 0===t.length&&!e.children[n]}const La=!1;class Va{constructor(t){this.segmentGroup=t||null}}class SC{constructor(t){this.urlTree=t}}function Ei(e){return Zr(new Va(e))}function MC(e){return Zr(new SC(e))}class qP{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=Pa(this.urlTree.root,[],[],this.config).segmentGroup,n=new G(t.segments,t.children);return this.expandSegmentGroup(this.injector,this.config,n,V).pipe(U(i=>this.createUrlTree(Aa(i),this.urlTree.queryParams,this.urlTree.fragment))).pipe(vn(i=>{if(i instanceof SC)return this.allowRedirects=!1,this.match(i.urlTree);throw i instanceof Va?this.noMatchError(i):i}))}match(t){return this.expandSegmentGroup(this.injector,this.config,t.root,V).pipe(U(o=>this.createUrlTree(Aa(o),t.queryParams,t.fragment))).pipe(vn(o=>{throw o instanceof Va?this.noMatchError(o):o}))}noMatchError(t){return new C(4002,La)}createUrlTree(t,n,r){const o=Td(t);return new Fn(o,n,r)}expandSegmentGroup(t,n,r,o){return 0===r.segments.length&&r.hasChildren()?this.expandChildren(t,n,r).pipe(U(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 _e(o).pipe(Tn(i=>{const s=r.children[i],a=DC(n,i);return this.expandSegmentGroup(t,a,s,i).pipe(U(u=>({segment:u,outlet:i})))}),j_((i,s)=>(i[s.outlet]=s.segment,i),{}),B_())}expandSegment(t,n,r,o,i,s){return _e(r).pipe(Tn(a=>this.expandSegmentAgainstRoute(t,n,r,a,o,i,s).pipe(vn(l=>{if(l instanceof Va)return A(null);throw l}))),Nn(a=>!!a),vn((a,u)=>{if(Gd(a))return bC(n,o,i)?A(new G([],{})):Ei(n);throw a}))}expandSegmentAgainstRoute(t,n,r,o,i,s,a){return EC(o,n,i,s)?void 0===o.redirectTo?this.matchSegmentAgainstRoute(t,n,o,i,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s):Ei(n):Ei(n)}expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,r,o,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o){const i=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?MC(i):this.lineralizeSegments(r,i).pipe(Te(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:u,remainingSegments:l,positionalParamSegments:c}=Wd(n,o,i);if(!a)return Ei(n);const d=this.applyRedirectCommands(u,o.redirectTo,c);return o.redirectTo.startsWith("/")?MC(d):this.lineralizeSegments(o,d).pipe(Te(f=>this.expandSegment(t,n,r,f.concat(l),s,!1)))}matchSegmentAgainstRoute(t,n,r,o,i){return"**"===r.path?(t=vC(r,t),r.loadChildren?(r._loadedRoutes?A({routes:r._loadedRoutes,injector:r._loadedInjector}):this.configLoader.loadChildren(t,r)).pipe(U(a=>(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,new G(o,{})))):A(new G(o,{}))):wC(n,r,o,t).pipe(Zt(({matched:s,consumedSegments:a,remainingSegments:u})=>s?this.getChildConfig(t=r._injector??t,r,o).pipe(Te(c=>{const d=c.injector??t,f=c.routes,{segmentGroup:h,slicedSegments:p}=Pa(n,a,u,f),g=new G(h.segments,h.children);if(0===p.length&&g.hasChildren())return this.expandChildren(d,f,g).pipe(U(y=>new G(a,y)));if(0===f.length&&0===p.length)return A(new G(a,{}));const m=Ct(r)===i;return this.expandSegment(d,g,f,p,m?V:i,!0).pipe(U(w=>new G(a.concat(w.segments),w.children)))})):Ei(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 VP(e,t,n,r){const o=t.canLoad;return void 0===o||0===o.length?A(!0):A(o.map(s=>{const a=no(s,e);return xn(function bP(e){return e&&wi(e.canLoad)}(a)?a.canLoad(t,n):e.runInContext(()=>a(t,n)))})).pipe(ro(),CC())}(t,n,r).pipe(Te(o=>o?this.configLoader.loadChildren(t,n).pipe(Be(i=>{n._loadedRoutes=i.routes,n._loadedInjector=i.injector})):function zP(e){return Zr(pC(La,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,Zr(new C(4e3,La));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 Fn(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){const r={};return Fe(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 Fe(n.children,(a,u)=>{s[u]=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,La);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 ZP{}class XP{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=Pa(this.urlTree.root,[],[],this.config.filter(n=>void 0===n.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,V).pipe(U(n=>{if(null===n)return null;const r=new Na([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},V,this.rootComponentType,null,this.urlTree.root,-1,{}),o=new Dn(r,n),i=new dC(this.url,o);return this.inheritParamsAndData(i._root),i}))}inheritParamsAndData(t){const n=t.value,r=cC(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(t,n,r,o){return 0===r.segments.length&&r.hasChildren()?this.processChildren(t,n,r):this.processSegment(t,n,r,r.segments,o)}processChildren(t,n,r){return _e(Object.keys(r.children)).pipe(Tn(o=>{const i=r.children[o],s=DC(n,o);return this.processSegmentGroup(t,s,i,o)}),j_((o,i)=>o&&i?(o.push(...i),o):null),function yO(e,t=!1){return Se((n,r)=>{let o=0;n.subscribe(De(r,i=>{const s=e(i,o++);(s||t)&&r.next(i),!s&&r.complete()}))})}(o=>null!==o),Ca(null),B_(),U(o=>{if(null===o)return null;const i=AC(o);return function JP(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 _e(n).pipe(Tn(s=>this.processSegmentAgainstRoute(s._injector??t,s,r,o,i)),Nn(s=>!!s),vn(s=>{if(Gd(s))return bC(r,o,i)?A([]):A(null);throw s}))}processSegmentAgainstRoute(t,n,r,o,i){if(n.redirectTo||!EC(n,r,o,i))return A(null);let s;if("**"===n.path){const a=o.length>0?H_(o).parameters:{},u=RC(r)+o.length;s=A({snapshot:new Na(o,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,NC(n),Ct(n),n.component??n._loadedComponent??null,n,TC(r),u,xC(n)),consumedSegments:[],remainingSegments:[]})}else s=wC(r,n,o,t).pipe(U(({matched:a,consumedSegments:u,remainingSegments:l,parameters:c})=>{if(!a)return null;const d=RC(r)+u.length;return{snapshot:new Na(u,c,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,NC(n),Ct(n),n.component??n._loadedComponent??null,n,TC(r),d,xC(n)),consumedSegments:u,remainingSegments:l}}));return s.pipe(Zt(a=>{if(null===a)return A(null);const{snapshot:u,consumedSegments:l,remainingSegments:c}=a;t=n._injector??t;const d=n._loadedInjector??t,f=function e1(e){return e.children?e.children:e.loadChildren?e._loadedRoutes:[]}(n),{segmentGroup:h,slicedSegments:p}=Pa(r,l,c,f.filter(m=>void 0===m.redirectTo));if(0===p.length&&h.hasChildren())return this.processChildren(d,f,h).pipe(U(m=>null===m?null:[new Dn(u,m)]));if(0===f.length&&0===p.length)return A([new Dn(u,[])]);const g=Ct(n)===i;return this.processSegment(d,f,h,p,g?V:i).pipe(U(m=>null===m?null:[new Dn(u,m)]))}))}}function t1(e){const t=e.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function AC(e){const t=[],n=new Set;for(const r of e){if(!t1(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=AC(r.children);t.push(new Dn(r.value,o))}return t.filter(r=>!n.has(r))}function TC(e){let t=e;for(;t._sourceSegment;)t=t._sourceSegment;return t}function RC(e){let t=e,n=t._segmentIndexShift??0;for(;t._sourceSegment;)t=t._sourceSegment,n+=t._segmentIndexShift??0;return n-1}function NC(e){return e.data||{}}function xC(e){return e.resolve||{}}function FC(e){return"string"==typeof e.title||null===e.title}function qd(e){return Zt(t=>{const n=e(t);return n?_e(n).pipe(U(()=>t)):A(t)})}const oo=new S("ROUTES");let Kd=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=$(Hy)}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=xn(n.loadComponent()).pipe(U(PC),Be(i=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=i}),Md(()=>{this.componentLoaders.delete(n)})),o=new L_(r,()=>new Xt).pipe(bd());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(U(a=>{this.onLoadEndListener&&this.onLoadEndListener(r);let u,l,c=!1;Array.isArray(a)?l=a:(u=a.create(n).injector,l=$_(u.get(oo,[],x.Self|x.Optional)));return{routes:l.map(Hd),injector:u}}),Md(()=>{this.childrenLoaders.delete(r)})),s=new L_(i,()=>new Xt).pipe(bd());return this.childrenLoaders.set(r,s),s}loadModuleFactoryOrRoutes(n){return xn(n()).pipe(U(PC),Te(r=>r instanceof Jm||Array.isArray(r)?A(r):_e(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 PC(e){return function l1(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let Ba=(()=>{class e{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new Xt,this.configLoader=$(Kd),this.environmentInjector=$(Ut),this.urlSerializer=$(fi),this.rootContexts=$(vi),this.navigationId=0,this.afterPreactivation=()=>A(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new YO(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new ZO(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 Ft({id:0,targetPageId:0,currentUrlTree:n.currentUrlTree,currentRawUrl:n.currentUrlTree,extractedUrl:n.urlHandlingStrategy.extract(n.currentUrlTree),urlAfterRedirects:n.urlHandlingStrategy.extract(n.currentUrlTree),rawUrl:n.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:mi,restoredState:null,currentSnapshot:n.routerState.snapshot,targetSnapshot:null,currentRouterState:n.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(mn(r=>0!==r.id),U(r=>({...r,extractedUrl:n.urlHandlingStrategy.extract(r.rawUrl)})),Zt(r=>{let o=!1,i=!1;return A(r).pipe(Be(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}}),Zt(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 Ra(s.id,n.serializeUrl(r.rawUrl),c,0)),n.rawUrlTree=s.rawUrl,s.resolve(null),Pt}if(n.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return kC(s.source)&&(n.browserUrlTree=s.extractedUrl),A(s).pipe(Zt(c=>{const d=this.transitions?.getValue();return this.events.next(new Fd(c.id,this.urlSerializer.serialize(c.extractedUrl),c.source,c.restoredState)),d!==this.transitions?.getValue()?Pt:Promise.resolve(c)}),function KP(e,t,n,r){return Zt(o=>function WP(e,t,n,r,o){return new qP(e,t,n,r,o).apply()}(e,t,n,o.extractedUrl,r).pipe(U(i=>({...o,urlAfterRedirects:i}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,n.config),Be(c=>{this.currentNavigation={...this.currentNavigation,finalUrl:c.urlAfterRedirects},r.urlAfterRedirects=c.urlAfterRedirects}),function r1(e,t,n,r,o){return Te(i=>function QP(e,t,n,r,o,i,s="emptyOnly"){return new XP(e,t,n,r,o,s,i).recognize().pipe(Zt(a=>null===a?function YP(e){return new fe(t=>t.error(e))}(new ZP):A(a)))}(e,t,n,i.urlAfterRedirects,r.serialize(i.urlAfterRedirects),r,o).pipe(U(s=>({...i,targetSnapshot:s}))))}(this.environmentInjector,this.rootComponentType,n.config,this.urlSerializer,n.paramsInheritanceStrategy),Be(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 GO(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 Fd(c,this.urlSerializer.serialize(d),f,h);this.events.next(g);const m=lC(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 Ra(s.id,n.serializeUrl(r.extractedUrl),c,1)),n.rawUrlTree=s.rawUrl,s.resolve(null),Pt}}),Be(s=>{const a=new zO(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),U(s=>r={...s,guards:DP(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function RP(e,t){return Te(n=>{const{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return 0===s.length&&0===i.length?A({...n,guardsResult:!0}):function NP(e,t,n,r){return _e(e).pipe(Te(o=>function LP(e,t,n,r,o){const i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return i&&0!==i.length?A(i.map(a=>{const u=Di(t)??o,l=no(a,u);return xn(function IP(e){return e&&wi(e.canDeactivate)}(l)?l.canDeactivate(e,t,n,r):u.runInContext(()=>l(e,t,n,r))).pipe(Nn())})).pipe(ro()):A(!0)}(o.component,o.route,n,t,r)),Nn(o=>!0!==o,!0))}(s,r,o,e).pipe(Te(a=>a&&function EP(e){return"boolean"==typeof e}(a)?function xP(e,t,n,r){return _e(t).pipe(Tn(o=>Ed(function OP(e,t){return null!==e&&t&&t(new QO(e)),A(!0)}(o.route.parent,r),function FP(e,t){return null!==e&&t&&t(new JO(e)),A(!0)}(o.route,r),function kP(e,t,n){const r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(s=>function _P(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=>k_(()=>A(s.guards.map(u=>{const l=Di(s.node)??n,c=no(u,l);return xn(function MP(e){return e&&wi(e.canActivateChild)}(c)?c.canActivateChild(r,e):l.runInContext(()=>c(r,e))).pipe(Nn())})).pipe(ro())));return A(i).pipe(ro())}(e,o.path,n),function PP(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||0===r.length)return A(!0);const o=r.map(i=>k_(()=>{const s=Di(t)??n,a=no(i,s);return xn(function SP(e){return e&&wi(e.canActivate)}(a)?a.canActivate(t,e):s.runInContext(()=>a(t,e))).pipe(Nn())}));return A(o).pipe(ro())}(e,o.route,n))),Nn(o=>!0!==o,!0))}(r,i,e,t):A(a)),U(a=>({...n,guardsResult:a})))})}(this.environmentInjector,s=>this.events.next(s)),Be(s=>{if(r.guardsResult=s.guardsResult,er(s.guardsResult))throw hC(0,s.guardsResult);const a=new WO(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),mn(s=>!!s.guardsResult||(n.restoreHistory(s),this.cancelNavigationTransition(s,"",3),!1)),qd(s=>{if(s.guards.canActivateChecks.length)return A(s).pipe(Be(a=>{const u=new qO(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(u)}),Zt(a=>{let u=!1;return A(a).pipe(function o1(e,t){return Te(n=>{const{targetSnapshot:r,guards:{canActivateChecks:o}}=n;if(!o.length)return A(n);let i=0;return _e(o).pipe(Tn(s=>function i1(e,t,n,r){const o=e.routeConfig,i=e._resolve;return void 0!==o?.title&&!FC(o)&&(i[ci]=o.title),function s1(e,t,n,r){const o=function a1(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===o.length)return A({});const i={};return _e(o).pipe(Te(s=>function u1(e,t,n,r){const o=Di(t)??r,i=no(e,o);return xn(i.resolve?i.resolve(t,n):o.runInContext(()=>i(t,n)))}(e[s],t,n,r).pipe(Nn(),Be(a=>{i[s]=a}))),Sd(1),function vO(e){return U(()=>e)}(i),vn(s=>Gd(s)?Pt:Zr(s)))}(i,e,t,r).pipe(U(s=>(e._resolvedData=s,e.data=cC(e,n).resolve,o&&FC(o)&&(e.data[ci]=o.title),null)))}(s.route,r,e,t)),Be(()=>i++),Sd(1),Te(s=>i===o.length?A(n):Pt))})}(n.paramsInheritanceStrategy,this.environmentInjector),Be({next:()=>u=!0,complete:()=>{u||(n.restoreHistory(a),this.cancelNavigationTransition(a,"",2))}}))}),Be(a=>{const u=new KO(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(u)}))}),qd(s=>{const a=u=>{const l=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&l.push(this.configLoader.loadComponent(u.routeConfig).pipe(Be(c=>{u.component=c}),U(()=>{})));for(const c of u.children)l.push(...a(c));return l};return O_(a(s.targetSnapshot.root)).pipe(Ca(),li(1))}),qd(()=>this.afterPreactivation()),U(s=>{const a=function uP(e,t,n){const r=yi(e,t._root,n?n._root:void 0);return new uC(r,t)}(n.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return r={...s,targetRouterState:a}}),Be(s=>{n.currentUrlTree=s.urlAfterRedirects,n.rawUrlTree=n.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),n.routerState=s.targetRouterState,"deferred"===n.urlUpdateStrategy&&(s.extras.skipLocationChange||n.setBrowserUrl(n.rawUrlTree,s),n.browserUrlTree=s.urlAfterRedirects)}),((e,t,n)=>U(r=>(new vP(t,r.targetRouterState,r.currentRouterState,n).activate(e),r)))(this.rootContexts,n.routeReuseStrategy,s=>this.events.next(s)),Be({next:s=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,n.navigated=!0,this.events.next(new tr(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(n.currentUrlTree))),n.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{o=!0}}),Md(()=>{o||i||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),vn(s=>{if(i=!0,mC(s)){gC(s)||(n.navigated=!0,n.restoreHistory(r,!0));const a=new Ta(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode);if(this.events.next(a),gC(s)){const u=n.urlHandlingStrategy.merge(s.url,n.rawUrlTree),l={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===n.urlUpdateStrategy||kC(r.source)};n.scheduleNavigation(u,mi,null,l,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{n.restoreHistory(r,!0);const a=new Od(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 Pt}))}))}cancelNavigationTransition(n,r,o){const i=new Ta(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 kC(e){return e!==mi}let LC=(()=>{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[ci]}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=I({token:e,factory:function(){return $(c1)},providedIn:"root"}),e})(),c1=(()=>{class e extends LC{constructor(n){super(),this.title=n}updateTitle(n){const r=this.buildTitle(n);void 0!==r&&this.title.setTitle(r)}}return e.\u0275fac=function(n){return new(n||e)(M(uD))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),d1=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=I({token:e,factory:function(){return $(h1)},providedIn:"root"}),e})();class f1{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}}let h1=(()=>{class e extends f1{}return e.\u0275fac=function(){let t;return function(r){return(t||(t=xe(e)))(r||e)}}(),e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Ua=new S("",{providedIn:"root",factory:()=>({})});let g1=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=I({token:e,factory:function(){return $(m1)},providedIn:"root"}),e})(),m1=(()=>{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 y1(e){throw e}function v1(e,t,n){return t.parse("/")}const D1={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},_1={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ct=(()=>{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=$(wT),this.isNgZoneEnabled=!1,this.options=$(Ua,{optional:!0})||{},this.errorHandler=this.options.errorHandler||y1,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||v1,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=$(g1),this.routeReuseStrategy=$(d1),this.urlCreationStrategy=$(iP),this.titleStrategy=$(LC),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=$_($(oo,{optional:!0})??[]),this.navigationTransitions=$(Ba),this.urlSerializer=$(fi),this.location=$(Ac),this.isNgZoneEnabled=$(pe)instanceof pe&&pe.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Fn,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=lC(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),mi,n)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(n=>{const r="popstate"===n.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{this.navigateToSyncWithBrowser(n.url,r,n.state)},0)}))}navigateToSyncWithBrowser(n,r,o){const i={replaceUrl:!0},s=o?.navigationId?o:null;if(o){const u={...o};delete u.navigationId,delete u.\u0275routerPageId,0!==Object.keys(u).length&&(i.state=u)}const a=this.parseUrl(n);this.scheduleNavigation(a,r,s,i)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(n){this.config=n.map(Hd),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(n,r={}){const{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:u}=r,l=u?this.currentUrlTree.fragment:s;let c=null;switch(a){case"merge":c={...this.currentUrlTree.queryParams,...i};break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}return null!==c&&(c=this.removeEmptyProps(c)),this.urlCreationStrategy.createUrlTree(o,this.routerState,this.currentUrlTree,n,c,l??null)}navigateByUrl(n,r={skipLocationChange:!1}){const o=er(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,mi,null,r)}navigate(n,r={skipLocationChange:!1}){return function C1(e){for(let t=0;t{const i=n[o];return null!=i&&(r[o]=i),r},{})}scheduleNavigation(n,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let a,u,l,c;return s?(a=s.resolve,u=s.reject,l=s.promise):l=new Promise((d,f)=>{a=d,u=f}),c="computed"===this.canceledNavigationResolution?o&&o.\u0275routerPageId?o.\u0275routerPageId: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: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),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})();class VC{}let b1=(()=>{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(mn(n=>n instanceof tr),Tn(()=>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=Ns(i.providers,n,`Route: ${i.path}`));const s=i._injector??n,a=i._loadedInjector??s;(i.loadChildren&&!i._loadedRoutes&&void 0===i.canLoad||i.loadComponent&&!i._loadedComponent)&&o.push(this.preloadConfig(s,i)),(i.children||i._loadedRoutes)&&o.push(this.processRoutes(a,i.children??i._loadedRoutes))}return _e(o).pipe(or())}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(Te(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?_e([i,this.loader.loadComponent(r)]).pipe(or()):i})}}return e.\u0275fac=function(n){return new(n||e)(M(ct),M(Hy),M(Ut),M(VC),M(Kd))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Qd=new S("");let jC=(()=>{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 Fd?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof tr&&(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof sC&&(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 sC(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return e.\u0275fac=function(n){!function Jp(){throw new Error("invalid")}()},e.\u0275prov=I({token:e,factory:e.\u0275fac}),e})();var dt=(()=>((dt=dt||{})[dt.COMPLETE=0]="COMPLETE",dt[dt.FAILED=1]="FAILED",dt[dt.REDIRECTING=2]="REDIRECTING",dt))();const io=!1;function On(e,t){return{\u0275kind:e,\u0275providers:t}}const Xd=new S("",{providedIn:"root",factory:()=>!1});function UC(){const e=$($t);return t=>{const n=e.get(Vs);if(t!==n.components[0])return;const r=e.get(ct),o=e.get($C);1===e.get(Jd)&&r.initialNavigation(),e.get(HC,null,x.Optional)?.setUpPreloading(),e.get(Qd,null,x.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.unsubscribe())}}const $C=new S(io?"bootstrap done indicator":"",{factory:()=>new Xt}),Jd=new S(io?"initial navigation":"",{providedIn:"root",factory:()=>1});function T1(){let e=[];return e=io?[{provide:cs,multi:!0,useFactory:()=>{const t=$(ct);return()=>t.events.subscribe(n=>{console.group?.(`Router Event: ${n.constructor.name}`),console.log(function tP(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?.()})}}]:[],On(1,e)}const HC=new S(io?"router preloader":"");function R1(e){return On(0,[{provide:HC,useExisting:b1},{provide:VC,useExisting:e}])}const bi=!1,GC=new S(bi?"router duplicate forRoot guard":"ROUTER_FORROOT_GUARD"),N1=[Ac,{provide:fi,useClass:Id},ct,vi,{provide:to,useFactory:function BC(e){return e.routerState.root},deps:[ct]},Kd,bi?{provide:Xd,useValue:!0}:[]];function x1(){return new Qy("Router",ct)}let zC=(()=>{class e{constructor(n){}static forRoot(n,r){return{ngModule:e,providers:[N1,bi&&r?.enableTracing?T1().\u0275providers:[],{provide:oo,multi:!0,useValue:n},{provide:GC,useFactory:k1,deps:[[ct,new Eo,new bo]]},{provide:Ua,useValue:r||{}},r?.useHash?{provide:Yn,useClass:lR}:{provide:Yn,useClass:_v},{provide:Qd,useFactory:()=>{const e=$(RN),t=$(pe),n=$(Ua),r=$(Ba),o=$(fi);return n.scrollOffset&&e.setOffset(n.scrollOffset),new jC(o,r,e,t,n)}},r?.preloadingStrategy?R1(r.preloadingStrategy).\u0275providers:[],{provide:Qy,multi:!0,useFactory:x1},r?.initialNavigation?L1(r):[],[{provide:WC,useFactory:UC},{provide:Yy,multi:!0,useExisting:WC}]]}}static forChild(n){return{ngModule:e,providers:[{provide:oo,multi:!0,useValue:n}]}}}return e.\u0275fac=function(n){return new(n||e)(M(GC,8))},e.\u0275mod=wt({type:e}),e.\u0275inj=ht({imports:[Ud]}),e})();function k1(e){if(bi&&e)throw new C(4007,"The Router was provided more than once. This can happen if 'forRoot' is used outside of the root injector. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function L1(e){return["disabled"===e.initialNavigation?On(3,[{provide:Ps,multi:!0,useFactory:()=>{const t=$(ct);return()=>{t.setUpLocationChangeListener()}}},{provide:Jd,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?On(2,[{provide:Jd,useValue:0},{provide:Ps,multi:!0,deps:[$t],useFactory:t=>{const n=t.get(aR,Promise.resolve());return()=>n.then(()=>new Promise(r=>{const o=t.get(ct),i=t.get($C);(function S1(e,t){e.events.pipe(mn(n=>n instanceof tr||n instanceof Ta||n instanceof Od||n instanceof Ra),U(n=>n instanceof tr||n instanceof Ra?dt.COMPLETE:n instanceof Ta&&(0===n.code||1===n.code)?dt.REDIRECTING:dt.FAILED),mn(n=>n!==dt.REDIRECTING),li(1)).subscribe(()=>{t()})})(o,()=>{r(!0)}),t.get(Ba).afterPreactivation=()=>(r(!0),i.closed?A(void 0):i),o.initialNavigation()}))}}]).\u0275providers:[]]}const WC=new S(bi?"Router Initializer":"");class j1 extends et{constructor(t,n){super()}schedule(t,n=0){return this}}const $a={setInterval(e,t,...n){const{delegate:r}=$a;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){const{delegate:t}=$a;return(t?.clearInterval||clearInterval)(e)},delegate:void 0},qC={now:()=>(qC.delegate||Date).now(),delegate:void 0};class Si{constructor(t,n=Si.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}}Si.now=qC.now;const $1=new class U1 extends Si{constructor(t,n=Si.now){super(t,n),this.actions=[],this._active=!1}flush(t){const{actions:n}=this;if(this._active)return void n.push(t);let r;this._active=!0;do{if(r=t.execute(t.state,t.delay))break}while(t=n.shift());if(this._active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}}(class B1 extends j1{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=!1}schedule(t,n=0){var r;if(this.closed)return this;this.state=t;const o=this.id,i=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=!0,this.delay=n,this.id=null!==(r=this.id)&&void 0!==r?r:this.requestAsyncId(i,this.id,n),this}requestAsyncId(t,n,r=0){return $a.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(null!=r&&this.delay===r&&!1===this.pending)return n;null!=n&&$a.clearInterval(n)}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(t,n);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,n){let o,r=!1;try{this.work(t)}catch(i){r=!0,o=i||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){const{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,rr(r,this),null!=t&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}}),G1=nr(e=>function(n=null){e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=n});function W1(e){throw new G1(e)}let KC=(()=>{class e{constructor(n){this.http=n,this.host="https://bgsegura.bgeneral.com/loginvalidation"}authenticateAlias(n){return this.http.post(this.host,n).pipe(function z1(e,t){const{first:n,each:r,with:o=W1,scheduler:i=t??$1,meta:s=null}=function H1(e){return e instanceof Date&&!isNaN(e)}(e)?{first:e}:"number"==typeof e?{each:e}:e;if(null==n&&null==r)throw new TypeError("No timeout provided.");return Se((a,u)=>{let l,c,d=null,f=0;const h=p=>{c=Ot(u,i,()=>{try{l.unsubscribe(),tt(o({meta:s,lastValue:d,seen:f})).subscribe(u)}catch(g){u.error(g)}},p)};l=a.subscribe(De(u,p=>{c?.unsubscribe(),f++,u.next(d=p),r>0&&h(r)},void 0,void 0,()=>{c?.closed||c?.unsubscribe(),d=null})),!f&&h(null!=n?"number"==typeof n?n:+n-i.now():r)})}(5e3),vn(r=>Zr(()=>new Error(r))))}}return e.\u0275fac=function(n){return new(n||e)(M(S_))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),ZC=(()=>{class e{constructor(n){this.loginService=n,this.title="bgp-ce-bel-loginbel",this.user={alias:""}}ngOnInit(){}onSubmit(){if(this.user.alias=this.user.alias.trim(),""!==this.user.alias&&null!==this.user.alias){const n=window.open();this.loginService.authenticateAlias(this.user).subscribe({next:r=>{n&&(n.location.href=r.body.portalUrl,this.user.alias="")},error:r=>{n&&(n.close(),"TimeoutError"===r.name&&console.error("TimeoutError"))}})}}}return e.\u0275fac=function(n){return new(n||e)(_(KC))},e.\u0275cmp=au({type:e,selectors:[["app-root"]],decls:8,vars:2,consts:[["id","formBel","action","",3,"submit"],["loginUserForm","ngForm"],["id","ingreso_bel"],["id","cap_texlog"],["type","text","name","loginUser","id","txtLoginD","placeholder","Usuario","autocomplete","off","required","",1,"camposbel",3,"ngModel","ngModelChange"],["loginUser","ngModel"],["id","cap_ingreso"],["type","submit",1,"btningresar","handPointer",2,"background","url(../assets/img/btn-login-new.png)",3,"disabled"]],template:function(n,r){if(1&n&&(Vr(0,"form",0,1),Xe("submit",function(){return r.onSubmit()}),Vr(2,"div",2)(3,"div",3)(4,"input",4,5),Xe("ngModelChange",function(i){return r.user.alias=i}),jo()(),Vr(6,"div",6),Es(7,"button",7),jo()()()),2&n){const o=function Tg(e){return function dr(e,t){return e[t]}(function CE(){return k.lFrame.contextLView}(),ie+e)}(1);pl(4),ws("ngModel",r.user.alias),pl(3),ws("disabled",!o.form.valid)}},dependencies:[e_,oa,jD,BD,ma,fd,ga]}),e})();const q1=[{path:"",component:ZC},{path:"**",redirectTo:"",pathMatch:"full"}];let K1=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=ht({imports:[zC.forRoot(q1),zC]}),e})(),Z1=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=wt({type:e,bootstrap:[ZC]}),e.\u0275inj=ht({providers:[KC],imports:[Ix,K1,$F,dO]}),e})();Mx().bootstrapModule(Z1).catch(e=>console.error(e))}},ee=>{ee(ee.s=378)}]);