var pp=Object.defineProperty,gp=Object.defineProperties;var mp=Object.getOwnPropertyDescriptors;var nu=Object.getOwnPropertySymbols;var yp=Object.prototype.hasOwnProperty,vp=Object.prototype.propertyIsEnumerable;var ru=(e,t,n)=>t in e?pp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,y=(e,t)=>{for(var n in t||={})yp.call(t,n)&&ru(e,n,t[n]);if(nu)for(var n of nu(t))vp.call(t,n)&&ru(e,n,t[n]);return e},B=(e,t)=>gp(e,mp(t));function Yi(e,t){return Object.is(e,t)}var G=null,Or=!1,Qi=1,Ee=Symbol("SIGNAL");function _(e){let t=G;return G=e,t}function Ki(){return G}var Sn={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Mn(e){if(Or)throw new Error("");if(G===null)return;G.consumerOnSignalRead(e);let t=G.nextProducerIndex++;if(Lr(G),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function ns(e){Lr(e);for(let t=0;t0}function Lr(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function su(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function au(e){return e.producerNode!==void 0}function os(e,t){let n=Object.create(Ep);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(Xi(n),Mn(n),n.value===kr)throw n.error;return n.value};return r[Ee]=n,r}var Gi=Symbol("UNSET"),Wi=Symbol("COMPUTING"),kr=Symbol("ERRORED"),Ep=B(y({},Sn),{value:Gi,dirty:!0,error:null,equal:Yi,kind:"computed",producerMustRecompute(e){return e.value===Gi||e.value===Wi},producerRecomputeValue(e){if(e.value===Wi)throw new Error("Detected cycle in computations.");let t=e.value;e.value=Wi;let n=Pr(e),r,o=!1;try{r=e.computation(),_(null),o=t!==Gi&&t!==kr&&r!==kr&&e.equal(t,r)}catch(i){r=kr,e.error=i}finally{ts(e,n)}if(o){e.value=t;return}e.value=r,e.version++}});function wp(){throw new Error}var cu=wp;function uu(e){cu(e)}function is(e){cu=e}var Ip=null;function ss(e,t){let n=Object.create(jr);n.value=e,t!==void 0&&(n.equal=t);let r=()=>(Mn(n),n.value);return r[Ee]=n,r}function Tn(e,t){es()||uu(e),e.equal(e.value,t)||(e.value=t,Cp(e))}function as(e,t){es()||uu(e),Tn(e,t(e.value))}var jr=B(y({},Sn),{equal:Yi,value:void 0,kind:"signal"});function Cp(e){e.version++,ou(),Ji(e),Ip?.()}function cs(e){let t=_(null);try{return e()}finally{_(t)}}var us;function _n(){return us}function Ue(e){let t=us;return us=e,t}var Vr=Symbol("NotFound");function b(e){return typeof e=="function"}function Lt(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Br=Lt(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription: ${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(` `)}`:"",this.name="UnsubscriptionError",this.errors=n});function Nn(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var $=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(b(r))try{r()}catch(i){t=i instanceof Br?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{lu(i)}catch(s){t=t??[],s instanceof Br?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Br(t)}}add(t){var n;if(t&&t!==this)if(this.closed)lu(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&Nn(n,t)}remove(t){let{_finalizers:n}=this;n&&Nn(n,t),t instanceof e&&t._removeParent(this)}};$.EMPTY=(()=>{let e=new $;return e.closed=!0,e})();var ls=$.EMPTY;function Ur(e){return e instanceof $||e&&"closed"in e&&b(e.remove)&&b(e.add)&&b(e.unsubscribe)}function lu(e){b(e)?e():e.unsubscribe()}var Ce={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var jt={setTimeout(e,t,...n){let{delegate:r}=jt;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=jt;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function $r(e){jt.setTimeout(()=>{let{onUnhandledError:t}=Ce;if(t)t(e);else throw e})}function Rn(){}var du=ds("C",void 0,void 0);function fu(e){return ds("E",void 0,e)}function hu(e){return ds("N",e,void 0)}function ds(e,t,n){return{kind:e,value:t,error:n}}var gt=null;function Vt(e){if(Ce.useDeprecatedSynchronousErrorHandling){let t=!gt;if(t&&(gt={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=gt;if(gt=null,n)throw r}}else e()}function pu(e){Ce.useDeprecatedSynchronousErrorHandling&>&&(gt.errorThrown=!0,gt.error=e)}var mt=class extends ${constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Ur(t)&&t.add(this)):this.destination=Np}static create(t,n,r){return new Bt(t,n,r)}next(t){this.isStopped?hs(hu(t),this):this._next(t)}error(t){this.isStopped?hs(fu(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?hs(du,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()}}},Tp=Function.prototype.bind;function fs(e,t){return Tp.call(e,t)}var ps=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Hr(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Hr(r)}else Hr(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Hr(n)}}},Bt=class extends mt{constructor(t,n,r){super();let o;if(b(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Ce.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&fs(t.next,i),error:t.error&&fs(t.error,i),complete:t.complete&&fs(t.complete,i)}):o=t}this.destination=new ps(o)}};function Hr(e){Ce.useDeprecatedSynchronousErrorHandling?pu(e):$r(e)}function _p(e){throw e}function hs(e,t){let{onStoppedNotification:n}=Ce;n&&jt.setTimeout(()=>n(e,t))}var Np={closed:!0,next:Rn,error:_p,complete:Rn};var Ut=typeof Symbol=="function"&&Symbol.observable||"@@observable";function he(e){return e}function gs(...e){return ms(e)}function ms(e){return e.length===0?he:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var P=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=xp(n)?n:new Bt(n,r,o);return Vt(()=>{let{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 r=gu(r),new r((o,i)=>{let s=new Bt({next:a=>{try{n(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[Ut](){return this}pipe(...n){return ms(n)(this)}toPromise(n){return n=gu(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function gu(e){var t;return(t=e??Ce.Promise)!==null&&t!==void 0?t:Promise}function Rp(e){return e&&b(e.next)&&b(e.error)&&b(e.complete)}function xp(e){return e&&e instanceof mt||Rp(e)&&Ur(e)}function ys(e){return b(e?.lift)}function k(e){return t=>{if(ys(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 O(e,t,n,r,o){return new vs(e,t,n,r,o)}var vs=class extends mt{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}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()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function $t(){return k((e,t)=>{let n=null;e._refCount++;let r=O(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var Ht=class extends P{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,ys(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new $;let n=this.getSubject();t.add(this.source.subscribe(O(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=$.EMPTY)}return t}refCount(){return $t()(this)}};var mu=Lt(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var J=(()=>{class e extends P{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new zr(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new mu}next(n){Vt(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Vt(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Vt(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{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((n=this.observers)===null||n===void 0?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){let{hasError:r,isStopped:o,observers:i}=this;return r||o?ls:(this.currentObservers=null,i.push(n),new $(()=>{this.currentObservers=null,Nn(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new P;return n.source=this,n}}return e.create=(t,n)=>new zr(t,n),e})(),zr=class extends J{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:ls}};var ee=class extends J{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var ie=new P(e=>e.complete());function yu(e){return e&&b(e.schedule)}function vu(e){return e[e.length-1]}function qr(e){return b(vu(e))?e.pop():void 0}function et(e){return yu(vu(e))?e.pop():void 0}function Eu(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(l){try{u(r.next(l))}catch(f){s(f)}}function c(l){try{u(r.throw(l))}catch(f){s(f)}}function u(l){l.done?i(l.value):o(l.value).then(a,c)}u((r=r.apply(e,t||[])).next())})}function Du(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")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.")}function yt(e){return this instanceof yt?(this.v=e,this):new yt(e)}function wu(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(d){return function(p){return Promise.resolve(p).then(d,f)}}function a(d,p){r[d]&&(o[d]=function(m){return new Promise(function(D,N){i.push([d,m,D,N])>1||c(d,m)})},p&&(o[d]=p(o[d])))}function c(d,p){try{u(r[d](p))}catch(m){h(i[0][3],m)}}function u(d){d.value instanceof yt?Promise.resolve(d.value.v).then(l,f):h(i[0][2],d)}function l(d){c("next",d)}function f(d){c("throw",d)}function h(d,p){d(p),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Iu(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Du=="function"?Du(e):e[Symbol.iterator](),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,c){s=e[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(u){i({value:u,done:a})},s)}}var Gr=e=>e&&typeof e.length=="number"&&typeof e!="function";function Wr(e){return b(e?.then)}function Zr(e){return b(e[Ut])}function Yr(e){return Symbol.asyncIterator&&b(e?.[Symbol.asyncIterator])}function Qr(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Ap(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Kr=Ap();function Xr(e){return b(e?.[Kr])}function Jr(e){return wu(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield yt(n.read());if(o)return yield yt(void 0);yield yield yt(r)}}finally{n.releaseLock()}})}function eo(e){return b(e?.getReader)}function H(e){if(e instanceof P)return e;if(e!=null){if(Zr(e))return Op(e);if(Gr(e))return kp(e);if(Wr(e))return Pp(e);if(Yr(e))return Cu(e);if(Xr(e))return Fp(e);if(eo(e))return Lp(e)}throw Qr(e)}function Op(e){return new P(t=>{let n=e[Ut]();if(b(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function kp(e){return new P(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,$r)})}function Fp(e){return new P(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Cu(e){return new P(t=>{jp(e,t).catch(n=>t.error(n))})}function Lp(e){return Cu(Jr(e))}function jp(e,t){var n,r,o,i;return Eu(this,void 0,void 0,function*(){try{for(n=Iu(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),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()})}function se(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function to(e,t=0){return k((n,r)=>{n.subscribe(O(r,o=>se(r,e,()=>r.next(o),t),()=>se(r,e,()=>r.complete(),t),o=>se(r,e,()=>r.error(o),t)))})}function no(e,t=0){return k((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function bu(e,t){return H(e).pipe(no(t),to(t))}function Su(e,t){return H(e).pipe(no(t),to(t))}function Mu(e,t){return new P(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Tu(e,t){return new P(n=>{let r;return se(n,t,()=>{r=e[Kr](),se(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>b(r?.return)&&r.return()})}function ro(e,t){if(!e)throw new Error("Iterable cannot be null");return new P(n=>{se(n,t,()=>{let r=e[Symbol.asyncIterator]();se(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function _u(e,t){return ro(Jr(e),t)}function Nu(e,t){if(e!=null){if(Zr(e))return bu(e,t);if(Gr(e))return Mu(e,t);if(Wr(e))return Su(e,t);if(Yr(e))return ro(e,t);if(Xr(e))return Tu(e,t);if(eo(e))return _u(e,t)}throw Qr(e)}function U(e,t){return t?Nu(e,t):H(e)}function I(...e){let t=et(e);return U(e,t)}function zt(e,t){let n=b(e)?e:()=>e,r=o=>o.error(n());return new P(t?o=>t.schedule(r,0,o):r)}function Ds(e){return!!e&&(e instanceof P||b(e.lift)&&b(e.subscribe))}var $e=Lt(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function x(e,t){return k((n,r)=>{let o=0;n.subscribe(O(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:Vp}=Array;function Bp(e,t){return Vp(t)?e(...t):e(t)}function oo(e){return x(t=>Bp(e,t))}var{isArray:Up}=Array,{getPrototypeOf:$p,prototype:Hp,keys:zp}=Object;function io(e){if(e.length===1){let t=e[0];if(Up(t))return{args:t,keys:null};if(qp(t)){let n=zp(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function qp(e){return e&&typeof e=="object"&&$p(e)===Hp}function so(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function ao(...e){let t=et(e),n=qr(e),{args:r,keys:o}=io(e);if(r.length===0)return U([],t);let i=new P(Gp(r,t,o?s=>so(o,s):he));return n?i.pipe(oo(n)):i}function Gp(e,t,n=he){return r=>{Ru(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c{let u=U(e[c],t),l=!1;u.subscribe(O(r,f=>{i[c]=f,l||(l=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function Ru(e,t,n){e?se(n,e,t):t()}function xu(e,t,n,r,o,i,s,a){let c=[],u=0,l=0,f=!1,h=()=>{f&&!c.length&&!u&&t.complete()},d=m=>u{i&&t.next(m),u++;let D=!1;H(n(m,l++)).subscribe(O(t,N=>{o?.(N),i?d(N):t.next(N)},()=>{D=!0},void 0,()=>{if(D)try{for(u--;c.length&&up(N)):p(N)}h()}catch(N){t.error(N)}}))};return e.subscribe(O(t,d,()=>{f=!0,h()})),()=>{a?.()}}function W(e,t,n=1/0){return b(t)?W((r,o)=>x((i,s)=>t(r,i,o,s))(H(e(r,o))),n):(typeof t=="number"&&(n=t),k((r,o)=>xu(r,o,e,n)))}function Au(e=1/0){return W(he,e)}function Ou(){return Au(1)}function qt(...e){return Ou()(U(e,et(e)))}function co(e){return new P(t=>{H(e()).subscribe(t)})}function Wp(...e){let t=qr(e),{args:n,keys:r}=io(e),o=new P(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,u=s;for(let l=0;l{f||(f=!0,u--),a[l]=h},()=>c--,void 0,()=>{(!c||!f)&&(u||i.next(r?so(r,a):a),i.complete())}))}});return t?o.pipe(oo(t)):o}function pe(e,t){return k((n,r)=>{let o=0;n.subscribe(O(r,i=>e.call(t,i,o++)&&r.next(i)))})}function be(e){return k((t,n)=>{let r=null,o=!1,i;r=t.subscribe(O(n,void 0,void 0,s=>{i=H(e(s,be(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function ku(e,t,n,r,o){return(i,s)=>{let a=n,c=t,u=0;i.subscribe(O(s,l=>{let f=u++;c=a?e(c,l,f):(a=!0,l),r&&s.next(c)},o&&(()=>{a&&s.next(c),s.complete()})))}}function tt(e,t){return b(t)?W(e,t,1):W(e,1)}function nt(e){return k((t,n)=>{let r=!1;t.subscribe(O(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function He(e){return e<=0?()=>ie:k((t,n)=>{let r=0;t.subscribe(O(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function uo(e=Zp){return k((t,n)=>{let r=!1;t.subscribe(O(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function Zp(){return new $e}function vt(e){return k((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function ze(e,t){let n=arguments.length>=2;return r=>r.pipe(e?pe((o,i)=>e(o,i,r)):he,He(1),n?nt(t):uo(()=>new $e))}function Gt(e){return e<=0?()=>ie:k((t,n)=>{let r=[];t.subscribe(O(n,o=>{r.push(o),e{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function Es(e,t){let n=arguments.length>=2;return r=>r.pipe(e?pe((o,i)=>e(o,i,r)):he,Gt(1),n?nt(t):uo(()=>new $e))}function ws(e,t){return k(ku(e,t,arguments.length>=2,!0))}function Is(...e){let t=et(e);return k((n,r)=>{(t?qt(e,n,t):qt(e,n)).subscribe(r)})}function ge(e,t){return k((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(O(r,c=>{o?.unsubscribe();let u=0,l=i++;H(e(c,l)).subscribe(o=O(r,f=>r.next(t?t(c,f,l,u++):f),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Cs(e){return k((t,n)=>{H(e).subscribe(O(n,()=>n.complete(),Rn)),!n.closed&&t.subscribe(n)})}function z(e,t,n){let r=b(e)||t||n?{next:e,error:t,complete:n}:e;return r?k((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(O(i,c=>{var u;(u=r.next)===null||u===void 0||u.call(r,c),i.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete()},c=>{var u;a=!1,(u=r.error)===null||u===void 0||u.call(r,c),i.error(c)},()=>{var c,u;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(u=r.finalize)===null||u===void 0||u.call(r)}))}):he}var Yp="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",v=class extends Error{code;constructor(t,n){super(Kp(t,n)),this.code=t}};function Qp(e){return`NG0${Math.abs(e)}`}function Kp(e,t){return`${Qp(e)}${t?": "+t:""}`}var wl=Symbol("InputSignalNode#UNSET"),Xp=B(y({},jr),{transformFn:void 0,applyValueToInputSignal(e,t){Tn(e,t)}});function Il(e,t){let n=Object.create(Xp);n.value=e,n.transformFn=t?.transform;function r(){if(Mn(n),n.value===wl){let o=null;throw new v(-950,o)}return n.value}return r[Ee]=n,r}function Ho(e){return{toString:e}.toString()}function j(e){for(let t in e)if(e[t]===j)return t;throw Error("Could not find renamed property on target object.")}function Jp(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function ue(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(ue).join(", ")}]`;if(e==null)return""+e;let t=e.overriddenName||e.name;if(t)return`${t}`;let n=e.toString();if(n==null)return""+n;let r=n.indexOf(` `);return r>=0?n.slice(0,r):n}function Pu(e,t){return e?t?`${e} ${t}`:e:t||""}var eg=j({__forward_ref__:j});function Cl(e){return e.__forward_ref__=Cl,e.toString=function(){return ue(this())},e}function te(e){return bl(e)?e():e}function bl(e){return typeof e=="function"&&e.hasOwnProperty(eg)&&e.__forward_ref__===Cl}function w(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Wn(e){return{providers:e.providers||[],imports:e.imports||[]}}function zo(e){return Fu(e,Ml)||Fu(e,Tl)}function Sl(e){return zo(e)!==null}function Fu(e,t){return e.hasOwnProperty(t)?e[t]:null}function tg(e){let t=e&&(e[Ml]||e[Tl]);return t||null}function Lu(e){return e&&(e.hasOwnProperty(ju)||e.hasOwnProperty(ng))?e[ju]:null}var Ml=j({\u0275prov:j}),ju=j({\u0275inj:j}),Tl=j({ngInjectableDef:j}),ng=j({ngInjectorDef:j}),E=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=w({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function _l(e){return e&&!!e.\u0275providers}var rg=j({\u0275cmp:j}),og=j({\u0275dir:j}),ig=j({\u0275pipe:j}),sg=j({\u0275mod:j}),yo=j({\u0275fac:j}),kn=j({__NG_ELEMENT_ID__:j}),Vu=j({__NG_ENV_ID__:j});function Dt(e){return typeof e=="string"?e:e==null?"":String(e)}function ag(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():Dt(e)}function Nl(e,t){throw new v(-200,e)}function Ta(e,t){throw new v(-201,!1)}var T=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(T||{}),Vs;function Rl(){return Vs}function ae(e){let t=Vs;return Vs=e,t}function xl(e,t,n){let r=zo(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&T.Optional)return null;if(t!==void 0)return t;Ta(e,"Injector")}var cg={},Et=cg,ug="__NG_DI_FLAG__",vo=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=n;return this.injector.get(t,r.optional?Vr:Et,r)}},Do="ngTempTokenPath",lg="ngTokenPath",dg=/\n/gm,fg="\u0275",Bu="__source";function hg(e,t=T.Default){if(_n()===void 0)throw new v(-203,!1);if(_n()===null)return xl(e,void 0,t);{let n=_n(),r;return n instanceof vo?r=n.injector:r=n,r.get(e,t&T.Optional?null:void 0,t)}}function C(e,t=T.Default){return(Rl()||hg)(te(e),t)}function g(e,t=T.Default){return C(e,qo(t))}function qo(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Bs(e){let t=[];for(let n=0;n ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):ue(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(dg,` `)}`}function It(e,t){let n=e.hasOwnProperty(yo);return n?e[yo]:null}function _a(e,t){e.forEach(n=>Array.isArray(n)?_a(n,t):t(n))}function Al(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Eo(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function yg(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function vg(e,t,n){let r=Zn(e,t);return r>=0?e[r|1]=n:(r=~r,yg(e,r,t,n)),r}function bs(e,t){let n=Zn(e,t);if(n>=0)return e[n|1]}function Zn(e,t){return Dg(e,t,1)}function Dg(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<{n.push(s)};return _a(t,s=>{let a=s;Us(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Ll(o,i),n}function Ll(e,t){for(let n=0;n{t(i,r)})}}function Us(e,t,n,r){if(e=te(e),!e)return!1;let o=null,i=Lu(e),s=!i&&Kt(e);if(!i&&!s){let c=e.ngModule;if(i=Lu(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)Us(u,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;try{_a(i.imports,l=>{Us(l,t,n,r)&&(u||=[],u.push(l))})}finally{}u!==void 0&&Ll(u,t)}if(!a){let u=It(o)||(()=>new o);t({provide:o,useFactory:u,deps:we},o),t({provide:kl,useValue:o,multi:!0},o),t({provide:Pn,useValue:()=>C(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=e;Na(c,l=>{t(l,u)})}}else return!1;return o!==e&&e.providers!==void 0}function Na(e,t){for(let n of e)_l(n)&&(n=n.\u0275providers),Array.isArray(n)?Na(n,t):t(n)}var Cg=j({provide:String,useValue:j});function jl(e){return e!==null&&typeof e=="object"&&Cg in e}function bg(e){return!!(e&&e.useExisting)}function Sg(e){return!!(e&&e.useFactory)}function Xt(e){return typeof e=="function"}function Mg(e){return!!e.useClass}var Go=new E(""),fo={},Uu={},Ss;function Ra(){return Ss===void 0&&(Ss=new wo),Ss}var le=class{},Fn=class extends le{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,Hs(t,s=>this.processProvider(s)),this.records.set(Ol,Wt(void 0,this)),o.has("environment")&&this.records.set(le,Wt(void 0,this));let i=this.records.get(Go);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(kl,we,T.Self))}retrieve(t,n){let r=n;return this.get(t,r.optional?Vr:Et,r)}destroy(){An(this),this._destroyed=!0;let t=_(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),_(t)}}onDestroy(t){return An(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){An(this);let n=Ue(this),r=ae(void 0),o;try{return t()}finally{Ue(n),ae(r)}}get(t,n=Et,r=T.Default){if(An(this),t.hasOwnProperty(Vu))return t[Vu](this);r=qo(r);let o,i=Ue(this),s=ae(void 0);try{if(!(r&T.SkipSelf)){let c=this.records.get(t);if(c===void 0){let u=xg(t)&&zo(t);u&&this.injectableDefInScope(u)?c=Wt($s(t),fo):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c,r)}let a=r&T.Self?Ra():this.parent;return n=r&T.Optional&&n===Et?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Do]=a[Do]||[]).unshift(ue(t)),i)throw a;return gg(a,t,"R3InjectorError",this.source)}else throw a}finally{ae(s),Ue(i)}}resolveInjectorInitializers(){let t=_(null),n=Ue(this),r=ae(void 0),o;try{let i=this.get(Pn,we,T.Self);for(let s of i)s()}finally{Ue(n),ae(r),_(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(ue(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=te(t);let n=Xt(t)?t:te(t&&t.provide),r=_g(t);if(!Xt(t)&&t.multi===!0){let o=this.records.get(n);o||(o=Wt(void 0,fo,!0),o.factory=()=>Bs(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n,r){let o=_(null);try{return n.value===Uu?Nl(ue(t)):n.value===fo&&(n.value=Uu,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&Rg(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{_(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=te(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function $s(e){let t=zo(e),n=t!==null?t.factory:It(e);if(n!==null)return n;if(e instanceof E)throw new v(204,!1);if(e instanceof Function)return Tg(e);throw new v(204,!1)}function Tg(e){if(e.length>0)throw new v(204,!1);let n=tg(e);return n!==null?()=>n.factory(e):()=>new e}function _g(e){if(jl(e))return Wt(void 0,e.useValue);{let t=Vl(e);return Wt(t,fo)}}function Vl(e,t,n){let r;if(Xt(e)){let o=te(e);return It(o)||$s(o)}else if(jl(e))r=()=>te(e.useValue);else if(Sg(e))r=()=>e.useFactory(...Bs(e.deps||[]));else if(bg(e))r=(o,i)=>C(te(e.useExisting),i!==void 0&&i&T.Optional?T.Optional:void 0);else{let o=te(e&&(e.useClass||e.provide));if(Ng(e))r=()=>new o(...Bs(e.deps));else return It(o)||$s(o)}return r}function An(e){if(e.destroyed)throw new v(205,!1)}function Wt(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Ng(e){return!!e.deps}function Rg(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function xg(e){return typeof e=="function"||typeof e=="object"&&e instanceof E}function Hs(e,t){for(let n of e)Array.isArray(n)?Hs(n,t):n&&_l(n)?Hs(n.\u0275providers,t):t(n)}function me(e,t){let n;e instanceof Fn?(An(e),n=e):n=new vo(e);let r,o=Ue(n),i=ae(void 0);try{return t()}finally{Ue(o),ae(i)}}function Ag(){return Rl()!==void 0||_n()!=null}function Og(e){return typeof e=="function"}var Ge=0,R=1,S=2,re=3,Me=4,_e=5,Ln=6,Io=7,Z=8,Jt=9,it=10,Q=11,jn=12,$u=13,sn=14,Te=15,en=16,Zt=17,tn=18,Wo=19,Bl=20,rt=21,Ms=22,Co=23,Ie=24,Ts=25,de=26,Ul=1;var bt=7,bo=8,So=9,ne=10;function ot(e){return Array.isArray(e)&&typeof e[Ul]=="object"}function We(e){return Array.isArray(e)&&e[Ul]===!0}function $l(e){return(e.flags&4)!==0}function an(e){return e.componentOffset>-1}function xa(e){return(e.flags&1)===1}function Oe(e){return!!e.template}function Mo(e){return(e[S]&512)!==0}function cn(e){return(e[S]&256)===256}var zs=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Hl(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var Aa=(()=>{let e=()=>zl;return e.ngInherit=!0,e})();function zl(e){return e.type.prototype.ngOnChanges&&(e.setInput=Pg),kg}function kg(){let e=Gl(this),t=e?.current;if(t){let n=e.previous;if(n===Ct)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Pg(e,t,n,r,o){let i=this.declaredInputs[r],s=Gl(e)||Fg(e,{previous:Ct,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new zs(u&&u.currentValue,n,c===Ct),Hl(e,t,o,n)}var ql="__ngSimpleChanges__";function Gl(e){return e[ql]||null}function Fg(e,t){return e[ql]=t}var Hu=null;var V=function(e,t=null,n){Hu?.(e,t,n)},Lg="svg",jg="math";function ke(e){for(;Array.isArray(e);)e=e[Ge];return e}function Wl(e,t){return ke(t[e])}function Ze(e,t){return ke(t[e.index])}function Oa(e,t){return e.data[t]}function Vg(e,t){return e[t]}function Bg(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function Pe(e,t){let n=t[e];return ot(n)?n:n[Ge]}function ka(e){return(e[S]&128)===128}function Ug(e){return We(e[re])}function nn(e,t){return t==null?null:e[t]}function Zl(e){e[Zt]=0}function Yl(e){e[S]&1024||(e[S]|=1024,ka(e)&&Yo(e))}function $g(e,t){for(;e>0;)t=t[sn],e--;return t}function Zo(e){return!!(e[S]&9216||e[Ie]?.dirty)}function qs(e){e[it].changeDetectionScheduler?.notify(8),e[S]&64&&(e[S]|=1024),Zo(e)&&Yo(e)}function Yo(e){e[it].changeDetectionScheduler?.notify(0);let t=St(e);for(;t!==null&&!(t[S]&8192||(t[S]|=8192,!ka(t)));)t=St(t)}function Ql(e,t){if(cn(e))throw new v(911,!1);e[rt]===null&&(e[rt]=[]),e[rt].push(t)}function Hg(e,t){if(e[rt]===null)return;let n=e[rt].indexOf(t);n!==-1&&e[rt].splice(n,1)}function St(e){let t=e[re];return We(t)?t[re]:t}function Kl(e){return e[Io]??=[]}function Xl(e){return e.cleanup??=[]}var A={lFrame:ad(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Gs=!1;function zg(){return A.lFrame.elementDepthCount}function qg(){A.lFrame.elementDepthCount++}function Gg(){A.lFrame.elementDepthCount--}function Jl(){return A.bindingsEnabled}function Wg(){return A.skipHydrationRootTNode!==null}function Zg(e){return A.skipHydrationRootTNode===e}function Yg(){A.skipHydrationRootTNode=null}function L(){return A.lFrame.lView}function oe(){return A.lFrame.tView}function U_(e){return A.lFrame.contextLView=e,e[Z]}function $_(e){return A.lFrame.contextLView=null,e}function Ne(){let e=ed();for(;e!==null&&e.type===64;)e=e.parent;return e}function ed(){return A.lFrame.currentTNode}function Qg(){let e=A.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Qn(e,t){let n=A.lFrame;n.currentTNode=e,n.isParent=t}function td(){return A.lFrame.isParent}function Kg(){A.lFrame.isParent=!1}function nd(){return Gs}function zu(e){let t=Gs;return Gs=e,t}function Xg(){let e=A.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function rd(){return A.lFrame.bindingIndex}function Jg(e){return A.lFrame.bindingIndex=e}function Kn(){return A.lFrame.bindingIndex++}function Pa(e){let t=A.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function em(){return A.lFrame.inI18n}function tm(e,t){let n=A.lFrame;n.bindingIndex=n.bindingRootIndex=e,Ws(t)}function nm(){return A.lFrame.currentDirectiveIndex}function Ws(e){A.lFrame.currentDirectiveIndex=e}function rm(e){let t=A.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function od(e){A.lFrame.currentQueryIndex=e}function om(e){let t=e[R];return t.type===2?t.declTNode:t.type===1?e[_e]:null}function id(e,t,n){if(n&T.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&T.Host);)if(o=om(i),o===null||(i=i[sn],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=A.lFrame=sd();return r.currentTNode=t,r.lView=e,!0}function Fa(e){let t=sd(),n=e[R];A.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function sd(){let e=A.lFrame,t=e===null?null:e.child;return t===null?ad(e):t}function ad(e){let 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 e!==null&&(e.child=t),t}function cd(){let e=A.lFrame;return A.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var ud=cd;function La(){let e=cd();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 im(e){return(A.lFrame.contextLView=$g(e,A.lFrame.contextLView))[Z]}function Ye(){return A.lFrame.selectedIndex}function Mt(e){A.lFrame.selectedIndex=e}function ja(){let e=A.lFrame;return Oa(e.tView,e.selectedIndex)}function sm(){return A.lFrame.currentNamespace}var ld=!0;function Va(){return ld}function Ba(e){ld=e}function am(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=zl(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function dd(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[c]<0&&(e[Zt]+=65536),(a>14>16&&(e[S]&3)===t&&(e[S]+=16384,qu(a,i)):qu(a,i)}var Qt=-1,Tt=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r){this.factory=t,this.canSeeViewProviders=n,this.injectImpl=r}};function um(e){return(e.flags&8)!==0}function lm(e){return(e.flags&16)!==0}function dm(e,t,n){let r=0;for(;rt){s=i-1;break}}}for(;i>16}function _o(e,t){let n=pm(e),r=t;for(;n>0;)r=r[sn],n--;return r}var Zs=!0;function No(e){let t=Zs;return Zs=e,t}var gm=256,pd=gm-1,gd=5,mm=0,Ae={};function ym(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(kn)&&(r=n[kn]),r==null&&(r=n[kn]=mm++);let o=r&pd,i=1<>gd)]|=i}function Ro(e,t){let n=md(e,t);if(n!==-1)return n;let r=t[R];r.firstCreatePass&&(e.injectorIndex=t.length,Ns(r.data,e),Ns(t,null),Ns(r.blueprint,null));let o=Ua(e,t),i=e.injectorIndex;if(hd(o)){let s=To(o),a=_o(o,t),c=a[R].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u]}return t[i+8]=o,i}function Ns(e,t){e.push(0,0,0,0,0,0,0,0,t)}function md(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Ua(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=wd(o),r===null)return Qt;if(n++,o=o[sn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Qt}function Ys(e,t,n){ym(e,t,n)}function yd(e,t,n){if(n&T.Optional||e!==void 0)return e;Ta(t,"NodeInjector")}function vd(e,t,n,r){if(n&T.Optional&&r===void 0&&(r=null),(n&(T.Self|T.Host))===0){let o=e[Jt],i=ae(void 0);try{return o?o.get(t,r,n&T.Optional):xl(t,r,n&T.Optional)}finally{ae(i)}}return yd(r,t,n)}function Dd(e,t,n,r=T.Default,o){if(e!==null){if(t[S]&2048&&!(r&T.Self)){let s=Im(e,t,n,r,Ae);if(s!==Ae)return s}let i=Ed(e,t,n,r,Ae);if(i!==Ae)return i}return vd(t,n,r,o)}function Ed(e,t,n,r,o){let i=Em(n);if(typeof i=="function"){if(!id(t,e,r))return r&T.Host?yd(o,n,r):vd(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&T.Optional))Ta(n);else return s}finally{ud()}}else if(typeof i=="number"){let s=null,a=md(e,t),c=Qt,u=r&T.Host?t[Te][_e]:null;for((a===-1||r&T.SkipSelf)&&(c=a===-1?Ua(e,t):t[a+8],c===Qt||!Zu(r,!1)?a=-1:(s=t[R],a=To(c),t=_o(c,t)));a!==-1;){let l=t[R];if(Wu(i,a,l.data)){let f=vm(a,t,n,s,r,u);if(f!==Ae)return f}c=t[a+8],c!==Qt&&Zu(r,t[R].data[a+8]===u)&&Wu(i,a,t)?(s=l,a=To(c),t=_o(c,t)):a=-1}}return o}function vm(e,t,n,r,o,i){let s=t[R],a=s.data[e+8],c=r==null?an(a)&&Zs:r!=s&&(a.type&3)!==0,u=o&T.Host&&i===a,l=Dm(a,s,n,c,u);return l!==null?xo(t,s,l,a,o):Ae}function Dm(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,u=e.directiveEnd,l=i>>20,f=r?a:a+l,h=o?a+l:u;for(let d=f;d=c&&p.type===n)return d}if(o){let d=s[c];if(d&&Oe(d)&&d.type===n)return c}return null}function xo(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof Tt){let a=i;a.resolving&&Nl(ag(s[n]));let c=No(a.canSeeViewProviders);a.resolving=!0;let u,l=a.injectImpl?ae(a.injectImpl):null,f=id(e,r,T.Default);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&am(n,s[n],t)}finally{l!==null&&ae(l),No(c),a.resolving=!1,ud()}}return i}function Em(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(kn)?e[kn]:void 0;return typeof t=="number"?t>=0?t&pd:wm:t}function Wu(e,t,n){let r=1<>gd)]&r)}function Zu(e,t){return!(e&T.Self)&&!(e&T.Host&&t)}var wt=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Dd(this._tNode,this._lView,t,qo(r),n)}};function wm(){return new wt(Ne(),L())}function $a(e){return Ho(()=>{let t=e.prototype.constructor,n=t[yo]||Qs(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[yo]||Qs(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Qs(e){return bl(e)?()=>{let t=Qs(te(e));return t&&t()}:It(e)}function Im(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[S]&2048&&!Mo(s);){let a=Ed(i,s,n,r|T.Self,Ae);if(a!==Ae)return a;let c=i.parent;if(!c){let u=s[Bl];if(u){let l=u.get(n,Ae,r);if(l!==Ae)return l}c=wd(s),s=s[sn]}i=c}return o}function wd(e){let t=e[R],n=t.type;return n===2?t.declTNode:n===1?e[_e]:null}function Yu(e,t=null,n=null,r){let o=Id(e,t,n,r);return o.resolveInjectorInitializers(),o}function Id(e,t=null,n=null,r,o=new Set){let i=[n||we,Ig(e)];return r=r||(typeof e=="object"?void 0:ue(e)),new Fn(i,t||Ra(),r||null,o)}var st=class e{static THROW_IF_NOT_FOUND=Et;static NULL=new wo;static create(t,n){if(Array.isArray(t))return Yu({name:""},n,t,"");{let r=t.name??"";return Yu({name:r},t.parent,t.providers,r)}}static \u0275prov=w({token:e,providedIn:"any",factory:()=>C(Ol)});static __NG_ELEMENT_ID__=-1};var Cm=new E("");Cm.__NG_ELEMENT_ID__=e=>{let t=Ne();if(t===null)throw new v(204,!1);if(t.type&2)return t.value;if(e&T.Optional)return null;throw new v(204,!1)};var Cd=!1,Xn=(()=>{class e{static __NG_ELEMENT_ID__=bm;static __NG_ENV_ID__=n=>n}return e})(),Ks=class extends Xn{_lView;constructor(t){super(),this._lView=t}onDestroy(t){let n=this._lView;return cn(n)?(t(),()=>{}):(Ql(n,t),()=>Hg(n,t))}};function bm(){return new Ks(L())}var Bn=class{},Ha=new E("",{providedIn:"root",factory:()=>!1});var bd=new E(""),Sd=new E(""),ct=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new ee(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=w({token:e,providedIn:"root",factory:()=>new e})}return e})();var Xs=class extends J{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,Ag()&&(this.destroyRef=g(Xn,{optional:!0})??void 0,this.pendingTasks=g(ct,{optional:!0})??void 0)}emit(t){let n=_(null);try{super.next(t)}finally{_(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof $&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{t(n)}finally{r!==void 0&&this.pendingTasks?.remove(r)}})}}},ce=Xs;function Ao(...e){}function Md(e){let t,n;function r(){e=Ao;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function Qu(e){return queueMicrotask(()=>e()),()=>{e=Ao}}var za="isAngularZone",Oo=za+"_ID",Sm=0,Y=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new ce(!1);onMicrotaskEmpty=new ce(!1);onStable=new ce(!1);onError=new ce(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=Cd}=t;if(typeof Zone>"u")throw new v(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,_m(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(za)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new v(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new v(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,Mm,Ao,Ao);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)}},Mm={};function qa(e){if(e._nesting==0&&!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 Tm(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Md(()=>{e.callbackScheduled=!1,Js(e),e.isCheckStableRunning=!0,qa(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Js(e)}function _m(e){let t=()=>{Tm(e)},n=Sm++;e._inner=e._inner.fork({name:"angular",properties:{[za]:!0,[Oo]:n,[Oo+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(Nm(c))return r.invokeTask(i,s,a,c);try{return Ku(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Xu(e)}},onInvoke:(r,o,i,s,a,c,u)=>{try{return Ku(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Rm(c)&&t(),Xu(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Js(e),qa(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function Js(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Ku(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Xu(e){e._nesting--,qa(e)}var ea=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new ce;onMicrotaskEmpty=new ce;onStable=new ce;onError=new ce;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)}};function Nm(e){return Td(e,"__ignore_ng_zone__")}function Rm(e){return Td(e,"__scheduler_tick__")}function Td(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var qe=class{_console=console;handleError(t){this._console.error("ERROR",t)}},xm=new E("",{providedIn:"root",factory:()=>{let e=g(Y),t=g(qe);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function Ju(e,t){return Il(e,t)}function Am(e){return Il(wl,e)}var _d=(Ju.required=Am,Ju);function Om(){return Ga(Ne(),L())}function Ga(e,t){return new Nd(Ze(e,t))}var Nd=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=Om}return e})();function km(e){return typeof e=="function"&&e[Ee]!==void 0}function Rd(e,t){let n=ss(e,t?.equal),r=n[Ee];return n.set=o=>Tn(r,o),n.update=o=>as(r,o),n.asReadonly=Pm.bind(n),n}function Pm(){let e=this[Ee];if(e.readonlyFn===void 0){let t=()=>this();t[Ee]=e,e.readonlyFn=t}return e.readonlyFn}function xd(e){return km(e)&&typeof e.set=="function"}function Ad(e){return(e.flags&128)===128}var Od=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(Od||{}),kd=new Map,Fm=0;function Lm(){return Fm++}function jm(e){kd.set(e[Wo],e)}function ta(e){kd.delete(e[Wo])}var el="__ngContext__";function Jn(e,t){ot(t)?(e[el]=t[Wo],jm(t)):e[el]=t}function Pd(e){return Ld(e[jn])}function Fd(e){return Ld(e[Me])}function Ld(e){for(;e!==null&&!We(e);)e=e[Me];return e}var na;function jd(e){na=e}function Vm(){if(na!==void 0)return na;if(typeof document<"u")return document;throw new v(210,!1)}var Wa=new E("",{providedIn:"root",factory:()=>Bm}),Bm="ng",Za=new E(""),er=new E("",{providedIn:"platform",factory:()=>"unknown"});var Ya=new E("",{providedIn:"root",factory:()=>Vm().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Um="h",$m="b";var Vd=!1,Hm=new E("",{providedIn:"root",factory:()=>Vd});var Bd=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}(Bd||{}),Qo=new E(""),tl=new Set;function tr(e){tl.has(e)||(tl.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var zm=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=w({token:e,providedIn:"root",factory:()=>new e})}return e})();var qm=(e,t,n,r)=>{};function Gm(e,t,n,r){qm(e,t,n,r)}var Wm=()=>null;function Ud(e,t,n=!1){return Wm(e,t,n)}function $d(e,t){let n=e.contentQueries;if(n!==null){let r=_(null);try{for(let o=0;o-1){let i;for(;++oi?f="":f=o[l+1].toLowerCase(),r&2&&u!==f){if(Se(r))return!1;s=!0}}}}return Se(r)||s}function Se(e){return(e&1)===0}function oy(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!Se(s)&&(t+=rl(i,o),o=""),r=s,i=i||!Se(r);n++}return o!==""&&(t+=rl(i,o)),t}function uy(e){return e.map(cy).join(",")}function ly(e){let t=[],n=[],r=1,o=2;for(;rde&&Kd(e,t,de,!1),V(s?2:0,o),n(r,o)}finally{Mt(i),V(s?3:1,o)}}function ec(e,t,n){Dy(e,t,n),(n.flags&64)===64&&Ey(e,t,n)}function Jd(e,t,n=Ze){let r=t.localNames;if(r!==null){let o=t.index+1;for(let i=0;inull;function yy(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function tc(e,t,n,r,o,i,s,a){if(!a&&nc(t,e,n,r,o)){an(t)&&vy(n,t.index);return}if(t.type&3){let c=Ze(t,n);r=yy(r),o=s!=null?s(o,t.value||"",r):o,i.setProperty(c,r,o)}else t.type&12}function vy(e,t){let n=Pe(t,e);n[S]&16||(n[S]|=64)}function Dy(e,t,n){let r=n.directiveStart,o=n.directiveEnd;an(n)&&hy(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||Ro(n,t);let i=n.initialInputs;for(let s=r;s=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[Io]=null);let o=t[rt];if(o!==null){t[rt]=null;for(let s=0;s{Yo(e.lView)},consumerOnSignalRead(){this.lView[Ie]=this}});function Gy(e){let t=e[Ie]??Object.create(Wy);return t.lView=e,t}var Wy=B(y({},Sn),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=St(e.lView);for(;t&&!af(t[R]);)t=St(t);t&&Yl(t)},consumerOnSignalRead(){this.lView[Ie]=this}});function af(e){return e.type!==2}function cf(e){if(e[Co]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[Co])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[S]&8192)}}var Zy=100;function uf(e,t=!0,n=0){let o=e[it].rendererFactory,i=!1;i||o.begin?.();try{Yy(e,n)}catch(s){throw t&&Cy(e,s),s}finally{i||o.end?.()}}function Yy(e,t){let n=nd();try{zu(!0),aa(e,t);let r=0;for(;Zo(e);){if(r===Zy)throw new v(103,!1);r++,aa(e,1)}}finally{zu(n)}}function Qy(e,t,n,r){if(cn(t))return;let o=t[S],i=!1,s=!1;Fa(t);let a=!0,c=null,u=null;i||(af(e)?(u=$y(t),c=Pr(u)):Ki()===null?(a=!1,u=Gy(t),c=Pr(u)):t[Ie]&&(rs(t[Ie]),t[Ie]=null));try{Zl(t),Jg(e.bindingStartIndex),n!==null&&Xd(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let d=e.preOrderCheckHooks;d!==null&&ho(t,d,null)}else{let d=e.preOrderHooks;d!==null&&po(t,d,0,null),_s(t,0)}if(s||Ky(t),cf(t),lf(t,0),e.contentQueries!==null&&$d(e,t),!i)if(l){let d=e.contentCheckHooks;d!==null&&ho(t,d)}else{let d=e.contentHooks;d!==null&&po(t,d,1),_s(t,1)}Jy(e,t);let f=e.components;f!==null&&ff(t,f,0);let h=e.viewQuery;if(h!==null&&ra(2,h,r),!i)if(l){let d=e.viewCheckHooks;d!==null&&ho(t,d)}else{let d=e.viewHooks;d!==null&&po(t,d,2),_s(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Ms]){for(let d of t[Ms])d();t[Ms]=null}i||(of(t),t[S]&=-73)}catch(l){throw i||Yo(t),l}finally{u!==null&&(ts(u,c),a&&zy(u)),La()}}function lf(e,t){for(let n=Pd(e);n!==null;n=Fd(n))for(let r=ne;r0&&(e[n-1][Me]=r[Me]);let i=Eo(e,ne+t);_y(r[R],r);let s=i[tn];s!==null&&s.detachView(i[R]),r[re]=null,r[Me]=null,r[S]&=-129}return r}function ev(e,t,n,r){let o=ne+r,i=n.length;r>0&&(n[o-1][Me]=t),r-1&&($n(t,r),Eo(n,r))}this._attachedToViewContainer=!1}Xo(this._lView[R],this._lView)}onDestroy(t){Ql(this._lView,t)}markForCheck(){uc(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[S]&=-129}reattach(){qs(this._lView),this._lView[S]|=128}detectChanges(){this._lView[S]|=1024,uf(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new v(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=Mo(this._lView),n=this._lView[en];n!==null&&!t&&sc(n,this._lView),nf(this._lView[R],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new v(902,!1);this._appRef=t;let n=Mo(this._lView),r=this._lView[en];r!==null&&!n&&mf(r,this._lView),qs(this._lView)}};function lc(e,t,n,r,o){let i=e.data[t];if(i===null)i=tv(e,t,n,r,o),em()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=Qg();i.injectorIndex=s===null?-1:s.injectorIndex}return Qn(i,!0),i}function tv(e,t,n,r,o){let i=ed(),s=td(),a=s?i:i&&i.parent,c=e.data[t]=rv(e,a,n,t,r,o);return nv(e,c,i,s),c}function nv(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function rv(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Wg()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var q_=new RegExp(`^(\\d+)*(${$m}|${Um})*(.*)`);var ov=()=>null;function Hn(e,t){return ov(e,t)}var iv=class{},yf=class{},ca=class{resolveComponentFactory(t){throw Error(`No component factory found for ${ue(t)}.`)}},ti=class{static NULL=new ca},rn=class{},sv=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>av()}return e})();function av(){let e=L(),t=Ne(),n=Pe(t.index,e);return(ot(n)?n:e)[Q]}var cv=(()=>{class e{static \u0275prov=w({token:e,providedIn:"root",factory:()=>null})}return e})();var xs={},ua=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=qo(r);let o=this.injector.get(t,xs,r);return o!==xs||n===xs?o:this.parentInjector.get(t,n,r)}};function il(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s0&&(n.directiveToIndex=new Map);for(let h=0;h0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function vv(e,t,n){if(n){if(t.exportAs)for(let r=0;r{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&Ko.SignalBased)!==0};return o&&(i.transform=o),i})}function wv(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function Iv(e,t,n){let r=t instanceof le?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new ua(n,r):n}function Cv(e){let t=e.get(rn,null);if(t===null)throw new v(407,!1);let n=e.get(cv,null),r=e.get(Bn,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r}}function bv(e,t){let n=(e.selectors[0][0]||"div").toLowerCase();return zd(t,n,n==="svg"?Lg:n==="math"?jg:null)}var zn=class extends yf{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=Ev(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=wv(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=uy(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,o){V(22);let i=_(null);try{let s=this.componentDef,a=r?["ng-version","19.2.19"]:ly(this.componentDef.selectors[0]),c=Ka(0,null,null,1,0,null,null,null,null,[a],null),u=Iv(s,o||this.ngModule,t),l=Cv(u),f=l.rendererFactory.createRenderer(null,s),h=r?py(f,r,s.encapsulation,u):bv(s,f),d=Xa(null,c,null,512|Yd(s),null,null,l,f,u,null,Ud(h,u,!0));d[de]=h,Fa(d);let p=null;try{let m=Ef(de,c,d,"#host",()=>[this.componentDef],!0,0);h&&(Gd(f,h,m),Jn(h,d)),ec(c,d,m),Hd(c,m,d),wf(c,m),n!==void 0&&Sv(m,this.ngContentSelectors,n),p=Pe(m.index,d),d[Z]=p[Z],rc(c,d,null)}catch(m){throw p!==null&&ta(p),ta(d),m}finally{V(23),La()}return new la(this.componentType,d)}finally{_(i)}}},la=class extends iv{_rootLView;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n){super(),this._rootLView=n,this._tNode=Oa(n[R],de),this.location=Ga(this._tNode,n),this.instance=Pe(this._tNode.index,n)[Z],this.hostView=this.changeDetectorRef=new Fo(n,void 0,!1),this.componentType=t}setInput(t,n){let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView,i=nc(r,o[R],o,t,n);this.previousInputValues.set(t,n);let s=Pe(r.index,o);uc(s,1)}get injector(){return new wt(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function Sv(e,t,n){let r=e.projection=[];for(let o=0;o{class e{static __NG_ELEMENT_ID__=Mv}return e})();function Mv(){let e=Ne();return _v(e,L())}var Tv=ni,If=class extends Tv{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Ga(this._hostTNode,this._hostLView)}get injector(){return new wt(this._hostTNode,this._hostLView)}get parentInjector(){let t=Ua(this._hostTNode,this._hostLView);if(hd(t)){let n=_o(t,this._hostLView),r=To(t),o=n[R].data[r+8];return new wt(o,n)}else return new wt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=ul(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-ne}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Hn(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,Un(this._hostTNode,s)),a}createComponent(t,n,r,o,i){let s=t&&!Og(t),a;if(s)a=n;else{let p=n||{};a=p.index,r=p.injector,o=p.projectableNodes,i=p.environmentInjector||p.ngModuleRef}let c=s?t:new zn(Kt(t)),u=r||this.parentInjector;if(!i&&c.ngModule==null){let m=(s?u:this.parentInjector).get(le,null);m&&(i=m)}let l=Kt(c.componentType??{}),f=Hn(this._lContainer,l?.id??null),h=f?.firstChild??null,d=c.create(u,o,h,i);return this.insertImpl(d.hostView,a,Un(this._hostTNode,f)),d}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(Ug(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[re],u=new If(c,c[_e],c[re]);u.detach(u.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return ei(s,o,i,r),t.attachToViewContainerRef(),Al(As(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=ul(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=$n(this._lContainer,n);r&&(Eo(As(this._lContainer),n),Xo(r[R],r))}detach(t){let n=this._adjustIndex(t,-1),r=$n(this._lContainer,n);return r&&Eo(As(this._lContainer),n)!=null?new Fo(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function ul(e){return e[bo]}function As(e){return e[bo]||(e[bo]=[])}function _v(e,t){let n,r=t[e.index];return We(r)?n=r:(n=hf(r,t,null,e),t[e.index]=n,Ja(t,n)),Rv(n,t,e,r),new If(n,e,t)}function Nv(e,t){let n=e[Q],r=n.createComment(""),o=Ze(t,e),i=n.parentNode(o);return ko(n,i,r,n.nextSibling(o),!1),r}var Rv=Ov,xv=()=>!1;function Av(e,t,n){return xv(e,t,n)}function Ov(e,t,n,r){if(e[bt])return;let o;n.type&8?o=ke(r):o=Nv(t,n),e[bt]=o}var qn=class{},dc=class{};var da=class extends qn{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new Lo(this);constructor(t,n,r,o=!0){super(),this.ngModuleType=t,this._parent=n;let i=Pl(t);this._bootstrapComponents=Wd(i.bootstrap),this._r3Injector=Id(t,n,[{provide:qn,useValue:this},{provide:ti,useValue:this.componentFactoryResolver},...r],ue(t),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},fa=class extends dc{moduleType;constructor(t){super(),this.moduleType=t}create(t){return new da(this.moduleType,t,[])}};var jo=class extends qn{injector;componentFactoryResolver=new Lo(this);instance=null;constructor(t){super();let n=new Fn([...t.providers,{provide:qn,useValue:this},{provide:ti,useValue:this.componentFactoryResolver}],t.parent||Ra(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function ri(e,t,n=null){return new jo({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var kv=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=Fl(!1,n.type),o=r.length>0?ri([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=w({token:e,providedIn:"environment",factory:()=>new e(C(le))})}return e})();function Cf(e){return Ho(()=>{let t=Sf(e),n=B(y({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Od.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(kv).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Fe.Emulated,styles:e.styles||we,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&tr("NgStandalone"),Mf(n);let r=e.dependencies;return n.directiveDefs=ll(r,!1),n.pipeDefs=ll(r,!0),n.id=Vv(n),n})}function Pv(e){return Kt(e)||Eg(e)}function Fv(e){return e!==null}function rr(e){return Ho(()=>({type:e.type,bootstrap:e.bootstrap||we,declarations:e.declarations||we,imports:e.imports||we,exports:e.exports||we,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Lv(e,t){if(e==null)return Ct;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a,c;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,c=o[3]||null):(i=o,s=o,a=Ko.None,c=null),n[i]=[r,a,c],t[i]=s}return n}function jv(e){if(e==null)return Ct;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function fc(e){return Ho(()=>{let t=Sf(e);return Mf(t),t})}function bf(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function Sf(e){let 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,inputConfig:e.inputs||Ct,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||we,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Lv(e.inputs,t),outputs:jv(e.outputs),debugInfo:null}}function Mf(e){e.features?.forEach(t=>t(e))}function ll(e,t){if(!e)return null;let n=t?wg:Pv;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(Fv)}function Vv(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function Bv(e){return Object.getPrototypeOf(e.prototype).constructor}function Uv(e){let t=Bv(e.type),n=!0,r=[e];for(;t;){let o;if(Oe(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new v(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=Os(e.inputs),s.declaredInputs=Os(e.declaredInputs),s.outputs=Os(e.outputs);let a=o.hostBindings;a&&Gv(e,a);let c=o.viewQuery,u=o.contentQueries;if(c&&zv(e,c),u&&qv(e,u),$v(e,o),Jp(e.outputs,o.outputs),Oe(o)&&o.data.animation){let l=e.data;l.animation=(l.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Vn(o.hostAttrs,n=Vn(n,o.hostAttrs))}}function Os(e){return e===Ct?{}:e===we?[]:e}function zv(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function qv(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function Gv(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function Wv(e,t,n){return e[t]=n}function Le(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function Tf(e,t,n,r){let o=Le(e,t,n);return Le(e,t+1,r)||o}function Zv(e,t,n,r,o){let i=Tf(e,t,n,r);return Le(e,t+2,o)||i}function Yv(e,t,n,r,o,i,s,a,c){let u=t.consts,l=lc(t,e,4,s||null,a||null);Jl()&&vf(t,n,l,nn(u,c),ef),l.mergedAttrs=Vn(l.mergedAttrs,l.attrs),dd(t,l);let f=l.tView=Ka(2,l,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u,null);return t.queries!==null&&(t.queries.template(t,l),f.queries=t.queries.embeddedTView(l)),l}function ha(e,t,n,r,o,i,s,a,c,u){let l=n+de,f=t.firstCreatePass?Yv(l,t,e,r,o,i,s,a,c):t.data[l];Qn(f,!1);let h=Kv(t,e,f,n);Va()&&ac(t,e,h,f),Jn(h,e);let d=hf(h,e,h,f);return e[l]=d,Ja(e,d),Av(d,f,e),xa(f)&&ec(t,e,f),c!=null&&Jd(e,f,u),f}function Qv(e,t,n,r,o,i,s,a){let c=L(),u=oe(),l=nn(u.consts,i);return ha(c,u,e,t,n,r,o,l,s,a),Qv}var Kv=Xv;function Xv(e,t,n,r){return Ba(!0),t[Q].createComment("")}var _f=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();var Nf=new E("");var Jv=(()=>{class e{static \u0275prov=w({token:e,providedIn:"root",factory:()=>new pa})}return e})(),pa=class{queuedEffectCount=0;queues=new Map;schedule(t){this.enqueue(t)}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),this.queuedEffectCount--)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||(this.queuedEffectCount++,r.add(t))}flush(){for(;this.queuedEffectCount>0;)for(let[t,n]of this.queues)t===null?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(let n of t)t.delete(n),this.queuedEffectCount--,n.run()}};function oi(e){return!!e&&typeof e.then=="function"}function eD(e){return!!e&&typeof e.subscribe=="function"}var tD=new E("");var Rf=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=g(tD,{optional:!0})??[];injector=g(st);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=me(this.injector,o);if(oi(i))n.push(i);else if(eD(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),hc=new E("");function nD(){is(()=>{throw new v(600,!1)})}function rD(e){return e.isBoundToModule}var oD=10;var _t=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=g(xm);afterRenderManager=g(zm);zonelessEnabled=g(Ha);rootEffectScheduler=g(Jv);dirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new J;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=g(ct).hasPendingTasks.pipe(x(n=>!n));constructor(){g(Qo,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=g(le);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=st.NULL){V(10);let i=n instanceof yf;if(!this._injector.get(Rf).done){let d="";throw new v(405,d)}let a;i?a=n:a=this._injector.get(ti).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let c=rD(a)?void 0:this._injector.get(qn),u=r||a.selector,l=a.create(o,[],u,c),f=l.location.nativeElement,h=l.injector.get(Nf,null);return h?.registerApplication(f),l.onDestroy(()=>{this.detachView(l.hostView),go(this.components,l),h?.unregisterApplication(f)}),this._loadComponent(l),V(11,l),l}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){V(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(Bd.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new v(101,!1);let n=_(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,_(n),this.afterTick.next(),V(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(rn,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++Zo(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;go(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(hc,[]).forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>go(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new v(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function go(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function iD(e,t,n,r){if(!n&&!Zo(e))return;uf(e,t,n&&!r?0:1)}function xf(e,t,n,r){return Le(e,Kn(),n)?t+Dt(n)+r:ye}function sD(e,t,n,r,o,i){let s=rd(),a=Tf(e,s,n,o);return Pa(2),a?t+Dt(n)+r+Dt(o)+i:ye}function aD(e,t,n,r,o,i,s,a){let c=rd(),u=Zv(e,c,n,o,s);return Pa(3),u?t+Dt(n)+r+Dt(o)+i+Dt(s)+a:ye}function lo(e,t){return e<<17|t<<2}function Nt(e){return e>>17&32767}function cD(e){return(e&2)==2}function uD(e,t){return e&131071|t<<17}function ga(e){return e|2}function on(e){return(e&131068)>>2}function ks(e,t){return e&-131069|t<<2}function lD(e){return(e&1)===1}function ma(e){return e|1}function dD(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=Nt(s),c=on(s);e[r]=n;let u=!1,l;if(Array.isArray(n)){let f=n;l=f[1],(l===null||Zn(f,l)>0)&&(u=!0)}else l=n;if(o)if(c!==0){let h=Nt(e[a+1]);e[r+1]=lo(h,a),h!==0&&(e[h+1]=ks(e[h+1],r)),e[a+1]=uD(e[a+1],r)}else e[r+1]=lo(a,0),a!==0&&(e[a+1]=ks(e[a+1],r)),a=r;else e[r+1]=lo(c,0),a===0?a=r:e[c+1]=ks(e[c+1],r),c=r;u&&(e[r+1]=ga(e[r+1])),dl(e,l,r,!0),dl(e,l,r,!1),fD(t,l,e,r,i),s=lo(a,c),i?t.classBindings=s:t.styleBindings=s}function fD(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Zn(i,t)>=0&&(n[r+1]=ma(n[r+1]))}function dl(e,t,n,r){let o=e[n+1],i=t===null,s=r?Nt(o):on(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],u=e[s+1];hD(c,t)&&(a=!0,e[s+1]=r?ma(u):ga(u)),s=r?Nt(u):on(u)}a&&(e[n+1]=r?ga(o):ma(o))}function hD(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Zn(e,t)>=0:!1}function pD(e,t,n){let r=L(),o=Kn();if(Le(r,o,t)){let i=oe(),s=ja();tc(i,s,r,e,t,r[Q],n,!1)}return pD}function fl(e,t,n,r,o){nc(t,e,n,o?"class":"style",r)}function gD(e,t){return mD(e,t,null,!0),gD}function mD(e,t,n,r){let o=L(),i=oe(),s=Pa(2);if(i.firstUpdatePass&&vD(i,e,s,r),t!==ye&&Le(o,s,t)){let a=i.data[Ye()];CD(i,a,o,o[Q],e,o[s+1]=bD(t,n),r,s)}}function yD(e,t){return t>=e.expandoStartIndex}function vD(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Ye()],s=yD(e,n);SD(i,r)&&t===null&&!s&&(t=!1),t=DD(o,i,t,r),dD(o,i,t,n,s,r)}}function DD(e,t,n,r){let o=rm(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Ps(null,e,t,n,r),n=Gn(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Ps(o,e,t,n,r),i===null){let c=ED(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Ps(null,e,t,c[1],r),c=Gn(c,t.attrs,r),wD(e,t,r,c))}else i=ID(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function ED(e,t,n){let r=n?t.classBindings:t.styleBindings;if(on(r)!==0)return e[Nt(r)]}function wD(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[Nt(o)]=r}function ID(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0;){let c=e[o],u=Array.isArray(c),l=u?c[1]:c,f=l===null,h=n[o+1];h===ye&&(h=f?we:void 0);let d=f?bs(h,r):l===r?h:void 0;if(u&&!Vo(d)&&(d=bs(c,r)),Vo(d)&&(a=d,s))return a;let p=e[o+1];o=s?Nt(p):on(p)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=bs(c,r))}return a}function Vo(e){return e!==void 0}function bD(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=ue(Zm(e)))),e}function SD(e,t){return(e.flags&(t?8:16))!==0}var ya=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(t,n){this.attach(n,this.detach(t))}};function Fs(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function MD(e,t,n){let r,o,i=0,s=e.length-1,a=void 0;if(Array.isArray(t)){let c=t.length-1;for(;i<=s&&i<=c;){let u=e.at(i),l=t[i],f=Fs(i,u,i,l,n);if(f!==0){f<0&&e.updateValue(i,l),i++;continue}let h=e.at(s),d=t[c],p=Fs(s,h,c,d,n);if(p!==0){p<0&&e.updateValue(s,d),s--,c--;continue}let m=n(i,u),D=n(s,h),N=n(i,l);if(Object.is(N,D)){let xe=n(c,d);Object.is(xe,m)?(e.swap(i,s),e.updateValue(s,d),c--,s--):e.move(s,i),e.updateValue(i,l),i++;continue}if(r??=new Bo,o??=gl(e,i,s,n),va(e,r,i,N))e.updateValue(i,l),i++,s++;else if(o.has(N))r.set(m,e.detach(i)),s--;else{let xe=e.create(i,t[i]);e.attach(i,xe),i++,s++}}for(;i<=c;)pl(e,r,n,i,t[i]),i++}else if(t!=null){let c=t[Symbol.iterator](),u=c.next();for(;!u.done&&i<=s;){let l=e.at(i),f=u.value,h=Fs(i,l,i,f,n);if(h!==0)h<0&&e.updateValue(i,f),i++,u=c.next();else{r??=new Bo,o??=gl(e,i,s,n);let d=n(i,f);if(va(e,r,i,d))e.updateValue(i,f),i++,s++,u=c.next();else if(!o.has(d))e.attach(i,e.create(i,f)),i++,s++,u=c.next();else{let p=n(i,l);r.set(p,e.detach(i)),s--}}}for(;!u.done;)pl(e,r,n,e.length,u.value),u=c.next()}for(;i<=s;)e.destroy(e.detach(s--));r?.forEach(c=>{e.destroy(c)})}function va(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function pl(e,t,n,r,o){if(va(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function gl(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var Bo=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}};function X_(e,t){tr("NgControlFlow");let n=L(),r=Kn(),o=n[r]!==ye?n[r]:-1,i=o!==-1?Uo(n,de+o):void 0,s=0;if(Le(n,r,e)){let a=_(null);try{if(i!==void 0&&gf(i,s),e!==-1){let c=de+e,u=Uo(n,c),l=Ia(n[R],c),f=Hn(u,l.tView.ssrId),h=oc(n,l,t,{dehydratedView:f});ei(u,h,s,Un(l,f))}}finally{_(a)}}else if(i!==void 0){let a=pf(i,s);a!==void 0&&(a[Z]=t)}}var Da=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-ne}};var Ea=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function J_(e,t,n,r,o,i,s,a,c,u,l,f,h){tr("NgControlFlow");let d=L(),p=oe(),m=c!==void 0,D=L(),N=a?s.bind(D[Te][Z]):s,xe=new Ea(m,N);D[de+e]=xe,ha(d,p,e+1,t,n,r,o,nn(p.consts,i)),m&&ha(d,p,e+2,c,u,l,f,nn(p.consts,h))}var wa=class extends ya{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r}get length(){return this.lContainer.length-ne}at(t){return this.getLView(t)[Z].$implicit}attach(t,n){let r=n[Ln];this.needsIndexUpdate||=t!==this.length,ei(this.lContainer,n,t,Un(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,TD(this.lContainer,t)}create(t,n){let r=Hn(this.lContainer,this.templateTNode.tView.ssrId),o=oc(this.hostLView,this.templateTNode,new Da(this.lContainer,n,t),{dehydratedView:r});return this.operationsCounter?.recordCreate(),o}destroy(t){Xo(t[R],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[Z].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t(Ba(!0),zd(r,o,sm()));function t0(){return L()}var $o="en-US";var RD=$o;function xD(e){typeof e=="string"&&(RD=e.toLowerCase().replace(/_/g,"-"))}function ml(e,t,n){return function r(o){if(o===Function)return n;let i=an(e)?Pe(e.index,t):t;uc(i,5);let s=t[Z],a=yl(t,s,n,o),c=r.__ngNextListenerFn__;for(;c;)a=yl(t,s,c,o)&&a,c=c.__ngNextListenerFn__;return a}}function yl(e,t,n,r){let o=_(null);try{return V(6,t,n),n(r)!==!1}catch(i){return AD(e,i),!1}finally{V(7,t,n),_(o)}}function AD(e,t){let n=e[Jt],r=n?n.get(qe,null):null;r&&r.handleError(t)}function vl(e,t,n,r,o,i){let s=t[n],a=t[R],u=a.data[n].outputs[r],l=s[u],f=a.firstCreatePass?Xl(a):null,h=Kl(t),d=l.subscribe(i),p=h.length;h.push(i,d),f&&f.push(o,e.index,p,-(p+1))}function OD(e,t,n,r){let o=L(),i=oe(),s=Ne();return kf(i,o,o[Q],s,e,t,r),OD}function kD(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;ic?a[c]:null}typeof s=="string"&&(i+=2)}return null}function kf(e,t,n,r,o,i,s){let a=xa(r),u=e.firstCreatePass?Xl(e):null,l=Kl(t),f=!0;if(r.type&3||s){let h=Ze(r,t),d=s?s(h):h,p=l.length,m=s?N=>s(ke(N[r.index])):r.index,D=null;if(!s&&a&&(D=kD(e,t,o,r.index)),D!==null){let N=D.__ngLastListenerFn__||D;N.__ngNextListenerFn__=i,D.__ngLastListenerFn__=i,f=!1}else{i=ml(r,t,i),Gm(t,d,o,i);let N=n.listen(d,o,i);l.push(i,N),u&&u.push(o,m,p,p+1)}}else i=ml(r,t,i);if(f){let h=r.outputs?.[o],d=r.hostDirectiveOutputs?.[o];if(d&&d.length)for(let p=0;p(Ba(!0),Ym(t[Q],r));function LD(e){return Ff("",e,""),LD}function Ff(e,t,n){let r=L(),o=xf(r,e,t,n);return o!==ye&&gc(r,Ye(),o),Ff}function jD(e,t,n,r,o){let i=L(),s=sD(i,e,t,n,r,o);return s!==ye&&gc(i,Ye(),s),jD}function VD(e,t,n,r,o,i,s){let a=L(),c=aD(a,e,t,n,r,o,i,s);return c!==ye&&gc(a,Ye(),c),VD}function gc(e,t,n){let r=Wl(t,e);Qm(e[Q],r,n)}function BD(e,t,n){xd(t)&&(t=t());let r=L(),o=Kn();if(Le(r,o,t)){let i=oe(),s=ja();tc(i,s,r,e,t,r[Q],n,!1)}return BD}function o0(e,t){let n=xd(e);return n&&e.set(t),n}function UD(e,t){let n=L(),r=oe(),o=Ne();return kf(r,n,n[Q],o,e,t),UD}function $D(e,t,n){let r=oe();if(r.firstCreatePass){let o=Oe(e);Ca(n,r.data,r.blueprint,o,!0),Ca(t,r.data,r.blueprint,o,!1)}}function Ca(e,t,n,r,o){if(e=te(e),Array.isArray(e))for(let i=0;i>20;if(Xt(e)||!e.multi){let d=new Tt(u,o,nr),p=js(c,t,o?l:l+h,f);p===-1?(Ys(Ro(a,s),i,c),Ls(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(d),s.push(d)):(n[p]=d,s[p]=d)}else{let d=js(c,t,l+h,f),p=js(c,t,l,l+h),m=d>=0&&n[d],D=p>=0&&n[p];if(o&&!D||!o&&!m){Ys(Ro(a,s),i,c);let N=qD(o?zD:HD,n.length,o,r,u);!o&&D&&(n[p].providerFactory=N),Ls(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(N),s.push(N)}else{let N=Lf(n[o?p:d],u,!o&&r);Ls(i,e,d>-1?d:p,N)}!o&&r&&D&&n[p].componentProviders++}}}function Ls(e,t,n,r){let o=Xt(t),i=Mg(t);if(o||i){let c=(i?te(t.useClass):t).prototype.ngOnDestroy;if(c){let u=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let l=u.indexOf(n);l===-1?u.push(n,[r,c]):u[l+1].push(r,c)}else u.push(n,c)}}}function Lf(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function js(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>$D(r,o?o(e):e,t)}}function GD(e,t){let n=e[t];return n===ye?void 0:n}function WD(e,t,n,r,o,i){let s=t+n;return Le(e,s,o)?Wv(e,s+1,i?r.call(i,o):r(o)):GD(e,s+1)}function s0(e,t){let n=oe(),r,o=e+de;n.firstCreatePass?(r=ZD(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=It(r.type,!0)),s,a=ae(nr);try{let c=No(!1),u=i();return No(c),Bg(n,L(),o,u),u}finally{ae(a)}}function ZD(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function a0(e,t,n){let r=e+de,o=L(),i=Vg(o,r);return YD(o,r)?WD(o,Xg(),t,i.transform,n,i):i.transform(n)}function YD(e,t){return e[R].data[t].pure}var Sa=class{ngModuleFactory;componentFactories;constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},jf=(()=>{class e{compileModuleSync(n){return new fa(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),o=Pl(n),i=Wd(o.declarations).reduce((s,a)=>{let c=Kt(a);return c&&s.push(new zn(c)),s},[]);return new Sa(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var QD=(()=>{class e{zone=g(Y);changeDetectionScheduler=g(Bn);applicationRef=g(_t);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),KD=new E("",{factory:()=>!1});function Vf({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new Y(B(y({},Bf()),{scheduleInRootZone:n})),[{provide:Y,useFactory:e},{provide:Pn,multi:!0,useFactory:()=>{let r=g(QD,{optional:!0});return()=>r.initialize()}},{provide:Pn,multi:!0,useFactory:()=>{let r=g(XD);return()=>{r.initialize()}}},t===!0?{provide:bd,useValue:!0}:[],{provide:Sd,useValue:n??Cd}]}function c0(e){let t=e?.ignoreChangesOutsideZone,n=e?.scheduleInRootZone,r=Vf({ngZoneFactory:()=>{let o=Bf(e);return o.scheduleInRootZone=n,o.shouldCoalesceEventChangeDetection&&tr("NgZone_CoalesceEvent"),new Y(o)},ignoreChangesOutsideZone:t,scheduleInRootZone:n});return Yn([{provide:KD,useValue:!0},{provide:Ha,useValue:!1},r])}function Bf(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var XD=(()=>{class e{subscription=new $;initialized=!1;zone=g(Y);pendingTasks=g(ct);initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Y.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Y.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var JD=(()=>{class e{appRef=g(_t);taskService=g(ct);ngZone=g(Y);zonelessEnabled=g(Ha);tracing=g(Qo,{optional:!0});disableScheduling=g(bd,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new $;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Oo):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(g(Sd,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof ea||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{this.appRef.dirtyFlags|=16,r=!0;break}case 13:{this.appRef.dirtyFlags|=2,r=!0;break}case 11:{r=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let o=this.useMicrotaskScheduler?Qu:Md;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Oo+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Qu(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function eE(){return typeof $localize<"u"&&$localize.locale||$o}var Uf=new E("",{providedIn:"root",factory:()=>g(Uf,T.Optional|T.SkipSelf)||eE()});var Ma=new E(""),tE=new E("");function xn(e){return!e.moduleRef}function nE(e){let t=xn(e)?e.r3Injector:e.moduleRef.injector,n=t.get(Y);return n.run(()=>{xn(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(qe,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),xn(e)){let i=()=>t.destroy(),s=e.platformInjector.get(Ma);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Ma);s.add(i),e.moduleRef.onDestroy(()=>{go(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return oE(r,n,()=>{let i=t.get(Rf);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get(Uf,$o);if(xD(s||$o),!t.get(tE,!0))return xn(e)?t.get(_t):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(xn(e)){let c=t.get(_t);return e.rootComponent!==void 0&&c.bootstrap(e.rootComponent),c}else return rE(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function rE(e,t){let n=e.injector.get(_t);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new v(-403,!1);t.push(e)}function oE(e,t,n){try{let r=n();return oi(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var mo=null;function iE(e=[],t){return st.create({name:t,providers:[{provide:Go,useValue:"platform"},{provide:Ma,useValue:new Set([()=>mo=null])},...e]})}function sE(e=[]){if(mo)return mo;let t=iE(e);return mo=t,nD(),aE(t),t}function aE(e){let t=e.get(Za,null);me(e,()=>{t?.forEach(n=>n())})}var mc=(()=>{class e{static __NG_ELEMENT_ID__=cE}return e})();function cE(e){return uE(Ne(),L(),(e&16)===16)}function uE(e,t,n){if(an(e)&&!n){let r=Pe(e.index,t);return new Fo(r,r)}else if(e.type&175){let r=t[Te];return new Fo(r,t)}return null}function $f(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:o}=e;V(8);try{let i=o?.injector??sE(r),s=[Vf({}),{provide:Bn,useExisting:JD},...n||[]],a=new jo({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return nE({r3Injector:a.injector,platformInjector:i,rootComponent:t})}catch(i){return Promise.reject(i)}finally{V(9)}}function lE(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function u0(e){return cs(e)}function Hf(e,t){return os(e,t?.equal)}var Dl=class{[Ee];constructor(t){this[Ee]=t}destroy(){this[Ee].destroy()}};var K=new E("");var Gf=null;function Qe(){return Gf}function yc(e){Gf??=e}var or=class{},vc=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>g(Wf),providedIn:"platform"})}return e})();var Wf=(()=>{class e extends vc{_location;_history;_doc=g(K);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Qe().getBaseHref(this._doc)}onPopState(n){let r=Qe().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=Qe().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function Zf(e,t){return e?t?e.endsWith("/")?t.startsWith("/")?e+t.slice(1):e+t:t.startsWith("/")?e+t:`${e}/${t}`:e:t}function zf(e){let t=e.search(/#|\?|$/);return e[t-1]==="/"?e.slice(0,t-1)+e.slice(t):e}function lt(e){return e&&e[0]!=="?"?`?${e}`:e}var ii=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>g(Qf),providedIn:"root"})}return e})(),Yf=new E(""),Qf=(()=>{class e extends ii{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??g(K).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 Zf(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+lt(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+lt(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+lt(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)}static \u0275fac=function(r){return new(r||e)(C(vc),C(Yf,8))};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),un=(()=>{class e{_subject=new J;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=hE(zf(qf(r))),this._locationStrategy.onPopState(o=>{this._subject.next({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+lt(r))}normalize(n){return e.stripTrailingSlash(fE(this._basePath,qf(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+lt(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+lt(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.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(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??void 0,complete:o??void 0})}static normalizeQueryParams=lt;static joinWithSlash=Zf;static stripTrailingSlash=zf;static \u0275fac=function(r){return new(r||e)(C(ii))};static \u0275prov=w({token:e,factory:()=>dE(),providedIn:"root"})}return e})();function dE(){return new un(C(ii))}function fE(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function qf(e){return e.replace(/\/index.html$/,"")}function hE(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var pE=(()=>{class e{transform(n){return JSON.stringify(n,null,2)}static \u0275fac=function(r){return new(r||e)};static \u0275pipe=bf({name:"json",type:e,pure:!1})}return e})();var Kf=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=rr({type:e});static \u0275inj=Wn({})}return e})();function ir(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var Dc="browser",Xf="server";function si(e){return e===Xf}var Rt=class{};var ui=new E(""),Cc=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o,i){return this._findPluginFor(r).addEventListener(n,r,o,i)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new v(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(C(ui),C(Y))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),sr=class{_doc;constructor(t){this._doc=t}manager},ai="ng-app-id";function Jf(e){for(let t of e)t.remove()}function eh(e,t){let n=t.createElement("style");return n.textContent=e,n}function mE(e,t,n,r){let o=e.head?.querySelectorAll(`style[${ai}="${t}"],link[${ai}="${t}"]`);if(o)for(let i of o)i.removeAttribute(ai),i instanceof HTMLLinkElement?r.set(i.href.slice(i.href.lastIndexOf("/")+1),{usage:0,elements:[i]}):i.textContent&&n.set(i.textContent,{usage:0,elements:[i]})}function wc(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var bc=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.isServer=si(i),mE(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,eh);r?.forEach(o=>this.addUsage(o,this.external,wc))}removeStyles(n,r){for(let o of n)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(n,r,o){let i=r.get(n);i?i.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(n,this.doc)))})}removeUsage(n,r){let o=r.get(n);o&&(o.usage--,o.usage<=0&&(Jf(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])Jf(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,eh(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,wc(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),this.isServer&&r.setAttribute(ai,this.appId),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(C(K),C(Wa),C(Ya,8),C(er))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),Ec={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/Math/MathML"},Sc=/%COMP%/g;var nh="%COMP%",yE=`_nghost-${nh}`,vE=`_ngcontent-${nh}`,DE=!0,EE=new E("",{providedIn:"root",factory:()=>DE});function wE(e){return vE.replace(Sc,e)}function IE(e){return yE.replace(Sc,e)}function rh(e,t){return t.map(n=>n.replace(Sc,e))}var Mc=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(n,r,o,i,s,a,c,u=null,l=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=u,this.tracingService=l,this.platformIsServer=si(a),this.defaultRenderer=new ar(n,s,c,this.platformIsServer,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Fe.ShadowDom&&(r=B(y({},r),{encapsulation:Fe.Emulated}));let o=this.getOrCreateRenderer(n,r);return o instanceof ci?o.applyToHost(n):o instanceof cr&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,f=this.platformIsServer,h=this.tracingService;switch(r.encapsulation){case Fe.Emulated:i=new ci(c,u,r,this.appId,l,s,a,f,h);break;case Fe.ShadowDom:return new Ic(c,u,n,r,s,a,this.nonce,f,h);default:i=new cr(c,u,r,l,s,a,f,h);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(r){return new(r||e)(C(Cc),C(bc),C(Wa),C(EE),C(K),C(er),C(Y),C(Ya),C(Qo,8))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),ar=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,o,i){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.tracingService=i}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(Ec[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(th(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(th(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new v(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;let i=Ec[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=Ec[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&(at.DashCase|at.Important)?t.style.setProperty(n,r,o&at.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&at.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r,o){if(typeof t=="string"&&(t=Qe().getGlobalEventTarget(this.doc,t),!t))throw new v(5102,!1);let i=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(t,n,i)),this.eventManager.addEventListener(t,n,i,o)}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))===!1&&n.preventDefault()}}};function th(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Ic=class extends ar{sharedStylesHost;hostEl;shadowRoot;constructor(t,n,r,o,i,s,a,c,u){super(t,i,s,c,u),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=o.styles;l=rh(o.id,l);for(let h of l){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=h,this.shadowRoot.appendChild(d)}let f=o.getExternalStyles?.();if(f)for(let h of f){let d=wc(h,i);a&&d.setAttribute("nonce",a),this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},cr=class extends ar{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,c,u){super(t,i,s,a,c),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o;let l=r.styles;this.styles=u?rh(u,l):l,this.styleUrls=r.getExternalStyles?.(u)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},ci=class extends cr{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,c,u){let l=o+"-"+r.id;super(t,n,r,i,s,a,c,u,l),this.contentAttr=wE(l),this.hostAttr=IE(l)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}};var li=class e extends or{supportsDOMEvents=!0;static makeCurrent(){yc(new e)}onAndCancel(t,n,r,o){return t.addEventListener(n,r,o),()=>{t.removeEventListener(n,r,o)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.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 n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=CE();return n==null?null:bE(n)}resetBaseElement(){ur=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return ir(document.cookie,t)}},ur=null;function CE(){return ur=ur||document.head.querySelector("base"),ur?ur.getAttribute("href"):null}function bE(e){return new URL(e,document.baseURI).pathname}var SE=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),ih=(()=>{class e extends sr{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o,i){return n.addEventListener(r,o,i),()=>this.removeEventListener(n,r,o,i)}removeEventListener(n,r,o,i){return n.removeEventListener(r,o,i)}static \u0275fac=function(r){return new(r||e)(C(K))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),oh=["alt","control","meta","shift"],ME={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},TE={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},sh=(()=>{class e extends sr{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o,i){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Qe().onAndCancel(n,s.domEventName,a,i))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),oh.forEach(u=>{let l=r.indexOf(u);l>-1&&(r.splice(l,1),s+=u+".")}),s+=i,r.length!=0||i.length===0)return null;let c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=ME[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),oh.forEach(s=>{if(s!==o){let a=TE[s];a(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 n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(C(K))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})();function _E(e,t,n){return $f(y({rootComponent:e,platformRef:n?.platformRef},NE(t)))}function NE(e){return{appProviders:[...kE,...e?.providers??[]],platformProviders:OE}}function RE(){li.makeCurrent()}function xE(){return new qe}function AE(){return jd(document),document}var OE=[{provide:er,useValue:Dc},{provide:Za,useValue:RE,multi:!0},{provide:K,useFactory:AE}];var kE=[{provide:Go,useValue:"root"},{provide:qe,useFactory:xE},{provide:ui,useClass:ih,multi:!0,deps:[K]},{provide:ui,useClass:sh,multi:!0,deps:[K]},Mc,bc,Cc,{provide:rn,useExisting:Mc},{provide:Rt,useClass:SE},[]];var dn=class{},lr=class{},dt=class e{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(` `).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=n.slice(r+1).trim();this.addHeaderEntry(o,i)}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.addHeaderEntry(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let 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 e?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){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let o=(t.op==="a"?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":let i=t.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>i.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}break}}addHeaderEntry(t,n){let r=t.toLowerCase();this.maybeSetNormalizedName(t,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n])}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var fi=class{encodeKey(t){return ah(t)}encodeValue(t){return ah(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function PE(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],c=n.get(s)||[];c.push(a),n.set(s,c)}),n}var FE=/%(\d[a-f0-9])/gi,LE={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ah(e){return encodeURIComponent(e).replace(FE,(t,n)=>LE[n]??t)}function di(e){return`${e}`}var Ke=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new fi,t.fromString){if(t.fromObject)throw new v(2805,!1);this.map=PE(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],o=Array.isArray(r)?r.map(di):[di(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let 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){let n=[];return Object.keys(t).forEach(r=>{let 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=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(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":let n=(t.op==="a"?this.map.get(t.param):void 0)||[];n.push(di(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=this.map.get(t.param)||[],o=r.indexOf(di(t.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var hi=class{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 jE(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function ch(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function uh(e){return typeof Blob<"u"&&e instanceof Blob}function lh(e){return typeof FormData<"u"&&e instanceof FormData}function VE(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var dh="Content-Type",fh="Accept",hh="X-Request-URL",ph="text/plain",gh="application/json",BE=`${gh}, ${ph}, */*`,ln=class e{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(t,n,r,o){this.url=n,this.method=t.toUpperCase();let i;if(jE(this.method)||o?(this.body=r!==void 0?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.transferCache=i.transferCache),this.headers??=new dt,this.context??=new hi,!this.params)this.params=new Ke,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n.indexOf("?"),c=a===-1?"?":ah.set(d,t.setHeaders[d]),u)),t.setParams&&(l=Object.keys(t.setParams).reduce((h,d)=>h.set(d,t.setParams[d]),l)),new e(n,r,s,{params:l,headers:u,context:f,reportProgress:c,responseType:o,withCredentials:a,transferCache:i})}},xt=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(xt||{}),fn=class{headers;status;statusText;url;ok;type;constructor(t,n=200,r="OK"){this.headers=t.headers||new dt,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}},pi=class e extends fn{constructor(t={}){super(t)}type=xt.ResponseHeader;clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},dr=class e extends fn{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=xt.Response;clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},fr=class extends fn{name="HttpErrorResponse";message;error;ok=!1;constructor(t){super(t,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},UE=200,$E=204;function Tc(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,transferCache:e.transferCache}}var mi=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof ln)i=n;else{let c;o.headers instanceof dt?c=o.headers:c=new dt(o.headers);let u;o.params&&(o.params instanceof Ke?u=o.params:u=new Ke({fromObject:o.params})),i=new ln(n,r,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let s=I(i).pipe(tt(c=>this.handler.handle(c)));if(n instanceof ln||o.observe==="events")return s;let a=s.pipe(pe(c=>c instanceof dr));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(x(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new v(2806,!1);return c.body}));case"blob":return a.pipe(x(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new v(2807,!1);return c.body}));case"text":return a.pipe(x(c=>{if(c.body!==null&&typeof c.body!="string")throw new v(2808,!1);return c.body}));case"json":default:return a.pipe(x(c=>c.body))}case"response":return a;default:throw new v(2809,!1)}}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 Ke().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,Tc(o,r))}post(n,r,o={}){return this.request("POST",n,Tc(o,r))}put(n,r,o={}){return this.request("PUT",n,Tc(o,r))}static \u0275fac=function(r){return new(r||e)(C(dn))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})();var HE=new E("");function zE(e,t){return t(e)}function qE(e,t,n){return(r,o)=>me(n,()=>t(r,i=>e(i,o)))}var Nc=new E(""),mh=new E(""),yh=new E("",{providedIn:"root",factory:()=>!0});var gi=(()=>{class e extends dn{backend;injector;chain=null;pendingTasks=g(ct);contributeToStability=g(yh);constructor(n,r){super(),this.backend=n,this.injector=r}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(Nc),...this.injector.get(mh,[])]));this.chain=r.reduceRight((o,i)=>qE(o,i,this.injector),zE)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(vt(()=>this.pendingTasks.remove(r)))}else return this.chain(n,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||e)(C(lr),C(le))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})();var GE=/^\)\]\}',?\n/,WE=RegExp(`^${hh}:`,"m");function ZE(e){return"responseURL"in e&&e.responseURL?e.responseURL:WE.test(e.getAllResponseHeaders())?e.getResponseHeader(hh):null}var _c=(()=>{class e{xhrFactory;constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new v(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?U(r.\u0275loadImpl()):I(null)).pipe(ge(()=>new P(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((m,D)=>s.setRequestHeader(m,D.join(","))),n.headers.has(fh)||s.setRequestHeader(fh,BE),!n.headers.has(dh)){let m=n.detectContentTypeHeader();m!==null&&s.setRequestHeader(dh,m)}if(n.responseType){let m=n.responseType.toLowerCase();s.responseType=m!=="json"?m:"text"}let a=n.serializeBody(),c=null,u=()=>{if(c!==null)return c;let m=s.statusText||"OK",D=new dt(s.getAllResponseHeaders()),N=ZE(s)||n.url;return c=new pi({headers:D,status:s.status,statusText:m,url:N}),c},l=()=>{let{headers:m,status:D,statusText:N,url:xe}=u(),q=null;D!==$E&&(q=typeof s.response>"u"?s.responseText:s.response),D===0&&(D=q?UE:0);let qi=D>=200&&D<300;if(n.responseType==="json"&&typeof q=="string"){let fp=q;q=q.replace(GE,"");try{q=q!==""?JSON.parse(q):null}catch(hp){q=fp,qi&&(qi=!1,q={error:hp,text:q})}}qi?(i.next(new dr({body:q,headers:m,status:D,statusText:N,url:xe||void 0})),i.complete()):i.error(new fr({error:q,headers:m,status:D,statusText:N,url:xe||void 0}))},f=m=>{let{url:D}=u(),N=new fr({error:m,status:s.status||0,statusText:s.statusText||"Unknown Error",url:D||void 0});i.error(N)},h=!1,d=m=>{h||(i.next(u()),h=!0);let D={type:xt.DownloadProgress,loaded:m.loaded};m.lengthComputable&&(D.total=m.total),n.responseType==="text"&&s.responseText&&(D.partialText=s.responseText),i.next(D)},p=m=>{let D={type:xt.UploadProgress,loaded:m.loaded};m.lengthComputable&&(D.total=m.total),i.next(D)};return s.addEventListener("load",l),s.addEventListener("error",f),s.addEventListener("timeout",f),s.addEventListener("abort",f),n.reportProgress&&(s.addEventListener("progress",d),a!==null&&s.upload&&s.upload.addEventListener("progress",p)),s.send(a),i.next({type:xt.Sent}),()=>{s.removeEventListener("error",f),s.removeEventListener("abort",f),s.removeEventListener("load",l),s.removeEventListener("timeout",f),n.reportProgress&&(s.removeEventListener("progress",d),a!==null&&s.upload&&s.upload.removeEventListener("progress",p)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(r){return new(r||e)(C(Rt))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),vh=new E(""),YE="XSRF-TOKEN",QE=new E("",{providedIn:"root",factory:()=>YE}),KE="X-XSRF-TOKEN",XE=new E("",{providedIn:"root",factory:()=>KE}),hr=class{},JE=(()=>{class e{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(n,r){this.doc=n,this.cookieName=r}getToken(){let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=ir(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)(C(K),C(QE))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),ew=/^(?:https?:)?\/\//i;function tw(e,t){if(!g(vh)||e.method==="GET"||e.method==="HEAD"||ew.test(e.url))return t(e);let n=g(hr).getToken(),r=g(XE);return n!=null&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,n)})),t(e)}var Rc=function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e}(Rc||{});function nw(e,t){return{\u0275kind:e,\u0275providers:t}}function rw(...e){let t=[mi,_c,gi,{provide:dn,useExisting:gi},{provide:lr,useFactory:()=>g(HE,{optional:!0})??g(_c)},{provide:Nc,useValue:tw,multi:!0},{provide:vh,useValue:!0},{provide:hr,useClass:JE}];for(let n of e)t.push(...n.\u0275providers);return Yn(t)}function ow(e){return nw(Rc.Interceptors,e.map(t=>({provide:Nc,useValue:t,multi:!0})))}var Dh=(()=>{class e{_doc;constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}static \u0275fac=function(r){return new(r||e)(C(K))};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var M="primary",Tr=Symbol("RouteTitle"),Pc=class{params;constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}};function kt(e){return new Pc(e)}function Th(e,t,n){let r=n.path.split("/");if(r.length>e.length||n.pathMatch==="full"&&(t.hasChildren()||r.lengthr[i]===o)}else return e===t}function Nh(e){return e.length>0?e[e.length-1]:null}function pt(e){return Ds(e)?e:oi(e)?U(Promise.resolve(e)):I(e)}var cw={exact:xh,subset:Ah},Rh={exact:uw,subset:lw,ignored:()=>!0};function Eh(e,t,n){return cw[n.paths](e.root,t.root,n.matrixParams)&&Rh[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function uw(e,t){return je(e,t)}function xh(e,t,n){if(!At(e.segments,t.segments)||!Di(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!xh(e.children[r],t.children[r],n))return!1;return!0}function lw(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>_h(e[n],t[n]))}function Ah(e,t,n){return Oh(e,t,t.segments,n)}function Oh(e,t,n,r){if(e.segments.length>n.length){let o=e.segments.slice(0,n.length);return!(!At(o,n)||t.hasChildren()||!Di(o,n,r))}else if(e.segments.length===n.length){if(!At(e.segments,n)||!Di(e.segments,n,r))return!1;for(let o in t.children)if(!e.children[o]||!Ah(e.children[o],t.children[o],r))return!1;return!0}else{let o=n.slice(0,e.segments.length),i=n.slice(e.segments.length);return!At(e.segments,o)||!Di(e.segments,o,r)||!e.children[M]?!1:Oh(e.children[M],t,i,r)}}function Di(e,t,n){return t.every((r,o)=>Rh[n](e[o].parameters,r.parameters))}var Be=class{root;queryParams;fragment;_queryParamMap;constructor(t=new F([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=kt(this.queryParams),this._queryParamMap}toString(){return hw.serialize(this)}},F=class{segments;children;parent=null;constructor(t,n){this.segments=t,this.children=n,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ei(this)}},ft=class{path;parameters;_parameterMap;constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap??=kt(this.parameters),this._parameterMap}toString(){return Ph(this)}};function dw(e,t){return At(e,t)&&e.every((n,r)=>je(n.parameters,t[r].parameters))}function At(e,t){return e.length!==t.length?!1:e.every((n,r)=>n.path===t[r].path)}function fw(e,t){let n=[];return Object.entries(e.children).forEach(([r,o])=>{r===M&&(n=n.concat(t(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==M&&(n=n.concat(t(o,r)))}),n}var _r=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>new Pt,providedIn:"root"})}return e})(),Pt=class{parse(t){let n=new jc(t);return new Be(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n=`/${pr(t.root,!0)}`,r=mw(t.queryParams),o=typeof t.fragment=="string"?`#${pw(t.fragment)}`:"";return`${n}${r}${o}`}},hw=new Pt;function Ei(e){return e.segments.map(t=>Ph(t)).join("/")}function pr(e,t){if(!e.hasChildren())return Ei(e);if(t){let n=e.children[M]?pr(e.children[M],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==M&&r.push(`${o}:${pr(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=fw(e,(r,o)=>o===M?[pr(e.children[M],!1)]:[`${o}:${pr(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[M]!=null?`${Ei(e)}/${n[0]}`:`${Ei(e)}/(${n.join("//")})`}}function kh(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function yi(e){return kh(e).replace(/%3B/gi,";")}function pw(e){return encodeURI(e)}function Lc(e){return kh(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function wi(e){return decodeURIComponent(e)}function wh(e){return wi(e.replace(/\+/g,"%20"))}function Ph(e){return`${Lc(e.path)}${gw(e.parameters)}`}function gw(e){return Object.entries(e).map(([t,n])=>`;${Lc(t)}=${Lc(n)}`).join("")}function mw(e){let t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(o=>`${yi(n)}=${yi(o)}`).join("&"):`${yi(n)}=${yi(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}var yw=/^[^\/()?;#]+/;function xc(e){let t=e.match(yw);return t?t[0]:""}var vw=/^[^\/()?;=#]+/;function Dw(e){let t=e.match(vw);return t?t[0]:""}var Ew=/^[^=?&#]+/;function ww(e){let t=e.match(Ew);return t?t[0]:""}var Iw=/^[^&#]+/;function Cw(e){let t=e.match(Iw);return t?t[0]:""}var jc=class{url;remaining;constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new F([],{}):new F([],this.parseChildren())}parseQueryParams(){let 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("/");let 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[M]=new F(t,n)),r}parseSegment(){let t=xc(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new v(4009,!1);return this.capture(t),new ft(wi(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=Dw(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let o=xc(this.remaining);o&&(r=o,this.capture(r))}t[wi(n)]=wi(r)}parseQueryParam(t){let n=ww(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=Cw(this.remaining);s&&(r=s,this.capture(r))}let o=wh(n),i=wh(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){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=xc(this.remaining),o=this.remaining[r.length];if(o!=="/"&&o!==")"&&o!==";")throw new v(4010,!1);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=M);let s=this.parseChildren();n[i]=Object.keys(s).length===1?s[M]:new F([],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):!1}capture(t){if(!this.consumeOptional(t))throw new v(4011,!1)}};function Fh(e){return e.segments.length>0?new F([],{[M]:e}):e}function Lh(e){let t={};for(let[r,o]of Object.entries(e.children)){let i=Lh(o);if(r===M&&i.segments.length===0&&i.hasChildren())for(let[s,a]of Object.entries(i.children))t[s]=a;else(i.segments.length>0||i.hasChildren())&&(t[r]=i)}let n=new F(e.segments,t);return bw(n)}function bw(e){if(e.numberOfChildren===1&&e.children[M]){let t=e.children[M];return new F(e.segments.concat(t.segments),t.children)}return e}function yn(e){return e instanceof Be}function jh(e,t,n=null,r=null){let o=Vh(e);return Bh(o,t,n,r)}function Vh(e){let t;function n(i){let s={};for(let c of i.children){let u=n(c);s[c.outlet]=u}let a=new F(i.url,s);return i===e&&(t=a),a}let r=n(e.root),o=Fh(r);return t??o}function Bh(e,t,n,r){let o=e;for(;o.parent;)o=o.parent;if(t.length===0)return Ac(o,o,o,n,r);let i=Sw(t);if(i.toRoot())return Ac(o,o,new F([],{}),n,r);let s=Mw(i,o,e),a=s.processChildren?mr(s.segmentGroup,s.index,i.commands):$h(s.segmentGroup,s.index,i.commands);return Ac(o,s.segmentGroup,a,n,r)}function Ci(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function vr(e){return typeof e=="object"&&e!=null&&e.outlets}function Ac(e,t,n,r,o){let i={};r&&Object.entries(r).forEach(([c,u])=>{i[c]=Array.isArray(u)?u.map(l=>`${l}`):`${u}`});let s;e===t?s=n:s=Uh(e,t,n);let a=Fh(Lh(s));return new Be(a,i,o)}function Uh(e,t,n){let r={};return Object.entries(e.children).forEach(([o,i])=>{i===t?r[o]=n:r[o]=Uh(i,t,n)}),new F(e.segments,r)}var bi=class{isAbsolute;numberOfDoubleDots;commands;constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&Ci(r[0]))throw new v(4003,!1);let o=r.find(vr);if(o&&o!==Nh(r))throw new v(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Sw(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new bi(!0,0,e);let t=0,n=!1,r=e.reduce((o,i,s)=>{if(typeof i=="object"&&i!=null){if(i.outlets){let a={};return Object.entries(i.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return typeof i!="string"?[...o,i]:s===0?(i.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?n=!0:a===".."?t++:a!=""&&o.push(a))}),o):[...o,i]},[]);return new bi(n,t,r)}var gn=class{segmentGroup;processChildren;index;constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}};function Mw(e,t,n){if(e.isAbsolute)return new gn(t,!0,0);if(!n)return new gn(t,!1,NaN);if(n.parent===null)return new gn(n,!0,0);let r=Ci(e.commands[0])?0:1,o=n.segments.length-1+r;return Tw(n,o,e.numberOfDoubleDots)}function Tw(e,t,n){let r=e,o=t,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new v(4005,!1);o=r.segments.length}return new gn(r,!1,o-i)}function _w(e){return vr(e[0])?e[0].outlets:{[M]:e}}function $h(e,t,n){if(e??=new F([],{}),e.segments.length===0&&e.hasChildren())return mr(e,t,n);let r=Nw(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndexi!==M)&&e.children[M]&&e.numberOfChildren===1&&e.children[M].segments.length===0){let i=mr(e.children[M],t,n);return new F(e.segments,i.children)}return Object.entries(r).forEach(([i,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(o[i]=$h(e.children[i],t,s))}),Object.entries(e.children).forEach(([i,s])=>{r[i]===void 0&&(o[i]=s)}),new F(e.segments,o)}}function Nw(e,t,n){let r=0,o=t,i={match:!1,pathIndex:0,commandIndex:0};for(;o=n.length)return i;let s=e.segments[o],a=n[r];if(vr(a))break;let c=`${a}`,u=r0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!Ch(c,u,s))return i;r+=2}else{if(!Ch(c,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}function Vc(e,t,n){let r=e.segments.slice(0,t),o=0;for(;o{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=Vc(new F([],{}),0,r))}),t}function Ih(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function Ch(e,t,n){return e==n.path&&je(t,n.parameters)}var Ii="imperative",X=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(X||{}),De=class{id;url;constructor(t,n){this.id=t,this.url=n}},Ft=class extends De{type=X.NavigationStart;navigationTrigger;restoredState;constructor(t,n,r="imperative",o=null){super(t,n),this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Xe=class extends De{urlAfterRedirects;type=X.NavigationEnd;constructor(t,n,r){super(t,n),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},fe=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(fe||{}),Dr=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(Dr||{}),Ve=class extends De{reason;code;type=X.NavigationCancel;constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Je=class extends De{reason;code;type=X.NavigationSkipped;constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o}},vn=class extends De{error;target;type=X.NavigationError;constructor(t,n,r,o){super(t,n),this.error=r,this.target=o}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Er=class extends De{urlAfterRedirects;state;type=X.RoutesRecognized;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Si=class extends De{urlAfterRedirects;state;type=X.GuardsCheckStart;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Mi=class extends De{urlAfterRedirects;state;shouldActivate;type=X.GuardsCheckEnd;constructor(t,n,r,o,i){super(t,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Ti=class extends De{urlAfterRedirects;state;type=X.ResolveStart;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},_i=class extends De{urlAfterRedirects;state;type=X.ResolveEnd;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ni=class{route;type=X.RouteConfigLoadStart;constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Ri=class{route;type=X.RouteConfigLoadEnd;constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},xi=class{snapshot;type=X.ChildActivationStart;constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ai=class{snapshot;type=X.ChildActivationEnd;constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Oi=class{snapshot;type=X.ActivationStart;constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ki=class{snapshot;type=X.ActivationEnd;constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var wr=class{},Dn=class{url;navigationBehaviorOptions;constructor(t,n){this.url=t,this.navigationBehaviorOptions=n}};function xw(e,t){return e.providers&&!e._injector&&(e._injector=ri(e.providers,t,`Route: ${e.path}`)),e._injector??t}function Re(e){return e.outlet||M}function Aw(e,t){let n=e.filter(r=>Re(r)===t);return n.push(...e.filter(r=>Re(r)!==t)),n}function Nr(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){let n=t.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}var Pi=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Nr(this.route?.snapshot)??this.rootInjector}constructor(t){this.rootInjector=t,this.children=new In(this.rootInjector)}},In=(()=>{class e{rootInjector;contexts=new Map;constructor(n){this.rootInjector=n}onChildOutletCreated(n,r){let o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}onChildOutletDestroyed(n){let r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let 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 Pi(this.rootInjector),this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}static \u0275fac=function(r){return new(r||e)(C(le))};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Fi=class{_root;constructor(t){this._root=t}get root(){return this._root.value}parent(t){let n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){let n=Bc(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=Bc(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=Uc(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return Uc(t,this._root).map(n=>n.value)}};function Bc(e,t){if(e===t.value)return t;for(let n of t.children){let r=Bc(e,n);if(r)return r}return null}function Uc(e,t){if(e===t.value)return[t];for(let n of t.children){let r=Uc(e,n);if(r.length)return r.unshift(t),r}return[]}var ve=class{value;children;constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}};function pn(e){let t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}var Ir=class extends Fi{snapshot;constructor(t,n){super(t),this.snapshot=n,Yc(this,t)}toString(){return this.snapshot.toString()}};function Hh(e){let t=Ow(e),n=new ee([new ft("",{})]),r=new ee({}),o=new ee({}),i=new ee({}),s=new ee(""),a=new ht(n,r,i,s,o,M,e,t.root);return a.snapshot=t.root,new Ir(new ve(a,[]),t)}function Ow(e){let t={},n={},r={},o="",i=new Ot([],t,r,o,n,M,e,null,{});return new Cr("",new ve(i,[]))}var ht=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(t,n,r,o,i,s,a,c){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(x(u=>u[Tr]))??I(void 0),this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(x(t=>kt(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(x(t=>kt(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Li(e,t,n="emptyOnly"){let r,{routeConfig:o}=e;return t!==null&&(n==="always"||o?.path===""||!t.component&&!t.routeConfig?.loadComponent)?r={params:y(y({},t.params),e.params),data:y(y({},t.data),e.data),resolve:y(y(y(y({},e.data),t.data),o?.data),e._resolvedData)}:r={params:y({},e.params),data:y({},e.data),resolve:y(y({},e.data),e._resolvedData??{})},o&&qh(o)&&(r.resolve[Tr]=o.title),r}var Ot=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[Tr]}constructor(t,n,r,o,i,s,a,c,u){this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=kt(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=kt(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(r=>r.toString()).join("/"),n=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${n}')`}},Cr=class extends Fi{url;constructor(t,n){super(n),this.url=t,Yc(this,n)}toString(){return zh(this._root)}};function Yc(e,t){t.value._routerState=e,t.children.forEach(n=>Yc(e,n))}function zh(e){let t=e.children.length>0?` { ${e.children.map(zh).join(", ")} } `:"";return`${e.value}${t}`}function Oc(e){if(e.snapshot){let t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,je(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),je(t.params,n.params)||e.paramsSubject.next(n.params),aw(t.url,n.url)||e.urlSubject.next(n.url),je(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function $c(e,t){let n=je(e.params,t.params)&&dw(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||$c(e.parent,t.parent))}function qh(e){return typeof e.title=="string"||e.title===null}var Gh=new E(""),Qc=(()=>{class e{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=M;activateEvents=new ce;deactivateEvents=new ce;attachEvents=new ce;detachEvents=new ce;routerOutletData=_d(void 0);parentContexts=g(In);location=g(ni);changeDetector=g(mc);inputBinder=g(Ui,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:o}=n.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let 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 v(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new v(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new v(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new v(4013,!1);this._activatedRoute=n;let o=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new Hc(n,a,o.injector,this.routerOutletData);this.activated=o.createComponent(s,{index:o.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||e)};static \u0275dir=fc({type:e,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Aa]})}return e})(),Hc=class{route;childContexts;parent;outletData;constructor(t,n,r,o){this.route=t,this.childContexts=n,this.parent=r,this.outletData=o}get(t,n){return t===ht?this.route:t===In?this.childContexts:t===Gh?this.outletData:this.parent.get(t,n)}},Ui=new E("");var Kc=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275cmp=Cf({type:e,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,o){r&1&&pc(0,"router-outlet")},dependencies:[Qc],encapsulation:2})}return e})();function Xc(e){let t=e.children&&e.children.map(Xc),n=t?B(y({},e),{children:t}):y({},e);return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==M&&(n.component=Kc),n}function kw(e,t,n){let r=br(e,t._root,n?n._root:void 0);return new Ir(r,t)}function br(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=t.value;let o=Pw(e,t,n);return new ve(r,o)}else{if(e.shouldAttach(t.value)){let i=e.retrieve(t.value);if(i!==null){let s=i.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>br(e,a)),s}}let r=Fw(t.value),o=t.children.map(i=>br(e,i));return new ve(r,o)}}function Pw(e,t,n){return t.children.map(r=>{for(let o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return br(e,r,o);return br(e,r)})}function Fw(e){return new ht(new ee(e.url),new ee(e.params),new ee(e.queryParams),new ee(e.fragment),new ee(e.data),e.outlet,e.component,e)}var En=class{redirectTo;navigationBehaviorOptions;constructor(t,n){this.redirectTo=t,this.navigationBehaviorOptions=n}},Wh="ngNavigationCancelingError";function ji(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=yn(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=Zh(!1,fe.Redirect);return o.url=n,o.navigationBehaviorOptions=r,o}function Zh(e,t){let n=new Error(`NavigationCancelingError: ${e||""}`);return n[Wh]=!0,n.cancellationCode=t,n}function Lw(e){return Yh(e)&&yn(e.url)}function Yh(e){return!!e&&e[Wh]}var jw=(e,t,n,r)=>x(o=>(new zc(t,o.targetRouterState,o.currentRouterState,n,r).activate(e),o)),zc=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(t,n,r,o,i){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(t){let n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),Oc(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){let o=pn(n);t.children.forEach(i=>{let s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(o===i)if(o.component){let 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){let r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=pn(t);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){let r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=pn(t);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){let o=pn(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new ki(i.value.snapshot))}),t.children.length&&this.forwardEvent(new Ai(t.value.snapshot))}activateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(Oc(o),o===i)if(o.component){let s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(o.component){let s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let 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),Oc(a.route.value),this.activateChildRoutes(t,null,s.children)}else s.attachRef=null,s.route=o,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(t,null,s.children)}else this.activateChildRoutes(t,null,r)}},Vi=class{path;route;constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},mn=class{component;route;constructor(t,n){this.component=t,this.route=n}};function Vw(e,t,n){let r=e._root,o=t?t._root:null;return gr(r,o,n,[r.value])}function Bw(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function Cn(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e=="function"&&!Sl(e)?e:t.get(e):r}function gr(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=pn(t);return e.children.forEach(s=>{Uw(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>yr(a,n.getContext(s),o)),o}function Uw(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){let c=$w(s,i,i.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new Vi(r)):(i.data=s.data,i._resolvedData=s._resolvedData),i.component?gr(e,t,a?a.children:null,r,o):gr(e,t,n,r,o),c&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new mn(a.outlet.component,s))}else s&&yr(t,a,o),o.canActivateChecks.push(new Vi(r)),i.component?gr(e,null,a?a.children:null,r,o):gr(e,null,n,r,o);return o}function $w(e,t,n){if(typeof n=="function")return n(e,t);switch(n){case"pathParamsChange":return!At(e.url,t.url);case"pathParamsOrQueryParamsChange":return!At(e.url,t.url)||!je(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!$c(e,t)||!je(e.queryParams,t.queryParams);case"paramsChange":default:return!$c(e,t)}}function yr(e,t,n){let r=pn(e),o=e.value;Object.entries(r).forEach(([i,s])=>{o.component?t?yr(s,t.children.getContext(i),n):yr(s,null,n):yr(s,t,n)}),o.component?t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new mn(t.outlet.component,o)):n.canDeactivateChecks.push(new mn(null,o)):n.canDeactivateChecks.push(new mn(null,o))}function Rr(e){return typeof e=="function"}function Hw(e){return typeof e=="boolean"}function zw(e){return e&&Rr(e.canLoad)}function qw(e){return e&&Rr(e.canActivate)}function Gw(e){return e&&Rr(e.canActivateChild)}function Ww(e){return e&&Rr(e.canDeactivate)}function Zw(e){return e&&Rr(e.canMatch)}function Qh(e){return e instanceof $e||e?.name==="EmptyError"}var vi=Symbol("INITIAL_VALUE");function wn(){return ge(e=>ao(e.map(t=>t.pipe(He(1),Is(vi)))).pipe(x(t=>{for(let n of t)if(n!==!0){if(n===vi)return vi;if(n===!1||Yw(n))return n}return!0}),pe(t=>t!==vi),He(1)))}function Yw(e){return yn(e)||e instanceof En}function Qw(e,t){return W(n=>{let{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return s.length===0&&i.length===0?I(B(y({},n),{guardsResult:!0})):Kw(s,r,o,e).pipe(W(a=>a&&Hw(a)?Xw(r,i,e,t):I(a)),x(a=>B(y({},n),{guardsResult:a})))})}function Kw(e,t,n,r){return U(e).pipe(W(o=>rI(o.component,o.route,n,t,r)),ze(o=>o!==!0,!0))}function Xw(e,t,n,r){return U(t).pipe(tt(o=>qt(eI(o.route.parent,r),Jw(o.route,r),nI(e,o.path,n),tI(e,o.route,n))),ze(o=>o!==!0,!0))}function Jw(e,t){return e!==null&&t&&t(new Oi(e)),I(!0)}function eI(e,t){return e!==null&&t&&t(new xi(e)),I(!0)}function tI(e,t,n){let r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||r.length===0)return I(!0);let o=r.map(i=>co(()=>{let s=Nr(t)??n,a=Cn(i,s),c=qw(a)?a.canActivate(t,e):me(s,()=>a(t,e));return pt(c).pipe(ze())}));return I(o).pipe(wn())}function nI(e,t,n){let r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(s=>Bw(s)).filter(s=>s!==null).map(s=>co(()=>{let a=s.guards.map(c=>{let u=Nr(s.node)??n,l=Cn(c,u),f=Gw(l)?l.canActivateChild(r,e):me(u,()=>l(r,e));return pt(f).pipe(ze())});return I(a).pipe(wn())}));return I(i).pipe(wn())}function rI(e,t,n,r,o){let i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!i||i.length===0)return I(!0);let s=i.map(a=>{let c=Nr(t)??o,u=Cn(a,c),l=Ww(u)?u.canDeactivate(e,t,n,r):me(c,()=>u(e,t,n,r));return pt(l).pipe(ze())});return I(s).pipe(wn())}function oI(e,t,n,r){let o=t.canLoad;if(o===void 0||o.length===0)return I(!0);let i=o.map(s=>{let a=Cn(s,e),c=zw(a)?a.canLoad(t,n):me(e,()=>a(t,n));return pt(c)});return I(i).pipe(wn(),Kh(r))}function Kh(e){return gs(z(t=>{if(typeof t!="boolean")throw ji(e,t)}),x(t=>t===!0))}function iI(e,t,n,r){let o=t.canMatch;if(!o||o.length===0)return I(!0);let i=o.map(s=>{let a=Cn(s,e),c=Zw(a)?a.canMatch(t,n):me(e,()=>a(t,n));return pt(c)});return I(i).pipe(wn(),Kh(r))}var Sr=class{segmentGroup;constructor(t){this.segmentGroup=t||null}},Mr=class extends Error{urlTree;constructor(t){super(),this.urlTree=t}};function hn(e){return zt(new Sr(e))}function sI(e){return zt(new v(4e3,!1))}function aI(e){return zt(Zh(!1,fe.GuardRejected))}var qc=class{urlSerializer;urlTree;constructor(t,n){this.urlSerializer=t,this.urlTree=n}lineralizeSegments(t,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),o.numberOfChildren===0)return I(r);if(o.numberOfChildren>1||!o.children[M])return sI(`${t.redirectTo}`);o=o.children[M]}}applyRedirectCommands(t,n,r,o,i){if(typeof n!="string"){let a=n,{queryParams:c,fragment:u,routeConfig:l,url:f,outlet:h,params:d,data:p,title:m}=o,D=me(i,()=>a({params:d,data:p,queryParams:c,fragment:u,routeConfig:l,url:f,outlet:h,title:m}));if(D instanceof Be)throw new Mr(D);n=D}let s=this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r);if(n[0]==="/")throw new Mr(s);return s}applyRedirectCreateUrlTree(t,n,r,o){let i=this.createSegmentGroup(t,n.root,r,o);return new Be(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){let r={};return Object.entries(t).forEach(([o,i])=>{if(typeof i=="string"&&i[0]===":"){let a=i.substring(1);r[o]=n[a]}else r[o]=i}),r}createSegmentGroup(t,n,r,o){let i=this.createSegments(t,n.segments,r,o),s={};return Object.entries(n.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(t,c,r,o)}),new F(i,s)}createSegments(t,n,r,o){return n.map(i=>i.path[0]===":"?this.findPosParam(t,i,o):this.findOrReturn(i,r))}findPosParam(t,n,r){let o=r[n.path.substring(1)];if(!o)throw new v(4001,!1);return o}findOrReturn(t,n){let r=0;for(let o of n){if(o.path===t.path)return n.splice(r),o;r++}return t}},Gc={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function cI(e,t,n,r,o){let i=Xh(e,t,n);return i.matched?(r=xw(t,r),iI(r,t,n,o).pipe(x(s=>s===!0?i:y({},Gc)))):I(i)}function Xh(e,t,n){if(t.path==="**")return uI(n);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?y({},Gc):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let o=(t.matcher||Th)(n,e,t);if(!o)return y({},Gc);let i={};Object.entries(o.posParams??{}).forEach(([a,c])=>{i[a]=c.path});let s=o.consumed.length>0?y(y({},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 uI(e){return{matched:!0,parameters:e.length>0?Nh(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function bh(e,t,n,r){return n.length>0&&fI(e,n,r)?{segmentGroup:new F(t,dI(r,new F(n,e.children))),slicedSegments:[]}:n.length===0&&hI(e,n,r)?{segmentGroup:new F(e.segments,lI(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new F(e.segments,e.children),slicedSegments:n}}function lI(e,t,n,r){let o={};for(let i of n)if($i(e,t,i)&&!r[Re(i)]){let s=new F([],{});o[Re(i)]=s}return y(y({},r),o)}function dI(e,t){let n={};n[M]=t;for(let r of e)if(r.path===""&&Re(r)!==M){let o=new F([],{});n[Re(r)]=o}return n}function fI(e,t,n){return n.some(r=>$i(e,t,r)&&Re(r)!==M)}function hI(e,t,n){return n.some(r=>$i(e,t,r))}function $i(e,t,n){return(e.hasChildren()||t.length>0)&&n.pathMatch==="full"?!1:n.path===""}function pI(e,t,n){return t.length===0&&!e.children[n]}var Wc=class{};function gI(e,t,n,r,o,i,s="emptyOnly"){return new Zc(e,t,n,r,o,s,i).recognize()}var mI=31,Zc=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(t,n,r,o,i,s,a){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new qc(this.urlSerializer,this.urlTree)}noMatchError(t){return new v(4002,`'${t.segmentGroup}'`)}recognize(){let t=bh(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(x(({children:n,rootSnapshot:r})=>{let o=new ve(r,n),i=new Cr("",o),s=jh(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),{state:i,tree:s}}))}match(t){let n=new Ot([],Object.freeze({}),Object.freeze(y({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),M,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,t,M,n).pipe(x(r=>({children:r,rootSnapshot:n})),be(r=>{if(r instanceof Mr)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Sr?this.noMatchError(r):r}))}processSegmentGroup(t,n,r,o,i){return r.segments.length===0&&r.hasChildren()?this.processChildren(t,n,r,i):this.processSegment(t,n,r,r.segments,o,!0,i).pipe(x(s=>s instanceof ve?[s]:[]))}processChildren(t,n,r,o){let i=[];for(let s of Object.keys(r.children))s==="primary"?i.unshift(s):i.push(s);return U(i).pipe(tt(s=>{let a=r.children[s],c=Aw(n,s);return this.processSegmentGroup(t,c,a,s,o)}),ws((s,a)=>(s.push(...a),s)),nt(null),Es(),W(s=>{if(s===null)return hn(r);let a=Jh(s);return yI(a),I(a)}))}processSegment(t,n,r,o,i,s,a){return U(n).pipe(tt(c=>this.processSegmentAgainstRoute(c._injector??t,n,c,r,o,i,s,a).pipe(be(u=>{if(u instanceof Sr)return I(null);throw u}))),ze(c=>!!c),be(c=>{if(Qh(c))return pI(r,o,i)?I(new Wc):hn(r);throw c}))}processSegmentAgainstRoute(t,n,r,o,i,s,a,c){return Re(r)!==s&&(s===M||!$i(o,i,r))?hn(o):r.redirectTo===void 0?this.matchSegmentAgainstRoute(t,o,r,i,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,o,n,r,i,s,c):hn(o)}expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s,a){let{matched:c,parameters:u,consumedSegments:l,positionalParamSegments:f,remainingSegments:h}=Xh(n,o,i);if(!c)return hn(n);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>mI&&(this.allowRedirects=!1));let d=new Ot(i,u,Object.freeze(y({},this.urlTree.queryParams)),this.urlTree.fragment,Sh(o),Re(o),o.component??o._loadedComponent??null,o,Mh(o)),p=Li(d,a,this.paramsInheritanceStrategy);d.params=Object.freeze(p.params),d.data=Object.freeze(p.data);let m=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,f,d,t);return this.applyRedirects.lineralizeSegments(o,m).pipe(W(D=>this.processSegment(t,r,n,D.concat(h),s,!1,a)))}matchSegmentAgainstRoute(t,n,r,o,i,s){let a=cI(n,r,o,t,this.urlSerializer);return r.path==="**"&&(n.children={}),a.pipe(ge(c=>c.matched?(t=r._injector??t,this.getChildConfig(t,r,o).pipe(ge(({routes:u})=>{let l=r._loadedInjector??t,{parameters:f,consumedSegments:h,remainingSegments:d}=c,p=new Ot(h,f,Object.freeze(y({},this.urlTree.queryParams)),this.urlTree.fragment,Sh(r),Re(r),r.component??r._loadedComponent??null,r,Mh(r)),m=Li(p,s,this.paramsInheritanceStrategy);p.params=Object.freeze(m.params),p.data=Object.freeze(m.data);let{segmentGroup:D,slicedSegments:N}=bh(n,h,d,u);if(N.length===0&&D.hasChildren())return this.processChildren(l,u,D,p).pipe(x(q=>new ve(p,q)));if(u.length===0&&N.length===0)return I(new ve(p,[]));let xe=Re(r)===i;return this.processSegment(l,u,D,N,xe?M:i,!0,p).pipe(x(q=>new ve(p,q instanceof ve?[q]:[])))}))):hn(n)))}getChildConfig(t,n,r){return n.children?I({routes:n.children,injector:t}):n.loadChildren?n._loadedRoutes!==void 0?I({routes:n._loadedRoutes,injector:n._loadedInjector}):oI(t,n,r,this.urlSerializer).pipe(W(o=>o?this.configLoader.loadChildren(t,n).pipe(z(i=>{n._loadedRoutes=i.routes,n._loadedInjector=i.injector})):aI(n))):I({routes:[],injector:t})}};function yI(e){e.sort((t,n)=>t.value.outlet===M?-1:n.value.outlet===M?1:t.value.outlet.localeCompare(n.value.outlet))}function vI(e){let t=e.value.routeConfig;return t&&t.path===""}function Jh(e){let t=[],n=new Set;for(let r of e){if(!vI(r)){t.push(r);continue}let o=t.find(i=>r.value.routeConfig===i.value.routeConfig);o!==void 0?(o.children.push(...r.children),n.add(o)):t.push(r)}for(let r of n){let o=Jh(r.children);t.push(new ve(r.value,o))}return t.filter(r=>!n.has(r))}function Sh(e){return e.data||{}}function Mh(e){return e.resolve||{}}function DI(e,t,n,r,o,i){return W(s=>gI(e,t,n,r,s.extractedUrl,o,i).pipe(x(({state:a,tree:c})=>B(y({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function EI(e,t){return W(n=>{let{targetSnapshot:r,guards:{canActivateChecks:o}}=n;if(!o.length)return I(n);let i=new Set(o.map(c=>c.route)),s=new Set;for(let c of i)if(!s.has(c))for(let u of ep(c))s.add(u);let a=0;return U(s).pipe(tt(c=>i.has(c)?wI(c,r,e,t):(c.data=Li(c,c.parent,e).resolve,I(void 0))),z(()=>a++),Gt(1),W(c=>a===s.size?I(n):ie))})}function ep(e){let t=e.children.map(n=>ep(n)).flat();return[e,...t]}function wI(e,t,n,r){let o=e.routeConfig,i=e._resolve;return o?.title!==void 0&&!qh(o)&&(i[Tr]=o.title),II(i,e,t,r).pipe(x(s=>(e._resolvedData=s,e.data=Li(e,e.parent,n).resolve,null)))}function II(e,t,n,r){let o=Fc(e);if(o.length===0)return I({});let i={};return U(o).pipe(W(s=>CI(e[s],t,n,r).pipe(ze(),z(a=>{if(a instanceof En)throw ji(new Pt,a);i[s]=a}))),Gt(1),x(()=>i),be(s=>Qh(s)?ie:zt(s)))}function CI(e,t,n,r){let o=Nr(t)??r,i=Cn(e,o),s=i.resolve?i.resolve(t,n):me(o,()=>i(t,n));return pt(s)}function kc(e){return ge(t=>{let n=e(t);return n?U(n).pipe(x(()=>t)):I(t)})}var Jc=(()=>{class e{buildTitle(n){let r,o=n.root;for(;o!==void 0;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===M);return r}getResolvedTitleForRoute(n){return n.data[Tr]}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>g(tp),providedIn:"root"})}return e})(),tp=(()=>{class e extends Jc{title;constructor(n){super(),this.title=n}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||e)(C(Dh))};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),xr=new E("",{providedIn:"root",factory:()=>({})}),Ar=new E(""),np=(()=>{class e{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=g(jf);loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return I(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let r=pt(n.loadComponent()).pipe(x(op),z(i=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=i}),vt(()=>{this.componentLoaders.delete(n)})),o=new Ht(r,()=>new J).pipe($t());return this.componentLoaders.set(n,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return I({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let i=rp(r,this.compiler,n,this.onLoadEndListener).pipe(vt(()=>{this.childrenLoaders.delete(r)})),s=new Ht(i,()=>new J).pipe($t());return this.childrenLoaders.set(r,s),s}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function rp(e,t,n,r){return pt(e.loadChildren()).pipe(x(op),W(o=>o instanceof dc||Array.isArray(o)?I(o):U(t.compileModuleAsync(o))),x(o=>{r&&r(e);let i,s,a=!1;return Array.isArray(o)?(s=o,a=!0):(i=o.create(n).injector,s=i.get(Ar,[],{optional:!0,self:!0}).flat()),{routes:s.map(Xc),injector:i}}))}function bI(e){return e&&typeof e=="object"&&"default"in e}function op(e){return bI(e)?e.default:e}var Hi=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>g(SI),providedIn:"root"})}return e})(),SI=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),ip=new E("");var sp=new E(""),ap=(()=>{class e{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new J;transitionAbortSubject=new J;configLoader=g(np);environmentInjector=g(le);destroyRef=g(Xn);urlSerializer=g(_r);rootContexts=g(In);location=g(un);inputBindingEnabled=g(Ui,{optional:!0})!==null;titleStrategy=g(Jc);options=g(xr,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=g(Hi);createViewTransition=g(ip,{optional:!0});navigationErrorHandler=g(sp,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>I(void 0);rootComponentType=null;destroyed=!1;constructor(){let n=o=>this.events.next(new Ni(o)),r=o=>this.events.next(new Ri(o));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;this.transitions?.next(B(y({},n),{extractedUrl:this.urlHandlingStrategy.extract(n.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r}))}setupNavigations(n){return this.transitions=new ee(null),this.transitions.pipe(pe(r=>r!==null),ge(r=>{let o=!1,i=!1;return I(r).pipe(ge(s=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",fe.SupersededByNewNavigation),ie;this.currentTransition=r,this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,targetBrowserUrl:typeof s.extras.browserUrl=="string"?this.urlSerializer.parse(s.extras.browserUrl):s.extras.browserUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?B(y({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let a=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),c=s.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!a&&c!=="reload"){let u="";return this.events.next(new Je(s.id,this.urlSerializer.serialize(s.rawUrl),u,Dr.IgnoredSameUrlNavigation)),s.resolve(!1),ie}if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return I(s).pipe(ge(u=>(this.events.next(new Ft(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),u.id!==this.navigationId?ie:Promise.resolve(u))),DI(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),z(u=>{r.targetSnapshot=u.targetSnapshot,r.urlAfterRedirects=u.urlAfterRedirects,this.currentNavigation=B(y({},this.currentNavigation),{finalUrl:u.urlAfterRedirects});let l=new Er(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}));if(a&&this.urlHandlingStrategy.shouldProcessUrl(s.currentRawUrl)){let{id:u,extractedUrl:l,source:f,restoredState:h,extras:d}=s,p=new Ft(u,this.urlSerializer.serialize(l),f,h);this.events.next(p);let m=Hh(this.rootComponentType).snapshot;return this.currentTransition=r=B(y({},s),{targetSnapshot:m,urlAfterRedirects:l,extras:B(y({},d),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=l,I(r)}else{let u="";return this.events.next(new Je(s.id,this.urlSerializer.serialize(s.extractedUrl),u,Dr.IgnoredByUrlHandlingStrategy)),s.resolve(!1),ie}}),z(s=>{let a=new Si(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),x(s=>(this.currentTransition=r=B(y({},s),{guards:Vw(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),r)),Qw(this.environmentInjector,s=>this.events.next(s)),z(s=>{if(r.guardsResult=s.guardsResult,s.guardsResult&&typeof s.guardsResult!="boolean")throw ji(this.urlSerializer,s.guardsResult);let a=new Mi(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),pe(s=>s.guardsResult?!0:(this.cancelNavigationTransition(s,"",fe.GuardRejected),!1)),kc(s=>{if(s.guards.canActivateChecks.length!==0)return I(s).pipe(z(a=>{let c=new Ti(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(c)}),ge(a=>{let c=!1;return I(a).pipe(EI(this.paramsInheritanceStrategy,this.environmentInjector),z({next:()=>c=!0,complete:()=>{c||this.cancelNavigationTransition(a,"",fe.NoDataFromResolver)}}))}),z(a=>{let c=new _i(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(c)}))}),kc(s=>{let a=c=>{let u=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(c.routeConfig).pipe(z(l=>{c.component=l}),x(()=>{})));for(let l of c.children)u.push(...a(l));return u};return ao(a(s.targetSnapshot.root)).pipe(nt(null),He(1))}),kc(()=>this.afterPreactivation()),ge(()=>{let{currentSnapshot:s,targetSnapshot:a}=r,c=this.createViewTransition?.(this.environmentInjector,s.root,a.root);return c?U(c).pipe(x(()=>r)):I(r)}),x(s=>{let a=kw(n.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return this.currentTransition=r=B(y({},s),{targetRouterState:a}),this.currentNavigation.targetRouterState=a,r}),z(()=>{this.events.next(new wr)}),jw(this.rootContexts,n.routeReuseStrategy,s=>this.events.next(s),this.inputBindingEnabled),He(1),z({next:s=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Xe(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects))),this.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{o=!0}}),Cs(this.transitionAbortSubject.pipe(z(s=>{throw s}))),vt(()=>{!o&&!i&&this.cancelNavigationTransition(r,"",fe.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation=null,this.currentTransition=null)}),be(s=>{if(this.destroyed)return r.resolve(!1),ie;if(i=!0,Yh(s))this.events.next(new Ve(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode)),Lw(s)?this.events.next(new Dn(s.url,s.navigationBehaviorOptions)):r.resolve(!1);else{let a=new vn(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);try{let c=me(this.environmentInjector,()=>this.navigationErrorHandler?.(a));if(c instanceof En){let{message:u,cancellationCode:l}=ji(this.urlSerializer,c);this.events.next(new Ve(r.id,this.urlSerializer.serialize(r.extractedUrl),u,l)),this.events.next(new Dn(c.redirectTo,c.navigationBehaviorOptions))}else throw this.events.next(a),s}catch(c){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(c)}}return ie}))}))}cancelNavigationTransition(n,r,o){let i=new Ve(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(i),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let n=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return n.toString()!==r?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function MI(e){return e!==Ii}var cp=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>g(TI),providedIn:"root"})}return e})(),Bi=class{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}},TI=(()=>{class e extends Bi{static \u0275fac=(()=>{let n;return function(o){return(n||(n=$a(e)))(o||e)}})();static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),up=(()=>{class e{urlSerializer=g(_r);options=g(xr,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=g(un);urlHandlingStrategy=g(Hi);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new Be;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:n,initialUrl:r,targetBrowserUrl:o}){let i=n!==void 0?this.urlHandlingStrategy.merge(n,r):r,s=o??i;return s instanceof Be?this.urlSerializer.serialize(s):s}commitTransition({targetRouterState:n,finalUrl:r,initialUrl:o}){r&&n?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,o),this.routerState=n):this.rawUrlTree=o}routerState=Hh(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:n}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n??this.rawUrlTree)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>g(_I),providedIn:"root"})}return e})(),_I=(()=>{class e extends up{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{n(r.url,r.state,"popstate")})})}handleRouterEvent(n,r){n instanceof Ft?this.updateStateMemento():n instanceof Je?this.commitTransition(r):n instanceof Er?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):n instanceof wr?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):n instanceof Ve&&(n.code===fe.GuardRejected||n.code===fe.NoDataFromResolver)?this.restoreHistory(r):n instanceof vn?this.restoreHistory(r,!0):n instanceof Xe&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,{extras:r,id:o}){let{replaceUrl:i,state:s}=r;if(this.location.isCurrentPathEqualTo(n)||i){let a=this.browserPageId,c=y(y({},s),this.generateNgRouterState(o,a));this.location.replaceState(n,"",c)}else{let a=y(y({},s),this.generateNgRouterState(o,this.browserPageId+1));this.location.go(n,"",a)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,i=this.currentPageId-o;i!==0?this.location.historyGo(i):this.getCurrentUrlTree()===n.finalUrl&&i===0&&(this.resetInternalState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(n),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}static \u0275fac=(()=>{let n;return function(o){return(n||(n=$a(e)))(o||e)}})();static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function eu(e,t){e.events.pipe(pe(n=>n instanceof Xe||n instanceof Ve||n instanceof vn||n instanceof Je),x(n=>n instanceof Xe||n instanceof Je?0:(n instanceof Ve?n.code===fe.Redirect||n.code===fe.SupersededByNewNavigation:!1)?2:1),pe(n=>n!==2),He(1)).subscribe(()=>{t()})}var NI={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},RI={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},zi=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=g(_f);stateManager=g(up);options=g(xr,{optional:!0})||{};pendingTasks=g(ct);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=g(ap);urlSerializer=g(_r);location=g(un);urlHandlingStrategy=g(Hi);_events=new J;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=g(cp);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=g(Ar,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!g(Ui,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}eventsSubscription=new $;subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let o=this.navigationTransitions.currentTransition,i=this.navigationTransitions.currentNavigation;if(o!==null&&i!==null){if(this.stateManager.handleRouterEvent(r,i),r instanceof Ve&&r.code!==fe.Redirect&&r.code!==fe.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Xe)this.navigated=!0;else if(r instanceof Dn){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),c=y({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||MI(o.source)},s);this.scheduleNavigation(a,Ii,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}AI(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Ii,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r,o)=>{this.navigateToSyncWithBrowser(n,o,r)})}navigateToSyncWithBrowser(n,r,o){let i={replaceUrl:!0},s=o?.navigationId?o:null;if(o){let c=y({},o);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(i.state=c)}let a=this.parseUrl(n);this.scheduleNavigation(a,r,s,i)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(Xc),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,r={}){let{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:c}=r,u=c?this.currentUrlTree.fragment:s,l=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":l=y(y({},this.currentUrlTree.queryParams),i);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=i||null}l!==null&&(l=this.removeEmptyProps(l));let f;try{let h=o?o.snapshot:this.routerState.snapshot.root;f=Vh(h)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),f=this.currentUrlTree.root}return Bh(f,n,l,u??null)}navigateByUrl(n,r={skipLocationChange:!1}){let o=yn(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,Ii,null,r)}navigate(n,r={skipLocationChange:!1}){return xI(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,r){let o;if(r===!0?o=y({},NI):r===!1?o=y({},RI):o=r,yn(n))return Eh(this.currentUrlTree,n,o);let i=this.parseUrl(n);return Eh(this.currentUrlTree,i,o)}removeEmptyProps(n){return Object.entries(n).reduce((r,[o,i])=>(i!=null&&(r[o]=i),r),{})}scheduleNavigation(n,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let a,c,u;s?(a=s.resolve,c=s.reject,u=s.promise):u=new Promise((f,h)=>{a=f,c=h});let l=this.pendingTasks.add();return eu(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(l))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:i,resolve:a,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(f=>Promise.reject(f))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function xI(e){for(let t=0;tn.\u0275providers)])}function FI(e){return e.routerState.root}function LI(){let e=g(st);return t=>{let n=e.get(_t);if(t!==n.components[0])return;let r=e.get(zi),o=e.get(jI);e.get(VI)===1&&r.initialNavigation(),e.get(BI,null,T.Optional)?.setUpPreloading(),e.get(kI,null,T.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var jI=new E("",{factory:()=>new J}),VI=new E("",{providedIn:"root",factory:()=>1});var BI=new E("");var tu="error_log_token",lp="/api",dp=class e{constructor(t){this.http=t}token=Rd(this.getStoredToken());isAuthenticated=Hf(()=>!!this.token());getToken(){return this.token()}getStoredToken(){return typeof localStorage>"u"?null:localStorage.getItem(tu)}login(t){return this.http.post(`${lp}/auth/login`,{password:t}).pipe(z(n=>{"token"in n&&n.token&&(localStorage.setItem(tu,n.token),this.token.set(n.token))}),be(n=>{let r=n?.error?.error??n?.message??"\u041E\u0448\u0438\u0431\u043A\u0430 \u0432\u0445\u043E\u0434\u0430";return I({error:r})}))}logout(){let t=this.token();localStorage.removeItem(tu),this.token.set(null),t&&this.http.post(`${lp}/auth/logout`,{},{headers:{Authorization:`Bearer ${t}`}}).subscribe()}static \u0275fac=function(n){return new(n||e)(C(mi))};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})};export{y as a,B as b,J as c,U as d,zt as e,x as f,Wp as g,be as h,v as i,Cl as j,w as k,Wn as l,E as m,C as n,g as o,Aa as p,U_ as q,$_ as r,$a as s,ce as t,Nd as u,Rd as v,H_ as w,sv as x,nr as y,Cf as z,rr as A,fc as B,Uv as C,Qv as D,oi as E,pD as F,gD as G,X_ as H,J_ as I,e0 as J,Af as K,Of as L,pc as M,t0 as N,OD as O,n0 as P,PD as Q,Pf as R,r0 as S,LD as T,Ff as U,jD as V,VD as W,BD as X,o0 as Y,UD as Z,i0 as _,s0 as $,a0 as aa,c0 as ba,mc as ca,lE as da,u0 as ea,Hf as fa,Qe as ga,pE as ha,Kf as ia,_E as ja,mi as ka,rw as la,ow as ma,Qc as na,zi as oa,PI as pa,dp as qa};