From 78ccc9c5ad8544e44c4a97482686c2cea1b582f3 Mon Sep 17 00:00:00 2001 From: Diogo Junior Date: Sun, 25 Aug 2024 17:50:43 -0300 Subject: [PATCH] Try not using separate json for data --- docs/index.html | 2 +- docs/{main-G2VM7IIK.js => main-OOJK34RS.js} | 14 +-- .../home-rankings/home-rankings.component.ts | 106 +++++++++++++++++- .../user-registration.component.ts | 10 +- 4 files changed, 119 insertions(+), 13 deletions(-) rename docs/{main-G2VM7IIK.js => main-OOJK34RS.js} (66%) diff --git a/docs/index.html b/docs/index.html index 18fe21c..1592eb3 100644 --- a/docs/index.html +++ b/docs/index.html @@ -13,5 +13,5 @@ - + diff --git a/docs/main-G2VM7IIK.js b/docs/main-OOJK34RS.js similarity index 66% rename from docs/main-G2VM7IIK.js rename to docs/main-OOJK34RS.js index efc6659..aa3aa87 100644 --- a/docs/main-G2VM7IIK.js +++ b/docs/main-OOJK34RS.js @@ -1,8 +1,8 @@ -var uh=Object.defineProperty,lh=Object.defineProperties;var dh=Object.getOwnPropertyDescriptors;var gc=Object.getOwnPropertySymbols;var fh=Object.prototype.hasOwnProperty,hh=Object.prototype.propertyIsEnumerable;var mc=(t,e,n)=>e in t?uh(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,m=(t,e)=>{for(var n in e||={})fh.call(e,n)&&mc(t,n,e[n]);if(gc)for(var n of gc(e))hh.call(e,n)&&mc(t,n,e[n]);return t},H=(t,e)=>lh(t,dh(e));var Er=(t,e,n)=>new Promise((r,o)=>{var i=c=>{try{a(n.next(c))}catch(u){o(u)}},s=c=>{try{a(n.throw(c))}catch(u){o(u)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(i,s);a((n=n.apply(t,e)).next())});var hi=null;var fi=1,vc=Symbol("SIGNAL");function L(t){let e=hi;return hi=t,e}function yc(){return hi}var pi={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,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function ph(t){if(!(Di(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===fi)){if(!t.producerMustRecompute(t)&&!mi(t)){t.dirty=!1,t.lastCleanEpoch=fi;return}t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=fi}}function gi(t){return t&&(t.nextProducerIndex=0),L(t)}function Dc(t,e){if(L(e),!(!t||t.producerNode===void 0||t.producerIndexOfThis===void 0||t.producerLastReadVersion===void 0)){if(Di(t))for(let n=t.nextProducerIndex;nt.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function mi(t){wi(t);for(let e=0;e0}function wi(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function gh(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function mh(t){return t.producerNode!==void 0}function vh(){throw new Error}var yh=vh;function wc(t){yh=t}function S(t){return typeof t=="function"}function $t(t){let n=t(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Cr=$t(t=>function(n){t(this),this.message=n?`${n.length} errors occurred during unsubscription: +var ah=Object.defineProperty,ch=Object.defineProperties;var uh=Object.getOwnPropertyDescriptors;var pc=Object.getOwnPropertySymbols;var lh=Object.prototype.hasOwnProperty,dh=Object.prototype.propertyIsEnumerable;var gc=(t,e,n)=>e in t?ah(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,m=(t,e)=>{for(var n in e||={})lh.call(e,n)&&gc(t,n,e[n]);if(pc)for(var n of pc(e))dh.call(e,n)&&gc(t,n,e[n]);return t},H=(t,e)=>ch(t,uh(e));var Er=(t,e,n)=>new Promise((r,o)=>{var i=c=>{try{a(n.next(c))}catch(u){o(u)}},s=c=>{try{a(n.throw(c))}catch(u){o(u)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(i,s);a((n=n.apply(t,e)).next())});var hi=null;var fi=1,mc=Symbol("SIGNAL");function L(t){let e=hi;return hi=t,e}function vc(){return hi}var pi={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,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function fh(t){if(!(Di(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===fi)){if(!t.producerMustRecompute(t)&&!mi(t)){t.dirty=!1,t.lastCleanEpoch=fi;return}t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=fi}}function gi(t){return t&&(t.nextProducerIndex=0),L(t)}function yc(t,e){if(L(e),!(!t||t.producerNode===void 0||t.producerIndexOfThis===void 0||t.producerLastReadVersion===void 0)){if(Di(t))for(let n=t.nextProducerIndex;nt.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function mi(t){wi(t);for(let e=0;e0}function wi(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function hh(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function ph(t){return t.producerNode!==void 0}function gh(){throw new Error}var mh=gh;function Dc(t){mh=t}function S(t){return typeof t=="function"}function $t(t){let n=t(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Cr=$t(t=>function(n){t(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 In(t,e){if(t){let n=t.indexOf(e);0<=n&&t.splice(n,1)}}var W=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;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(S(r))try{r()}catch(i){e=i instanceof Cr?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Ec(i)}catch(s){e=e??[],s instanceof Cr?e=[...e,...s.errors]:e.push(s)}}if(e)throw new Cr(e)}}add(e){var n;if(e&&e!==this)if(this.closed)Ec(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(e)}}_hasParent(e){let{_parentage:n}=this;return n===e||Array.isArray(n)&&n.includes(e)}_addParent(e){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(e),n):n?[n,e]:e}_removeParent(e){let{_parentage:n}=this;n===e?this._parentage=null:Array.isArray(n)&&In(n,e)}remove(e){let{_finalizers:n}=this;n&&In(n,e),e instanceof t&&e._removeParent(this)}};W.EMPTY=(()=>{let t=new W;return t.closed=!0,t})();var Ei=W.EMPTY;function Ir(t){return t instanceof W||t&&"closed"in t&&S(t.remove)&&S(t.add)&&S(t.unsubscribe)}function Ec(t){S(t)?t():t.unsubscribe()}var be={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Bt={setTimeout(t,e,...n){let{delegate:r}=Bt;return r?.setTimeout?r.setTimeout(t,e,...n):setTimeout(t,e,...n)},clearTimeout(t){let{delegate:e}=Bt;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function br(t){Bt.setTimeout(()=>{let{onUnhandledError:e}=be;if(e)e(t);else throw t})}function bn(){}var Cc=Ci("C",void 0,void 0);function Ic(t){return Ci("E",void 0,t)}function bc(t){return Ci("N",t,void 0)}function Ci(t,e,n){return{kind:t,value:e,error:n}}var yt=null;function Ht(t){if(be.useDeprecatedSynchronousErrorHandling){let e=!yt;if(e&&(yt={errorThrown:!1,error:null}),t(),e){let{errorThrown:n,error:r}=yt;if(yt=null,n)throw r}}else t()}function Mc(t){be.useDeprecatedSynchronousErrorHandling&&yt&&(yt.errorThrown=!0,yt.error=t)}var Dt=class extends W{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,Ir(e)&&e.add(this)):this.destination=Eh}static create(e,n,r){return new zt(e,n,r)}next(e){this.isStopped?bi(bc(e),this):this._next(e)}error(e){this.isStopped?bi(Ic(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?bi(Cc,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},Dh=Function.prototype.bind;function Ii(t,e){return Dh.call(t,e)}var Mi=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:n}=this;if(n.next)try{n.next(e)}catch(r){Mr(r)}}error(e){let{partialObserver:n}=this;if(n.error)try{n.error(e)}catch(r){Mr(r)}else Mr(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(n){Mr(n)}}},zt=class extends Dt{constructor(e,n,r){super();let o;if(S(e)||!e)o={next:e??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&be.useDeprecatedNextContext?(i=Object.create(e),i.unsubscribe=()=>this.unsubscribe(),o={next:e.next&&Ii(e.next,i),error:e.error&&Ii(e.error,i),complete:e.complete&&Ii(e.complete,i)}):o=e}this.destination=new Mi(o)}};function Mr(t){be.useDeprecatedSynchronousErrorHandling?Mc(t):br(t)}function wh(t){throw t}function bi(t,e){let{onStoppedNotification:n}=be;n&&Bt.setTimeout(()=>n(t,e))}var Eh={closed:!0,next:bn,error:wh,complete:bn};var Gt=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ue(t){return t}function Si(...t){return Ti(t)}function Ti(t){return t.length===0?ue:t.length===1?t[0]:function(n){return t.reduce((r,o)=>o(r),n)}}var F=(()=>{class t{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new t;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=Ih(n)?n:new zt(n,r,o);return Ht(()=>{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=Sc(r),new r((o,i)=>{let s=new zt({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)}[Gt](){return this}pipe(...n){return Ti(n)(this)}toPromise(n){return n=Sc(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return t.create=e=>new t(e),t})();function Sc(t){var e;return(e=t??be.Promise)!==null&&e!==void 0?e:Promise}function Ch(t){return t&&S(t.next)&&S(t.error)&&S(t.complete)}function Ih(t){return t&&t instanceof Dt||Ch(t)&&Ir(t)}function xi(t){return S(t?.lift)}function P(t){return e=>{if(xi(e))return e.lift(function(n){try{return t(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function k(t,e,n,r,o){return new _i(t,e,n,r,o)}var _i=class extends Dt{constructor(e,n,r,o,i,s){super(e),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){e.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){e.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};function qt(){return P((t,e)=>{let n=null;t._refCount++;let r=k(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){n=null;return}let o=t._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),e.unsubscribe()});t.subscribe(r),r.closed||(n=t.connect())})}var Wt=class extends F{constructor(e,n){super(),this.source=e,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,xi(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){let e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new W;let n=this.getSubject();e.add(this.source.subscribe(k(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),e.closed&&(this._connection=null,e=W.EMPTY)}return e}refCount(){return qt()(this)}};var Tc=$t(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var te=(()=>{class t extends F{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Sr(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Tc}next(n){Ht(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Ht(()=>{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(){Ht(()=>{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?Ei:(this.currentObservers=null,i.push(n),new W(()=>{this.currentObservers=null,In(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new F;return n.source=this,n}}return t.create=(e,n)=>new Sr(e,n),t})(),Sr=class extends te{constructor(e,n){super(),this.destination=e,this.source=n}next(e){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,e)}error(e){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,e)}complete(){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||n===void 0||n.call(e)}_subscribe(e){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(e))!==null&&r!==void 0?r:Ei}};var J=class extends te{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let n=super._subscribe(e);return!n.closed&&e.next(this._value),n}getValue(){let{hasError:e,thrownError:n,_value:r}=this;if(e)throw n;return this._throwIfClosed(),r}next(e){super.next(this._value=e)}};var le=new F(t=>t.complete());function xc(t){return t&&S(t.schedule)}function _c(t){return t[t.length-1]}function Nc(t){return S(_c(t))?t.pop():void 0}function Je(t){return xc(_c(t))?t.pop():void 0}function Rc(t,e,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(d){s(d)}}function c(l){try{u(r.throw(l))}catch(d){s(d)}}function u(l){l.done?i(l.value):o(l.value).then(a,c)}u((r=r.apply(t,e||[])).next())})}function Ac(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function wt(t){return this instanceof wt?(this.v=t,this):new wt(t)}function Oc(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),o,i=[];return o={},a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(g){return Promise.resolve(g).then(f,d)}}function a(f,g){r[f]&&(o[f]=function(C){return new Promise(function(v,w){i.push([f,C,v,w])>1||c(f,C)})},g&&(o[f]=g(o[f])))}function c(f,g){try{u(r[f](g))}catch(C){h(i[0][3],C)}}function u(f){f.value instanceof wt?Promise.resolve(f.value.v).then(l,d):h(i[0][2],f)}function l(f){c("next",f)}function d(f){c("throw",f)}function h(f,g){f(g),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Pc(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof Ac=="function"?Ac(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=t[i]&&function(s){return new Promise(function(a,c){s=t[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 Tr=t=>t&&typeof t.length=="number"&&typeof t!="function";function xr(t){return S(t?.then)}function _r(t){return S(t[Gt])}function Nr(t){return Symbol.asyncIterator&&S(t?.[Symbol.asyncIterator])}function Ar(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function bh(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Rr=bh();function Or(t){return S(t?.[Rr])}function Pr(t){return Oc(this,arguments,function*(){let n=t.getReader();try{for(;;){let{value:r,done:o}=yield wt(n.read());if(o)return yield wt(void 0);yield yield wt(r)}}finally{n.releaseLock()}})}function kr(t){return S(t?.getReader)}function Q(t){if(t instanceof F)return t;if(t!=null){if(_r(t))return Mh(t);if(Tr(t))return Sh(t);if(xr(t))return Th(t);if(Nr(t))return kc(t);if(Or(t))return xh(t);if(kr(t))return _h(t)}throw Ar(t)}function Mh(t){return new F(e=>{let n=t[Gt]();if(S(n.subscribe))return n.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Sh(t){return new F(e=>{for(let n=0;n{t.then(n=>{e.closed||(e.next(n),e.complete())},n=>e.error(n)).then(null,br)})}function xh(t){return new F(e=>{for(let n of t)if(e.next(n),e.closed)return;e.complete()})}function kc(t){return new F(e=>{Nh(t,e).catch(n=>e.error(n))})}function _h(t){return kc(Pr(t))}function Nh(t,e){var n,r,o,i;return Rc(this,void 0,void 0,function*(){try{for(n=Pc(t);r=yield n.next(),!r.done;){let s=r.value;if(e.next(s),e.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}}e.complete()})}function ie(t,e,n,r=0,o=!1){let i=e.schedule(function(){n(),o?t.add(this.schedule(null,r)):this.unsubscribe()},r);if(t.add(i),!o)return i}function Fr(t,e=0){return P((n,r)=>{n.subscribe(k(r,o=>ie(r,t,()=>r.next(o),e),()=>ie(r,t,()=>r.complete(),e),o=>ie(r,t,()=>r.error(o),e)))})}function Lr(t,e=0){return P((n,r)=>{r.add(t.schedule(()=>n.subscribe(r),e))})}function Fc(t,e){return Q(t).pipe(Lr(e),Fr(e))}function Lc(t,e){return Q(t).pipe(Lr(e),Fr(e))}function jc(t,e){return new F(n=>{let r=0;return e.schedule(function(){r===t.length?n.complete():(n.next(t[r++]),n.closed||this.schedule())})})}function Vc(t,e){return new F(n=>{let r;return ie(n,e,()=>{r=t[Rr](),ie(n,e,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>S(r?.return)&&r.return()})}function jr(t,e){if(!t)throw new Error("Iterable cannot be null");return new F(n=>{ie(n,e,()=>{let r=t[Symbol.asyncIterator]();ie(n,e,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Uc(t,e){return jr(Pr(t),e)}function $c(t,e){if(t!=null){if(_r(t))return Fc(t,e);if(Tr(t))return jc(t,e);if(xr(t))return Lc(t,e);if(Nr(t))return jr(t,e);if(Or(t))return Vc(t,e);if(kr(t))return Uc(t,e)}throw Ar(t)}function z(t,e){return e?$c(t,e):Q(t)}function I(...t){let e=Je(t);return z(t,e)}function Zt(t,e){let n=S(t)?t:()=>t,r=o=>o.error(n());return new F(e?o=>e.schedule(r,0,o):r)}function Ni(t){return!!t&&(t instanceof F||S(t.lift)&&S(t.subscribe))}var Be=$t(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function x(t,e){return P((n,r)=>{let o=0;n.subscribe(k(r,i=>{r.next(t.call(e,i,o++))}))})}var{isArray:Ah}=Array;function Rh(t,e){return Ah(e)?t(...e):t(e)}function Bc(t){return x(e=>Rh(t,e))}var{isArray:Oh}=Array,{getPrototypeOf:Ph,prototype:kh,keys:Fh}=Object;function Hc(t){if(t.length===1){let e=t[0];if(Oh(e))return{args:e,keys:null};if(Lh(e)){let n=Fh(e);return{args:n.map(r=>e[r]),keys:n}}}return{args:t,keys:null}}function Lh(t){return t&&typeof t=="object"&&Ph(t)===kh}function zc(t,e){return t.reduce((n,r,o)=>(n[r]=e[o],n),{})}function Vr(...t){let e=Je(t),n=Nc(t),{args:r,keys:o}=Hc(t);if(r.length===0)return z([],e);let i=new F(jh(r,e,o?s=>zc(o,s):ue));return n?i.pipe(Bc(n)):i}function jh(t,e,n=ue){return r=>{Gc(e,()=>{let{length:o}=t,i=new Array(o),s=o,a=o;for(let c=0;c{let u=z(t[c],e),l=!1;u.subscribe(k(r,d=>{i[c]=d,l||(l=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function Gc(t,e,n){t?ie(n,t,e):e()}function qc(t,e,n,r,o,i,s,a){let c=[],u=0,l=0,d=!1,h=()=>{d&&!c.length&&!u&&e.complete()},f=C=>u{i&&e.next(C),u++;let v=!1;Q(n(C,l++)).subscribe(k(e,w=>{o?.(w),i?f(w):e.next(w)},()=>{v=!0},void 0,()=>{if(v)try{for(u--;c.length&&ug(w)):g(w)}h()}catch(w){e.error(w)}}))};return t.subscribe(k(e,f,()=>{d=!0,h()})),()=>{a?.()}}function Y(t,e,n=1/0){return S(e)?Y((r,o)=>x((i,s)=>e(r,i,o,s))(Q(t(r,o))),n):(typeof e=="number"&&(n=e),P((r,o)=>qc(r,o,t,n)))}function Ai(t=1/0){return Y(ue,t)}function Wc(){return Ai(1)}function Yt(...t){return Wc()(z(t,Je(t)))}function Ur(t){return new F(e=>{Q(t()).subscribe(e)})}function de(t,e){return P((n,r)=>{let o=0;n.subscribe(k(r,i=>t.call(e,i,o++)&&r.next(i)))})}function Xe(t){return P((e,n)=>{let r=null,o=!1,i;r=e.subscribe(k(n,void 0,void 0,s=>{i=Q(t(s,Xe(t)(e))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function Zc(t,e,n,r,o){return(i,s)=>{let a=n,c=e,u=0;i.subscribe(k(s,l=>{let d=u++;c=a?t(c,l,d):(a=!0,l),r&&s.next(c)},o&&(()=>{a&&s.next(c),s.complete()})))}}function et(t,e){return S(e)?Y(t,e,1):Y(t,1)}function tt(t){return P((e,n)=>{let r=!1;e.subscribe(k(n,o=>{r=!0,n.next(o)},()=>{r||n.next(t),n.complete()}))})}function He(t){return t<=0?()=>le:P((e,n)=>{let r=0;e.subscribe(k(n,o=>{++r<=t&&(n.next(o),t<=r&&n.complete())}))})}function Ri(t){return x(()=>t)}function $r(t=Vh){return P((e,n)=>{let r=!1;e.subscribe(k(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(t())))})}function Vh(){return new Be}function Et(t){return P((e,n)=>{try{e.subscribe(n)}finally{n.add(t)}})}function Re(t,e){let n=arguments.length>=2;return r=>r.pipe(t?de((o,i)=>t(o,i,r)):ue,He(1),n?tt(e):$r(()=>new Be))}function Qt(t){return t<=0?()=>le:P((e,n)=>{let r=[];e.subscribe(k(n,o=>{r.push(o),t{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function Oi(t,e){let n=arguments.length>=2;return r=>r.pipe(t?de((o,i)=>t(o,i,r)):ue,Qt(1),n?tt(e):$r(()=>new Be))}function Pi(t,e){return P(Zc(t,e,arguments.length>=2,!0))}function ki(...t){let e=Je(t);return P((n,r)=>{(e?Yt(t,n,e):Yt(t,n)).subscribe(r)})}function fe(t,e){return P((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(k(r,c=>{o?.unsubscribe();let u=0,l=i++;Q(t(c,l)).subscribe(o=k(r,d=>r.next(e?e(c,d,l,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Fi(t){return P((e,n)=>{Q(t).subscribe(k(n,()=>n.complete(),bn)),!n.closed&&e.subscribe(n)})}function K(t,e,n){let r=S(t)||e||n?{next:t,error:e,complete:n}:t;return r?P((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(k(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)}))}):ue}var y=class extends Error{constructor(e,n){super(vo(e,n)),this.code=e}};function vo(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}function Ln(t){return{toString:t}.toString()}var Br="__parameters__";function Uh(t){return function(...n){if(t){let r=t(...n);for(let o in r)this[o]=r[o]}}}function Au(t,e,n){return Ln(()=>{let r=Uh(e);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(c,u,l){let d=c.hasOwnProperty(Br)?c[Br]:Object.defineProperty(c,Br,{value:[]})[Br];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),c}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}function $(t){for(let e in t)if(t[e]===$)return e;throw Error("Could not find renamed property on target object.")}function he(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(he).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let e=t.toString();if(e==null)return""+e;let n=e.indexOf(` -`);return n===-1?e:e.substring(0,n)}function Yc(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var $h=$({__forward_ref__:$});function Ru(t){return t.__forward_ref__=Ru,t.toString=function(){return he(this())},t}function De(t){return Ou(t)?t():t}function Ou(t){return typeof t=="function"&&t.hasOwnProperty($h)&&t.__forward_ref__===Ru}function D(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function jn(t){return{providers:t.providers||[],imports:t.imports||[]}}function yo(t){return Qc(t,ku)||Qc(t,Fu)}function Pu(t){return yo(t)!==null}function Qc(t,e){return t.hasOwnProperty(e)?t[e]:null}function Bh(t){let e=t&&(t[ku]||t[Fu]);return e||null}function Kc(t){return t&&(t.hasOwnProperty(Jc)||t.hasOwnProperty(Hh))?t[Jc]:null}var ku=$({\u0275prov:$}),Jc=$({\u0275inj:$}),Fu=$({ngInjectableDef:$}),Hh=$({ngInjectorDef:$}),E=class{constructor(e,n){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=D({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Lu(t){return t&&!!t.\u0275providers}var zh=$({\u0275cmp:$}),Gh=$({\u0275dir:$}),qh=$({\u0275pipe:$}),Wh=$({\u0275mod:$}),Yr=$({\u0275fac:$}),Sn=$({__NG_ELEMENT_ID__:$}),Xc=$({__NG_ENV_ID__:$});function ju(t){return typeof t=="string"?t:t==null?"":String(t)}function Zh(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():ju(t)}function Yh(t,e){let n=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new y(-200,t)}function Ts(t,e){throw new y(-201,!1)}var _=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(_||{}),Gi;function Vu(){return Gi}function ye(t){let e=Gi;return Gi=t,e}function Uu(t,e,n){let r=yo(t);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&_.Optional)return null;if(e!==void 0)return e;Ts(t,"Injector")}var Qh={},Tn=Qh,qi="__NG_DI_FLAG__",Qr="ngTempTokenPath",Kh="ngTokenPath",Jh=/\n/gm,Xh="\u0275",eu="__source",en;function ep(){return en}function nt(t){let e=en;return en=t,e}function tp(t,e=_.Default){if(en===void 0)throw new y(-203,!1);return en===null?Uu(t,void 0,e):en.get(t,e&_.Optional?null:void 0,e)}function M(t,e=_.Default){return(Vu()||tp)(De(t),e)}function p(t,e=_.Default){return M(t,Do(e))}function Do(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Wi(t){let e=[];for(let n=0;n ");else if(typeof e=="object"){let i=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):he(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${t.replace(Jh,` - `)}`}var xs=$u(Au("Optional"),8);var Bu=$u(Au("SkipSelf"),4);function nn(t,e){let n=t.hasOwnProperty(Yr);return n?t[Yr]:null}function _s(t,e){t.forEach(n=>Array.isArray(n)?_s(n,e):e(n))}function Hu(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Kr(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}var xn={},Oe=[],rn=new E(""),zu=new E("",-1),Gu=new E(""),Jr=class{get(e,n=Tn){if(n===Tn){let r=new Error(`NullInjectorError: No provider for ${he(e)}!`);throw r.name="NullInjectorError",r}return n}},qu=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(qu||{}),Fe=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(Fe||{}),ot=function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t}(ot||{});function ip(t,e,n){let r=t.length;for(;;){let o=t.indexOf(e,n);if(o===-1)return o;if(o===0||t.charCodeAt(o-1)<=32){let i=e.length;if(o+i===r||t.charCodeAt(o+i)<=32)return o}n=o+1}}function Zi(t,e,n){let r=0;for(;re){s=i-1;break}}}for(;i-1){let i;for(;++oi?d="":d=o[l+1].toLowerCase(),r&2&&u!==d){if(Me(r))return!1;s=!0}}}}return Me(r)||s}function Me(t){return(t&1)===0}function dp(t,e,n,r){if(e===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!==""&&!Me(s)&&(e+=nu(i,o),o=""),r=s,i=i||!Me(r);n++}return o!==""&&(e+=nu(i,o)),e}function mp(t){return t.map(gp).join(",")}function vp(t){let e=[],n=[],r=1,o=2;for(;r{let e=Ju(t),n=H(m({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===qu.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Fe.Emulated,styles:t.styles||Oe,_:null,schemas:t.schemas||null,tView:null,id:""});Xu(n);let r=t.dependencies;return n.directiveDefs=ou(r,!1),n.pipeDefs=ou(r,!0),n.id=wp(n),n})}function yp(t){return Mt(t)||Zu(t)}function Dp(t){return t!==null}function Vn(t){return Ln(()=>({type:t.type,bootstrap:t.bootstrap||Oe,declarations:t.declarations||Oe,imports:t.imports||Oe,exports:t.exports||Oe,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function ru(t,e){if(t==null)return xn;let n={};for(let r in t)if(t.hasOwnProperty(r)){let o=t[r],i,s,a=ot.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),e?(n[i]=a!==ot.None?[r,a]:r,e[i]=s):n[i]=r}return n}function wo(t){return Ln(()=>{let e=Ju(t);return Xu(e),e})}function Mt(t){return t[zh]||null}function Zu(t){return t[Gh]||null}function Yu(t){return t[qh]||null}function Qu(t){let e=Mt(t)||Zu(t)||Yu(t);return e!==null?e.standalone:!1}function Ku(t,e){let n=t[Wh]||null;if(!n&&e===!0)throw new Error(`Type ${he(t)} does not have '\u0275mod' property.`);return n}function Ju(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||xn,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||Oe,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:ru(t.inputs,e),outputs:ru(t.outputs),debugInfo:null}}function Xu(t){t.features?.forEach(e=>e(t))}function ou(t,e){if(!t)return null;let n=e?Yu:yp;return()=>(typeof t=="function"?t():t).map(r=>n(r)).filter(Dp)}function wp(t){let e=0,n=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let o of n)e=Math.imul(31,e)+o.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function ln(t){return{\u0275providers:t}}function Ep(...t){return{\u0275providers:el(!0,t),\u0275fromNgModule:!0}}function el(t,...e){let n=[],r=new Set,o,i=s=>{n.push(s)};return _s(e,s=>{let a=s;Yi(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&tl(o,i),n}function tl(t,e){for(let n=0;n{e(i,r)})}}function Yi(t,e,n,r){if(t=De(t),!t)return!1;let o=null,i=Kc(t),s=!i&&Mt(t);if(!i&&!s){let c=t.ngModule;if(i=Kc(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=t}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)Yi(u,e,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;try{_s(i.imports,l=>{Yi(l,e,n,r)&&(u||=[],u.push(l))})}finally{}u!==void 0&&tl(u,e)}if(!a){let u=nn(o)||(()=>new o);e({provide:o,useFactory:u,deps:Oe},o),e({provide:Gu,useValue:o,multi:!0},o),e({provide:rn,useValue:()=>M(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=t;Rs(c,l=>{e(l,u)})}}else return!1;return o!==t&&t.providers!==void 0}function Rs(t,e){for(let n of t)Lu(n)&&(n=n.\u0275providers),Array.isArray(n)?Rs(n,e):e(n)}var Cp=$({provide:String,useValue:$});function nl(t){return t!==null&&typeof t=="object"&&Cp in t}function Ip(t){return!!(t&&t.useExisting)}function bp(t){return!!(t&&t.useFactory)}function Qi(t){return typeof t=="function"}var Eo=new E(""),zr={},Mp={},Li;function Os(){return Li===void 0&&(Li=new Jr),Li}var se=class{},_n=class extends se{get destroyed(){return this._destroyed}constructor(e,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Ji(e,s=>this.processProvider(s)),this.records.set(zu,Kt(void 0,this)),o.has("environment")&&this.records.set(se,Kt(void 0,this));let i=this.records.get(Eo);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Gu,Oe,_.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=L(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(),L(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let n=nt(this),r=ye(void 0),o;try{return e()}finally{nt(n),ye(r)}}get(e,n=Tn,r=_.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(Xc))return e[Xc](this);r=Do(r);let o,i=nt(this),s=ye(void 0);try{if(!(r&_.SkipSelf)){let c=this.records.get(e);if(c===void 0){let u=Ap(e)&&yo(e);u&&this.injectableDefInScope(u)?c=Kt(Ki(e),zr):c=null,this.records.set(e,c)}if(c!=null)return this.hydrate(e,c)}let a=r&_.Self?Os():this.parent;return n=r&_.Optional&&n===Tn?null:n,a.get(e,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Qr]=a[Qr]||[]).unshift(he(e)),i)throw a;return rp(a,e,"R3InjectorError",this.source)}else throw a}finally{ye(s),nt(i)}}resolveInjectorInitializers(){let e=L(null),n=nt(this),r=ye(void 0),o;try{let i=this.get(rn,Oe,_.Self);for(let s of i)s()}finally{nt(n),ye(r),L(e)}}toString(){let e=[],n=this.records;for(let r of n.keys())e.push(he(r));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new y(205,!1)}processProvider(e){e=De(e);let n=Qi(e)?e:De(e&&e.provide),r=Tp(e);if(!Qi(e)&&e.multi===!0){let o=this.records.get(n);o||(o=Kt(void 0,zr,!0),o.factory=()=>Wi(o.multi),this.records.set(n,o)),n=e,o.multi.push(e)}this.records.set(n,r)}hydrate(e,n){let r=L(null);try{return n.value===zr&&(n.value=Mp,n.value=n.factory()),typeof n.value=="object"&&n.value&&Np(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{L(r)}}injectableDefInScope(e){if(!e.providedIn)return!1;let n=De(e.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(e){let n=this._onDestroyHooks.indexOf(e);n!==-1&&this._onDestroyHooks.splice(n,1)}};function Ki(t){let e=yo(t),n=e!==null?e.factory:nn(t);if(n!==null)return n;if(t instanceof E)throw new y(204,!1);if(t instanceof Function)return Sp(t);throw new y(204,!1)}function Sp(t){if(t.length>0)throw new y(204,!1);let n=Bh(t);return n!==null?()=>n.factory(t):()=>new t}function Tp(t){if(nl(t))return Kt(void 0,t.useValue);{let e=xp(t);return Kt(e,zr)}}function xp(t,e,n){let r;if(Qi(t)){let o=De(t);return nn(o)||Ki(o)}else if(nl(t))r=()=>De(t.useValue);else if(bp(t))r=()=>t.useFactory(...Wi(t.deps||[]));else if(Ip(t))r=()=>M(De(t.useExisting));else{let o=De(t&&(t.useClass||t.provide));if(_p(t))r=()=>new o(...Wi(t.deps));else return nn(o)||Ki(o)}return r}function Kt(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function _p(t){return!!t.deps}function Np(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function Ap(t){return typeof t=="function"||typeof t=="object"&&t instanceof E}function Ji(t,e){for(let n of t)Array.isArray(n)?Ji(n,e):n&&Lu(n)?Ji(n.\u0275providers,e):e(n)}function Te(t,e){t instanceof _n&&t.assertNotDestroyed();let n,r=nt(t),o=ye(void 0);try{return e()}finally{nt(r),ye(o)}}function Rp(){return Vu()!==void 0||ep()!=null}function Op(t){return typeof t=="function"}var qe=0,O=1,b=2,re=3,Se=4,xe=5,Xr=6,eo=7,ze=8,on=9,Ge=10,ae=11,Nn=12,iu=13,Un=14,Le=15,sn=16,Jt=17,an=18,Co=19,rl=20,rt=21,ji=22,we=23,it=25,ol=1;var St=7,to=8,no=9,Ee=10,ro=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(ro||{});function It(t){return Array.isArray(t)&&typeof t[ol]=="object"}function We(t){return Array.isArray(t)&&t[ol]===!0}function il(t){return(t.flags&4)!==0}function Io(t){return t.componentOffset>-1}function Ps(t){return(t.flags&1)===1}function $n(t){return!!t.template}function Xi(t){return(t[b]&512)!==0}var es=class{constructor(e,n,r){this.previousValue=e,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function sl(t,e,n,r){e!==null?e.applyValueToInputSignal(e,r):t[n]=r}function bo(){return al}function al(t){return t.type.prototype.ngOnChanges&&(t.setInput=kp),Pp}bo.ngInherit=!0;function Pp(){let t=ul(this),e=t?.current;if(e){let n=t.previous;if(n===xn)t.previous=e;else for(let r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e)}}function kp(t,e,n,r,o){let i=this.declaredInputs[r],s=ul(t)||Fp(t,{previous:xn,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new es(u&&u.currentValue,n,c===xn),sl(t,e,o,n)}var cl="__ngSimpleChanges__";function ul(t){return t[cl]||null}function Fp(t,e){return t[cl]=e}var su=null;var Pe=function(t,e,n){su?.(t,e,n)},Lp="svg",jp="math";function je(t){for(;Array.isArray(t);)t=t[qe];return t}function Vp(t,e){return je(e[t])}function _e(t,e){return je(e[t.index])}function ll(t,e){return t.data[e]}function Rt(t,e){let n=e[t];return It(n)?n:n[qe]}function ks(t){return(t[b]&128)===128}function Up(t){return We(t[re])}function oo(t,e){return e==null?null:t[e]}function dl(t){t[Jt]=0}function fl(t){t[b]&1024||(t[b]|=1024,ks(t)&&Mo(t))}function An(t){return!!(t[b]&9216||t[we]?.dirty)}function ts(t){t[Ge].changeDetectionScheduler?.notify(7),t[b]&64&&(t[b]|=1024),An(t)&&Mo(t)}function Mo(t){t[Ge].changeDetectionScheduler?.notify(0);let e=Tt(t);for(;e!==null&&!(e[b]&8192||(e[b]|=8192,!ks(e)));)e=Tt(e)}function hl(t,e){if((t[b]&256)===256)throw new y(911,!1);t[rt]===null&&(t[rt]=[]),t[rt].push(e)}function $p(t,e){if(t[rt]===null)return;let n=t[rt].indexOf(e);n!==-1&&t[rt].splice(n,1)}function Tt(t){let e=t[re];return We(e)?e[re]:e}var j={lFrame:Il(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var pl=!1;function Bp(){return j.lFrame.elementDepthCount}function Hp(){j.lFrame.elementDepthCount++}function zp(){j.lFrame.elementDepthCount--}function gl(){return j.bindingsEnabled}function Gp(){return j.skipHydrationRootTNode!==null}function qp(t){return j.skipHydrationRootTNode===t}function Wp(){j.skipHydrationRootTNode=null}function X(){return j.lFrame.lView}function Ot(){return j.lFrame.tView}function Ne(){let t=ml();for(;t!==null&&t.type===64;)t=t.parent;return t}function ml(){return j.lFrame.currentTNode}function Zp(){let t=j.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function Bn(t,e){let n=j.lFrame;n.currentTNode=t,n.isParent=e}function vl(){return j.lFrame.isParent}function Yp(){j.lFrame.isParent=!1}function yl(){return pl}function au(t){pl=t}function Qp(t){return j.lFrame.bindingIndex=t}function Dl(){return j.lFrame.bindingIndex++}function Kp(){return j.lFrame.inI18n}function Jp(t,e){let n=j.lFrame;n.bindingIndex=n.bindingRootIndex=t,ns(e)}function Xp(){return j.lFrame.currentDirectiveIndex}function ns(t){j.lFrame.currentDirectiveIndex=t}function wl(t){j.lFrame.currentQueryIndex=t}function eg(t){let e=t[O];return e.type===2?e.declTNode:e.type===1?t[xe]:null}function El(t,e,n){if(n&_.SkipSelf){let o=e,i=t;for(;o=o.parent,o===null&&!(n&_.Host);)if(o=eg(i),o===null||(i=i[Un],o.type&10))break;if(o===null)return!1;e=o,t=i}let r=j.lFrame=Cl();return r.currentTNode=e,r.lView=t,!0}function Fs(t){let e=Cl(),n=t[O];j.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function Cl(){let t=j.lFrame,e=t===null?null:t.child;return e===null?Il(t):e}function Il(t){let e={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:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function bl(){let t=j.lFrame;return j.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Ml=bl;function Ls(){let t=bl();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function js(){return j.lFrame.selectedIndex}function xt(t){j.lFrame.selectedIndex=t}function tg(){let t=j.lFrame;return ll(t.tView,t.selectedIndex)}function ng(){return j.lFrame.currentNamespace}var Sl=!0;function Vs(){return Sl}function Us(t){Sl=t}function rg(t,e,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=e.type.prototype;if(r){let s=al(e);(n.preOrderHooks??=[]).push(t,s),(n.preOrderCheckHooks??=[]).push(t,s)}o&&(n.preOrderHooks??=[]).push(0-t,o),i&&((n.preOrderHooks??=[]).push(t,i),(n.preOrderCheckHooks??=[]).push(t,i))}function $s(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n=r)break}else e[c]<0&&(t[Jt]+=65536),(a>14>16&&(t[b]&3)===e&&(t[b]+=16384,cu(a,i)):cu(a,i)}var tn=-1,Rn=class{constructor(e,n,r){this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function ig(t){return t instanceof Rn}function sg(t){return(t.flags&8)!==0}function ag(t){return(t.flags&16)!==0}var Ui={},rs=class{constructor(e,n){this.injector=e,this.parentInjector=n}get(e,n,r){r=Do(r);let o=this.injector.get(e,Ui,r);return o!==Ui||n===Ui?o:this.parentInjector.get(e,n,r)}};function xl(t){return t!==tn}function io(t){return t&32767}function cg(t){return t>>16}function so(t,e){let n=cg(t),r=e;for(;n>0;)r=r[Un],n--;return r}var os=!0;function uu(t){let e=os;return os=t,e}var ug=256,_l=ug-1,Nl=5,lg=0,ke={};function dg(t,e,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Sn)&&(r=n[Sn]),r==null&&(r=n[Sn]=lg++);let o=r&_l,i=1<>Nl)]|=i}function Al(t,e){let n=Rl(t,e);if(n!==-1)return n;let r=e[O];r.firstCreatePass&&(t.injectorIndex=e.length,$i(r.data,t),$i(e,null),$i(r.blueprint,null));let o=Bs(t,e),i=t.injectorIndex;if(xl(o)){let s=io(o),a=so(o,e),c=a[O].data;for(let u=0;u<8;u++)e[i+u]=a[s+u]|c[s+u]}return e[i+8]=o,i}function $i(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Rl(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function Bs(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let n=0,r=null,o=e;for(;o!==null;){if(r=Ll(o),r===null)return tn;if(n++,o=o[Un],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return tn}function fg(t,e,n){dg(t,e,n)}function Ol(t,e,n){if(n&_.Optional||t!==void 0)return t;Ts(e,"NodeInjector")}function Pl(t,e,n,r){if(n&_.Optional&&r===void 0&&(r=null),!(n&(_.Self|_.Host))){let o=t[on],i=ye(void 0);try{return o?o.get(e,r,n&_.Optional):Uu(e,r,n&_.Optional)}finally{ye(i)}}return Ol(r,e,n)}function kl(t,e,n,r=_.Default,o){if(t!==null){if(e[b]&2048&&!(r&_.Self)){let s=vg(t,e,n,r,ke);if(s!==ke)return s}let i=Fl(t,e,n,r,ke);if(i!==ke)return i}return Pl(e,n,r,o)}function Fl(t,e,n,r,o){let i=gg(n);if(typeof i=="function"){if(!El(e,t,r))return r&_.Host?Ol(o,n,r):Pl(e,n,r,o);try{let s;if(s=i(r),s==null&&!(r&_.Optional))Ts(n);else return s}finally{Ml()}}else if(typeof i=="number"){let s=null,a=Rl(t,e),c=tn,u=r&_.Host?e[Le][xe]:null;for((a===-1||r&_.SkipSelf)&&(c=a===-1?Bs(t,e):e[a+8],c===tn||!du(r,!1)?a=-1:(s=e[O],a=io(c),e=so(c,e)));a!==-1;){let l=e[O];if(lu(i,a,l.data)){let d=hg(a,e,n,s,r,u);if(d!==ke)return d}c=e[a+8],c!==tn&&du(r,e[O].data[a+8]===u)&&lu(i,a,e)?(s=l,a=io(c),e=so(c,e)):a=-1}}return o}function hg(t,e,n,r,o,i){let s=e[O],a=s.data[t+8],c=r==null?Io(a)&&os:r!=s&&(a.type&3)!==0,u=o&_.Host&&i===a,l=pg(a,s,n,c,u);return l!==null?On(e,s,l,a):ke}function pg(t,e,n,r,o){let i=t.providerIndexes,s=e.data,a=i&1048575,c=t.directiveStart,u=t.directiveEnd,l=i>>20,d=r?a:a+l,h=o?a+l:u;for(let f=d;f=c&&g.type===n)return f}if(o){let f=s[c];if(f&&$n(f)&&f.type===n)return c}return null}function On(t,e,n,r){let o=t[n],i=e.data;if(ig(o)){let s=o;s.resolving&&Yh(Zh(i[n]));let a=uu(s.canSeeViewProviders);s.resolving=!0;let c,u=s.injectImpl?ye(s.injectImpl):null,l=El(t,r,_.Default);try{o=t[n]=s.factory(void 0,i,t,r),e.firstCreatePass&&n>=r.directiveStart&&rg(n,i[n],e)}finally{u!==null&&ye(u),uu(a),s.resolving=!1,Ml()}}return o}function gg(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(Sn)?t[Sn]:void 0;return typeof e=="number"?e>=0?e&_l:mg:e}function lu(t,e,n){let r=1<>Nl)]&r)}function du(t,e){return!(t&_.Self)&&!(t&_.Host&&e)}var bt=class{constructor(e,n){this._tNode=e,this._lView=n}get(e,n,r){return kl(this._tNode,this._lView,e,Do(r),n)}};function mg(){return new bt(Ne(),X())}function Hs(t){return Ln(()=>{let e=t.prototype.constructor,n=e[Yr]||is(e),r=Object.prototype,o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==r;){let i=o[Yr]||is(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function is(t){return Ou(t)?()=>{let e=is(De(t));return e&&e()}:nn(t)}function vg(t,e,n,r,o){let i=t,s=e;for(;i!==null&&s!==null&&s[b]&2048&&!(s[b]&512);){let a=Fl(i,s,n,r|_.Self,ke);if(a!==ke)return a;let c=i.parent;if(!c){let u=s[rl];if(u){let l=u.get(n,ke,r);if(l!==ke)return l}c=Ll(s),s=s[Un]}i=c}return o}function Ll(t){let e=t[O],n=e.type;return n===2?e.declTNode:n===1?t[xe]:null}function fu(t,e=null,n=null,r){let o=jl(t,e,n,r);return o.resolveInjectorInitializers(),o}function jl(t,e=null,n=null,r,o=new Set){let i=[n||Oe,Ep(t)];return r=r||(typeof t=="object"?void 0:he(t)),new _n(i,e||Os(),r||null,o)}var Ct=class Ct{static create(e,n){if(Array.isArray(e))return fu({name:""},n,e,"");{let r=e.name??"";return fu({name:r},e.parent,e.providers,r)}}};Ct.THROW_IF_NOT_FOUND=Tn,Ct.NULL=new Jr,Ct.\u0275prov=D({token:Ct,providedIn:"any",factory:()=>M(zu)}),Ct.__NG_ELEMENT_ID__=-1;var _t=Ct;var yg=new E("");yg.__NG_ELEMENT_ID__=t=>{let e=Ne();if(e===null)throw new y(204,!1);if(e.type&2)return e.value;if(t&_.Optional)return null;throw new y(204,!1)};var Dg="ngOriginalError";function Bi(t){return t[Dg]}var Vl=!0,Ul=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=wg,e.__NG_ENV_ID__=r=>r;let t=e;return t})(),ss=class extends Ul{constructor(e){super(),this._lView=e}onDestroy(e){return hl(this._lView,e),()=>$p(this._lView,e)}};function wg(){return new ss(X())}var ct=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new J(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let r=this.taskId++;return this.pendingTasks.add(r),r}remove(r){this.pendingTasks.delete(r),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();var as=class extends te{constructor(e=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=e,Rp()&&(this.destroyRef=p(Ul,{optional:!0})??void 0,this.pendingTasks=p(ct,{optional:!0})??void 0)}emit(e){let n=L(null);try{super.next(e)}finally{L(n)}}subscribe(e,n,r){let o=e,i=n||(()=>null),s=r;if(e&&typeof e=="object"){let c=e;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 e instanceof W&&e.add(a),a}wrapInTimeout(e){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{e(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},ne=as;function ao(...t){}function $l(t){let e,n;function r(){t=ao;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),e!==void 0&&clearTimeout(e)}catch{}}return e=setTimeout(()=>{t(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{t(),r()})),()=>r()}function hu(t){return queueMicrotask(()=>t()),()=>{t=ao}}var zs="isAngularZone",co=zs+"_ID",Eg=0,G=class t{constructor(e){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ne(!1),this.onMicrotaskEmpty=new ne(!1),this.onStable=new ne(!1),this.onError=new ne(!1);let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=Vl}=e;if(typeof Zone>"u")throw new y(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,bg(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(zs)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new y(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new y(909,!1)}run(e,n,r){return this._inner.run(e,n,r)}runTask(e,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,e,Cg,ao,ao);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(e,n,r){return this._inner.runGuarded(e,n,r)}runOutsideAngular(e){return this._outer.run(e)}},Cg={};function Gs(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Ig(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function e(){$l(()=>{t.callbackScheduled=!1,cs(t),t.isCheckStableRunning=!0,Gs(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{e()}):t._outer.run(()=>{e()}),cs(t)}function bg(t){let e=()=>{Ig(t)},n=Eg++;t._inner=t._inner.fork({name:"angular",properties:{[zs]:!0,[co]:n,[co+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(Mg(c))return r.invokeTask(i,s,a,c);try{return pu(t),r.invokeTask(i,s,a,c)}finally{(t.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),gu(t)}},onInvoke:(r,o,i,s,a,c,u)=>{try{return pu(t),r.invoke(i,s,a,c,u)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!Sg(c)&&e(),gu(t)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(t._hasPendingMicrotasks=s.microTask,cs(t),Gs(t)):s.change=="macroTask"&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}function cs(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function pu(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function gu(t){t._nesting--,Gs(t)}var us=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ne,this.onMicrotaskEmpty=new ne,this.onStable=new ne,this.onError=new ne}run(e,n,r){return e.apply(n,r)}runGuarded(e,n,r){return e.apply(n,r)}runOutsideAngular(e){return e()}runTask(e,n,r,o){return e.apply(n,r)}};function Mg(t){return Bl(t,"__ignore_ng_zone__")}function Sg(t){return Bl(t,"__scheduler_tick__")}function Bl(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}var st=class{constructor(){this._console=console}handleError(e){let n=this._findOriginalError(e);this._console.error("ERROR",e),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(e){let n=e&&Bi(e);for(;n&&Bi(n);)n=Bi(n);return n||null}},Tg=new E("",{providedIn:"root",factory:()=>{let t=p(G),e=p(st);return n=>t.runOutsideAngular(()=>e.handleError(n))}});function xg(){return So(Ne(),X())}function So(t,e){return new To(_e(t,e))}var To=(()=>{let e=class e{constructor(r){this.nativeElement=r}};e.__NG_ELEMENT_ID__=xg;let t=e;return t})();function Hl(t){return(t.flags&128)===128}var zl=new Map,_g=0;function Ng(){return _g++}function Ag(t){zl.set(t[Co],t)}function Rg(t){zl.delete(t[Co])}var mu="__ngContext__";function Nt(t,e){It(e)?(t[mu]=e[Co],Ag(e)):t[mu]=e}function Gl(t){return Wl(t[Nn])}function ql(t){return Wl(t[Se])}function Wl(t){for(;t!==null&&!We(t);)t=t[Se];return t}var ls;function Zl(t){ls=t}function Og(){if(ls!==void 0)return ls;if(typeof document<"u")return document;throw new y(210,!1)}var qs=new E("",{providedIn:"root",factory:()=>Pg}),Pg="ng",Ws=new E(""),ut=new E("",{providedIn:"platform",factory:()=>"unknown"});var Zs=new E("",{providedIn:"root",factory:()=>Og().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var kg="h",Fg="b";var Lg=()=>null;function Ys(t,e,n=!1){return Lg(t,e,n)}var Yl=!1,jg=new E("",{providedIn:"root",factory:()=>Yl});function Ql(t){return t instanceof Function?t():t}var Pt=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(Pt||{}),Vg;function Qs(t,e){return Vg(t,e)}function Xt(t,e,n,r,o){if(r!=null){let i,s=!1;We(r)?i=r:It(r)&&(s=!0,r=r[qe]);let a=je(r);t===0&&n!==null?o==null?td(e,n,a):uo(e,n,a,o||null,!0):t===1&&n!==null?uo(e,n,a,o||null,!0):t===2?em(e,a,s):t===3&&e.destroyNode(a),i!=null&&nm(e,t,i,n,o)}}function Ug(t,e){return t.createText(e)}function $g(t,e,n){t.setValue(e,n)}function Kl(t,e,n){return t.createElement(e,n)}function Bg(t,e){Jl(t,e),e[qe]=null,e[xe]=null}function Hg(t,e,n,r,o,i){r[qe]=o,r[xe]=e,xo(t,r,n,1,o,i)}function Jl(t,e){e[Ge].changeDetectionScheduler?.notify(8),xo(t,e,e[ae],2,null,null)}function zg(t){let e=t[Nn];if(!e)return Hi(t[O],t);for(;e;){let n=null;if(It(e))n=e[Nn];else{let r=e[Ee];r&&(n=r)}if(!n){for(;e&&!e[Se]&&e!==t;)It(e)&&Hi(e[O],e),e=e[re];e===null&&(e=t),It(e)&&Hi(e[O],e),n=e&&e[Se]}e=n}}function Gg(t,e,n,r){let o=Ee+r,i=n.length;r>0&&(n[o-1][Se]=e),r0&&(t[n-1][Se]=r[Se]);let i=Kr(t,Ee+e);Bg(r[O],r);let s=i[an];s!==null&&s.detachView(i[O]),r[re]=null,r[Se]=null,r[b]&=-129}return r}function ed(t,e){if(!(e[b]&256)){let n=e[ae];n.destroyNode&&xo(t,e,n,3,null,null),zg(e)}}function Hi(t,e){if(e[b]&256)return;let n=L(null);try{e[b]&=-129,e[b]|=256,e[we]&&vi(e[we]),Wg(t,e),qg(t,e),e[O].type===1&&e[ae].destroy();let r=e[sn];if(r!==null&&We(e[re])){r!==e[re]&&Ks(r,e);let o=e[an];o!==null&&o.detachView(t)}Rg(e)}finally{L(n)}}function qg(t,e){let n=t.cleanup,r=e[eo];if(n!==null)for(let i=0;i=0?r[s]():r[-s].unsubscribe(),i+=2}else{let s=r[n[i+1]];n[i].call(s)}r!==null&&(e[eo]=null);let o=e[rt];if(o!==null){e[rt]=null;for(let i=0;i-1){let{encapsulation:i}=t.data[r.directiveStart+o];if(i===Fe.None||i===Fe.Emulated)return null}return _e(r,n)}}function uo(t,e,n,r,o){t.insertBefore(e,n,r,o)}function td(t,e,n){t.appendChild(e,n)}function vu(t,e,n,r,o){r!==null?uo(t,e,n,r,o):td(t,e,n)}function nd(t,e){return t.parentNode(e)}function Qg(t,e){return t.nextSibling(e)}function Kg(t,e,n){return Xg(t,e,n)}function Jg(t,e,n){return t.type&40?_e(t,n):null}var Xg=Jg,yu;function Js(t,e,n,r){let o=Zg(t,r,e),i=e[ae],s=r.parent||e[xe],a=Kg(s,r,e);if(o!=null)if(Array.isArray(n))for(let c=0;cit&&sd(t,e,it,!1),Pe(s?2:0,o),n(r,o)}finally{xt(i),Pe(s?3:1,o)}}function ld(t,e,n){if(il(e)){let r=L(null);try{let o=e.directiveStart,i=e.directiveEnd;for(let s=o;snull;function lm(t,e,n,r,o,i){let s=e?e.injectorIndex:-1,a=0;return Gp()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Du(t,e,n,r,o){for(let i in e){if(!e.hasOwnProperty(i))continue;let s=e[i];if(s===void 0)continue;r??={};let a,c=ot.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let u=i;if(o!==null){if(!o.hasOwnProperty(i))continue;u=o[i]}t===0?wu(r,n,u,a,c):wu(r,n,u,a)}return r}function wu(t,e,n,r,o){let i;t.hasOwnProperty(n)?(i=t[n]).push(e,r):i=t[n]=[e,r],o!==void 0&&i.push(o)}function dm(t,e,n){let r=e.directiveStart,o=e.directiveEnd,i=t.data,s=e.attrs,a=[],c=null,u=null;for(let l=r;l0;){let n=t[--e];if(typeof n=="number"&&n<0)return n}return 0}function vm(t,e,n,r){let o=n.directiveStart,i=n.directiveEnd;Io(n)&&bm(e,n,t.data[o+n.componentOffset]),t.firstCreatePass||Al(n,e),Nt(r,e);let s=n.initialInputs;for(let a=o;a{Mo(t.lView)},consumerOnSignalRead(){this.lView[we]=this}});function Um(t){let e=t[we]??Object.create($m);return e.lView=t,e}var $m=H(m({},pi),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{let e=Tt(t.lView);for(;e&&!Ed(e[O]);)e=Tt(e);e&&fl(e)},consumerOnSignalRead(){this.lView[we]=this}});function Ed(t){return t.type!==2}var Bm=100;function Cd(t,e=!0,n=0){let r=t[Ge],o=r.rendererFactory,i=!1;i||o.begin?.();try{Hm(t,n)}catch(s){throw e&&Dd(t,s),s}finally{i||(o.end?.(),r.inlineEffectRunner?.flush())}}function Hm(t,e){let n=yl();try{au(!0),gs(t,e);let r=0;for(;An(t);){if(r===Bm)throw new y(103,!1);r++,gs(t,1)}}finally{au(n)}}function zm(t,e,n,r){let o=e[b];if((o&256)===256)return;let i=!1,s=!1;!i&&e[Ge].inlineEffectRunner?.flush(),Fs(e);let a=!0,c=null,u=null;i||(Ed(t)?(u=Fm(e),c=gi(u)):yc()===null?(a=!1,u=Um(e),c=gi(u)):e[we]&&(vi(e[we]),e[we]=null));try{dl(e),Qp(t.bindingStartIndex),n!==null&&ud(t,e,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=t.preOrderCheckHooks;f!==null&&Gr(e,f,null)}else{let f=t.preOrderHooks;f!==null&&qr(e,f,0,null),Vi(e,0)}if(s||Gm(e),Id(e,0),t.contentQueries!==null&&yd(t,e),!i)if(l){let f=t.contentCheckHooks;f!==null&&Gr(e,f)}else{let f=t.contentHooks;f!==null&&qr(e,f,1),Vi(e,1)}om(t,e);let d=t.components;d!==null&&Md(e,d,0);let h=t.viewQuery;if(h!==null&&ps(2,h,r),!i)if(l){let f=t.viewCheckHooks;f!==null&&Gr(e,f)}else{let f=t.viewHooks;f!==null&&qr(e,f,2),Vi(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[ji]){for(let f of e[ji])f();e[ji]=null}i||(e[b]&=-73)}catch(l){throw i||Mo(e),l}finally{u!==null&&(Dc(u,c),a&&jm(u)),Ls()}}function Id(t,e){for(let n=Gl(t);n!==null;n=ql(n))for(let r=Ee;r-1&&(ds(e,r),Kr(n,r))}this._attachedToViewContainer=!1}ed(this._lView[O],this._lView)}onDestroy(e){hl(this._lView,e)}markForCheck(){ra(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[b]&=-129}reattach(){ts(this._lView),this._lView[b]|=128}detectChanges(){this._lView[b]|=1024,Cd(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new y(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=Xi(this._lView),n=this._lView[sn];n!==null&&!e&&Ks(n,this._lView),Jl(this._lView[O],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new y(902,!1);this._appRef=e;let n=Xi(this._lView),r=this._lView[sn];r!==null&&!n&&Xl(r,this._lView),ts(this._lView)}},oa=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=Ym;let t=e;return t})(),Wm=oa,Zm=class extends Wm{constructor(e,n,r){super(),this._declarationLView=e,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,n){return this.createEmbeddedViewImpl(e,n)}createEmbeddedViewImpl(e,n,r){let o=Om(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:n,dehydratedView:r});return new At(o)}};function Ym(){return Qm(Ne(),X())}function Qm(t,e){return t.type&4?new Zm(e,t,So(t,e)):null}var PM=new RegExp(`^(\\d+)*(${Fg}|${kg})*(.*)`);var Km=()=>null;function Cu(t,e){return Km(t,e)}var Pn=class{},ia=new E("",{providedIn:"root",factory:()=>!1});var Sd=new E(""),Td=new E(""),ms=class{},fo=class{};function Jm(t){let e=Error(`No component factory found for ${he(t)}.`);return e[Xm]=t,e}var Xm="ngComponent";var vs=class{resolveComponentFactory(e){throw Jm(e)}},fa=class fa{};fa.NULL=new vs;var cn=fa,un=class{};var ev=(()=>{let e=class e{};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>null});let t=e;return t})();var Iu=new Set;function Oo(t){Iu.has(t)||(Iu.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}var xd=(()=>{let e=class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let r=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let o of r)o()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();function ys(t,e,n){let r=n?t.styles:null,o=n?t.classes:null,i=0;if(e!==null)for(let s=0;s0&&od(t,n,i.join(" "))}}function av(t,e,n){let r=t.projection=[];for(let o=0;o{let e=class e{};e.__NG_ELEMENT_ID__=uv;let t=e;return t})();function uv(){let t=Ne();return dv(t,X())}var lv=Hn,_d=class extends lv{constructor(e,n,r){super(),this._lContainer=e,this._hostTNode=n,this._hostLView=r}get element(){return So(this._hostTNode,this._hostLView)}get injector(){return new bt(this._hostTNode,this._hostLView)}get parentInjector(){let e=Bs(this._hostTNode,this._hostLView);if(xl(e)){let n=so(e,this._hostLView),r=io(e),o=n[O].data[r+8];return new bt(o,n)}else return new bt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let n=Mu(this._lContainer);return n!==null&&n[e]||null}get length(){return this._lContainer.length-Ee}createEmbeddedView(e,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Cu(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,Eu(this._hostTNode,s)),a}createComponent(e,n,r,o,i){let s=e&&!Op(e),a;if(s)a=n;else{let g=n||{};a=g.index,r=g.injector,o=g.projectableNodes,i=g.environmentInjector||g.ngModuleRef}let c=s?e:new kn(Mt(e)),u=r||this.parentInjector;if(!i&&c.ngModule==null){let C=(s?u:this.parentInjector).get(se,null);C&&(i=C)}let l=Mt(c.componentType??{}),d=Cu(this._lContainer,l?.id??null),h=d?.firstChild??null,f=c.create(u,o,h,i);return this.insertImpl(f.hostView,a,Eu(this._hostTNode,d)),f}insert(e,n){return this.insertImpl(e,n,!0)}insertImpl(e,n,r){let o=e._lView;if(Up(o)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let c=o[re],u=new _d(c,c[xe],c[re]);u.detach(u.indexOf(e))}}let i=this._adjustIndex(n),s=this._lContainer;return Pm(s,o,i,r),e.attachToViewContainerRef(),Hu(zi(s),i,e),e}move(e,n){return this.insert(e,n)}indexOf(e){let n=Mu(this._lContainer);return n!==null?n.indexOf(e):-1}remove(e){let n=this._adjustIndex(e,-1),r=ds(this._lContainer,n);r&&(Kr(zi(this._lContainer),n),ed(r[O],r))}detach(e){let n=this._adjustIndex(e,-1),r=ds(this._lContainer,n);return r&&Kr(zi(this._lContainer),n)!=null?new At(r):null}_adjustIndex(e,n=0){return e??this.length+n}};function Mu(t){return t[to]}function zi(t){return t[to]||(t[to]=[])}function dv(t,e){let n,r=e[t.index];return We(r)?n=r:(n=vd(r,e,null,t),e[t.index]=n,Ro(e,n)),hv(n,e,t,r),new _d(n,t,e)}function fv(t,e){let n=t[ae],r=n.createComment(""),o=_e(e,t),i=nd(n,o);return uo(n,i,r,Qg(n,o),!1),r}var hv=mv,pv=()=>!1;function gv(t,e,n){return pv(t,e,n)}function mv(t,e,n,r){if(t[St])return;let o;n.type&8?o=je(r):o=fv(e,n),t[St]=o}var at=class{},Fn=class{};var ws=class extends at{constructor(e,n,r,o=!0){super(),this.ngModuleType=e,this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new ho(this);let i=Ku(e);this._bootstrapComponents=Ql(i.bootstrap),this._r3Injector=jl(e,n,[{provide:at,useValue:this},{provide:cn,useValue:this.componentFactoryResolver},...r],he(e),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},Es=class extends Fn{constructor(e){super(),this.moduleType=e}create(e){return new ws(this.moduleType,e,[])}};var po=class extends at{constructor(e){super(),this.componentFactoryResolver=new ho(this),this.instance=null;let n=new _n([...e.providers,{provide:at,useValue:this},{provide:cn,useValue:this.componentFactoryResolver}],e.parent||Os(),e.debugName,new Set(["environment"]));this.injector=n,e.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function sa(t,e,n=null){return new po({providers:t,parent:e,debugName:n,runEnvironmentInitializers:!0}).injector}function Nd(t){return yv(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function vv(t,e){if(Array.isArray(t))for(let n=0;n(Us(!0),Kl(r,o,ng()));var go="en-US";var Tv=go;function xv(t){typeof t=="string"&&(Tv=t.toLowerCase().replace(/_/g,"-"))}var _v=(t,e,n)=>{};function ce(t,e,n,r){let o=X(),i=Ot(),s=Ne();return Av(i,o,o[ae],s,t,e,r),ce}function Nv(t,e,n,r){let o=t.cleanup;if(o!=null)for(let i=0;ic?a[c]:null}typeof s=="string"&&(i+=2)}return null}function Av(t,e,n,r,o,i,s){let a=Ps(r),u=t.firstCreatePass&&xm(t),l=e[ze],d=Tm(e),h=!0;if(r.type&3||s){let C=_e(r,e),v=s?s(C):C,w=d.length,q=s?U=>s(je(U[r.index])):r.index,B=null;if(!s&&a&&(B=Nv(t,e,o,r.index)),B!==null){let U=B.__ngLastListenerFn__||B;U.__ngNextListenerFn__=i,B.__ngLastListenerFn__=i,h=!1}else{i=xu(r,e,l,i),_v(C,o,i);let U=n.listen(v,o,i);d.push(i,U),u&&u.push(o,q,w,w+1)}}else i=xu(r,e,l,i);let f=r.outputs,g;if(h&&f!==null&&(g=f[o])){let C=g.length;if(C)for(let v=0;v-1?Rt(t.index,e):e;ra(s,5);let a=Tu(e,n,r,i),c=o.__ngNextListenerFn__;for(;c;)a=Tu(e,n,c,i)&&a,c=c.__ngNextListenerFn__;return a}}function R(t,e=""){let n=X(),r=Ot(),o=t+it,i=r.firstCreatePass?Ao(r,o,1,e,null):r.data[o],s=Rv(r,n,i,e,t);n[o]=s,Vs()&&Js(r,n,s,i),Bn(i,!1)}var Rv=(t,e,n,r,o)=>(Us(!0),Ug(e[ae],r));function lt(t){return dn("",t,""),lt}function dn(t,e,n){let r=X(),o=bv(r,t,e,n);return o!==_o&&_m(r,js(),o),dn}var Ov=(()=>{let e=class e{constructor(r){this._injector=r,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(r){if(!r.standalone)return null;if(!this.cachedInjectors.has(r)){let o=el(!1,r.type),i=o.length>0?sa([o],this._injector,`Standalone[${r.type.name}]`):null;this.cachedInjectors.set(r,i)}return this.cachedInjectors.get(r)}ngOnDestroy(){try{for(let r of this.cachedInjectors.values())r!==null&&r.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=D({token:e,providedIn:"environment",factory:()=>new e(M(se))});let t=e;return t})();function Ue(t){Oo("NgStandalone"),t.getStandaloneInjector=e=>e.get(Ov).getOrCreateStandaloneInjector(t)}var Po=(()=>{let e=class e{log(r){console.log(r)}warn(r){console.warn(r)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();var Rd=new E("");function Gn(t){return!!t&&typeof t.then=="function"}function Od(t){return!!t&&typeof t.subscribe=="function"}var Pd=new E(""),kd=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,o)=>{this.resolve=r,this.reject=o}),this.appInits=p(Pd,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let r=[];for(let i of this.appInits){let s=i();if(Gn(s))r.push(s);else if(Od(s)){let a=new Promise((c,u)=>{s.subscribe({complete:c,error:u})});r.push(a)}}let o=()=>{this.done=!0,this.resolve()};Promise.all(r).then(()=>{o()}).catch(i=>{this.reject(i)}),r.length===0&&o(),this.initialized=!0}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ko=new E("");function Pv(){wc(()=>{throw new y(600,!1)})}function kv(t){return t.isBoundToModule}var Fv=10;function Lv(t,e,n){try{let r=n();return Gn(r)?r.catch(o=>{throw e.runOutsideAngular(()=>t.handleError(o)),o}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}var dt=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=p(Tg),this.afterRenderEffectManager=p(xd),this.zonelessEnabled=p(ia),this.externalTestViews=new Set,this.beforeRender=new te,this.afterTick=new te,this.componentTypes=[],this.components=[],this.isStable=p(ct).hasPendingTasks.pipe(x(r=>!r)),this._injector=p(se)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let r;return new Promise(o=>{r=this.isStable.subscribe({next:i=>{i&&o()}})}).finally(()=>{r.unsubscribe()})}get injector(){return this._injector}bootstrap(r,o){let i=r instanceof fo;if(!this._injector.get(kd).done){let f=!i&&Qu(r),g=!1;throw new y(405,g)}let a;i?a=r:a=this._injector.get(cn).resolveComponentFactory(r),this.componentTypes.push(a.componentType);let c=kv(a)?void 0:this._injector.get(at),u=o||a.selector,l=a.create(_t.NULL,[],u,c),d=l.location.nativeElement,h=l.injector.get(Rd,null);return h?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),Wr(this.components,l),h?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){this._tick(!0)}_tick(r){if(this._runningTick)throw new y(101,!1);let o=L(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(r)}catch(i){this.internalErrorHandler(i)}finally{this._runningTick=!1,L(o),this.afterTick.next()}}detectChangesInAttachedViews(r){let o=null;this._injector.destroyed||(o=this._injector.get(un,null,{optional:!0}));let i=0,s=this.afterRenderEffectManager;for(;iAn(c))&&(s.execute(),!this.allViews.some(({_lView:c})=>An(c))))break}}attachView(r){let o=r;this._views.push(o),o.attachToAppRef(this)}detachView(r){let o=r;Wr(this._views,o),o.detachFromAppRef()}_loadComponent(r){this.attachView(r.hostView),this.tick(),this.components.push(r);let o=this._injector.get(ko,[]);[...this._bootstrapListeners,...o].forEach(i=>i(r))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(r=>r()),this._views.slice().forEach(r=>r.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(r){return this._destroyListeners.push(r),()=>Wr(this._destroyListeners,r)}destroy(){if(this._destroyed)throw new y(406,!1);let r=this._injector;r.destroy&&!r.destroyed&&r.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Wr(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}function jv(t,e,n,r){if(!n&&!An(t))return;Cd(t,e,n&&!r?0:1)}var Cs=class{constructor(e,n){this.ngModuleFactory=e,this.componentFactories=n}},ua=(()=>{let e=class e{compileModuleSync(r){return new Es(r)}compileModuleAsync(r){return Promise.resolve(this.compileModuleSync(r))}compileModuleAndAllComponentsSync(r){let o=this.compileModuleSync(r),i=Ku(r),s=Ql(i.declarations).reduce((a,c)=>{let u=Mt(c);return u&&a.push(new kn(u)),a},[]);return new Cs(o,s)}compileModuleAndAllComponentsAsync(r){return Promise.resolve(this.compileModuleAndAllComponentsSync(r))}clearCache(){}clearCacheFor(r){}getModuleId(r){}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Vv=(()=>{let e=class e{constructor(){this.zone=p(G),this.changeDetectionScheduler=p(Pn),this.applicationRef=p(dt)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Uv=new E("",{factory:()=>!1});function Fd({ngZoneFactory:t,ignoreChangesOutsideZone:e,scheduleInRootZone:n}){return t??=()=>new G(H(m({},jd()),{scheduleInRootZone:n})),[{provide:G,useFactory:t},{provide:rn,multi:!0,useFactory:()=>{let r=p(Vv,{optional:!0});return()=>r.initialize()}},{provide:rn,multi:!0,useFactory:()=>{let r=p($v);return()=>{r.initialize()}}},e===!0?{provide:Sd,useValue:!0}:[],{provide:Td,useValue:n??Vl}]}function Ld(t){let e=t?.ignoreChangesOutsideZone,n=t?.scheduleInRootZone,r=Fd({ngZoneFactory:()=>{let o=jd(t);return o.scheduleInRootZone=n,o.shouldCoalesceEventChangeDetection&&Oo("NgZone_CoalesceEvent"),new G(o)},ignoreChangesOutsideZone:e,scheduleInRootZone:n});return ln([{provide:Uv,useValue:!0},{provide:ia,useValue:!1},r])}function jd(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var $v=(()=>{let e=class e{constructor(){this.subscription=new W,this.initialized=!1,this.zone=p(G),this.pendingTasks=p(ct)}initialize(){if(this.initialized)return;this.initialized=!0;let r=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(r=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{G.assertNotInAngularZone(),queueMicrotask(()=>{r!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(r),r=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{G.assertInAngularZone(),r??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Bv=(()=>{let e=class e{constructor(){this.appRef=p(dt),this.taskService=p(ct),this.ngZone=p(G),this.zonelessEnabled=p(ia),this.disableScheduling=p(Sd,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new W,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(co):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(p(Td,{optional:!0})??!1),this.cancelScheduledCallback=null,this.shouldRefreshViews=!1,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,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 us||!this.zoneIsDefined)}notify(r){if(!this.zonelessEnabled&&r===5)return;switch(r){case 3:case 2:case 0:case 4:case 5:case 1:{this.shouldRefreshViews=!0;break}case 8:case 7:case 6:case 9:default:}if(!this.shouldScheduleTick())return;let o=this.useMicrotaskScheduler?hu:$l;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick(this.shouldRefreshViews))):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick(this.shouldRefreshViews)))}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(co+this.angularZoneId))}tick(r){if(this.runningTick||this.appRef.destroyed)return;let o=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick(r)},void 0,this.schedulerTickApplyArgs)}catch(i){throw this.taskService.remove(o),i}finally{this.cleanup()}this.useMicrotaskScheduler=!0,hu(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(o)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.shouldRefreshViews=!1,this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let r=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(r)}}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Hv(){return typeof $localize<"u"&&$localize.locale||go}var la=new E("",{providedIn:"root",factory:()=>p(la,_.Optional|_.SkipSelf)||Hv()});var Vd=new E("");function Hr(t){return!!t.platformInjector}function zv(t){let e=Hr(t)?t.r3Injector:t.moduleRef.injector,n=e.get(G);return n.run(()=>{Hr(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let r=e.get(st,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),Hr(t)){let i=()=>e.destroy(),s=t.platformInjector.get(Vd);s.add(i),e.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else t.moduleRef.onDestroy(()=>{Wr(t.allPlatformModules,t.moduleRef),o.unsubscribe()});return Lv(r,n,()=>{let i=e.get(kd);return i.runInitializers(),i.donePromise.then(()=>{let s=e.get(la,go);if(xv(s||go),Hr(t)){let a=e.get(dt);return t.rootComponent!==void 0&&a.bootstrap(t.rootComponent),a}else return Gv(t.moduleRef,t.allPlatformModules),t.moduleRef})})})}function Gv(t,e){let n=t.injector.get(dt);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(t.instance.ngDoBootstrap)t.instance.ngDoBootstrap(n);else throw new y(-403,!1);e.push(t)}var Zr=null;function qv(t=[],e){return _t.create({name:e,providers:[{provide:Eo,useValue:"platform"},{provide:Vd,useValue:new Set([()=>Zr=null])},...t]})}function Wv(t=[]){if(Zr)return Zr;let e=qv(t);return Zr=e,Pv(),Zv(e),e}function Zv(t){t.get(Ws,null)?.forEach(n=>n())}var qn=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=Yv;let t=e;return t})();function Yv(t){return Qv(Ne(),X(),(t&16)===16)}function Qv(t,e,n){if(Io(t)&&!n){let r=Rt(t.index,e);return new At(r,r)}else if(t.type&175){let r=e[Le];return new At(r,e)}return null}var Is=class{constructor(){}supports(e){return Nd(e)}create(e){return new bs(e)}},Kv=(t,e)=>e,bs=class{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||Kv}forEachItem(e){let n;for(n=this._itHead;n!==null;n=n._next)e(n)}forEachOperation(e){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex<_u(r,o,i)?n:r,a=_u(s,o,i),c=s.currentIndex;if(s===r)o--,r=r._nextRemoved;else if(n=n._next,s.previousIndex==null)o++;else{i||(i=[]);let u=a-o,l=c-o;if(u!=l){for(let h=0;h{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,n,r,o){let i;return e===null?i=this._itTail:(i=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),e!==null?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._reinsertAfter(e,i,o)):(e=this._linkedRecords===null?null:this._linkedRecords.get(r,o),e!==null?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._moveAfter(e,i,o)):e=this._addAfter(new Ms(n,r),i,o)),e}_verifyReinsertion(e,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?e=this._reinsertAfter(i,e._prev,o):e.currentIndex!=o&&(e.currentIndex=o,this._addToMoves(e,o)),e}_truncate(e){for(;e!==null;){let n=e._next;this._addToRemovals(this._unlink(e)),e=n}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let o=e._prevRemoved,i=e._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(e,n,r),this._addToMoves(e,r),e}_moveAfter(e,n,r){return this._unlink(e),this._insertAfter(e,n,r),this._addToMoves(e,r),e}_addAfter(e,n,r){return this._insertAfter(e,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,n,r){let o=n===null?this._itHead:n._next;return e._next=o,e._prev=n,o===null?this._itTail=e:o._prev=e,n===null?this._itHead=e:n._next=e,this._linkedRecords===null&&(this._linkedRecords=new mo),this._linkedRecords.put(e),e.currentIndex=r,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let n=e._prev,r=e._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,e}_addToMoves(e,n){return e.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new mo),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,n){return e.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},Ms=class{constructor(e,n){this.item=e,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},Ss=class{constructor(){this._head=null,this._tail=null}add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,e))return r;return null}remove(e){let n=e._prevDup,r=e._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},mo=class{constructor(){this.map=new Map}put(e){let n=e.trackById,r=this.map.get(n);r||(r=new Ss,this.map.set(n,r)),r.add(e)}get(e,n){let r=e,o=this.map.get(r);return o?o.get(e,n):null}remove(e){let n=e.trackById;return this.map.get(n).remove(e)&&this.map.delete(n),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function _u(t,e,n){let r=t.previousIndex;if(r===null)return r;let o=0;return n&&r{let e=class e{constructor(r){this.factories=r}static create(r,o){if(o!=null){let i=o.factories.slice();r=r.concat(i)}return new e(r)}static extend(r){return{provide:e,useFactory:o=>e.create(r,o||Nu()),deps:[[e,new Bu,new xs]]}}find(r){let o=this.factories.find(i=>i.supports(r));if(o!=null)return o;throw new y(901,!1)}};e.\u0275prov=D({token:e,providedIn:"root",factory:Nu});let t=e;return t})();function Ud(t){try{let{rootComponent:e,appProviders:n,platformProviders:r}=t,o=Wv(r),i=[Fd({}),{provide:Pn,useExisting:Bv},...n||[]],s=new po({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1});return zv({r3Injector:s.injector,platformInjector:o,rootComponent:e})}catch(e){return Promise.reject(e)}}var $d=new E("");var Wd=null;function fn(){return Wd}function Zd(t){Wd??=t}var Fo=class{};var oe=new E(""),Yd=(()=>{let e=class e{historyGo(r){throw new Error("")}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:()=>p(ry),providedIn:"platform"});let t=e;return t})();var ry=(()=>{let e=class e extends Yd{constructor(){super(),this._doc=p(oe),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return fn().getBaseHref(this._doc)}onPopState(r){let o=fn().getGlobalEventTarget(this._doc,"window");return o.addEventListener("popstate",r,!1),()=>o.removeEventListener("popstate",r)}onHashChange(r){let o=fn().getGlobalEventTarget(this._doc,"window");return o.addEventListener("hashchange",r,!1),()=>o.removeEventListener("hashchange",r)}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(r){this._location.pathname=r}pushState(r,o,i){this._history.pushState(r,o,i)}replaceState(r,o,i){this._history.replaceState(r,o,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(r=0){this._history.go(r)}getState(){return this._history.state}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:()=>new e,providedIn:"platform"});let t=e;return t})();function Qd(t,e){if(t.length==0)return e;if(e.length==0)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,n==2?t+e.substring(1):n==1?t+e:t+"/"+e}function Bd(t){let e=t.match(/#|\?|$/),n=e&&e.index||t.length,r=n-(t[n-1]==="/"?1:0);return t.slice(0,r)+t.slice(n)}function kt(t){return t&&t[0]!=="?"?"?"+t:t}var Lo=(()=>{let e=class e{historyGo(r){throw new Error("")}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:()=>p(Kd),providedIn:"root"});let t=e;return t})(),oy=new E(""),Kd=(()=>{let e=class e extends Lo{constructor(r,o){super(),this._platformLocation=r,this._removeListenerFns=[],this._baseHref=o??this._platformLocation.getBaseHrefFromDOM()??p(oe).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(r){this._removeListenerFns.push(this._platformLocation.onPopState(r),this._platformLocation.onHashChange(r))}getBaseHref(){return this._baseHref}prepareExternalUrl(r){return Qd(this._baseHref,r)}path(r=!1){let o=this._platformLocation.pathname+kt(this._platformLocation.search),i=this._platformLocation.hash;return i&&r?`${o}${i}`:o}pushState(r,o,i,s){let a=this.prepareExternalUrl(i+kt(s));this._platformLocation.pushState(r,o,a)}replaceState(r,o,i,s){let a=this.prepareExternalUrl(i+kt(s));this._platformLocation.replaceState(r,o,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(r=0){this._platformLocation.historyGo?.(r)}};e.\u0275fac=function(o){return new(o||e)(M(Yd),M(oy,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Wn=(()=>{let e=class e{constructor(r){this._subject=new ne,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=r;let o=this._locationStrategy.getBaseHref();this._basePath=ay(Bd(Hd(o))),this._locationStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(r=!1){return this.normalize(this._locationStrategy.path(r))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(r,o=""){return this.path()==this.normalize(r+kt(o))}normalize(r){return e.stripTrailingSlash(sy(this._basePath,Hd(r)))}prepareExternalUrl(r){return r&&r[0]!=="/"&&(r="/"+r),this._locationStrategy.prepareExternalUrl(r)}go(r,o="",i=null){this._locationStrategy.pushState(i,"",r,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(r+kt(o)),i)}replaceState(r,o="",i=null){this._locationStrategy.replaceState(i,"",r,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(r+kt(o)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(r=0){this._locationStrategy.historyGo?.(r)}onUrlChange(r){return this._urlChangeListeners.push(r),this._urlChangeSubscription??=this.subscribe(o=>{this._notifyUrlChangeListeners(o.url,o.state)}),()=>{let o=this._urlChangeListeners.indexOf(r);this._urlChangeListeners.splice(o,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(r="",o){this._urlChangeListeners.forEach(i=>i(r,o))}subscribe(r,o,i){return this._subject.subscribe({next:r,error:o,complete:i})}};e.normalizeQueryParams=kt,e.joinWithSlash=Qd,e.stripTrailingSlash=Bd,e.\u0275fac=function(o){return new(o||e)(M(Lo))},e.\u0275prov=D({token:e,factory:()=>iy(),providedIn:"root"});let t=e;return t})();function iy(){return new Wn(M(Lo))}function sy(t,e){if(!t||!e.startsWith(t))return e;let n=e.substring(t.length);return n===""||["/",";","?","#"].includes(n[0])?n:e}function Hd(t){return t.replace(/\/index.html$/,"")}function ay(t){if(new RegExp("^(https?:)?//").test(t)){let[,n]=t.split(/\/\/[^\/]+/);return n}return t}function jo(t,e){e=encodeURIComponent(e);for(let n of t.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===e)return decodeURIComponent(i)}return null}var ha=class{constructor(e,n,r,o){this.$implicit=e,this.ngForOf=n,this.index=r,this.count=o}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},Jd=(()=>{let e=class e{set ngForOf(r){this._ngForOf=r,this._ngForOfDirty=!0}set ngForTrackBy(r){this._trackByFn=r}get ngForTrackBy(){return this._trackByFn}constructor(r,o,i){this._viewContainer=r,this._template=o,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(r){r&&(this._template=r)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let r=this._ngForOf;if(!this._differ&&r)if(0)try{}catch{}else this._differ=this._differs.find(r).create(this.ngForTrackBy)}if(this._differ){let r=this._differ.diff(this._ngForOf);r&&this._applyChanges(r)}}_applyChanges(r){let o=this._viewContainer;r.forEachOperation((i,s,a)=>{if(i.previousIndex==null)o.createEmbeddedView(this._template,new ha(i.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)o.remove(s===null?void 0:s);else if(s!==null){let c=o.get(s);o.move(c,a),zd(c,i)}});for(let i=0,s=o.length;i{let s=o.get(i.currentIndex);zd(s,i)})}static ngTemplateContextGuard(r,o){return!0}};e.\u0275fac=function(o){return new(o||e)(Ze(Hn),Ze(oa),Ze(da))},e.\u0275dir=wo({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let t=e;return t})();function zd(t,e){t.context.$implicit=e.item}var pa=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=Vn({type:e}),e.\u0275inj=jn({});let t=e;return t})(),Xd="browser",cy="server";function Vo(t){return t===cy}var hn=class{};var Yn=class{},$o=class{},Ye=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(` -`).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=o.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((n,r)=>{this.setHeaderEntries(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let n=this.headers.get(e.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,n){return this.clone({name:e,value:n,op:"a"})}set(e,n){return this.clone({name:e,value:n,op:"s"})}delete(e,n){return this.clone({name:e,value:n,op:"d"})}maybeSetNormalizedName(e,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(n=>{this.headers.set(n,e.headers.get(n)),this.normalizedNames.set(n,e.normalizedNames.get(n))})}clone(e){let n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n}applyUpdate(e){let n=e.name.toLowerCase();switch(e.op){case"a":case"s":let r=e.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(e.name,n);let o=(e.op==="a"?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":let i=e.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}}setHeaderEntries(e,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=e.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(e,o)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>e(this.normalizedNames.get(n),this.headers.get(n)))}};var ma=class{encodeKey(e){return tf(e)}encodeValue(e){return tf(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function uy(t,e){let n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[e.decodeKey(o),""]:[e.decodeKey(o.slice(0,i)),e.decodeValue(o.slice(i+1))],c=n.get(s)||[];c.push(a),n.set(s,c)}),n}var ly=/%(\d[a-f0-9])/gi,dy={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function tf(t){return encodeURIComponent(t).replace(ly,(e,n)=>dy[n]??e)}function Uo(t){return`${t}`}var pt=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new ma,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=uy(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(n=>{let r=e.fromObject[n],o=Array.isArray(r)?r.map(Uo):[Uo(r)];this.map.set(n,o)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let n=this.map.get(e);return n?n[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,n){return this.clone({param:e,value:n,op:"a"})}appendAll(e){let n=[];return Object.keys(e).forEach(r=>{let o=e[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(e,n){return this.clone({param:e,value:n,op:"s"})}delete(e,n){return this.clone({param:e,value:n,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let n=this.encoder.encodeKey(e);return this.map.get(e).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(e),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let n=(e.op==="a"?this.map.get(e.param):void 0)||[];n.push(Uo(e.value)),this.map.set(e.param,n);break;case"d":if(e.value!==void 0){let r=this.map.get(e.param)||[],o=r.indexOf(Uo(e.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(e.param,r):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var va=class{constructor(){this.map=new Map}set(e,n){return this.map.set(e,n),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function fy(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function nf(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function rf(t){return typeof Blob<"u"&&t instanceof Blob}function of(t){return typeof FormData<"u"&&t instanceof FormData}function hy(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var Zn=class t{constructor(e,n,r,o){this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let i;if(fy(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 Ye,this.context??=new va,!this.params)this.params=new pt,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(f,e.setHeaders[f]),u)),e.setParams&&(l=Object.keys(e.setParams).reduce((h,f)=>h.set(f,e.setParams[f]),l)),new t(n,r,s,{params:l,headers:u,context:d,reportProgress:c,responseType:o,withCredentials:a,transferCache:i})}},gt=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(gt||{}),Qn=class{constructor(e,n=200,r="OK"){this.headers=e.headers||new Ye,this.status=e.status!==void 0?e.status:n,this.statusText=e.statusText||r,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},Bo=class t extends Qn{constructor(e={}){super(e),this.type=gt.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Kn=class t extends Qn{constructor(e={}){super(e),this.type=gt.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},ht=class extends Qn{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},uf=200,py=204;function ga(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var wa=(()=>{let e=class e{constructor(r){this.handler=r}request(r,o,i={}){let s;if(r instanceof Zn)s=r;else{let u;i.headers instanceof Ye?u=i.headers:u=new Ye(i.headers);let l;i.params&&(i.params instanceof pt?l=i.params:l=new pt({fromObject:i.params})),s=new Zn(r,o,i.body!==void 0?i.body:null,{headers:u,context:i.context,params:l,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache})}let a=I(s).pipe(et(u=>this.handler.handle(u)));if(r instanceof Zn||i.observe==="events")return a;let c=a.pipe(de(u=>u instanceof Kn));switch(i.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return c.pipe(x(u=>{if(u.body!==null&&!(u.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return u.body}));case"blob":return c.pipe(x(u=>{if(u.body!==null&&!(u.body instanceof Blob))throw new Error("Response is not a Blob.");return u.body}));case"text":return c.pipe(x(u=>{if(u.body!==null&&typeof u.body!="string")throw new Error("Response is not a string.");return u.body}));case"json":default:return c.pipe(x(u=>u.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(r,o={}){return this.request("DELETE",r,o)}get(r,o={}){return this.request("GET",r,o)}head(r,o={}){return this.request("HEAD",r,o)}jsonp(r,o){return this.request("JSONP",r,{params:new pt().append(o,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(r,o={}){return this.request("OPTIONS",r,o)}patch(r,o,i={}){return this.request("PATCH",r,ga(i,o))}post(r,o,i={}){return this.request("POST",r,ga(i,o))}put(r,o,i={}){return this.request("PUT",r,ga(i,o))}};e.\u0275fac=function(o){return new(o||e)(M(Yn))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),gy=/^\)\]\}',?\n/,my="X-Request-URL";function sf(t){if(t.url)return t.url;let e=my.toLocaleLowerCase();return t.headers.get(e)}var vy=(()=>{let e=class e{constructor(){this.fetchImpl=p(ya,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=p(G)}handle(r){return new F(o=>{let i=new AbortController;return this.doRequest(r,i.signal,o).then(Da,s=>o.error(new ht({error:s}))),()=>i.abort()})}doRequest(r,o,i){return Er(this,null,function*(){let s=this.createRequestInit(r),a;try{let g=this.ngZone.runOutsideAngular(()=>this.fetchImpl(r.urlWithParams,m({signal:o},s)));yy(g),i.next({type:gt.Sent}),a=yield g}catch(g){i.error(new ht({error:g,status:g.status??0,statusText:g.statusText,url:r.urlWithParams,headers:g.headers}));return}let c=new Ye(a.headers),u=a.statusText,l=sf(a)??r.urlWithParams,d=a.status,h=null;if(r.reportProgress&&i.next(new Bo({headers:c,status:d,statusText:u,url:l})),a.body){let g=a.headers.get("content-length"),C=[],v=a.body.getReader(),w=0,q,B,U=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>Er(this,null,function*(){for(;;){let{done:Z,value:ve}=yield v.read();if(Z)break;if(C.push(ve),w+=ve.length,r.reportProgress){B=r.responseType==="text"?(B??"")+(q??=new TextDecoder).decode(ve,{stream:!0}):void 0;let Ut=()=>i.next({type:gt.DownloadProgress,total:g?+g:void 0,loaded:w,partialText:B});U?U.run(Ut):Ut()}}}));let me=this.concatChunks(C,w);try{let Z=a.headers.get("Content-Type")??"";h=this.parseBody(r,me,Z)}catch(Z){i.error(new ht({error:Z,headers:new Ye(a.headers),status:a.status,statusText:a.statusText,url:sf(a)??r.urlWithParams}));return}}d===0&&(d=h?uf:0),d>=200&&d<300?(i.next(new Kn({body:h,headers:c,status:d,statusText:u,url:l})),i.complete()):i.error(new ht({error:h,headers:c,status:d,statusText:u,url:l}))})}parseBody(r,o,i){switch(r.responseType){case"json":let s=new TextDecoder().decode(o).replace(gy,"");return s===""?null:JSON.parse(s);case"text":return new TextDecoder().decode(o);case"blob":return new Blob([o],{type:i});case"arraybuffer":return o.buffer}}createRequestInit(r){let o={},i=r.withCredentials?"include":void 0;if(r.headers.forEach((s,a)=>o[s]=a.join(",")),r.headers.has("Accept")||(o.Accept="application/json, text/plain, */*"),!r.headers.has("Content-Type")){let s=r.detectContentTypeHeader();s!==null&&(o["Content-Type"]=s)}return{body:r.serializeBody(),method:r.method,headers:o,credentials:i}}concatChunks(r,o){let i=new Uint8Array(o),s=0;for(let a of r)i.set(a,s),s+=a.length;return i}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),ya=class{};function Da(){}function yy(t){t.then(Da,Da)}function Dy(t,e){return e(t)}function wy(t,e,n){return(r,o)=>Te(n,()=>e(r,i=>t(i,o)))}var lf=new E(""),Ey=new E(""),Cy=new E("",{providedIn:"root",factory:()=>!0});var af=(()=>{let e=class e extends Yn{constructor(r,o){super(),this.backend=r,this.injector=o,this.chain=null,this.pendingTasks=p(ct),this.contributeToStability=p(Cy)}handle(r){if(this.chain===null){let o=Array.from(new Set([...this.injector.get(lf),...this.injector.get(Ey,[])]));this.chain=o.reduceRight((i,s)=>wy(i,s,this.injector),Dy)}if(this.contributeToStability){let o=this.pendingTasks.add();return this.chain(r,i=>this.backend.handle(i)).pipe(Et(()=>this.pendingTasks.remove(o)))}else return this.chain(r,o=>this.backend.handle(o))}};e.\u0275fac=function(o){return new(o||e)(M($o),M(se))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();var Iy=/^\)\]\}',?\n/;function by(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var cf=(()=>{let e=class e{constructor(r){this.xhrFactory=r}handle(r){if(r.method==="JSONP")throw new y(-2800,!1);let o=this.xhrFactory;return(o.\u0275loadImpl?z(o.\u0275loadImpl()):I(null)).pipe(fe(()=>new F(s=>{let a=o.build();if(a.open(r.method,r.urlWithParams),r.withCredentials&&(a.withCredentials=!0),r.headers.forEach((v,w)=>a.setRequestHeader(v,w.join(","))),r.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!r.headers.has("Content-Type")){let v=r.detectContentTypeHeader();v!==null&&a.setRequestHeader("Content-Type",v)}if(r.responseType){let v=r.responseType.toLowerCase();a.responseType=v!=="json"?v:"text"}let c=r.serializeBody(),u=null,l=()=>{if(u!==null)return u;let v=a.statusText||"OK",w=new Ye(a.getAllResponseHeaders()),q=by(a)||r.url;return u=new Bo({headers:w,status:a.status,statusText:v,url:q}),u},d=()=>{let{headers:v,status:w,statusText:q,url:B}=l(),U=null;w!==py&&(U=typeof a.response>"u"?a.responseText:a.response),w===0&&(w=U?uf:0);let me=w>=200&&w<300;if(r.responseType==="json"&&typeof U=="string"){let Z=U;U=U.replace(Iy,"");try{U=U!==""?JSON.parse(U):null}catch(ve){U=Z,me&&(me=!1,U={error:ve,text:U})}}me?(s.next(new Kn({body:U,headers:v,status:w,statusText:q,url:B||void 0})),s.complete()):s.error(new ht({error:U,headers:v,status:w,statusText:q,url:B||void 0}))},h=v=>{let{url:w}=l(),q=new ht({error:v,status:a.status||0,statusText:a.statusText||"Unknown Error",url:w||void 0});s.error(q)},f=!1,g=v=>{f||(s.next(l()),f=!0);let w={type:gt.DownloadProgress,loaded:v.loaded};v.lengthComputable&&(w.total=v.total),r.responseType==="text"&&a.responseText&&(w.partialText=a.responseText),s.next(w)},C=v=>{let w={type:gt.UploadProgress,loaded:v.loaded};v.lengthComputable&&(w.total=v.total),s.next(w)};return a.addEventListener("load",d),a.addEventListener("error",h),a.addEventListener("timeout",h),a.addEventListener("abort",h),r.reportProgress&&(a.addEventListener("progress",g),c!==null&&a.upload&&a.upload.addEventListener("progress",C)),a.send(c),s.next({type:gt.Sent}),()=>{a.removeEventListener("error",h),a.removeEventListener("abort",h),a.removeEventListener("load",d),a.removeEventListener("timeout",h),r.reportProgress&&(a.removeEventListener("progress",g),c!==null&&a.upload&&a.upload.removeEventListener("progress",C)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(o){return new(o||e)(M(hn))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),df=new E(""),My="XSRF-TOKEN",Sy=new E("",{providedIn:"root",factory:()=>My}),Ty="X-XSRF-TOKEN",xy=new E("",{providedIn:"root",factory:()=>Ty}),Ho=class{},_y=(()=>{let e=class e{constructor(r,o,i){this.doc=r,this.platform=o,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let r=this.doc.cookie||"";return r!==this.lastCookieString&&(this.parseCount++,this.lastToken=jo(r,this.cookieName),this.lastCookieString=r),this.lastToken}};e.\u0275fac=function(o){return new(o||e)(M(oe),M(ut),M(Sy))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function Ny(t,e){let n=t.url.toLowerCase();if(!p(df)||t.method==="GET"||t.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return e(t);let r=p(Ho).getToken(),o=p(xy);return r!=null&&!t.headers.has(o)&&(t=t.clone({headers:t.headers.set(o,r)})),e(t)}function ff(...t){let e=[wa,cf,af,{provide:Yn,useExisting:af},{provide:$o,useFactory:()=>p(vy,{optional:!0})??p(cf)},{provide:lf,useValue:Ny,multi:!0},{provide:df,useValue:!0},{provide:Ho,useClass:_y}];for(let n of t)e.push(...n.\u0275providers);return ln(e)}var Ia=class extends Fo{constructor(){super(...arguments),this.supportsDOMEvents=!0}},ba=class t extends Ia{static makeCurrent(){Zd(new t)}onAndCancel(e,n,r){return e.addEventListener(n,r),()=>{e.removeEventListener(n,r)}}dispatchEvent(e,n){e.dispatchEvent(n)}remove(e){e.remove()}createElement(e,n){return n=n||this.getDefaultDocument(),n.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,n){return n==="window"?window:n==="document"?e:n==="body"?e.body:null}getBaseHref(e){let n=Ry();return n==null?null:Oy(n)}resetBaseElement(){Jn=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return jo(document.cookie,e)}},Jn=null;function Ry(){return Jn=Jn||document.querySelector("base"),Jn?Jn.getAttribute("href"):null}function Oy(t){return new URL(t,document.baseURI).pathname}var Py=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),zo=new E(""),mf=(()=>{let e=class e{constructor(r,o){this._zone=o,this._eventNameToPlugin=new Map,r.forEach(i=>{i.manager=this}),this._plugins=r.slice().reverse()}addEventListener(r,o,i){return this._findPluginFor(o).addEventListener(r,o,i)}getZone(){return this._zone}_findPluginFor(r){let o=this._eventNameToPlugin.get(r);if(o)return o;if(o=this._plugins.find(s=>s.supports(r)),!o)throw new y(5101,!1);return this._eventNameToPlugin.set(r,o),o}};e.\u0275fac=function(o){return new(o||e)(M(zo),M(G))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Xn=class{constructor(e){this._doc=e}},Ea="ng-app-id",vf=(()=>{let e=class e{constructor(r,o,i,s={}){this.doc=r,this.appId=o,this.nonce=i,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Vo(s),this.resetHostNodes()}addStyles(r){for(let o of r)this.changeUsageCount(o,1)===1&&this.onStyleAdded(o)}removeStyles(r){for(let o of r)this.changeUsageCount(o,-1)<=0&&this.onStyleRemoved(o)}ngOnDestroy(){let r=this.styleNodesInDOM;r&&(r.forEach(o=>o.remove()),r.clear());for(let o of this.getAllStyles())this.onStyleRemoved(o);this.resetHostNodes()}addHost(r){this.hostNodes.add(r);for(let o of this.getAllStyles())this.addStyleToHost(r,o)}removeHost(r){this.hostNodes.delete(r)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(r){for(let o of this.hostNodes)this.addStyleToHost(o,r)}onStyleRemoved(r){let o=this.styleRef;o.get(r)?.elements?.forEach(i=>i.remove()),o.delete(r)}collectServerRenderedStyles(){let r=this.doc.head?.querySelectorAll(`style[${Ea}="${this.appId}"]`);if(r?.length){let o=new Map;return r.forEach(i=>{i.textContent!=null&&o.set(i.textContent,i)}),o}return null}changeUsageCount(r,o){let i=this.styleRef;if(i.has(r)){let s=i.get(r);return s.usage+=o,s.usage}return i.set(r,{usage:o,elements:[]}),o}getStyleElement(r,o){let i=this.styleNodesInDOM,s=i?.get(o);if(s?.parentNode===r)return i.delete(o),s.removeAttribute(Ea),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=o,this.platformIsServer&&a.setAttribute(Ea,this.appId),r.appendChild(a),a}}addStyleToHost(r,o){let i=this.getStyleElement(r,o),s=this.styleRef,a=s.get(o)?.elements;a?a.push(i):s.set(o,{elements:[i],usage:1})}resetHostNodes(){let r=this.hostNodes;r.clear(),r.add(this.doc.head)}};e.\u0275fac=function(o){return new(o||e)(M(oe),M(qs),M(Zs,8),M(ut))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Ca={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"},Sa=/%COMP%/g,yf="%COMP%",ky=`_nghost-${yf}`,Fy=`_ngcontent-${yf}`,Ly=!0,jy=new E("",{providedIn:"root",factory:()=>Ly});function Vy(t){return Fy.replace(Sa,t)}function Uy(t){return ky.replace(Sa,t)}function Df(t,e){return e.map(n=>n.replace(Sa,t))}var hf=(()=>{let e=class e{constructor(r,o,i,s,a,c,u,l=null){this.eventManager=r,this.sharedStylesHost=o,this.appId=i,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=c,this.ngZone=u,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=Vo(c),this.defaultRenderer=new er(r,a,u,this.platformIsServer)}createRenderer(r,o){if(!r||!o)return this.defaultRenderer;this.platformIsServer&&o.encapsulation===Fe.ShadowDom&&(o=H(m({},o),{encapsulation:Fe.Emulated}));let i=this.getOrCreateRenderer(r,o);return i instanceof Go?i.applyToHost(r):i instanceof tr&&i.applyStyles(),i}getOrCreateRenderer(r,o){let i=this.rendererByCompId,s=i.get(o.id);if(!s){let a=this.doc,c=this.ngZone,u=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,h=this.platformIsServer;switch(o.encapsulation){case Fe.Emulated:s=new Go(u,l,o,this.appId,d,a,c,h);break;case Fe.ShadowDom:return new Ma(u,l,r,o,a,c,this.nonce,h);default:s=new tr(u,l,o,d,a,c,h);break}i.set(o.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(o){return new(o||e)(M(mf),M(vf),M(qs),M(jy),M(oe),M(ut),M(G),M(Zs))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),er=class{constructor(e,n,r,o){this.eventManager=e,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,n){return n?this.doc.createElementNS(Ca[n]||n,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,n){(pf(e)?e.content:e).appendChild(n)}insertBefore(e,n,r){e&&(pf(e)?e.content:e).insertBefore(n,r)}removeChild(e,n){n.remove()}selectRootElement(e,n){let r=typeof e=="string"?this.doc.querySelector(e):e;if(!r)throw new y(-5104,!1);return n||(r.textContent=""),r}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,n,r,o){if(o){n=o+":"+n;let i=Ca[o];i?e.setAttributeNS(i,n,r):e.setAttribute(n,r)}else e.setAttribute(n,r)}removeAttribute(e,n,r){if(r){let o=Ca[r];o?e.removeAttributeNS(o,n):e.removeAttribute(`${r}:${n}`)}else e.removeAttribute(n)}addClass(e,n){e.classList.add(n)}removeClass(e,n){e.classList.remove(n)}setStyle(e,n,r,o){o&(Pt.DashCase|Pt.Important)?e.style.setProperty(n,r,o&Pt.Important?"important":""):e.style[n]=r}removeStyle(e,n,r){r&Pt.DashCase?e.style.removeProperty(n):e.style[n]=""}setProperty(e,n,r){e!=null&&(e[n]=r)}setValue(e,n){e.nodeValue=n}listen(e,n,r){if(typeof e=="string"&&(e=fn().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${n}`);return this.eventManager.addEventListener(e,n,this.decoratePreventDefault(r))}decoratePreventDefault(e){return n=>{if(n==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(n)):e(n))===!1&&n.preventDefault()}}};function pf(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Ma=class extends er{constructor(e,n,r,o,i,s,a,c){super(e,i,s,c),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=Df(o.id,o.styles);for(let l of u){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,n){return super.appendChild(this.nodeOrShadowRoot(e),n)}insertBefore(e,n,r){return super.insertBefore(this.nodeOrShadowRoot(e),n,r)}removeChild(e,n){return super.removeChild(null,n)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},tr=class extends er{constructor(e,n,r,o,i,s,a,c){super(e,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o,this.styles=c?Df(c,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Go=class extends tr{constructor(e,n,r,o,i,s,a,c){let u=o+"-"+r.id;super(e,n,r,i,s,a,c,u),this.contentAttr=Vy(u),this.hostAttr=Uy(u)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,n){let r=super.createElement(e,n);return super.setAttribute(r,this.contentAttr,""),r}},$y=(()=>{let e=class e extends Xn{constructor(r){super(r)}supports(r){return!0}addEventListener(r,o,i){return r.addEventListener(o,i,!1),()=>this.removeEventListener(r,o,i)}removeEventListener(r,o,i){return r.removeEventListener(o,i)}};e.\u0275fac=function(o){return new(o||e)(M(oe))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),By=(()=>{let e=class e extends Xn{constructor(r){super(r),this.delegate=p($d,{optional:!0})}supports(r){return this.delegate?this.delegate.supports(r):!1}addEventListener(r,o,i){return this.delegate.addEventListener(r,o,i)}removeEventListener(r,o,i){return this.delegate.removeEventListener(r,o,i)}};e.\u0275fac=function(o){return new(o||e)(M(oe))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),gf=["alt","control","meta","shift"],Hy={"\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"},zy={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},Gy=(()=>{let e=class e extends Xn{constructor(r){super(r)}supports(r){return e.parseEventName(r)!=null}addEventListener(r,o,i){let s=e.parseEventName(o),a=e.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>fn().onAndCancel(r,s.domEventName,a))}static parseEventName(r){let o=r.toLowerCase().split("."),i=o.shift();if(o.length===0||!(i==="keydown"||i==="keyup"))return null;let s=e._normalizeKey(o.pop()),a="",c=o.indexOf("code");if(c>-1&&(o.splice(c,1),a="code."),gf.forEach(l=>{let d=o.indexOf(l);d>-1&&(o.splice(d,1),a+=l+".")}),a+=s,o.length!=0||s.length===0)return null;let u={};return u.domEventName=i,u.fullKey=a,u}static matchEventFullKeyCode(r,o){let i=Hy[r.key]||r.key,s="";return o.indexOf("code.")>-1&&(i=r.code,s="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),gf.forEach(a=>{if(a!==i){let c=zy[a];c(r)&&(s+=a+".")}}),s+=i,s===o)}static eventCallback(r,o,i){return s=>{e.matchEventFullKeyCode(s,r)&&i.runGuarded(()=>o(s))}}static _normalizeKey(r){return r==="esc"?"escape":r}};e.\u0275fac=function(o){return new(o||e)(M(oe))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function wf(t,e){return Ud(m({rootComponent:t},qy(e)))}function qy(t){return{appProviders:[...Ky,...t?.providers??[]],platformProviders:Qy}}function Wy(){ba.makeCurrent()}function Zy(){return new st}function Yy(){return Zl(document),document}var Qy=[{provide:ut,useValue:Xd},{provide:Ws,useValue:Wy,multi:!0},{provide:oe,useFactory:Yy,deps:[]}];var Ky=[{provide:Eo,useValue:"root"},{provide:st,useFactory:Zy,deps:[]},{provide:zo,useClass:$y,multi:!0,deps:[oe,G,ut]},{provide:zo,useClass:Gy,multi:!0,deps:[oe]},{provide:zo,useClass:By,multi:!0},hf,vf,mf,{provide:un,useExisting:hf},{provide:hn,useClass:Py,deps:[]},[]];var Ef=(()=>{let e=class e{constructor(r){this._doc=r}getTitle(){return this._doc.title}setTitle(r){this._doc.title=r||""}};e.\u0275fac=function(o){return new(o||e)(M(oe))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var T="primary",yr=Symbol("RouteTitle"),Aa=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let n=this.params[e];return Array.isArray(n)?n[0]:n}return null}getAll(e){if(this.has(e)){let n=this.params[e];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}};function Dn(t){return new Aa(t)}function Xy(t,e,n){let r=n.path.split("/");if(r.length>t.length||n.pathMatch==="full"&&(e.hasChildren()||r.lengthr[i]===o)}else return t===e}function Nf(t){return t.length>0?t[t.length-1]:null}function vt(t){return Ni(t)?t:Gn(t)?z(Promise.resolve(t)):I(t)}var tD={exact:Rf,subset:Of},Af={exact:nD,subset:rD,ignored:()=>!0};function Cf(t,e,n){return tD[n.paths](t.root,e.root,n.matrixParams)&&Af[n.queryParams](t.queryParams,e.queryParams)&&!(n.fragment==="exact"&&t.fragment!==e.fragment)}function nD(t,e){return $e(t,e)}function Rf(t,e,n){if(!Lt(t.segments,e.segments)||!Zo(t.segments,e.segments,n)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let r in e.children)if(!t.children[r]||!Rf(t.children[r],e.children[r],n))return!1;return!0}function rD(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>_f(t[n],e[n]))}function Of(t,e,n){return Pf(t,e,e.segments,n)}function Pf(t,e,n,r){if(t.segments.length>n.length){let o=t.segments.slice(0,n.length);return!(!Lt(o,n)||e.hasChildren()||!Zo(o,n,r))}else if(t.segments.length===n.length){if(!Lt(t.segments,n)||!Zo(t.segments,n,r))return!1;for(let o in e.children)if(!t.children[o]||!Of(t.children[o],e.children[o],r))return!1;return!0}else{let o=n.slice(0,t.segments.length),i=n.slice(t.segments.length);return!Lt(t.segments,o)||!Zo(t.segments,o,r)||!t.children[T]?!1:Pf(t.children[T],e,i,r)}}function Zo(t,e,n){return e.every((r,o)=>Af[n](t[o].parameters,r.parameters))}var Ke=class{constructor(e=new V([],{}),n={},r=null){this.root=e,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=Dn(this.queryParams),this._queryParamMap}toString(){return sD.serialize(this)}},V=class{constructor(e,n){this.segments=e,this.children=n,this.parent=null,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Yo(this)}},Ft=class{constructor(e,n){this.path=e,this.parameters=n}get parameterMap(){return this._parameterMap??=Dn(this.parameters),this._parameterMap}toString(){return Ff(this)}};function oD(t,e){return Lt(t,e)&&t.every((n,r)=>$e(n.parameters,e[r].parameters))}function Lt(t,e){return t.length!==e.length?!1:t.every((n,r)=>n.path===e[r].path)}function iD(t,e){let n=[];return Object.entries(t.children).forEach(([r,o])=>{r===T&&(n=n.concat(e(o,r)))}),Object.entries(t.children).forEach(([r,o])=>{r!==T&&(n=n.concat(e(o,r)))}),n}var oc=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:()=>new cr,providedIn:"root"});let t=e;return t})(),cr=class{parse(e){let n=new Pa(e);return new Ke(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(e){let n=`/${nr(e.root,!0)}`,r=uD(e.queryParams),o=typeof e.fragment=="string"?`#${aD(e.fragment)}`:"";return`${n}${r}${o}`}},sD=new cr;function Yo(t){return t.segments.map(e=>Ff(e)).join("/")}function nr(t,e){if(!t.hasChildren())return Yo(t);if(e){let n=t.children[T]?nr(t.children[T],!1):"",r=[];return Object.entries(t.children).forEach(([o,i])=>{o!==T&&r.push(`${o}:${nr(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=iD(t,(r,o)=>o===T?[nr(t.children[T],!1)]:[`${o}:${nr(r,!1)}`]);return Object.keys(t.children).length===1&&t.children[T]!=null?`${Yo(t)}/${n[0]}`:`${Yo(t)}/(${n.join("//")})`}}function kf(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function qo(t){return kf(t).replace(/%3B/gi,";")}function aD(t){return encodeURI(t)}function Oa(t){return kf(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Qo(t){return decodeURIComponent(t)}function If(t){return Qo(t.replace(/\+/g,"%20"))}function Ff(t){return`${Oa(t.path)}${cD(t.parameters)}`}function cD(t){return Object.entries(t).map(([e,n])=>`;${Oa(e)}=${Oa(n)}`).join("")}function uD(t){let e=Object.entries(t).map(([n,r])=>Array.isArray(r)?r.map(o=>`${qo(n)}=${qo(o)}`).join("&"):`${qo(n)}=${qo(r)}`).filter(n=>n);return e.length?`?${e.join("&")}`:""}var lD=/^[^\/()?;#]+/;function Ta(t){let e=t.match(lD);return e?e[0]:""}var dD=/^[^\/()?;=#]+/;function fD(t){let e=t.match(dD);return e?e[0]:""}var hD=/^[^=?&#]+/;function pD(t){let e=t.match(hD);return e?e[0]:""}var gD=/^[^&#]+/;function mD(t){let e=t.match(gD);return e?e[0]:""}var Pa=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new V([],{}):new V([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(e.length>0||Object.keys(n).length>0)&&(r[T]=new V(e,n)),r}parseSegment(){let e=Ta(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new y(4009,!1);return this.capture(e),new Ft(Qo(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let n=fD(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let o=Ta(this.remaining);o&&(r=o,this.capture(r))}e[Qo(n)]=Qo(r)}parseQueryParam(e){let n=pD(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=mD(this.remaining);s&&(r=s,this.capture(r))}let o=If(n),i=If(r);if(e.hasOwnProperty(o)){let s=e[o];Array.isArray(s)||(s=[s],e[o]=s),s.push(i)}else e[o]=i}parseParens(e){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=Ta(this.remaining),o=this.remaining[r.length];if(o!=="/"&&o!==")"&&o!==";")throw new y(4010,!1);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):e&&(i=T);let s=this.parseChildren();n[i]=Object.keys(s).length===1?s[T]:new V([],s),this.consumeOptional("//")}return n}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new y(4011,!1)}};function Lf(t){return t.segments.length>0?new V([],{[T]:t}):t}function jf(t){let e={};for(let[r,o]of Object.entries(t.children)){let i=jf(o);if(r===T&&i.segments.length===0&&i.hasChildren())for(let[s,a]of Object.entries(i.children))e[s]=a;else(i.segments.length>0||i.hasChildren())&&(e[r]=i)}let n=new V(t.segments,e);return vD(n)}function vD(t){if(t.numberOfChildren===1&&t.children[T]){let e=t.children[T];return new V(t.segments.concat(e.segments),e.children)}return t}function ur(t){return t instanceof Ke}function yD(t,e,n=null,r=null){let o=Vf(t);return Uf(o,e,n,r)}function Vf(t){let e;function n(i){let s={};for(let c of i.children){let u=n(c);s[c.outlet]=u}let a=new V(i.url,s);return i===t&&(e=a),a}let r=n(t.root),o=Lf(r);return e??o}function Uf(t,e,n,r){let o=t;for(;o.parent;)o=o.parent;if(e.length===0)return xa(o,o,o,n,r);let i=DD(e);if(i.toRoot())return xa(o,o,new V([],{}),n,r);let s=wD(i,o,t),a=s.processChildren?ir(s.segmentGroup,s.index,i.commands):Bf(s.segmentGroup,s.index,i.commands);return xa(o,s.segmentGroup,a,n,r)}function Ko(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function lr(t){return typeof t=="object"&&t!=null&&t.outlets}function xa(t,e,n,r,o){let i={};r&&Object.entries(r).forEach(([c,u])=>{i[c]=Array.isArray(u)?u.map(l=>`${l}`):`${u}`});let s;t===e?s=n:s=$f(t,e,n);let a=Lf(jf(s));return new Ke(a,i,o)}function $f(t,e,n){let r={};return Object.entries(t.children).forEach(([o,i])=>{i===e?r[o]=n:r[o]=$f(i,e,n)}),new V(t.segments,r)}var Jo=class{constructor(e,n,r){if(this.isAbsolute=e,this.numberOfDoubleDots=n,this.commands=r,e&&r.length>0&&Ko(r[0]))throw new y(4003,!1);let o=r.find(lr);if(o&&o!==Nf(r))throw new y(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function DD(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new Jo(!0,0,t);let e=0,n=!1,r=t.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===".."?e++:a!=""&&o.push(a))}),o):[...o,i]},[]);return new Jo(n,e,r)}var mn=class{constructor(e,n,r){this.segmentGroup=e,this.processChildren=n,this.index=r}};function wD(t,e,n){if(t.isAbsolute)return new mn(e,!0,0);if(!n)return new mn(e,!1,NaN);if(n.parent===null)return new mn(n,!0,0);let r=Ko(t.commands[0])?0:1,o=n.segments.length-1+r;return ED(n,o,t.numberOfDoubleDots)}function ED(t,e,n){let r=t,o=e,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new y(4005,!1);o=r.segments.length}return new mn(r,!1,o-i)}function CD(t){return lr(t[0])?t[0].outlets:{[T]:t}}function Bf(t,e,n){if(t??=new V([],{}),t.segments.length===0&&t.hasChildren())return ir(t,e,n);let r=ID(t,e,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndexi!==T)&&t.children[T]&&t.numberOfChildren===1&&t.children[T].segments.length===0){let i=ir(t.children[T],e,n);return new V(t.segments,i.children)}return Object.entries(r).forEach(([i,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(o[i]=Bf(t.children[i],e,s))}),Object.entries(t.children).forEach(([i,s])=>{r[i]===void 0&&(o[i]=s)}),new V(t.segments,o)}}function ID(t,e,n){let r=0,o=e,i={match:!1,pathIndex:0,commandIndex:0};for(;o=n.length)return i;let s=t.segments[o],a=n[r];if(lr(a))break;let c=`${a}`,u=r0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!Mf(c,u,s))return i;r+=2}else{if(!Mf(c,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}function ka(t,e,n){let r=t.segments.slice(0,e),o=0;for(;o{typeof r=="string"&&(r=[r]),r!==null&&(e[n]=ka(new V([],{}),0,r))}),e}function bf(t){let e={};return Object.entries(t).forEach(([n,r])=>e[n]=`${r}`),e}function Mf(t,e,n){return t==n.path&&$e(e,n.parameters)}var sr="imperative",ee=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(ee||{}),Ie=class{constructor(e,n){this.id=e,this.url=n}},dr=class extends Ie{constructor(e,n,r="imperative",o=null){super(e,n),this.type=ee.NavigationStart,this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},jt=class extends Ie{constructor(e,n,r){super(e,n),this.urlAfterRedirects=r,this.type=ee.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},ge=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(ge||{}),Fa=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Fa||{}),Qe=class extends Ie{constructor(e,n,r,o){super(e,n),this.reason=r,this.code=o,this.type=ee.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Vt=class extends Ie{constructor(e,n,r,o){super(e,n),this.reason=r,this.code=o,this.type=ee.NavigationSkipped}},fr=class extends Ie{constructor(e,n,r,o){super(e,n),this.error=r,this.target=o,this.type=ee.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Xo=class extends Ie{constructor(e,n,r,o){super(e,n),this.urlAfterRedirects=r,this.state=o,this.type=ee.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},La=class extends Ie{constructor(e,n,r,o){super(e,n),this.urlAfterRedirects=r,this.state=o,this.type=ee.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ja=class extends Ie{constructor(e,n,r,o,i){super(e,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i,this.type=ee.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Va=class extends Ie{constructor(e,n,r,o){super(e,n),this.urlAfterRedirects=r,this.state=o,this.type=ee.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ua=class extends Ie{constructor(e,n,r,o){super(e,n),this.urlAfterRedirects=r,this.state=o,this.type=ee.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},$a=class{constructor(e){this.route=e,this.type=ee.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Ba=class{constructor(e){this.route=e,this.type=ee.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Ha=class{constructor(e){this.snapshot=e,this.type=ee.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},za=class{constructor(e){this.snapshot=e,this.type=ee.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ga=class{constructor(e){this.snapshot=e,this.type=ee.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},qa=class{constructor(e){this.snapshot=e,this.type=ee.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var hr=class{},wn=class{constructor(e,n){this.url=e,this.navigationBehaviorOptions=n}};function MD(t,e){return t.providers&&!t._injector&&(t._injector=sa(t.providers,e,`Route: ${t.path}`)),t._injector??e}function Ae(t){return t.outlet||T}function SD(t,e){let n=t.filter(r=>Ae(r)===e);return n.push(...t.filter(r=>Ae(r)!==e)),n}function Dr(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let n=e.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}var Wa=class{get injector(){return Dr(this.route?.snapshot)??this.rootInjector}set injector(e){}constructor(e){this.rootInjector=e,this.outlet=null,this.route=null,this.children=new si(this.rootInjector),this.attachRef=null}},si=(()=>{let e=class e{constructor(r){this.rootInjector=r,this.contexts=new Map}onChildOutletCreated(r,o){let i=this.getOrCreateContext(r);i.outlet=o,this.contexts.set(r,i)}onChildOutletDestroyed(r){let o=this.getContext(r);o&&(o.outlet=null,o.attachRef=null)}onOutletDeactivated(){let r=this.contexts;return this.contexts=new Map,r}onOutletReAttached(r){this.contexts=r}getOrCreateContext(r){let o=this.getContext(r);return o||(o=new Wa(this.rootInjector),this.contexts.set(r,o)),o}getContext(r){return this.contexts.get(r)||null}};e.\u0275fac=function(o){return new(o||e)(M(se))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ei=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let n=this.pathFromRoot(e);return n.length>1?n[n.length-2]:null}children(e){let n=Za(e,this._root);return n?n.children.map(r=>r.value):[]}firstChild(e){let n=Za(e,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(e){let n=Ya(e,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==e)}pathFromRoot(e){return Ya(e,this._root).map(n=>n.value)}};function Za(t,e){if(t===e.value)return e;for(let n of e.children){let r=Za(t,n);if(r)return r}return null}function Ya(t,e){if(t===e.value)return[e];for(let n of e.children){let r=Ya(t,n);if(r.length)return r.unshift(e),r}return[]}var pe=class{constructor(e,n){this.value=e,this.children=n}toString(){return`TreeNode(${this.value})`}};function gn(t){let e={};return t&&t.children.forEach(n=>e[n.value.outlet]=n),e}var ti=class extends ei{constructor(e,n){super(e),this.snapshot=n,ic(this,e)}toString(){return this.snapshot.toString()}};function Hf(t){let e=TD(t),n=new J([new Ft("",{})]),r=new J({}),o=new J({}),i=new J({}),s=new J(""),a=new mt(n,r,i,s,o,T,t,e.root);return a.snapshot=e.root,new ti(new pe(a,[]),e)}function TD(t){let e={},n={},r={},o="",i=new vn([],e,r,o,n,T,t,null,{});return new ri("",new pe(i,[]))}var mt=class{constructor(e,n,r,o,i,s,a,c){this.urlSubject=e,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[yr]))??I(void 0),this.url=e,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(e=>Dn(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(x(e=>Dn(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function ni(t,e,n="emptyOnly"){let r,{routeConfig:o}=t;return e!==null&&(n==="always"||o?.path===""||!e.component&&!e.routeConfig?.loadComponent)?r={params:m(m({},e.params),t.params),data:m(m({},e.data),t.data),resolve:m(m(m(m({},t.data),e.data),o?.data),t._resolvedData)}:r={params:m({},t.params),data:m({},t.data),resolve:m(m({},t.data),t._resolvedData??{})},o&&Gf(o)&&(r.resolve[yr]=o.title),r}var vn=class{get title(){return this.data?.[yr]}constructor(e,n,r,o,i,s,a,c,u){this.url=e,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??=Dn(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Dn(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(r=>r.toString()).join("/"),n=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${n}')`}},ri=class extends ei{constructor(e,n){super(n),this.url=e,ic(this,n)}toString(){return zf(this._root)}};function ic(t,e){e.value._routerState=t,e.children.forEach(n=>ic(t,n))}function zf(t){let e=t.children.length>0?` { ${t.children.map(zf).join(", ")} } `:"";return`${t.value}${e}`}function _a(t){if(t.snapshot){let e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,$e(e.queryParams,n.queryParams)||t.queryParamsSubject.next(n.queryParams),e.fragment!==n.fragment&&t.fragmentSubject.next(n.fragment),$e(e.params,n.params)||t.paramsSubject.next(n.params),eD(e.url,n.url)||t.urlSubject.next(n.url),$e(e.data,n.data)||t.dataSubject.next(n.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Qa(t,e){let n=$e(t.params,e.params)&&oD(t.url,e.url),r=!t.parent!=!e.parent;return n&&!r&&(!t.parent||Qa(t.parent,e.parent))}function Gf(t){return typeof t.title=="string"||t.title===null}var sc=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=T,this.activateEvents=new ne,this.deactivateEvents=new ne,this.attachEvents=new ne,this.detachEvents=new ne,this.parentContexts=p(si),this.location=p(Hn),this.changeDetector=p(qn),this.inputBinder=p(ac,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(r){if(r.name){let{firstChange:o,previousValue:i}=r.name;if(o)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(r){return this.parentContexts.getContext(r)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let r=this.parentContexts.getContext(this.name);r?.route&&(r.attachRef?this.attach(r.attachRef,r.route):this.activateWith(r.route,r.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new y(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new y(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new y(4012,!1);this.location.detach();let r=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(r.instance),r}attach(r,o){this.activated=r,this._activatedRoute=o,this.location.insert(r.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(r.instance)}deactivate(){if(this.activated){let r=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(r)}}activateWith(r,o){if(this.isActivated)throw new y(4013,!1);this._activatedRoute=r;let i=this.location,a=r.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,u=new Ka(r,c,i.injector);this.activated=i.createComponent(a,{index:i.length,injector:u,environmentInjector:o}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=wo({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[bo]});let t=e;return t})(),Ka=class t{__ngOutletInjector(e){return new t(this.route,this.childContexts,e)}constructor(e,n,r){this.route=e,this.childContexts=n,this.parent=r}get(e,n){return e===mt?this.route:e===si?this.childContexts:this.parent.get(e,n)}},ac=new E("");function xD(t,e,n){let r=pr(t,e._root,n?n._root:void 0);return new ti(r,e)}function pr(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=e.value;let o=_D(t,e,n);return new pe(r,o)}else{if(t.shouldAttach(e.value)){let i=t.retrieve(e.value);if(i!==null){let s=i.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>pr(t,a)),s}}let r=ND(e.value),o=e.children.map(i=>pr(t,i));return new pe(r,o)}}function _D(t,e,n){return e.children.map(r=>{for(let o of n.children)if(t.shouldReuseRoute(r.value,o.value.snapshot))return pr(t,r,o);return pr(t,r)})}function ND(t){return new mt(new J(t.url),new J(t.params),new J(t.queryParams),new J(t.fragment),new J(t.data),t.outlet,t.component,t)}var gr=class{constructor(e,n){this.redirectTo=e,this.navigationBehaviorOptions=n}},qf="ngNavigationCancelingError";function oi(t,e){let{redirectTo:n,navigationBehaviorOptions:r}=ur(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,o=Wf(!1,ge.Redirect);return o.url=n,o.navigationBehaviorOptions=r,o}function Wf(t,e){let n=new Error(`NavigationCancelingError: ${t||""}`);return n[qf]=!0,n.cancellationCode=e,n}function AD(t){return Zf(t)&&ur(t.url)}function Zf(t){return!!t&&t[qf]}var RD=(t,e,n,r)=>x(o=>(new Ja(e,o.targetRouterState,o.currentRouterState,n,r).activate(t),o)),Ja=class{constructor(e,n,r,o,i){this.routeReuseStrategy=e,this.futureState=n,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(e){let n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,e),_a(this.futureState.root),this.activateChildRoutes(n,r,e)}deactivateChildRoutes(e,n,r){let o=gn(n);e.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(e,n,r){let o=e.value,i=n?n.value:null;if(o===i)if(o.component){let s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(e,n,s.children)}else this.deactivateChildRoutes(e,n,r);else i&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(e,n){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,n):this.deactivateRouteAndOutlet(e,n)}detachAndStoreRouteSubtree(e,n){let r=n.getContext(e.value.outlet),o=r&&e.value.component?r.children:n,i=gn(e);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(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,n){let r=n.getContext(e.value.outlet),o=r&&e.value.component?r.children:n,i=gn(e);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(e,n,r){let o=gn(n);e.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new qa(i.value.snapshot))}),e.children.length&&this.forwardEvent(new za(e.value.snapshot))}activateRoutes(e,n,r){let o=e.value,i=n?n.value:null;if(_a(o),o===i)if(o.component){let s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(e,n,s.children)}else this.activateChildRoutes(e,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),_a(a.route.value),this.activateChildRoutes(e,null,s.children)}else s.attachRef=null,s.route=o,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(e,null,s.children)}else this.activateChildRoutes(e,null,r)}},ii=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},yn=class{constructor(e,n){this.component=e,this.route=n}};function OD(t,e,n){let r=t._root,o=e?e._root:null;return rr(r,o,n,[r.value])}function PD(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function Cn(t,e){let n=Symbol(),r=e.get(t,n);return r===n?typeof t=="function"&&!Pu(t)?t:e.get(t):r}function rr(t,e,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=gn(e);return t.children.forEach(s=>{kD(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>ar(a,n.getContext(s),o)),o}function kD(t,e,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=t.value,s=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){let c=FD(s,i,i.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new ii(r)):(i.data=s.data,i._resolvedData=s._resolvedData),i.component?rr(t,e,a?a.children:null,r,o):rr(t,e,n,r,o),c&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new yn(a.outlet.component,s))}else s&&ar(e,a,o),o.canActivateChecks.push(new ii(r)),i.component?rr(t,null,a?a.children:null,r,o):rr(t,null,n,r,o);return o}function FD(t,e,n){if(typeof n=="function")return n(t,e);switch(n){case"pathParamsChange":return!Lt(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Lt(t.url,e.url)||!$e(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Qa(t,e)||!$e(t.queryParams,e.queryParams);case"paramsChange":default:return!Qa(t,e)}}function ar(t,e,n){let r=gn(t),o=t.value;Object.entries(r).forEach(([i,s])=>{o.component?e?ar(s,e.children.getContext(i),n):ar(s,null,n):ar(s,e,n)}),o.component?e&&e.outlet&&e.outlet.isActivated?n.canDeactivateChecks.push(new yn(e.outlet.component,o)):n.canDeactivateChecks.push(new yn(null,o)):n.canDeactivateChecks.push(new yn(null,o))}function wr(t){return typeof t=="function"}function LD(t){return typeof t=="boolean"}function jD(t){return t&&wr(t.canLoad)}function VD(t){return t&&wr(t.canActivate)}function UD(t){return t&&wr(t.canActivateChild)}function $D(t){return t&&wr(t.canDeactivate)}function BD(t){return t&&wr(t.canMatch)}function Yf(t){return t instanceof Be||t?.name==="EmptyError"}var Wo=Symbol("INITIAL_VALUE");function En(){return fe(t=>Vr(t.map(e=>e.pipe(He(1),ki(Wo)))).pipe(x(e=>{for(let n of e)if(n!==!0){if(n===Wo)return Wo;if(n===!1||HD(n))return n}return!0}),de(e=>e!==Wo),He(1)))}function HD(t){return ur(t)||t instanceof gr}function zD(t,e){return Y(n=>{let{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return s.length===0&&i.length===0?I(H(m({},n),{guardsResult:!0})):GD(s,r,o,t).pipe(Y(a=>a&&LD(a)?qD(r,i,t,e):I(a)),x(a=>H(m({},n),{guardsResult:a})))})}function GD(t,e,n,r){return z(t).pipe(Y(o=>KD(o.component,o.route,n,e,r)),Re(o=>o!==!0,!0))}function qD(t,e,n,r){return z(e).pipe(et(o=>Yt(ZD(o.route.parent,r),WD(o.route,r),QD(t,o.path,n),YD(t,o.route,n))),Re(o=>o!==!0,!0))}function WD(t,e){return t!==null&&e&&e(new Ga(t)),I(!0)}function ZD(t,e){return t!==null&&e&&e(new Ha(t)),I(!0)}function YD(t,e,n){let r=e.routeConfig?e.routeConfig.canActivate:null;if(!r||r.length===0)return I(!0);let o=r.map(i=>Ur(()=>{let s=Dr(e)??n,a=Cn(i,s),c=VD(a)?a.canActivate(e,t):Te(s,()=>a(e,t));return vt(c).pipe(Re())}));return I(o).pipe(En())}function QD(t,e,n){let r=e[e.length-1],i=e.slice(0,e.length-1).reverse().map(s=>PD(s)).filter(s=>s!==null).map(s=>Ur(()=>{let a=s.guards.map(c=>{let u=Dr(s.node)??n,l=Cn(c,u),d=UD(l)?l.canActivateChild(r,t):Te(u,()=>l(r,t));return vt(d).pipe(Re())});return I(a).pipe(En())}));return I(i).pipe(En())}function KD(t,e,n,r,o){let i=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!i||i.length===0)return I(!0);let s=i.map(a=>{let c=Dr(e)??o,u=Cn(a,c),l=$D(u)?u.canDeactivate(t,e,n,r):Te(c,()=>u(t,e,n,r));return vt(l).pipe(Re())});return I(s).pipe(En())}function JD(t,e,n,r){let o=e.canLoad;if(o===void 0||o.length===0)return I(!0);let i=o.map(s=>{let a=Cn(s,t),c=jD(a)?a.canLoad(e,n):Te(t,()=>a(e,n));return vt(c)});return I(i).pipe(En(),Qf(r))}function Qf(t){return Si(K(e=>{if(typeof e!="boolean")throw oi(t,e)}),x(e=>e===!0))}function XD(t,e,n,r){let o=e.canMatch;if(!o||o.length===0)return I(!0);let i=o.map(s=>{let a=Cn(s,t),c=BD(a)?a.canMatch(e,n):Te(t,()=>a(e,n));return vt(c)});return I(i).pipe(En(),Qf(r))}var mr=class{constructor(e){this.segmentGroup=e||null}},vr=class extends Error{constructor(e){super(),this.urlTree=e}};function pn(t){return Zt(new mr(t))}function ew(t){return Zt(new y(4e3,!1))}function tw(t){return Zt(Wf(!1,ge.GuardRejected))}var Xa=class{constructor(e,n){this.urlSerializer=e,this.urlTree=n}lineralizeSegments(e,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[T])return ew(`${e.redirectTo}`);o=o.children[T]}}applyRedirectCommands(e,n,r,o,i){if(typeof n!="string"){let a=n,{queryParams:c,fragment:u,routeConfig:l,url:d,outlet:h,params:f,data:g,title:C}=o,v=Te(i,()=>a({params:f,data:g,queryParams:c,fragment:u,routeConfig:l,url:d,outlet:h,title:C}));if(v instanceof Ke)throw new vr(v);n=v}let s=this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),e,r);if(n[0]==="/")throw new vr(s);return s}applyRedirectCreateUrlTree(e,n,r,o){let i=this.createSegmentGroup(e,n.root,r,o);return new Ke(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(e,n){let r={};return Object.entries(e).forEach(([o,i])=>{if(typeof i=="string"&&i[0]===":"){let a=i.substring(1);r[o]=n[a]}else r[o]=i}),r}createSegmentGroup(e,n,r,o){let i=this.createSegments(e,n.segments,r,o),s={};return Object.entries(n.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(e,c,r,o)}),new V(i,s)}createSegments(e,n,r,o){return n.map(i=>i.path[0]===":"?this.findPosParam(e,i,o):this.findOrReturn(i,r))}findPosParam(e,n,r){let o=r[n.path.substring(1)];if(!o)throw new y(4001,!1);return o}findOrReturn(e,n){let r=0;for(let o of n){if(o.path===e.path)return n.splice(r),o;r++}return e}},ec={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function nw(t,e,n,r,o){let i=cc(t,e,n);return i.matched?(r=MD(e,r),XD(r,e,n,o).pipe(x(s=>s===!0?i:m({},ec)))):I(i)}function cc(t,e,n){if(e.path==="**")return rw(n);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||n.length>0)?m({},ec):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let o=(e.matcher||Xy)(n,t,e);if(!o)return m({},ec);let i={};Object.entries(o.posParams??{}).forEach(([a,c])=>{i[a]=c.path});let s=o.consumed.length>0?m(m({},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 rw(t){return{matched:!0,parameters:t.length>0?Nf(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function Sf(t,e,n,r){return n.length>0&&sw(t,n,r)?{segmentGroup:new V(e,iw(r,new V(n,t.children))),slicedSegments:[]}:n.length===0&&aw(t,n,r)?{segmentGroup:new V(t.segments,ow(t,n,r,t.children)),slicedSegments:n}:{segmentGroup:new V(t.segments,t.children),slicedSegments:n}}function ow(t,e,n,r){let o={};for(let i of n)if(ai(t,e,i)&&!r[Ae(i)]){let s=new V([],{});o[Ae(i)]=s}return m(m({},r),o)}function iw(t,e){let n={};n[T]=e;for(let r of t)if(r.path===""&&Ae(r)!==T){let o=new V([],{});n[Ae(r)]=o}return n}function sw(t,e,n){return n.some(r=>ai(t,e,r)&&Ae(r)!==T)}function aw(t,e,n){return n.some(r=>ai(t,e,r))}function ai(t,e,n){return(t.hasChildren()||e.length>0)&&n.pathMatch==="full"?!1:n.path===""}function cw(t,e,n,r){return Ae(t)!==r&&(r===T||!ai(e,n,t))?!1:cc(e,t,n).matched}function uw(t,e,n){return e.length===0&&!t.children[n]}var tc=class{};function lw(t,e,n,r,o,i,s="emptyOnly"){return new nc(t,e,n,r,o,s,i).recognize()}var dw=31,nc=class{constructor(e,n,r,o,i,s,a){this.injector=e,this.configLoader=n,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Xa(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new y(4002,`'${e.segmentGroup}'`)}recognize(){let e=Sf(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(x(({children:n,rootSnapshot:r})=>{let o=new pe(r,n),i=new ri("",o),s=yD(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),{state:i,tree:s}}))}match(e){let n=new vn([],Object.freeze({}),Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),T,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,T,n).pipe(x(r=>({children:r,rootSnapshot:n})),Xe(r=>{if(r instanceof vr)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof mr?this.noMatchError(r):r}))}processSegmentGroup(e,n,r,o,i){return r.segments.length===0&&r.hasChildren()?this.processChildren(e,n,r,i):this.processSegment(e,n,r,r.segments,o,!0,i).pipe(x(s=>s instanceof pe?[s]:[]))}processChildren(e,n,r,o){let i=[];for(let s of Object.keys(r.children))s==="primary"?i.unshift(s):i.push(s);return z(i).pipe(et(s=>{let a=r.children[s],c=SD(n,s);return this.processSegmentGroup(e,c,a,s,o)}),Pi((s,a)=>(s.push(...a),s)),tt(null),Oi(),Y(s=>{if(s===null)return pn(r);let a=Kf(s);return fw(a),I(a)}))}processSegment(e,n,r,o,i,s,a){return z(n).pipe(et(c=>this.processSegmentAgainstRoute(c._injector??e,n,c,r,o,i,s,a).pipe(Xe(u=>{if(u instanceof mr)return I(null);throw u}))),Re(c=>!!c),Xe(c=>{if(Yf(c))return uw(r,o,i)?I(new tc):pn(r);throw c}))}processSegmentAgainstRoute(e,n,r,o,i,s,a,c){return cw(r,o,i,s)?r.redirectTo===void 0?this.matchSegmentAgainstRoute(e,o,r,i,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,o,n,r,i,s,c):pn(o):pn(o)}expandSegmentAgainstRouteUsingRedirect(e,n,r,o,i,s,a){let{matched:c,parameters:u,consumedSegments:l,positionalParamSegments:d,remainingSegments:h}=cc(n,o,i);if(!c)return pn(n);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>dw&&(this.allowRedirects=!1));let f=new vn(i,u,Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,Tf(o),Ae(o),o.component??o._loadedComponent??null,o,xf(o)),g=ni(f,a,this.paramsInheritanceStrategy);f.params=Object.freeze(g.params),f.data=Object.freeze(g.data);let C=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,d,f,e);return this.applyRedirects.lineralizeSegments(o,C).pipe(Y(v=>this.processSegment(e,r,n,v.concat(h),s,!1,a)))}matchSegmentAgainstRoute(e,n,r,o,i,s){let a=nw(n,r,o,e,this.urlSerializer);return r.path==="**"&&(n.children={}),a.pipe(fe(c=>c.matched?(e=r._injector??e,this.getChildConfig(e,r,o).pipe(fe(({routes:u})=>{let l=r._loadedInjector??e,{parameters:d,consumedSegments:h,remainingSegments:f}=c,g=new vn(h,d,Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,Tf(r),Ae(r),r.component??r._loadedComponent??null,r,xf(r)),C=ni(g,s,this.paramsInheritanceStrategy);g.params=Object.freeze(C.params),g.data=Object.freeze(C.data);let{segmentGroup:v,slicedSegments:w}=Sf(n,h,f,u);if(w.length===0&&v.hasChildren())return this.processChildren(l,u,v,g).pipe(x(B=>new pe(g,B)));if(u.length===0&&w.length===0)return I(new pe(g,[]));let q=Ae(r)===i;return this.processSegment(l,u,v,w,q?T:i,!0,g).pipe(x(B=>new pe(g,B instanceof pe?[B]:[])))}))):pn(n)))}getChildConfig(e,n,r){return n.children?I({routes:n.children,injector:e}):n.loadChildren?n._loadedRoutes!==void 0?I({routes:n._loadedRoutes,injector:n._loadedInjector}):JD(e,n,r,this.urlSerializer).pipe(Y(o=>o?this.configLoader.loadChildren(e,n).pipe(K(i=>{n._loadedRoutes=i.routes,n._loadedInjector=i.injector})):tw(n))):I({routes:[],injector:e})}};function fw(t){t.sort((e,n)=>e.value.outlet===T?-1:n.value.outlet===T?1:e.value.outlet.localeCompare(n.value.outlet))}function hw(t){let e=t.value.routeConfig;return e&&e.path===""}function Kf(t){let e=[],n=new Set;for(let r of t){if(!hw(r)){e.push(r);continue}let o=e.find(i=>r.value.routeConfig===i.value.routeConfig);o!==void 0?(o.children.push(...r.children),n.add(o)):e.push(r)}for(let r of n){let o=Kf(r.children);e.push(new pe(r.value,o))}return e.filter(r=>!n.has(r))}function Tf(t){return t.data||{}}function xf(t){return t.resolve||{}}function pw(t,e,n,r,o,i){return Y(s=>lw(t,e,n,r,s.extractedUrl,o,i).pipe(x(({state:a,tree:c})=>H(m({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function gw(t,e){return Y(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 Jf(c))s.add(u);let a=0;return z(s).pipe(et(c=>i.has(c)?mw(c,r,t,e):(c.data=ni(c,c.parent,t).resolve,I(void 0))),K(()=>a++),Qt(1),Y(c=>a===s.size?I(n):le))})}function Jf(t){let e=t.children.map(n=>Jf(n)).flat();return[t,...e]}function mw(t,e,n,r){let o=t.routeConfig,i=t._resolve;return o?.title!==void 0&&!Gf(o)&&(i[yr]=o.title),vw(i,t,e,r).pipe(x(s=>(t._resolvedData=s,t.data=ni(t,t.parent,n).resolve,null)))}function vw(t,e,n,r){let o=Ra(t);if(o.length===0)return I({});let i={};return z(o).pipe(Y(s=>yw(t[s],e,n,r).pipe(Re(),K(a=>{if(a instanceof gr)throw oi(new cr,a);i[s]=a}))),Qt(1),Ri(i),Xe(s=>Yf(s)?le:Zt(s)))}function yw(t,e,n,r){let o=Dr(e)??r,i=Cn(t,o),s=i.resolve?i.resolve(e,n):Te(o,()=>i(e,n));return vt(s)}function Na(t){return fe(e=>{let n=t(e);return n?z(n).pipe(x(()=>e)):I(e)})}var Xf=(()=>{let e=class e{buildTitle(r){let o,i=r.root;for(;i!==void 0;)o=this.getResolvedTitleForRoute(i)??o,i=i.children.find(s=>s.outlet===T);return o}getResolvedTitleForRoute(r){return r.data[yr]}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:()=>p(Dw),providedIn:"root"});let t=e;return t})(),Dw=(()=>{let e=class e extends Xf{constructor(r){super(),this.title=r}updateTitle(r){let o=this.buildTitle(r);o!==void 0&&this.title.setTitle(o)}};e.\u0275fac=function(o){return new(o||e)(M(Ef))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),uc=new E("",{providedIn:"root",factory:()=>({})}),ww=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=Ve({type:e,selectors:[["ng-component"]],standalone:!0,features:[Ue],decls:1,vars:0,template:function(o,i){o&1&&zn(0,"router-outlet")},dependencies:[sc],encapsulation:2});let t=e;return t})();function lc(t){let e=t.children&&t.children.map(lc),n=e?H(m({},t),{children:e}):m({},t);return!n.component&&!n.loadComponent&&(e||n.loadChildren)&&n.outlet&&n.outlet!==T&&(n.component=ww),n}var dc=new E(""),Ew=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=p(ua)}loadComponent(r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return I(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let o=vt(r.loadComponent()).pipe(x(eh),K(s=>{this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s}),Et(()=>{this.componentLoaders.delete(r)})),i=new Wt(o,()=>new te).pipe(qt());return this.componentLoaders.set(r,i),i}loadChildren(r,o){if(this.childrenLoaders.get(o))return this.childrenLoaders.get(o);if(o._loadedRoutes)return I({routes:o._loadedRoutes,injector:o._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(o);let s=Cw(o,this.compiler,r,this.onLoadEndListener).pipe(Et(()=>{this.childrenLoaders.delete(o)})),a=new Wt(s,()=>new te).pipe(qt());return this.childrenLoaders.set(o,a),a}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Cw(t,e,n,r){return vt(t.loadChildren()).pipe(x(eh),Y(o=>o instanceof Fn||Array.isArray(o)?I(o):z(e.compileModuleAsync(o))),x(o=>{r&&r(t);let i,s,a=!1;return Array.isArray(o)?(s=o,a=!0):(i=o.create(n).injector,s=i.get(dc,[],{optional:!0,self:!0}).flat()),{routes:s.map(lc),injector:i}}))}function Iw(t){return t&&typeof t=="object"&&"default"in t}function eh(t){return Iw(t)?t.default:t}var fc=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:()=>p(bw),providedIn:"root"});let t=e;return t})(),bw=(()=>{let e=class e{shouldProcessUrl(r){return!0}extract(r){return r}merge(r,o){return r}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Mw=new E("");var Sw=new E(""),Tw=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new te,this.transitionAbortSubject=new te,this.configLoader=p(Ew),this.environmentInjector=p(se),this.urlSerializer=p(oc),this.rootContexts=p(si),this.location=p(Wn),this.inputBindingEnabled=p(ac,{optional:!0})!==null,this.titleStrategy=p(Xf),this.options=p(uc,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=p(fc),this.createViewTransition=p(Mw,{optional:!0}),this.navigationErrorHandler=p(Sw,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>I(void 0),this.rootComponentType=null;let r=i=>this.events.next(new $a(i)),o=i=>this.events.next(new Ba(i));this.configLoader.onLoadEndListener=o,this.configLoader.onLoadStartListener=r}complete(){this.transitions?.complete()}handleNavigationRequest(r){let o=++this.navigationId;this.transitions?.next(H(m(m({},this.transitions.value),r),{id:o}))}setupNavigations(r,o,i){return this.transitions=new J({id:0,currentUrlTree:o,currentRawUrl:o,extractedUrl:this.urlHandlingStrategy.extract(o),urlAfterRedirects:this.urlHandlingStrategy.extract(o),rawUrl:o,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:sr,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(de(s=>s.id!==0),x(s=>H(m({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),fe(s=>{let a=!1,c=!1;return I(s).pipe(fe(u=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",ge.SupersededByNewNavigation),le;this.currentTransition=s,this.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,targetBrowserUrl:typeof u.extras.browserUrl=="string"?this.urlSerializer.parse(u.extras.browserUrl):u.extras.browserUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?H(m({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let l=!r.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=u.extras.onSameUrlNavigation??r.onSameUrlNavigation;if(!l&&d!=="reload"){let h="";return this.events.next(new Vt(u.id,this.urlSerializer.serialize(u.rawUrl),h,Fa.IgnoredSameUrlNavigation)),u.resolve(!1),le}if(this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return I(u).pipe(fe(h=>{let f=this.transitions?.getValue();return this.events.next(new dr(h.id,this.urlSerializer.serialize(h.extractedUrl),h.source,h.restoredState)),f!==this.transitions?.getValue()?le:Promise.resolve(h)}),pw(this.environmentInjector,this.configLoader,this.rootComponentType,r.config,this.urlSerializer,this.paramsInheritanceStrategy),K(h=>{s.targetSnapshot=h.targetSnapshot,s.urlAfterRedirects=h.urlAfterRedirects,this.currentNavigation=H(m({},this.currentNavigation),{finalUrl:h.urlAfterRedirects});let f=new Xo(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(f)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){let{id:h,extractedUrl:f,source:g,restoredState:C,extras:v}=u,w=new dr(h,this.urlSerializer.serialize(f),g,C);this.events.next(w);let q=Hf(this.rootComponentType).snapshot;return this.currentTransition=s=H(m({},u),{targetSnapshot:q,urlAfterRedirects:f,extras:H(m({},v),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=f,I(s)}else{let h="";return this.events.next(new Vt(u.id,this.urlSerializer.serialize(u.extractedUrl),h,Fa.IgnoredByUrlHandlingStrategy)),u.resolve(!1),le}}),K(u=>{let l=new La(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}),x(u=>(this.currentTransition=s=H(m({},u),{guards:OD(u.targetSnapshot,u.currentSnapshot,this.rootContexts)}),s)),zD(this.environmentInjector,u=>this.events.next(u)),K(u=>{if(s.guardsResult=u.guardsResult,u.guardsResult&&typeof u.guardsResult!="boolean")throw oi(this.urlSerializer,u.guardsResult);let l=new ja(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(l)}),de(u=>u.guardsResult?!0:(this.cancelNavigationTransition(u,"",ge.GuardRejected),!1)),Na(u=>{if(u.guards.canActivateChecks.length)return I(u).pipe(K(l=>{let d=new Va(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),fe(l=>{let d=!1;return I(l).pipe(gw(this.paramsInheritanceStrategy,this.environmentInjector),K({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(l,"",ge.NoDataFromResolver)}}))}),K(l=>{let d=new Ua(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}))}),Na(u=>{let l=d=>{let h=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&h.push(this.configLoader.loadComponent(d.routeConfig).pipe(K(f=>{d.component=f}),x(()=>{})));for(let f of d.children)h.push(...l(f));return h};return Vr(l(u.targetSnapshot.root)).pipe(tt(null),He(1))}),Na(()=>this.afterPreactivation()),fe(()=>{let{currentSnapshot:u,targetSnapshot:l}=s,d=this.createViewTransition?.(this.environmentInjector,u.root,l.root);return d?z(d).pipe(x(()=>s)):I(s)}),x(u=>{let l=xD(r.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=s=H(m({},u),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,s}),K(()=>{this.events.next(new hr)}),RD(this.rootContexts,r.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),He(1),K({next:u=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new jt(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),this.titleStrategy?.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{a=!0}}),Fi(this.transitionAbortSubject.pipe(K(u=>{throw u}))),Et(()=>{!a&&!c&&this.cancelNavigationTransition(s,"",ge.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),Xe(u=>{if(c=!0,Zf(u))this.events.next(new Qe(s.id,this.urlSerializer.serialize(s.extractedUrl),u.message,u.cancellationCode)),AD(u)?this.events.next(new wn(u.url,u.navigationBehaviorOptions)):s.resolve(!1);else{let l=new fr(s.id,this.urlSerializer.serialize(s.extractedUrl),u,s.targetSnapshot??void 0);try{let d=Te(this.environmentInjector,()=>this.navigationErrorHandler?.(l));if(d instanceof gr){let{message:h,cancellationCode:f}=oi(this.urlSerializer,d);this.events.next(new Qe(s.id,this.urlSerializer.serialize(s.extractedUrl),h,f)),this.events.next(new wn(d.redirectTo,d.navigationBehaviorOptions))}else{this.events.next(l);let h=r.errorHandler(u);s.resolve(!!h)}}catch(d){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(d)}}return le}))}))}cancelNavigationTransition(r,o,i){let s=new Qe(r.id,this.urlSerializer.serialize(r.extractedUrl),o,i);this.events.next(s),r.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let r=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),o=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return r.toString()!==o?.toString()&&!this.currentNavigation?.extras.skipLocationChange}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function xw(t){return t!==sr}var _w=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:()=>p(Nw),providedIn:"root"});let t=e;return t})(),rc=class{shouldDetach(e){return!1}store(e,n){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,n){return e.routeConfig===n.routeConfig}},Nw=(()=>{let e=class e extends rc{};e.\u0275fac=(()=>{let r;return function(i){return(r||(r=Hs(e)))(i||e)}})(),e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),th=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:()=>p(Aw),providedIn:"root"});let t=e;return t})(),Aw=(()=>{let e=class e extends th{constructor(){super(...arguments),this.location=p(Wn),this.urlSerializer=p(oc),this.options=p(uc,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=p(fc),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Ke,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Hf(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(r){return this.location.subscribe(o=>{o.type==="popstate"&&r(o.url,o.state)})}handleRouterEvent(r,o){if(r instanceof dr)this.stateMemento=this.createStateMemento();else if(r instanceof Vt)this.rawUrlTree=o.initialUrl;else if(r instanceof Xo){if(this.urlUpdateStrategy==="eager"&&!o.extras.skipLocationChange){let i=this.urlHandlingStrategy.merge(o.finalUrl,o.initialUrl);this.setBrowserUrl(o.targetBrowserUrl??i,o)}}else r instanceof hr?(this.currentUrlTree=o.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(o.finalUrl,o.initialUrl),this.routerState=o.targetRouterState,this.urlUpdateStrategy==="deferred"&&!o.extras.skipLocationChange&&this.setBrowserUrl(o.targetBrowserUrl??this.rawUrlTree,o)):r instanceof Qe&&(r.code===ge.GuardRejected||r.code===ge.NoDataFromResolver)?this.restoreHistory(o):r instanceof fr?this.restoreHistory(o,!0):r instanceof jt&&(this.lastSuccessfulId=r.id,this.currentPageId=this.browserPageId)}setBrowserUrl(r,o){let i=r instanceof Ke?this.urlSerializer.serialize(r):r;if(this.location.isCurrentPathEqualTo(i)||o.extras.replaceUrl){let s=this.browserPageId,a=m(m({},o.extras.state),this.generateNgRouterState(o.id,s));this.location.replaceState(i,"",a)}else{let s=m(m({},o.extras.state),this.generateNgRouterState(o.id,this.browserPageId+1));this.location.go(i,"",s)}}restoreHistory(r,o=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,s=this.currentPageId-i;s!==0?this.location.historyGo(s):this.currentUrlTree===r.finalUrl&&s===0&&(this.resetState(r),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(o&&this.resetState(r),this.resetUrlToCurrentUrlTree())}resetState(r){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,r.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(r,o){return this.canceledNavigationResolution==="computed"?{navigationId:r,\u0275routerPageId:o}:{navigationId:r}}};e.\u0275fac=(()=>{let r;return function(i){return(r||(r=Hs(e)))(i||e)}})(),e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),or=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(or||{});function Rw(t,e){t.events.pipe(de(n=>n instanceof jt||n instanceof Qe||n instanceof fr||n instanceof Vt),x(n=>n instanceof jt||n instanceof Vt?or.COMPLETE:(n instanceof Qe?n.code===ge.Redirect||n.code===ge.SupersededByNewNavigation:!1)?or.REDIRECTING:or.FAILED),de(n=>n!==or.REDIRECTING),He(1)).subscribe(()=>{e()})}function Ow(t){throw t}var Pw={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},kw={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},nh=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=p(Po),this.stateManager=p(th),this.options=p(uc,{optional:!0})||{},this.pendingTasks=p(ct),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=p(Tw),this.urlSerializer=p(oc),this.location=p(Wn),this.urlHandlingStrategy=p(fc),this._events=new te,this.errorHandler=this.options.errorHandler||Ow,this.navigated=!1,this.routeReuseStrategy=p(_w),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=p(dc,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!p(ac,{optional:!0}),this.eventsSubscription=new W,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:r=>{this.console.warn(r)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let r=this.navigationTransitions.events.subscribe(o=>{try{let i=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(i!==null&&s!==null){if(this.stateManager.handleRouterEvent(o,s),o instanceof Qe&&o.code!==ge.Redirect&&o.code!==ge.SupersededByNewNavigation)this.navigated=!0;else if(o instanceof jt)this.navigated=!0;else if(o instanceof wn){let a=o.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(o.url,i.currentRawUrl),u=m({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||xw(i.source)},a);this.scheduleNavigation(c,sr,null,u,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}Lw(o)&&this._events.next(o)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});this.eventsSubscription.add(r)}resetRootComponentType(r){this.routerState.root.component=r,this.navigationTransitions.rootComponentType=r}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),sr,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((r,o)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(r,"popstate",o)},0)})}navigateToSyncWithBrowser(r,o,i){let s={replaceUrl:!0},a=i?.navigationId?i:null;if(i){let u=m({},i);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(s.state=u)}let c=this.parseUrl(r);this.scheduleNavigation(c,o,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(r){this.config=r.map(lc),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(r,o={}){let{relativeTo:i,queryParams:s,fragment:a,queryParamsHandling:c,preserveFragment:u}=o,l=u?this.currentUrlTree.fragment:a,d=null;switch(c??this.options.defaultQueryParamsHandling){case"merge":d=m(m({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}d!==null&&(d=this.removeEmptyProps(d));let h;try{let f=i?i.snapshot:this.routerState.snapshot.root;h=Vf(f)}catch{(typeof r[0]!="string"||r[0][0]!=="/")&&(r=[]),h=this.currentUrlTree.root}return Uf(h,r,d,l??null)}navigateByUrl(r,o={skipLocationChange:!1}){let i=ur(r)?r:this.parseUrl(r),s=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(s,sr,null,o)}navigate(r,o={skipLocationChange:!1}){return Fw(r),this.navigateByUrl(this.createUrlTree(r,o),o)}serializeUrl(r){return this.urlSerializer.serialize(r)}parseUrl(r){try{return this.urlSerializer.parse(r)}catch{return this.urlSerializer.parse("/")}}isActive(r,o){let i;if(o===!0?i=m({},Pw):o===!1?i=m({},kw):i=o,ur(r))return Cf(this.currentUrlTree,r,i);let s=this.parseUrl(r);return Cf(this.currentUrlTree,s,i)}removeEmptyProps(r){return Object.entries(r).reduce((o,[i,s])=>(s!=null&&(o[i]=s),o),{})}scheduleNavigation(r,o,i,s,a){if(this.disposed)return Promise.resolve(!1);let c,u,l;a?(c=a.resolve,u=a.reject,l=a.promise):l=new Promise((h,f)=>{c=h,u=f});let d=this.pendingTasks.add();return Rw(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:o,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:r,extras:s,resolve:c,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(h=>Promise.reject(h))}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Fw(t){for(let e=0;en.\u0275providers)])}function Vw(t){return t.routerState.root}function Uw(){let t=p(_t);return e=>{let n=t.get(dt);if(e!==n.components[0])return;let r=t.get(nh),o=t.get($w);t.get(Bw)===1&&r.initialNavigation(),t.get(Hw,null,_.Optional)?.setUpPreloading(),t.get(jw,null,_.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var $w=new E("",{factory:()=>new te}),Bw=new E("",{providedIn:"root",factory:()=>1});var Hw=new E("");var oh={"333":[{id:"2012SATO03",name:"Caio Hideaki Sato",single:4.37,average:5.3,state:"SP",competitionSingle:"Etec Cubat\xE3o 2022",competitionAverage:"Etec Cubat\xE3o 2023"},{id:"2014CECC01",name:"Vicenzo Guerino Cecchini",single:4.86,average:6.21,state:"SP",competitionSingle:"Col\xE9gio Asther Open 2023",competitionAverage:"Col\xE9gio 2024"},{id:"2016MAND01",name:"Francisco Moraes Mandalozzo",single:5.07,average:6.25,state:"PR",competitionSingle:"Opentr\xF3polis CEFET 2024",competitionAverage:"Open 2024"},{id:"2012SATO03",name:"Antonio Gabriel Silva",single:5.58,average:6.31,state:"SC",competitionSingle:"South American Championship 2018",competitionAverage:"SAC 2020"},{id:"2012SATO03",name:"Tiago Akihiro Fujita",single:5.68,average:6.41,state:"SP",competitionSingle:"BioAteneu Santos 2023",competitionAverage:"BioAteneu 2024"}],"444":[{id:"2012SATO03",name:"Caio Hideaki Sato",single:24.37,average:25.3,state:"SP",competitionSingle:"Etec Cubat\xE3o 2022",competitionAverage:"Etec Cubat\xE3o 2023"},{id:"2014CECC01",name:"Vicenzo Guerino Cecchini",single:24.86,average:26.21,state:"SP",competitionSingle:"Col\xE9gio Asther Open 2023",competitionAverage:"Col\xE9gio 2024"},{id:"2016MAND01",name:"Francisco Moraes Mandalozzo",single:25.07,average:26.25,state:"PR",competitionSingle:"Opentr\xF3polis CEFET 2024",competitionAverage:"Open 2024"},{id:"2012SATO03",name:"Antonio Gabriel Silva",single:25.58,average:26.31,state:"SC",competitionSingle:"South American Championship 2018",competitionAverage:"SAC 2020"},{id:"2012SATO03",name:"Tiago Akihiro Fujita",single:25.68,average:26.41,state:"SP",competitionSingle:"BioAteneu Santos 2023",competitionAverage:"BioAteneu 2024"}],"555":[],"666":[],"777":[],minx:[]};function qw(t,e){if(t&1&&(N(0,"tr")(1,"td"),R(2),A(),N(3,"td"),R(4),A(),N(5,"td"),R(6),A(),N(7,"td"),R(8),A(),N(9,"td"),R(10),A()()),t&2){let n=e.$implicit,r=e.index;Ce(2),lt(r+1),Ce(2),lt(n.name),Ce(2),lt(n.result),Ce(2),lt(n.state),Ce(2),lt(n.competition)}}var ci=class t{results={};filteredResults=[];currentEvent="333";currentState="";currentKindOfResult="single";constructor(){}ngOnInit(){this.results=oh,this.updateFilteredResults()}updateFilteredResults(){let e=this.results[this.currentEvent].map(n=>{let r=this.currentKindOfResult=="single"?n.single.toString():n.average.toString();return{name:n.name,result:r,state:n.state,competition:this.currentKindOfResult=="single"?n.competitionSingle:n.competitionAverage}});this.currentState!=""?this.filteredResults=e.filter(n=>n.state==this.currentState):this.filteredResults=e}changeEventTo(e){this.currentEvent=e,this.updateFilteredResults()}changeStateTo(e){this.currentState=e,this.updateFilteredResults()}changeKindTo(e){this.currentKindOfResult=e,this.updateFilteredResults()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Ve({type:t,selectors:[["app-home-rankings"]],standalone:!0,features:[Ue],decls:55,vars:2,consts:[["href","/login"],[1,"cubingEvents"],[3,"click"],[1,"states"],[1,"kindOfResult"],[1,"row","mt-3"],[1,"col"],[1,"table-responsive"],[1,"table","table-hover"],[1,"thead-light"],["width","20",1,"text-center"],[1,"text-center"],["width","100",1,"text-center"],[4,"ngFor","ngForOf"]],template:function(n,r){n&1&&(N(0,"p"),R(1,"Home Rankings"),A(),N(2,"a",0),R(3,"Login"),A(),N(4,"section",1)(5,"div"),R(6,"Modalidade"),A(),N(7,"button",2),ce("click",function(){return r.changeEventTo("333")}),R(8,"333"),A(),N(9,"button",2),ce("click",function(){return r.changeEventTo("444")}),R(10,"444"),A(),N(11,"button",2),ce("click",function(){return r.changeEventTo("555")}),R(12,"555"),A(),N(13,"button",2),ce("click",function(){return r.changeEventTo("666")}),R(14,"666"),A(),N(15,"button",2),ce("click",function(){return r.changeEventTo("777")}),R(16,"777"),A(),N(17,"button",2),ce("click",function(){return r.changeEventTo("minx")}),R(18,"minx"),A()(),N(19,"section",3)(20,"div"),R(21,"Estado"),A(),N(22,"button",2),ce("click",function(){return r.changeStateTo("PR")}),R(23,"PR"),A(),N(24,"button",2),ce("click",function(){return r.changeStateTo("SC")}),R(25,"SC"),A(),N(26,"button",2),ce("click",function(){return r.changeStateTo("SP")}),R(27,"SP"),A()(),N(28,"section",4)(29,"div"),R(30,"Tipo"),A(),N(31,"button",2),ce("click",function(){return r.changeKindTo("single")}),R(32,"Single"),A(),N(33,"button",2),ce("click",function(){return r.changeKindTo("average")}),R(34,"Average"),A()(),N(35,"div",5)(36,"div",6)(37,"h1"),R(38,"Sort & Filter Data Tables in Angular"),A(),N(39,"div",7)(40,"table",8)(41,"thead",9)(42,"tr")(43,"th",10),R(44,"#"),A(),N(45,"th",11),R(46,"Nome"),A(),N(47,"th",12),R(48),A(),N(49,"th",12),R(50,"Estado"),A(),N(51,"th",11),R(52,"Competi\xE7\xE3o"),A()()(),N(53,"tbody"),aa(54,qw,11,5,"tr",13),A()()()()()),n&2&&(Ce(48),lt(r.currentKindOfResult[0].toUpperCase()+r.currentKindOfResult.substring(1)),Ce(6),ca("ngForOf",r.filteredResults))},dependencies:[pa,Jd]})};var ui=class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Ve({type:t,selectors:[["app-wca-auth"]],standalone:!0,features:[Ue],decls:4,vars:0,consts:[["target","_blank","href","https://www.worldcubeassociation.org/oauth/authorize?client_id=OS6jVGAcxX_MwpLawxS1hRq8IVNEfu-FAthO72ARdyw&redirect_uri=https://diogojs.github.io/wca_statistics/register&response_type=code&scope=public",1,"btn-authorize"]],template:function(n,r){n&1&&(N(0,"p"),R(1,"Login into WCA..."),A(),N(2,"a",0),R(3,"Login WCA"),A())}})};var pc={client_id:"OS6jVGAcxX_MwpLawxS1hRq8IVNEfu-FAthO72ARdyw",secret:"OP_J3qaVdOVL0I5vTwzKwRsyY2EVq9xZRKM9KsofN1I"};var li=class t{constructor(e,n){this.route=e;this.httpClient=n;this.route.queryParamMap.subscribe(r=>{let o=r.params;o&&(this.api_code=o.code,this.requestToken())})}api_code="";token="";wcaid="";access_token_url="https://www.worldcubeassociation.org/oauth/token";data_url="https://www.worldcubeassociation.org/api/v0/me";requestToken(){let e={grant_type:"authorization_code",code:this.api_code,client_id:pc.client_id,client_secret:pc.secret,redirect_uri:window.location.origin+window.location.pathname};console.log(e),this.httpClient.post(this.access_token_url,e).subscribe(n=>{console.log("Json object: "),console.log(n)})}static \u0275fac=function(n){return new(n||t)(Ze(mt),Ze(wa))};static \u0275cmp=Ve({type:t,selectors:[["app-user-registration"]],standalone:!0,features:[Ue],decls:8,vars:3,template:function(n,r){n&1&&(N(0,"p"),R(1,"user-registration works!"),A(),N(2,"div"),R(3),A(),N(4,"div"),R(5),A(),N(6,"div"),R(7),A()),n&2&&(Ce(3),dn("API Code: ",r.api_code,""),Ce(2),dn("Access Token: ",r.token,""),Ce(2),dn("WCA ID: ",r.wcaid,""))}})};var ih=[{path:"",component:ci},{path:"login",component:ui},{path:"register",component:li}];var sh={providers:[Ld({eventCoalescing:!0}),rh(ih),ff()]};var di=class t{title="website";static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Ve({type:t,selectors:[["app-root"]],standalone:!0,features:[Ue],decls:1,vars:0,template:function(n,r){n&1&&zn(0,"router-outlet")},dependencies:[sc]})};wf(di,sh).catch(t=>console.error(t)); + `)}`:"",this.name="UnsubscriptionError",this.errors=n});function In(t,e){if(t){let n=t.indexOf(e);0<=n&&t.splice(n,1)}}var W=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;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(S(r))try{r()}catch(i){e=i instanceof Cr?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{wc(i)}catch(s){e=e??[],s instanceof Cr?e=[...e,...s.errors]:e.push(s)}}if(e)throw new Cr(e)}}add(e){var n;if(e&&e!==this)if(this.closed)wc(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(e)}}_hasParent(e){let{_parentage:n}=this;return n===e||Array.isArray(n)&&n.includes(e)}_addParent(e){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(e),n):n?[n,e]:e}_removeParent(e){let{_parentage:n}=this;n===e?this._parentage=null:Array.isArray(n)&&In(n,e)}remove(e){let{_finalizers:n}=this;n&&In(n,e),e instanceof t&&e._removeParent(this)}};W.EMPTY=(()=>{let t=new W;return t.closed=!0,t})();var Ei=W.EMPTY;function Ir(t){return t instanceof W||t&&"closed"in t&&S(t.remove)&&S(t.add)&&S(t.unsubscribe)}function wc(t){S(t)?t():t.unsubscribe()}var be={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Bt={setTimeout(t,e,...n){let{delegate:r}=Bt;return r?.setTimeout?r.setTimeout(t,e,...n):setTimeout(t,e,...n)},clearTimeout(t){let{delegate:e}=Bt;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function br(t){Bt.setTimeout(()=>{let{onUnhandledError:e}=be;if(e)e(t);else throw t})}function bn(){}var Ec=Ci("C",void 0,void 0);function Cc(t){return Ci("E",void 0,t)}function Ic(t){return Ci("N",t,void 0)}function Ci(t,e,n){return{kind:t,value:e,error:n}}var yt=null;function Ht(t){if(be.useDeprecatedSynchronousErrorHandling){let e=!yt;if(e&&(yt={errorThrown:!1,error:null}),t(),e){let{errorThrown:n,error:r}=yt;if(yt=null,n)throw r}}else t()}function bc(t){be.useDeprecatedSynchronousErrorHandling&&yt&&(yt.errorThrown=!0,yt.error=t)}var Dt=class extends W{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,Ir(e)&&e.add(this)):this.destination=Dh}static create(e,n,r){return new zt(e,n,r)}next(e){this.isStopped?bi(Ic(e),this):this._next(e)}error(e){this.isStopped?bi(Cc(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?bi(Ec,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},vh=Function.prototype.bind;function Ii(t,e){return vh.call(t,e)}var Mi=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:n}=this;if(n.next)try{n.next(e)}catch(r){Mr(r)}}error(e){let{partialObserver:n}=this;if(n.error)try{n.error(e)}catch(r){Mr(r)}else Mr(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(n){Mr(n)}}},zt=class extends Dt{constructor(e,n,r){super();let o;if(S(e)||!e)o={next:e??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&be.useDeprecatedNextContext?(i=Object.create(e),i.unsubscribe=()=>this.unsubscribe(),o={next:e.next&&Ii(e.next,i),error:e.error&&Ii(e.error,i),complete:e.complete&&Ii(e.complete,i)}):o=e}this.destination=new Mi(o)}};function Mr(t){be.useDeprecatedSynchronousErrorHandling?bc(t):br(t)}function yh(t){throw t}function bi(t,e){let{onStoppedNotification:n}=be;n&&Bt.setTimeout(()=>n(t,e))}var Dh={closed:!0,next:bn,error:yh,complete:bn};var Gt=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ue(t){return t}function Si(...t){return Ti(t)}function Ti(t){return t.length===0?ue:t.length===1?t[0]:function(n){return t.reduce((r,o)=>o(r),n)}}var F=(()=>{class t{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new t;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=Eh(n)?n:new zt(n,r,o);return Ht(()=>{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=Mc(r),new r((o,i)=>{let s=new zt({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)}[Gt](){return this}pipe(...n){return Ti(n)(this)}toPromise(n){return n=Mc(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return t.create=e=>new t(e),t})();function Mc(t){var e;return(e=t??be.Promise)!==null&&e!==void 0?e:Promise}function wh(t){return t&&S(t.next)&&S(t.error)&&S(t.complete)}function Eh(t){return t&&t instanceof Dt||wh(t)&&Ir(t)}function xi(t){return S(t?.lift)}function P(t){return e=>{if(xi(e))return e.lift(function(n){try{return t(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function k(t,e,n,r,o){return new _i(t,e,n,r,o)}var _i=class extends Dt{constructor(e,n,r,o,i,s){super(e),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){e.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){e.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};function qt(){return P((t,e)=>{let n=null;t._refCount++;let r=k(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){n=null;return}let o=t._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),e.unsubscribe()});t.subscribe(r),r.closed||(n=t.connect())})}var Wt=class extends F{constructor(e,n){super(),this.source=e,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,xi(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){let e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new W;let n=this.getSubject();e.add(this.source.subscribe(k(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),e.closed&&(this._connection=null,e=W.EMPTY)}return e}refCount(){return qt()(this)}};var Sc=$t(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var te=(()=>{class t extends F{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Sr(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Sc}next(n){Ht(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Ht(()=>{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(){Ht(()=>{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?Ei:(this.currentObservers=null,i.push(n),new W(()=>{this.currentObservers=null,In(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new F;return n.source=this,n}}return t.create=(e,n)=>new Sr(e,n),t})(),Sr=class extends te{constructor(e,n){super(),this.destination=e,this.source=n}next(e){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,e)}error(e){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,e)}complete(){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||n===void 0||n.call(e)}_subscribe(e){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(e))!==null&&r!==void 0?r:Ei}};var J=class extends te{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let n=super._subscribe(e);return!n.closed&&e.next(this._value),n}getValue(){let{hasError:e,thrownError:n,_value:r}=this;if(e)throw n;return this._throwIfClosed(),r}next(e){super.next(this._value=e)}};var le=new F(t=>t.complete());function Tc(t){return t&&S(t.schedule)}function xc(t){return t[t.length-1]}function _c(t){return S(xc(t))?t.pop():void 0}function Je(t){return Tc(xc(t))?t.pop():void 0}function Ac(t,e,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(d){s(d)}}function c(l){try{u(r.throw(l))}catch(d){s(d)}}function u(l){l.done?i(l.value):o(l.value).then(a,c)}u((r=r.apply(t,e||[])).next())})}function Nc(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function wt(t){return this instanceof wt?(this.v=t,this):new wt(t)}function Rc(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),o,i=[];return o={},a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(g){return Promise.resolve(g).then(f,d)}}function a(f,g){r[f]&&(o[f]=function(C){return new Promise(function(v,w){i.push([f,C,v,w])>1||c(f,C)})},g&&(o[f]=g(o[f])))}function c(f,g){try{u(r[f](g))}catch(C){h(i[0][3],C)}}function u(f){f.value instanceof wt?Promise.resolve(f.value.v).then(l,d):h(i[0][2],f)}function l(f){c("next",f)}function d(f){c("throw",f)}function h(f,g){f(g),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Oc(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof Nc=="function"?Nc(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=t[i]&&function(s){return new Promise(function(a,c){s=t[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 Tr=t=>t&&typeof t.length=="number"&&typeof t!="function";function xr(t){return S(t?.then)}function _r(t){return S(t[Gt])}function Nr(t){return Symbol.asyncIterator&&S(t?.[Symbol.asyncIterator])}function Ar(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Ch(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Rr=Ch();function Or(t){return S(t?.[Rr])}function Pr(t){return Rc(this,arguments,function*(){let n=t.getReader();try{for(;;){let{value:r,done:o}=yield wt(n.read());if(o)return yield wt(void 0);yield yield wt(r)}}finally{n.releaseLock()}})}function kr(t){return S(t?.getReader)}function Q(t){if(t instanceof F)return t;if(t!=null){if(_r(t))return Ih(t);if(Tr(t))return bh(t);if(xr(t))return Mh(t);if(Nr(t))return Pc(t);if(Or(t))return Sh(t);if(kr(t))return Th(t)}throw Ar(t)}function Ih(t){return new F(e=>{let n=t[Gt]();if(S(n.subscribe))return n.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function bh(t){return new F(e=>{for(let n=0;n{t.then(n=>{e.closed||(e.next(n),e.complete())},n=>e.error(n)).then(null,br)})}function Sh(t){return new F(e=>{for(let n of t)if(e.next(n),e.closed)return;e.complete()})}function Pc(t){return new F(e=>{xh(t,e).catch(n=>e.error(n))})}function Th(t){return Pc(Pr(t))}function xh(t,e){var n,r,o,i;return Ac(this,void 0,void 0,function*(){try{for(n=Oc(t);r=yield n.next(),!r.done;){let s=r.value;if(e.next(s),e.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}}e.complete()})}function ie(t,e,n,r=0,o=!1){let i=e.schedule(function(){n(),o?t.add(this.schedule(null,r)):this.unsubscribe()},r);if(t.add(i),!o)return i}function Fr(t,e=0){return P((n,r)=>{n.subscribe(k(r,o=>ie(r,t,()=>r.next(o),e),()=>ie(r,t,()=>r.complete(),e),o=>ie(r,t,()=>r.error(o),e)))})}function Lr(t,e=0){return P((n,r)=>{r.add(t.schedule(()=>n.subscribe(r),e))})}function kc(t,e){return Q(t).pipe(Lr(e),Fr(e))}function Fc(t,e){return Q(t).pipe(Lr(e),Fr(e))}function Lc(t,e){return new F(n=>{let r=0;return e.schedule(function(){r===t.length?n.complete():(n.next(t[r++]),n.closed||this.schedule())})})}function jc(t,e){return new F(n=>{let r;return ie(n,e,()=>{r=t[Rr](),ie(n,e,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>S(r?.return)&&r.return()})}function jr(t,e){if(!t)throw new Error("Iterable cannot be null");return new F(n=>{ie(n,e,()=>{let r=t[Symbol.asyncIterator]();ie(n,e,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Vc(t,e){return jr(Pr(t),e)}function Uc(t,e){if(t!=null){if(_r(t))return kc(t,e);if(Tr(t))return Lc(t,e);if(xr(t))return Fc(t,e);if(Nr(t))return jr(t,e);if(Or(t))return jc(t,e);if(kr(t))return Vc(t,e)}throw Ar(t)}function z(t,e){return e?Uc(t,e):Q(t)}function I(...t){let e=Je(t);return z(t,e)}function Zt(t,e){let n=S(t)?t:()=>t,r=o=>o.error(n());return new F(e?o=>e.schedule(r,0,o):r)}function Ni(t){return!!t&&(t instanceof F||S(t.lift)&&S(t.subscribe))}var Be=$t(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function x(t,e){return P((n,r)=>{let o=0;n.subscribe(k(r,i=>{r.next(t.call(e,i,o++))}))})}var{isArray:_h}=Array;function Nh(t,e){return _h(e)?t(...e):t(e)}function $c(t){return x(e=>Nh(t,e))}var{isArray:Ah}=Array,{getPrototypeOf:Rh,prototype:Oh,keys:Ph}=Object;function Bc(t){if(t.length===1){let e=t[0];if(Ah(e))return{args:e,keys:null};if(kh(e)){let n=Ph(e);return{args:n.map(r=>e[r]),keys:n}}}return{args:t,keys:null}}function kh(t){return t&&typeof t=="object"&&Rh(t)===Oh}function Hc(t,e){return t.reduce((n,r,o)=>(n[r]=e[o],n),{})}function Vr(...t){let e=Je(t),n=_c(t),{args:r,keys:o}=Bc(t);if(r.length===0)return z([],e);let i=new F(Fh(r,e,o?s=>Hc(o,s):ue));return n?i.pipe($c(n)):i}function Fh(t,e,n=ue){return r=>{zc(e,()=>{let{length:o}=t,i=new Array(o),s=o,a=o;for(let c=0;c{let u=z(t[c],e),l=!1;u.subscribe(k(r,d=>{i[c]=d,l||(l=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function zc(t,e,n){t?ie(n,t,e):e()}function Gc(t,e,n,r,o,i,s,a){let c=[],u=0,l=0,d=!1,h=()=>{d&&!c.length&&!u&&e.complete()},f=C=>u{i&&e.next(C),u++;let v=!1;Q(n(C,l++)).subscribe(k(e,w=>{o?.(w),i?f(w):e.next(w)},()=>{v=!0},void 0,()=>{if(v)try{for(u--;c.length&&ug(w)):g(w)}h()}catch(w){e.error(w)}}))};return t.subscribe(k(e,f,()=>{d=!0,h()})),()=>{a?.()}}function Y(t,e,n=1/0){return S(e)?Y((r,o)=>x((i,s)=>e(r,i,o,s))(Q(t(r,o))),n):(typeof e=="number"&&(n=e),P((r,o)=>Gc(r,o,t,n)))}function Ai(t=1/0){return Y(ue,t)}function qc(){return Ai(1)}function Yt(...t){return qc()(z(t,Je(t)))}function Ur(t){return new F(e=>{Q(t()).subscribe(e)})}function de(t,e){return P((n,r)=>{let o=0;n.subscribe(k(r,i=>t.call(e,i,o++)&&r.next(i)))})}function Xe(t){return P((e,n)=>{let r=null,o=!1,i;r=e.subscribe(k(n,void 0,void 0,s=>{i=Q(t(s,Xe(t)(e))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function Wc(t,e,n,r,o){return(i,s)=>{let a=n,c=e,u=0;i.subscribe(k(s,l=>{let d=u++;c=a?t(c,l,d):(a=!0,l),r&&s.next(c)},o&&(()=>{a&&s.next(c),s.complete()})))}}function et(t,e){return S(e)?Y(t,e,1):Y(t,1)}function tt(t){return P((e,n)=>{let r=!1;e.subscribe(k(n,o=>{r=!0,n.next(o)},()=>{r||n.next(t),n.complete()}))})}function He(t){return t<=0?()=>le:P((e,n)=>{let r=0;e.subscribe(k(n,o=>{++r<=t&&(n.next(o),t<=r&&n.complete())}))})}function Ri(t){return x(()=>t)}function $r(t=Lh){return P((e,n)=>{let r=!1;e.subscribe(k(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(t())))})}function Lh(){return new Be}function Et(t){return P((e,n)=>{try{e.subscribe(n)}finally{n.add(t)}})}function Re(t,e){let n=arguments.length>=2;return r=>r.pipe(t?de((o,i)=>t(o,i,r)):ue,He(1),n?tt(e):$r(()=>new Be))}function Qt(t){return t<=0?()=>le:P((e,n)=>{let r=[];e.subscribe(k(n,o=>{r.push(o),t{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function Oi(t,e){let n=arguments.length>=2;return r=>r.pipe(t?de((o,i)=>t(o,i,r)):ue,Qt(1),n?tt(e):$r(()=>new Be))}function Pi(t,e){return P(Wc(t,e,arguments.length>=2,!0))}function ki(...t){let e=Je(t);return P((n,r)=>{(e?Yt(t,n,e):Yt(t,n)).subscribe(r)})}function fe(t,e){return P((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(k(r,c=>{o?.unsubscribe();let u=0,l=i++;Q(t(c,l)).subscribe(o=k(r,d=>r.next(e?e(c,d,l,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Fi(t){return P((e,n)=>{Q(t).subscribe(k(n,()=>n.complete(),bn)),!n.closed&&e.subscribe(n)})}function K(t,e,n){let r=S(t)||e||n?{next:t,error:e,complete:n}:t;return r?P((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(k(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)}))}):ue}var y=class extends Error{constructor(e,n){super(vo(e,n)),this.code=e}};function vo(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}function Ln(t){return{toString:t}.toString()}var Br="__parameters__";function jh(t){return function(...n){if(t){let r=t(...n);for(let o in r)this[o]=r[o]}}}function Nu(t,e,n){return Ln(()=>{let r=jh(e);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(c,u,l){let d=c.hasOwnProperty(Br)?c[Br]:Object.defineProperty(c,Br,{value:[]})[Br];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),c}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}function $(t){for(let e in t)if(t[e]===$)return e;throw Error("Could not find renamed property on target object.")}function he(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(he).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let e=t.toString();if(e==null)return""+e;let n=e.indexOf(` +`);return n===-1?e:e.substring(0,n)}function Zc(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var Vh=$({__forward_ref__:$});function Au(t){return t.__forward_ref__=Au,t.toString=function(){return he(this())},t}function De(t){return Ru(t)?t():t}function Ru(t){return typeof t=="function"&&t.hasOwnProperty(Vh)&&t.__forward_ref__===Au}function D(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function jn(t){return{providers:t.providers||[],imports:t.imports||[]}}function yo(t){return Yc(t,Pu)||Yc(t,ku)}function Ou(t){return yo(t)!==null}function Yc(t,e){return t.hasOwnProperty(e)?t[e]:null}function Uh(t){let e=t&&(t[Pu]||t[ku]);return e||null}function Qc(t){return t&&(t.hasOwnProperty(Kc)||t.hasOwnProperty($h))?t[Kc]:null}var Pu=$({\u0275prov:$}),Kc=$({\u0275inj:$}),ku=$({ngInjectableDef:$}),$h=$({ngInjectorDef:$}),E=class{constructor(e,n){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=D({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Fu(t){return t&&!!t.\u0275providers}var Bh=$({\u0275cmp:$}),Hh=$({\u0275dir:$}),zh=$({\u0275pipe:$}),Gh=$({\u0275mod:$}),Yr=$({\u0275fac:$}),Sn=$({__NG_ELEMENT_ID__:$}),Jc=$({__NG_ENV_ID__:$});function Lu(t){return typeof t=="string"?t:t==null?"":String(t)}function qh(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():Lu(t)}function Wh(t,e){let n=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new y(-200,t)}function Ts(t,e){throw new y(-201,!1)}var _=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(_||{}),Gi;function ju(){return Gi}function ye(t){let e=Gi;return Gi=t,e}function Vu(t,e,n){let r=yo(t);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&_.Optional)return null;if(e!==void 0)return e;Ts(t,"Injector")}var Zh={},Tn=Zh,qi="__NG_DI_FLAG__",Qr="ngTempTokenPath",Yh="ngTokenPath",Qh=/\n/gm,Kh="\u0275",Xc="__source",en;function Jh(){return en}function nt(t){let e=en;return en=t,e}function Xh(t,e=_.Default){if(en===void 0)throw new y(-203,!1);return en===null?Vu(t,void 0,e):en.get(t,e&_.Optional?null:void 0,e)}function M(t,e=_.Default){return(ju()||Xh)(De(t),e)}function p(t,e=_.Default){return M(t,Do(e))}function Do(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Wi(t){let e=[];for(let n=0;n ");else if(typeof e=="object"){let i=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):he(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${t.replace(Qh,` + `)}`}var xs=Uu(Nu("Optional"),8);var $u=Uu(Nu("SkipSelf"),4);function nn(t,e){let n=t.hasOwnProperty(Yr);return n?t[Yr]:null}function _s(t,e){t.forEach(n=>Array.isArray(n)?_s(n,e):e(n))}function Bu(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Kr(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}var xn={},Oe=[],rn=new E(""),Hu=new E("",-1),zu=new E(""),Jr=class{get(e,n=Tn){if(n===Tn){let r=new Error(`NullInjectorError: No provider for ${he(e)}!`);throw r.name="NullInjectorError",r}return n}},Gu=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(Gu||{}),Fe=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(Fe||{}),ot=function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t}(ot||{});function rp(t,e,n){let r=t.length;for(;;){let o=t.indexOf(e,n);if(o===-1)return o;if(o===0||t.charCodeAt(o-1)<=32){let i=e.length;if(o+i===r||t.charCodeAt(o+i)<=32)return o}n=o+1}}function Zi(t,e,n){let r=0;for(;re){s=i-1;break}}}for(;i-1){let i;for(;++oi?d="":d=o[l+1].toLowerCase(),r&2&&u!==d){if(Me(r))return!1;s=!0}}}}return Me(r)||s}function Me(t){return(t&1)===0}function up(t,e,n,r){if(e===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!==""&&!Me(s)&&(e+=tu(i,o),o=""),r=s,i=i||!Me(r);n++}return o!==""&&(e+=tu(i,o)),e}function pp(t){return t.map(hp).join(",")}function gp(t){let e=[],n=[],r=1,o=2;for(;r{let e=Ku(t),n=H(m({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Gu.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Fe.Emulated,styles:t.styles||Oe,_:null,schemas:t.schemas||null,tView:null,id:""});Ju(n);let r=t.dependencies;return n.directiveDefs=ru(r,!1),n.pipeDefs=ru(r,!0),n.id=yp(n),n})}function mp(t){return Mt(t)||Wu(t)}function vp(t){return t!==null}function Vn(t){return Ln(()=>({type:t.type,bootstrap:t.bootstrap||Oe,declarations:t.declarations||Oe,imports:t.imports||Oe,exports:t.exports||Oe,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function nu(t,e){if(t==null)return xn;let n={};for(let r in t)if(t.hasOwnProperty(r)){let o=t[r],i,s,a=ot.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),e?(n[i]=a!==ot.None?[r,a]:r,e[i]=s):n[i]=r}return n}function wo(t){return Ln(()=>{let e=Ku(t);return Ju(e),e})}function Mt(t){return t[Bh]||null}function Wu(t){return t[Hh]||null}function Zu(t){return t[zh]||null}function Yu(t){let e=Mt(t)||Wu(t)||Zu(t);return e!==null?e.standalone:!1}function Qu(t,e){let n=t[Gh]||null;if(!n&&e===!0)throw new Error(`Type ${he(t)} does not have '\u0275mod' property.`);return n}function Ku(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||xn,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||Oe,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:nu(t.inputs,e),outputs:nu(t.outputs),debugInfo:null}}function Ju(t){t.features?.forEach(e=>e(t))}function ru(t,e){if(!t)return null;let n=e?Zu:mp;return()=>(typeof t=="function"?t():t).map(r=>n(r)).filter(vp)}function yp(t){let e=0,n=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let o of n)e=Math.imul(31,e)+o.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function ln(t){return{\u0275providers:t}}function Dp(...t){return{\u0275providers:Xu(!0,t),\u0275fromNgModule:!0}}function Xu(t,...e){let n=[],r=new Set,o,i=s=>{n.push(s)};return _s(e,s=>{let a=s;Yi(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&el(o,i),n}function el(t,e){for(let n=0;n{e(i,r)})}}function Yi(t,e,n,r){if(t=De(t),!t)return!1;let o=null,i=Qc(t),s=!i&&Mt(t);if(!i&&!s){let c=t.ngModule;if(i=Qc(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=t}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)Yi(u,e,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;try{_s(i.imports,l=>{Yi(l,e,n,r)&&(u||=[],u.push(l))})}finally{}u!==void 0&&el(u,e)}if(!a){let u=nn(o)||(()=>new o);e({provide:o,useFactory:u,deps:Oe},o),e({provide:zu,useValue:o,multi:!0},o),e({provide:rn,useValue:()=>M(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=t;Rs(c,l=>{e(l,u)})}}else return!1;return o!==t&&t.providers!==void 0}function Rs(t,e){for(let n of t)Fu(n)&&(n=n.\u0275providers),Array.isArray(n)?Rs(n,e):e(n)}var wp=$({provide:String,useValue:$});function tl(t){return t!==null&&typeof t=="object"&&wp in t}function Ep(t){return!!(t&&t.useExisting)}function Cp(t){return!!(t&&t.useFactory)}function Qi(t){return typeof t=="function"}var Eo=new E(""),zr={},Ip={},Li;function Os(){return Li===void 0&&(Li=new Jr),Li}var se=class{},_n=class extends se{get destroyed(){return this._destroyed}constructor(e,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Ji(e,s=>this.processProvider(s)),this.records.set(Hu,Kt(void 0,this)),o.has("environment")&&this.records.set(se,Kt(void 0,this));let i=this.records.get(Eo);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(zu,Oe,_.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=L(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(),L(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let n=nt(this),r=ye(void 0),o;try{return e()}finally{nt(n),ye(r)}}get(e,n=Tn,r=_.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(Jc))return e[Jc](this);r=Do(r);let o,i=nt(this),s=ye(void 0);try{if(!(r&_.SkipSelf)){let c=this.records.get(e);if(c===void 0){let u=_p(e)&&yo(e);u&&this.injectableDefInScope(u)?c=Kt(Ki(e),zr):c=null,this.records.set(e,c)}if(c!=null)return this.hydrate(e,c)}let a=r&_.Self?Os():this.parent;return n=r&_.Optional&&n===Tn?null:n,a.get(e,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Qr]=a[Qr]||[]).unshift(he(e)),i)throw a;return tp(a,e,"R3InjectorError",this.source)}else throw a}finally{ye(s),nt(i)}}resolveInjectorInitializers(){let e=L(null),n=nt(this),r=ye(void 0),o;try{let i=this.get(rn,Oe,_.Self);for(let s of i)s()}finally{nt(n),ye(r),L(e)}}toString(){let e=[],n=this.records;for(let r of n.keys())e.push(he(r));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new y(205,!1)}processProvider(e){e=De(e);let n=Qi(e)?e:De(e&&e.provide),r=Mp(e);if(!Qi(e)&&e.multi===!0){let o=this.records.get(n);o||(o=Kt(void 0,zr,!0),o.factory=()=>Wi(o.multi),this.records.set(n,o)),n=e,o.multi.push(e)}this.records.set(n,r)}hydrate(e,n){let r=L(null);try{return n.value===zr&&(n.value=Ip,n.value=n.factory()),typeof n.value=="object"&&n.value&&xp(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{L(r)}}injectableDefInScope(e){if(!e.providedIn)return!1;let n=De(e.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(e){let n=this._onDestroyHooks.indexOf(e);n!==-1&&this._onDestroyHooks.splice(n,1)}};function Ki(t){let e=yo(t),n=e!==null?e.factory:nn(t);if(n!==null)return n;if(t instanceof E)throw new y(204,!1);if(t instanceof Function)return bp(t);throw new y(204,!1)}function bp(t){if(t.length>0)throw new y(204,!1);let n=Uh(t);return n!==null?()=>n.factory(t):()=>new t}function Mp(t){if(tl(t))return Kt(void 0,t.useValue);{let e=Sp(t);return Kt(e,zr)}}function Sp(t,e,n){let r;if(Qi(t)){let o=De(t);return nn(o)||Ki(o)}else if(tl(t))r=()=>De(t.useValue);else if(Cp(t))r=()=>t.useFactory(...Wi(t.deps||[]));else if(Ep(t))r=()=>M(De(t.useExisting));else{let o=De(t&&(t.useClass||t.provide));if(Tp(t))r=()=>new o(...Wi(t.deps));else return nn(o)||Ki(o)}return r}function Kt(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function Tp(t){return!!t.deps}function xp(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function _p(t){return typeof t=="function"||typeof t=="object"&&t instanceof E}function Ji(t,e){for(let n of t)Array.isArray(n)?Ji(n,e):n&&Fu(n)?Ji(n.\u0275providers,e):e(n)}function Te(t,e){t instanceof _n&&t.assertNotDestroyed();let n,r=nt(t),o=ye(void 0);try{return e()}finally{nt(r),ye(o)}}function Np(){return ju()!==void 0||Jh()!=null}function Ap(t){return typeof t=="function"}var qe=0,O=1,b=2,re=3,Se=4,xe=5,Xr=6,eo=7,ze=8,on=9,Ge=10,ae=11,Nn=12,ou=13,Un=14,Le=15,sn=16,Jt=17,an=18,Co=19,nl=20,rt=21,ji=22,we=23,it=25,rl=1;var St=7,to=8,no=9,Ee=10,ro=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(ro||{});function It(t){return Array.isArray(t)&&typeof t[rl]=="object"}function We(t){return Array.isArray(t)&&t[rl]===!0}function ol(t){return(t.flags&4)!==0}function Io(t){return t.componentOffset>-1}function Ps(t){return(t.flags&1)===1}function $n(t){return!!t.template}function Xi(t){return(t[b]&512)!==0}var es=class{constructor(e,n,r){this.previousValue=e,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function il(t,e,n,r){e!==null?e.applyValueToInputSignal(e,r):t[n]=r}function bo(){return sl}function sl(t){return t.type.prototype.ngOnChanges&&(t.setInput=Op),Rp}bo.ngInherit=!0;function Rp(){let t=cl(this),e=t?.current;if(e){let n=t.previous;if(n===xn)t.previous=e;else for(let r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e)}}function Op(t,e,n,r,o){let i=this.declaredInputs[r],s=cl(t)||Pp(t,{previous:xn,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new es(u&&u.currentValue,n,c===xn),il(t,e,o,n)}var al="__ngSimpleChanges__";function cl(t){return t[al]||null}function Pp(t,e){return t[al]=e}var iu=null;var Pe=function(t,e,n){iu?.(t,e,n)},kp="svg",Fp="math";function je(t){for(;Array.isArray(t);)t=t[qe];return t}function Lp(t,e){return je(e[t])}function _e(t,e){return je(e[t.index])}function ul(t,e){return t.data[e]}function Rt(t,e){let n=e[t];return It(n)?n:n[qe]}function ks(t){return(t[b]&128)===128}function jp(t){return We(t[re])}function oo(t,e){return e==null?null:t[e]}function ll(t){t[Jt]=0}function dl(t){t[b]&1024||(t[b]|=1024,ks(t)&&Mo(t))}function An(t){return!!(t[b]&9216||t[we]?.dirty)}function ts(t){t[Ge].changeDetectionScheduler?.notify(7),t[b]&64&&(t[b]|=1024),An(t)&&Mo(t)}function Mo(t){t[Ge].changeDetectionScheduler?.notify(0);let e=Tt(t);for(;e!==null&&!(e[b]&8192||(e[b]|=8192,!ks(e)));)e=Tt(e)}function fl(t,e){if((t[b]&256)===256)throw new y(911,!1);t[rt]===null&&(t[rt]=[]),t[rt].push(e)}function Vp(t,e){if(t[rt]===null)return;let n=t[rt].indexOf(e);n!==-1&&t[rt].splice(n,1)}function Tt(t){let e=t[re];return We(e)?e[re]:e}var j={lFrame:Cl(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var hl=!1;function Up(){return j.lFrame.elementDepthCount}function $p(){j.lFrame.elementDepthCount++}function Bp(){j.lFrame.elementDepthCount--}function pl(){return j.bindingsEnabled}function Hp(){return j.skipHydrationRootTNode!==null}function zp(t){return j.skipHydrationRootTNode===t}function Gp(){j.skipHydrationRootTNode=null}function X(){return j.lFrame.lView}function Ot(){return j.lFrame.tView}function Ne(){let t=gl();for(;t!==null&&t.type===64;)t=t.parent;return t}function gl(){return j.lFrame.currentTNode}function qp(){let t=j.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function Bn(t,e){let n=j.lFrame;n.currentTNode=t,n.isParent=e}function ml(){return j.lFrame.isParent}function Wp(){j.lFrame.isParent=!1}function vl(){return hl}function su(t){hl=t}function Zp(t){return j.lFrame.bindingIndex=t}function yl(){return j.lFrame.bindingIndex++}function Yp(){return j.lFrame.inI18n}function Qp(t,e){let n=j.lFrame;n.bindingIndex=n.bindingRootIndex=t,ns(e)}function Kp(){return j.lFrame.currentDirectiveIndex}function ns(t){j.lFrame.currentDirectiveIndex=t}function Dl(t){j.lFrame.currentQueryIndex=t}function Jp(t){let e=t[O];return e.type===2?e.declTNode:e.type===1?t[xe]:null}function wl(t,e,n){if(n&_.SkipSelf){let o=e,i=t;for(;o=o.parent,o===null&&!(n&_.Host);)if(o=Jp(i),o===null||(i=i[Un],o.type&10))break;if(o===null)return!1;e=o,t=i}let r=j.lFrame=El();return r.currentTNode=e,r.lView=t,!0}function Fs(t){let e=El(),n=t[O];j.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function El(){let t=j.lFrame,e=t===null?null:t.child;return e===null?Cl(t):e}function Cl(t){let e={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:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function Il(){let t=j.lFrame;return j.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var bl=Il;function Ls(){let t=Il();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function js(){return j.lFrame.selectedIndex}function xt(t){j.lFrame.selectedIndex=t}function Xp(){let t=j.lFrame;return ul(t.tView,t.selectedIndex)}function eg(){return j.lFrame.currentNamespace}var Ml=!0;function Vs(){return Ml}function Us(t){Ml=t}function tg(t,e,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=e.type.prototype;if(r){let s=sl(e);(n.preOrderHooks??=[]).push(t,s),(n.preOrderCheckHooks??=[]).push(t,s)}o&&(n.preOrderHooks??=[]).push(0-t,o),i&&((n.preOrderHooks??=[]).push(t,i),(n.preOrderCheckHooks??=[]).push(t,i))}function $s(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n=r)break}else e[c]<0&&(t[Jt]+=65536),(a>14>16&&(t[b]&3)===e&&(t[b]+=16384,au(a,i)):au(a,i)}var tn=-1,Rn=class{constructor(e,n,r){this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function rg(t){return t instanceof Rn}function og(t){return(t.flags&8)!==0}function ig(t){return(t.flags&16)!==0}var Ui={},rs=class{constructor(e,n){this.injector=e,this.parentInjector=n}get(e,n,r){r=Do(r);let o=this.injector.get(e,Ui,r);return o!==Ui||n===Ui?o:this.parentInjector.get(e,n,r)}};function Tl(t){return t!==tn}function io(t){return t&32767}function sg(t){return t>>16}function so(t,e){let n=sg(t),r=e;for(;n>0;)r=r[Un],n--;return r}var os=!0;function cu(t){let e=os;return os=t,e}var ag=256,xl=ag-1,_l=5,cg=0,ke={};function ug(t,e,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Sn)&&(r=n[Sn]),r==null&&(r=n[Sn]=cg++);let o=r&xl,i=1<>_l)]|=i}function Nl(t,e){let n=Al(t,e);if(n!==-1)return n;let r=e[O];r.firstCreatePass&&(t.injectorIndex=e.length,$i(r.data,t),$i(e,null),$i(r.blueprint,null));let o=Bs(t,e),i=t.injectorIndex;if(Tl(o)){let s=io(o),a=so(o,e),c=a[O].data;for(let u=0;u<8;u++)e[i+u]=a[s+u]|c[s+u]}return e[i+8]=o,i}function $i(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Al(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function Bs(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let n=0,r=null,o=e;for(;o!==null;){if(r=Fl(o),r===null)return tn;if(n++,o=o[Un],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return tn}function lg(t,e,n){ug(t,e,n)}function Rl(t,e,n){if(n&_.Optional||t!==void 0)return t;Ts(e,"NodeInjector")}function Ol(t,e,n,r){if(n&_.Optional&&r===void 0&&(r=null),!(n&(_.Self|_.Host))){let o=t[on],i=ye(void 0);try{return o?o.get(e,r,n&_.Optional):Vu(e,r,n&_.Optional)}finally{ye(i)}}return Rl(r,e,n)}function Pl(t,e,n,r=_.Default,o){if(t!==null){if(e[b]&2048&&!(r&_.Self)){let s=gg(t,e,n,r,ke);if(s!==ke)return s}let i=kl(t,e,n,r,ke);if(i!==ke)return i}return Ol(e,n,r,o)}function kl(t,e,n,r,o){let i=hg(n);if(typeof i=="function"){if(!wl(e,t,r))return r&_.Host?Rl(o,n,r):Ol(e,n,r,o);try{let s;if(s=i(r),s==null&&!(r&_.Optional))Ts(n);else return s}finally{bl()}}else if(typeof i=="number"){let s=null,a=Al(t,e),c=tn,u=r&_.Host?e[Le][xe]:null;for((a===-1||r&_.SkipSelf)&&(c=a===-1?Bs(t,e):e[a+8],c===tn||!lu(r,!1)?a=-1:(s=e[O],a=io(c),e=so(c,e)));a!==-1;){let l=e[O];if(uu(i,a,l.data)){let d=dg(a,e,n,s,r,u);if(d!==ke)return d}c=e[a+8],c!==tn&&lu(r,e[O].data[a+8]===u)&&uu(i,a,e)?(s=l,a=io(c),e=so(c,e)):a=-1}}return o}function dg(t,e,n,r,o,i){let s=e[O],a=s.data[t+8],c=r==null?Io(a)&&os:r!=s&&(a.type&3)!==0,u=o&_.Host&&i===a,l=fg(a,s,n,c,u);return l!==null?On(e,s,l,a):ke}function fg(t,e,n,r,o){let i=t.providerIndexes,s=e.data,a=i&1048575,c=t.directiveStart,u=t.directiveEnd,l=i>>20,d=r?a:a+l,h=o?a+l:u;for(let f=d;f=c&&g.type===n)return f}if(o){let f=s[c];if(f&&$n(f)&&f.type===n)return c}return null}function On(t,e,n,r){let o=t[n],i=e.data;if(rg(o)){let s=o;s.resolving&&Wh(qh(i[n]));let a=cu(s.canSeeViewProviders);s.resolving=!0;let c,u=s.injectImpl?ye(s.injectImpl):null,l=wl(t,r,_.Default);try{o=t[n]=s.factory(void 0,i,t,r),e.firstCreatePass&&n>=r.directiveStart&&tg(n,i[n],e)}finally{u!==null&&ye(u),cu(a),s.resolving=!1,bl()}}return o}function hg(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(Sn)?t[Sn]:void 0;return typeof e=="number"?e>=0?e&xl:pg:e}function uu(t,e,n){let r=1<>_l)]&r)}function lu(t,e){return!(t&_.Self)&&!(t&_.Host&&e)}var bt=class{constructor(e,n){this._tNode=e,this._lView=n}get(e,n,r){return Pl(this._tNode,this._lView,e,Do(r),n)}};function pg(){return new bt(Ne(),X())}function Hs(t){return Ln(()=>{let e=t.prototype.constructor,n=e[Yr]||is(e),r=Object.prototype,o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==r;){let i=o[Yr]||is(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function is(t){return Ru(t)?()=>{let e=is(De(t));return e&&e()}:nn(t)}function gg(t,e,n,r,o){let i=t,s=e;for(;i!==null&&s!==null&&s[b]&2048&&!(s[b]&512);){let a=kl(i,s,n,r|_.Self,ke);if(a!==ke)return a;let c=i.parent;if(!c){let u=s[nl];if(u){let l=u.get(n,ke,r);if(l!==ke)return l}c=Fl(s),s=s[Un]}i=c}return o}function Fl(t){let e=t[O],n=e.type;return n===2?e.declTNode:n===1?t[xe]:null}function du(t,e=null,n=null,r){let o=Ll(t,e,n,r);return o.resolveInjectorInitializers(),o}function Ll(t,e=null,n=null,r,o=new Set){let i=[n||Oe,Dp(t)];return r=r||(typeof t=="object"?void 0:he(t)),new _n(i,e||Os(),r||null,o)}var Ct=class Ct{static create(e,n){if(Array.isArray(e))return du({name:""},n,e,"");{let r=e.name??"";return du({name:r},e.parent,e.providers,r)}}};Ct.THROW_IF_NOT_FOUND=Tn,Ct.NULL=new Jr,Ct.\u0275prov=D({token:Ct,providedIn:"any",factory:()=>M(Hu)}),Ct.__NG_ELEMENT_ID__=-1;var _t=Ct;var mg=new E("");mg.__NG_ELEMENT_ID__=t=>{let e=Ne();if(e===null)throw new y(204,!1);if(e.type&2)return e.value;if(t&_.Optional)return null;throw new y(204,!1)};var vg="ngOriginalError";function Bi(t){return t[vg]}var jl=!0,Vl=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=yg,e.__NG_ENV_ID__=r=>r;let t=e;return t})(),ss=class extends Vl{constructor(e){super(),this._lView=e}onDestroy(e){return fl(this._lView,e),()=>Vp(this._lView,e)}};function yg(){return new ss(X())}var ct=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new J(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let r=this.taskId++;return this.pendingTasks.add(r),r}remove(r){this.pendingTasks.delete(r),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();var as=class extends te{constructor(e=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=e,Np()&&(this.destroyRef=p(Vl,{optional:!0})??void 0,this.pendingTasks=p(ct,{optional:!0})??void 0)}emit(e){let n=L(null);try{super.next(e)}finally{L(n)}}subscribe(e,n,r){let o=e,i=n||(()=>null),s=r;if(e&&typeof e=="object"){let c=e;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 e instanceof W&&e.add(a),a}wrapInTimeout(e){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{e(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},ne=as;function ao(...t){}function Ul(t){let e,n;function r(){t=ao;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),e!==void 0&&clearTimeout(e)}catch{}}return e=setTimeout(()=>{t(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{t(),r()})),()=>r()}function fu(t){return queueMicrotask(()=>t()),()=>{t=ao}}var zs="isAngularZone",co=zs+"_ID",Dg=0,G=class t{constructor(e){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ne(!1),this.onMicrotaskEmpty=new ne(!1),this.onStable=new ne(!1),this.onError=new ne(!1);let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=jl}=e;if(typeof Zone>"u")throw new y(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,Cg(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(zs)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new y(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new y(909,!1)}run(e,n,r){return this._inner.run(e,n,r)}runTask(e,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,e,wg,ao,ao);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(e,n,r){return this._inner.runGuarded(e,n,r)}runOutsideAngular(e){return this._outer.run(e)}},wg={};function Gs(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Eg(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function e(){Ul(()=>{t.callbackScheduled=!1,cs(t),t.isCheckStableRunning=!0,Gs(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{e()}):t._outer.run(()=>{e()}),cs(t)}function Cg(t){let e=()=>{Eg(t)},n=Dg++;t._inner=t._inner.fork({name:"angular",properties:{[zs]:!0,[co]:n,[co+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(Ig(c))return r.invokeTask(i,s,a,c);try{return hu(t),r.invokeTask(i,s,a,c)}finally{(t.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),pu(t)}},onInvoke:(r,o,i,s,a,c,u)=>{try{return hu(t),r.invoke(i,s,a,c,u)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!bg(c)&&e(),pu(t)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(t._hasPendingMicrotasks=s.microTask,cs(t),Gs(t)):s.change=="macroTask"&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}function cs(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function hu(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function pu(t){t._nesting--,Gs(t)}var us=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ne,this.onMicrotaskEmpty=new ne,this.onStable=new ne,this.onError=new ne}run(e,n,r){return e.apply(n,r)}runGuarded(e,n,r){return e.apply(n,r)}runOutsideAngular(e){return e()}runTask(e,n,r,o){return e.apply(n,r)}};function Ig(t){return $l(t,"__ignore_ng_zone__")}function bg(t){return $l(t,"__scheduler_tick__")}function $l(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}var st=class{constructor(){this._console=console}handleError(e){let n=this._findOriginalError(e);this._console.error("ERROR",e),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(e){let n=e&&Bi(e);for(;n&&Bi(n);)n=Bi(n);return n||null}},Mg=new E("",{providedIn:"root",factory:()=>{let t=p(G),e=p(st);return n=>t.runOutsideAngular(()=>e.handleError(n))}});function Sg(){return So(Ne(),X())}function So(t,e){return new To(_e(t,e))}var To=(()=>{let e=class e{constructor(r){this.nativeElement=r}};e.__NG_ELEMENT_ID__=Sg;let t=e;return t})();function Bl(t){return(t.flags&128)===128}var Hl=new Map,Tg=0;function xg(){return Tg++}function _g(t){Hl.set(t[Co],t)}function Ng(t){Hl.delete(t[Co])}var gu="__ngContext__";function Nt(t,e){It(e)?(t[gu]=e[Co],_g(e)):t[gu]=e}function zl(t){return ql(t[Nn])}function Gl(t){return ql(t[Se])}function ql(t){for(;t!==null&&!We(t);)t=t[Se];return t}var ls;function Wl(t){ls=t}function Ag(){if(ls!==void 0)return ls;if(typeof document<"u")return document;throw new y(210,!1)}var qs=new E("",{providedIn:"root",factory:()=>Rg}),Rg="ng",Ws=new E(""),ut=new E("",{providedIn:"platform",factory:()=>"unknown"});var Zs=new E("",{providedIn:"root",factory:()=>Ag().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Og="h",Pg="b";var kg=()=>null;function Ys(t,e,n=!1){return kg(t,e,n)}var Zl=!1,Fg=new E("",{providedIn:"root",factory:()=>Zl});function Yl(t){return t instanceof Function?t():t}var Pt=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(Pt||{}),Lg;function Qs(t,e){return Lg(t,e)}function Xt(t,e,n,r,o){if(r!=null){let i,s=!1;We(r)?i=r:It(r)&&(s=!0,r=r[qe]);let a=je(r);t===0&&n!==null?o==null?ed(e,n,a):uo(e,n,a,o||null,!0):t===1&&n!==null?uo(e,n,a,o||null,!0):t===2?Jg(e,a,s):t===3&&e.destroyNode(a),i!=null&&em(e,t,i,n,o)}}function jg(t,e){return t.createText(e)}function Vg(t,e,n){t.setValue(e,n)}function Ql(t,e,n){return t.createElement(e,n)}function Ug(t,e){Kl(t,e),e[qe]=null,e[xe]=null}function $g(t,e,n,r,o,i){r[qe]=o,r[xe]=e,xo(t,r,n,1,o,i)}function Kl(t,e){e[Ge].changeDetectionScheduler?.notify(8),xo(t,e,e[ae],2,null,null)}function Bg(t){let e=t[Nn];if(!e)return Hi(t[O],t);for(;e;){let n=null;if(It(e))n=e[Nn];else{let r=e[Ee];r&&(n=r)}if(!n){for(;e&&!e[Se]&&e!==t;)It(e)&&Hi(e[O],e),e=e[re];e===null&&(e=t),It(e)&&Hi(e[O],e),n=e&&e[Se]}e=n}}function Hg(t,e,n,r){let o=Ee+r,i=n.length;r>0&&(n[o-1][Se]=e),r0&&(t[n-1][Se]=r[Se]);let i=Kr(t,Ee+e);Ug(r[O],r);let s=i[an];s!==null&&s.detachView(i[O]),r[re]=null,r[Se]=null,r[b]&=-129}return r}function Xl(t,e){if(!(e[b]&256)){let n=e[ae];n.destroyNode&&xo(t,e,n,3,null,null),Bg(e)}}function Hi(t,e){if(e[b]&256)return;let n=L(null);try{e[b]&=-129,e[b]|=256,e[we]&&vi(e[we]),Gg(t,e),zg(t,e),e[O].type===1&&e[ae].destroy();let r=e[sn];if(r!==null&&We(e[re])){r!==e[re]&&Ks(r,e);let o=e[an];o!==null&&o.detachView(t)}Ng(e)}finally{L(n)}}function zg(t,e){let n=t.cleanup,r=e[eo];if(n!==null)for(let i=0;i=0?r[s]():r[-s].unsubscribe(),i+=2}else{let s=r[n[i+1]];n[i].call(s)}r!==null&&(e[eo]=null);let o=e[rt];if(o!==null){e[rt]=null;for(let i=0;i-1){let{encapsulation:i}=t.data[r.directiveStart+o];if(i===Fe.None||i===Fe.Emulated)return null}return _e(r,n)}}function uo(t,e,n,r,o){t.insertBefore(e,n,r,o)}function ed(t,e,n){t.appendChild(e,n)}function mu(t,e,n,r,o){r!==null?uo(t,e,n,r,o):ed(t,e,n)}function td(t,e){return t.parentNode(e)}function Zg(t,e){return t.nextSibling(e)}function Yg(t,e,n){return Kg(t,e,n)}function Qg(t,e,n){return t.type&40?_e(t,n):null}var Kg=Qg,vu;function Js(t,e,n,r){let o=qg(t,r,e),i=e[ae],s=r.parent||e[xe],a=Yg(s,r,e);if(o!=null)if(Array.isArray(n))for(let c=0;cit&&id(t,e,it,!1),Pe(s?2:0,o),n(r,o)}finally{xt(i),Pe(s?3:1,o)}}function ud(t,e,n){if(ol(e)){let r=L(null);try{let o=e.directiveStart,i=e.directiveEnd;for(let s=o;snull;function cm(t,e,n,r,o,i){let s=e?e.injectorIndex:-1,a=0;return Hp()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function yu(t,e,n,r,o){for(let i in e){if(!e.hasOwnProperty(i))continue;let s=e[i];if(s===void 0)continue;r??={};let a,c=ot.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let u=i;if(o!==null){if(!o.hasOwnProperty(i))continue;u=o[i]}t===0?Du(r,n,u,a,c):Du(r,n,u,a)}return r}function Du(t,e,n,r,o){let i;t.hasOwnProperty(n)?(i=t[n]).push(e,r):i=t[n]=[e,r],o!==void 0&&i.push(o)}function um(t,e,n){let r=e.directiveStart,o=e.directiveEnd,i=t.data,s=e.attrs,a=[],c=null,u=null;for(let l=r;l0;){let n=t[--e];if(typeof n=="number"&&n<0)return n}return 0}function gm(t,e,n,r){let o=n.directiveStart,i=n.directiveEnd;Io(n)&&Cm(e,n,t.data[o+n.componentOffset]),t.firstCreatePass||Nl(n,e),Nt(r,e);let s=n.initialInputs;for(let a=o;a{Mo(t.lView)},consumerOnSignalRead(){this.lView[we]=this}});function jm(t){let e=t[we]??Object.create(Vm);return e.lView=t,e}var Vm=H(m({},pi),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{let e=Tt(t.lView);for(;e&&!wd(e[O]);)e=Tt(e);e&&dl(e)},consumerOnSignalRead(){this.lView[we]=this}});function wd(t){return t.type!==2}var Um=100;function Ed(t,e=!0,n=0){let r=t[Ge],o=r.rendererFactory,i=!1;i||o.begin?.();try{$m(t,n)}catch(s){throw e&&yd(t,s),s}finally{i||(o.end?.(),r.inlineEffectRunner?.flush())}}function $m(t,e){let n=vl();try{su(!0),gs(t,e);let r=0;for(;An(t);){if(r===Um)throw new y(103,!1);r++,gs(t,1)}}finally{su(n)}}function Bm(t,e,n,r){let o=e[b];if((o&256)===256)return;let i=!1,s=!1;!i&&e[Ge].inlineEffectRunner?.flush(),Fs(e);let a=!0,c=null,u=null;i||(wd(t)?(u=Pm(e),c=gi(u)):vc()===null?(a=!1,u=jm(e),c=gi(u)):e[we]&&(vi(e[we]),e[we]=null));try{ll(e),Zp(t.bindingStartIndex),n!==null&&cd(t,e,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=t.preOrderCheckHooks;f!==null&&Gr(e,f,null)}else{let f=t.preOrderHooks;f!==null&&qr(e,f,0,null),Vi(e,0)}if(s||Hm(e),Cd(e,0),t.contentQueries!==null&&vd(t,e),!i)if(l){let f=t.contentCheckHooks;f!==null&&Gr(e,f)}else{let f=t.contentHooks;f!==null&&qr(e,f,1),Vi(e,1)}nm(t,e);let d=t.components;d!==null&&bd(e,d,0);let h=t.viewQuery;if(h!==null&&ps(2,h,r),!i)if(l){let f=t.viewCheckHooks;f!==null&&Gr(e,f)}else{let f=t.viewHooks;f!==null&&qr(e,f,2),Vi(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[ji]){for(let f of e[ji])f();e[ji]=null}i||(e[b]&=-73)}catch(l){throw i||Mo(e),l}finally{u!==null&&(yc(u,c),a&&Fm(u)),Ls()}}function Cd(t,e){for(let n=zl(t);n!==null;n=Gl(n))for(let r=Ee;r-1&&(ds(e,r),Kr(n,r))}this._attachedToViewContainer=!1}Xl(this._lView[O],this._lView)}onDestroy(e){fl(this._lView,e)}markForCheck(){ra(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[b]&=-129}reattach(){ts(this._lView),this._lView[b]|=128}detectChanges(){this._lView[b]|=1024,Ed(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new y(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=Xi(this._lView),n=this._lView[sn];n!==null&&!e&&Ks(n,this._lView),Kl(this._lView[O],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new y(902,!1);this._appRef=e;let n=Xi(this._lView),r=this._lView[sn];r!==null&&!n&&Jl(r,this._lView),ts(this._lView)}},oa=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=Wm;let t=e;return t})(),Gm=oa,qm=class extends Gm{constructor(e,n,r){super(),this._declarationLView=e,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,n){return this.createEmbeddedViewImpl(e,n)}createEmbeddedViewImpl(e,n,r){let o=Am(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:n,dehydratedView:r});return new At(o)}};function Wm(){return Zm(Ne(),X())}function Zm(t,e){return t.type&4?new qm(e,t,So(t,e)):null}var NM=new RegExp(`^(\\d+)*(${Pg}|${Og})*(.*)`);var Ym=()=>null;function Eu(t,e){return Ym(t,e)}var Pn=class{},ia=new E("",{providedIn:"root",factory:()=>!1});var Md=new E(""),Sd=new E(""),ms=class{},fo=class{};function Qm(t){let e=Error(`No component factory found for ${he(t)}.`);return e[Km]=t,e}var Km="ngComponent";var vs=class{resolveComponentFactory(e){throw Qm(e)}},fa=class fa{};fa.NULL=new vs;var cn=fa,un=class{};var Jm=(()=>{let e=class e{};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>null});let t=e;return t})();var Cu=new Set;function Oo(t){Cu.has(t)||(Cu.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}var Td=(()=>{let e=class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let r=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let o of r)o()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();function ys(t,e,n){let r=n?t.styles:null,o=n?t.classes:null,i=0;if(e!==null)for(let s=0;s0&&rd(t,n,i.join(" "))}}function iv(t,e,n){let r=t.projection=[];for(let o=0;o{let e=class e{};e.__NG_ELEMENT_ID__=av;let t=e;return t})();function av(){let t=Ne();return uv(t,X())}var cv=Hn,xd=class extends cv{constructor(e,n,r){super(),this._lContainer=e,this._hostTNode=n,this._hostLView=r}get element(){return So(this._hostTNode,this._hostLView)}get injector(){return new bt(this._hostTNode,this._hostLView)}get parentInjector(){let e=Bs(this._hostTNode,this._hostLView);if(Tl(e)){let n=so(e,this._hostLView),r=io(e),o=n[O].data[r+8];return new bt(o,n)}else return new bt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let n=bu(this._lContainer);return n!==null&&n[e]||null}get length(){return this._lContainer.length-Ee}createEmbeddedView(e,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Eu(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,wu(this._hostTNode,s)),a}createComponent(e,n,r,o,i){let s=e&&!Ap(e),a;if(s)a=n;else{let g=n||{};a=g.index,r=g.injector,o=g.projectableNodes,i=g.environmentInjector||g.ngModuleRef}let c=s?e:new kn(Mt(e)),u=r||this.parentInjector;if(!i&&c.ngModule==null){let C=(s?u:this.parentInjector).get(se,null);C&&(i=C)}let l=Mt(c.componentType??{}),d=Eu(this._lContainer,l?.id??null),h=d?.firstChild??null,f=c.create(u,o,h,i);return this.insertImpl(f.hostView,a,wu(this._hostTNode,d)),f}insert(e,n){return this.insertImpl(e,n,!0)}insertImpl(e,n,r){let o=e._lView;if(jp(o)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let c=o[re],u=new xd(c,c[xe],c[re]);u.detach(u.indexOf(e))}}let i=this._adjustIndex(n),s=this._lContainer;return Rm(s,o,i,r),e.attachToViewContainerRef(),Bu(zi(s),i,e),e}move(e,n){return this.insert(e,n)}indexOf(e){let n=bu(this._lContainer);return n!==null?n.indexOf(e):-1}remove(e){let n=this._adjustIndex(e,-1),r=ds(this._lContainer,n);r&&(Kr(zi(this._lContainer),n),Xl(r[O],r))}detach(e){let n=this._adjustIndex(e,-1),r=ds(this._lContainer,n);return r&&Kr(zi(this._lContainer),n)!=null?new At(r):null}_adjustIndex(e,n=0){return e??this.length+n}};function bu(t){return t[to]}function zi(t){return t[to]||(t[to]=[])}function uv(t,e){let n,r=e[t.index];return We(r)?n=r:(n=md(r,e,null,t),e[t.index]=n,Ro(e,n)),dv(n,e,t,r),new xd(n,t,e)}function lv(t,e){let n=t[ae],r=n.createComment(""),o=_e(e,t),i=td(n,o);return uo(n,i,r,Zg(n,o),!1),r}var dv=pv,fv=()=>!1;function hv(t,e,n){return fv(t,e,n)}function pv(t,e,n,r){if(t[St])return;let o;n.type&8?o=je(r):o=lv(e,n),t[St]=o}var at=class{},Fn=class{};var ws=class extends at{constructor(e,n,r,o=!0){super(),this.ngModuleType=e,this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new ho(this);let i=Qu(e);this._bootstrapComponents=Yl(i.bootstrap),this._r3Injector=Ll(e,n,[{provide:at,useValue:this},{provide:cn,useValue:this.componentFactoryResolver},...r],he(e),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},Es=class extends Fn{constructor(e){super(),this.moduleType=e}create(e){return new ws(this.moduleType,e,[])}};var po=class extends at{constructor(e){super(),this.componentFactoryResolver=new ho(this),this.instance=null;let n=new _n([...e.providers,{provide:at,useValue:this},{provide:cn,useValue:this.componentFactoryResolver}],e.parent||Os(),e.debugName,new Set(["environment"]));this.injector=n,e.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function sa(t,e,n=null){return new po({providers:t,parent:e,debugName:n,runEnvironmentInitializers:!0}).injector}function _d(t){return mv(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function gv(t,e){if(Array.isArray(t))for(let n=0;n(Us(!0),Ql(r,o,eg()));var go="en-US";var Mv=go;function Sv(t){typeof t=="string"&&(Mv=t.toLowerCase().replace(/_/g,"-"))}var Tv=(t,e,n)=>{};function ce(t,e,n,r){let o=X(),i=Ot(),s=Ne();return _v(i,o,o[ae],s,t,e,r),ce}function xv(t,e,n,r){let o=t.cleanup;if(o!=null)for(let i=0;ic?a[c]:null}typeof s=="string"&&(i+=2)}return null}function _v(t,e,n,r,o,i,s){let a=Ps(r),u=t.firstCreatePass&&Sm(t),l=e[ze],d=Mm(e),h=!0;if(r.type&3||s){let C=_e(r,e),v=s?s(C):C,w=d.length,q=s?U=>s(je(U[r.index])):r.index,B=null;if(!s&&a&&(B=xv(t,e,o,r.index)),B!==null){let U=B.__ngLastListenerFn__||B;U.__ngNextListenerFn__=i,B.__ngLastListenerFn__=i,h=!1}else{i=Tu(r,e,l,i),Tv(C,o,i);let U=n.listen(v,o,i);d.push(i,U),u&&u.push(o,q,w,w+1)}}else i=Tu(r,e,l,i);let f=r.outputs,g;if(h&&f!==null&&(g=f[o])){let C=g.length;if(C)for(let v=0;v-1?Rt(t.index,e):e;ra(s,5);let a=Su(e,n,r,i),c=o.__ngNextListenerFn__;for(;c;)a=Su(e,n,c,i)&&a,c=c.__ngNextListenerFn__;return a}}function R(t,e=""){let n=X(),r=Ot(),o=t+it,i=r.firstCreatePass?Ao(r,o,1,e,null):r.data[o],s=Nv(r,n,i,e,t);n[o]=s,Vs()&&Js(r,n,s,i),Bn(i,!1)}var Nv=(t,e,n,r,o)=>(Us(!0),jg(e[ae],r));function lt(t){return dn("",t,""),lt}function dn(t,e,n){let r=X(),o=Cv(r,t,e,n);return o!==_o&&Tm(r,js(),o),dn}var Av=(()=>{let e=class e{constructor(r){this._injector=r,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(r){if(!r.standalone)return null;if(!this.cachedInjectors.has(r)){let o=Xu(!1,r.type),i=o.length>0?sa([o],this._injector,`Standalone[${r.type.name}]`):null;this.cachedInjectors.set(r,i)}return this.cachedInjectors.get(r)}ngOnDestroy(){try{for(let r of this.cachedInjectors.values())r!==null&&r.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=D({token:e,providedIn:"environment",factory:()=>new e(M(se))});let t=e;return t})();function Ue(t){Oo("NgStandalone"),t.getStandaloneInjector=e=>e.get(Av).getOrCreateStandaloneInjector(t)}var Po=(()=>{let e=class e{log(r){console.log(r)}warn(r){console.warn(r)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();var Ad=new E("");function Gn(t){return!!t&&typeof t.then=="function"}function Rd(t){return!!t&&typeof t.subscribe=="function"}var Od=new E(""),Pd=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,o)=>{this.resolve=r,this.reject=o}),this.appInits=p(Od,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let r=[];for(let i of this.appInits){let s=i();if(Gn(s))r.push(s);else if(Rd(s)){let a=new Promise((c,u)=>{s.subscribe({complete:c,error:u})});r.push(a)}}let o=()=>{this.done=!0,this.resolve()};Promise.all(r).then(()=>{o()}).catch(i=>{this.reject(i)}),r.length===0&&o(),this.initialized=!0}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ko=new E("");function Rv(){Dc(()=>{throw new y(600,!1)})}function Ov(t){return t.isBoundToModule}var Pv=10;function kv(t,e,n){try{let r=n();return Gn(r)?r.catch(o=>{throw e.runOutsideAngular(()=>t.handleError(o)),o}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}var dt=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=p(Mg),this.afterRenderEffectManager=p(Td),this.zonelessEnabled=p(ia),this.externalTestViews=new Set,this.beforeRender=new te,this.afterTick=new te,this.componentTypes=[],this.components=[],this.isStable=p(ct).hasPendingTasks.pipe(x(r=>!r)),this._injector=p(se)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let r;return new Promise(o=>{r=this.isStable.subscribe({next:i=>{i&&o()}})}).finally(()=>{r.unsubscribe()})}get injector(){return this._injector}bootstrap(r,o){let i=r instanceof fo;if(!this._injector.get(Pd).done){let f=!i&&Yu(r),g=!1;throw new y(405,g)}let a;i?a=r:a=this._injector.get(cn).resolveComponentFactory(r),this.componentTypes.push(a.componentType);let c=Ov(a)?void 0:this._injector.get(at),u=o||a.selector,l=a.create(_t.NULL,[],u,c),d=l.location.nativeElement,h=l.injector.get(Ad,null);return h?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),Wr(this.components,l),h?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){this._tick(!0)}_tick(r){if(this._runningTick)throw new y(101,!1);let o=L(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(r)}catch(i){this.internalErrorHandler(i)}finally{this._runningTick=!1,L(o),this.afterTick.next()}}detectChangesInAttachedViews(r){let o=null;this._injector.destroyed||(o=this._injector.get(un,null,{optional:!0}));let i=0,s=this.afterRenderEffectManager;for(;iAn(c))&&(s.execute(),!this.allViews.some(({_lView:c})=>An(c))))break}}attachView(r){let o=r;this._views.push(o),o.attachToAppRef(this)}detachView(r){let o=r;Wr(this._views,o),o.detachFromAppRef()}_loadComponent(r){this.attachView(r.hostView),this.tick(),this.components.push(r);let o=this._injector.get(ko,[]);[...this._bootstrapListeners,...o].forEach(i=>i(r))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(r=>r()),this._views.slice().forEach(r=>r.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(r){return this._destroyListeners.push(r),()=>Wr(this._destroyListeners,r)}destroy(){if(this._destroyed)throw new y(406,!1);let r=this._injector;r.destroy&&!r.destroyed&&r.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Wr(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}function Fv(t,e,n,r){if(!n&&!An(t))return;Ed(t,e,n&&!r?0:1)}var Cs=class{constructor(e,n){this.ngModuleFactory=e,this.componentFactories=n}},ua=(()=>{let e=class e{compileModuleSync(r){return new Es(r)}compileModuleAsync(r){return Promise.resolve(this.compileModuleSync(r))}compileModuleAndAllComponentsSync(r){let o=this.compileModuleSync(r),i=Qu(r),s=Yl(i.declarations).reduce((a,c)=>{let u=Mt(c);return u&&a.push(new kn(u)),a},[]);return new Cs(o,s)}compileModuleAndAllComponentsAsync(r){return Promise.resolve(this.compileModuleAndAllComponentsSync(r))}clearCache(){}clearCacheFor(r){}getModuleId(r){}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Lv=(()=>{let e=class e{constructor(){this.zone=p(G),this.changeDetectionScheduler=p(Pn),this.applicationRef=p(dt)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),jv=new E("",{factory:()=>!1});function kd({ngZoneFactory:t,ignoreChangesOutsideZone:e,scheduleInRootZone:n}){return t??=()=>new G(H(m({},Ld()),{scheduleInRootZone:n})),[{provide:G,useFactory:t},{provide:rn,multi:!0,useFactory:()=>{let r=p(Lv,{optional:!0});return()=>r.initialize()}},{provide:rn,multi:!0,useFactory:()=>{let r=p(Vv);return()=>{r.initialize()}}},e===!0?{provide:Md,useValue:!0}:[],{provide:Sd,useValue:n??jl}]}function Fd(t){let e=t?.ignoreChangesOutsideZone,n=t?.scheduleInRootZone,r=kd({ngZoneFactory:()=>{let o=Ld(t);return o.scheduleInRootZone=n,o.shouldCoalesceEventChangeDetection&&Oo("NgZone_CoalesceEvent"),new G(o)},ignoreChangesOutsideZone:e,scheduleInRootZone:n});return ln([{provide:jv,useValue:!0},{provide:ia,useValue:!1},r])}function Ld(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var Vv=(()=>{let e=class e{constructor(){this.subscription=new W,this.initialized=!1,this.zone=p(G),this.pendingTasks=p(ct)}initialize(){if(this.initialized)return;this.initialized=!0;let r=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(r=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{G.assertNotInAngularZone(),queueMicrotask(()=>{r!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(r),r=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{G.assertInAngularZone(),r??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Uv=(()=>{let e=class e{constructor(){this.appRef=p(dt),this.taskService=p(ct),this.ngZone=p(G),this.zonelessEnabled=p(ia),this.disableScheduling=p(Md,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new W,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(co):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(p(Sd,{optional:!0})??!1),this.cancelScheduledCallback=null,this.shouldRefreshViews=!1,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,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 us||!this.zoneIsDefined)}notify(r){if(!this.zonelessEnabled&&r===5)return;switch(r){case 3:case 2:case 0:case 4:case 5:case 1:{this.shouldRefreshViews=!0;break}case 8:case 7:case 6:case 9:default:}if(!this.shouldScheduleTick())return;let o=this.useMicrotaskScheduler?fu:Ul;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick(this.shouldRefreshViews))):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick(this.shouldRefreshViews)))}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(co+this.angularZoneId))}tick(r){if(this.runningTick||this.appRef.destroyed)return;let o=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick(r)},void 0,this.schedulerTickApplyArgs)}catch(i){throw this.taskService.remove(o),i}finally{this.cleanup()}this.useMicrotaskScheduler=!0,fu(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(o)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.shouldRefreshViews=!1,this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let r=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(r)}}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function $v(){return typeof $localize<"u"&&$localize.locale||go}var la=new E("",{providedIn:"root",factory:()=>p(la,_.Optional|_.SkipSelf)||$v()});var jd=new E("");function Hr(t){return!!t.platformInjector}function Bv(t){let e=Hr(t)?t.r3Injector:t.moduleRef.injector,n=e.get(G);return n.run(()=>{Hr(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let r=e.get(st,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),Hr(t)){let i=()=>e.destroy(),s=t.platformInjector.get(jd);s.add(i),e.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else t.moduleRef.onDestroy(()=>{Wr(t.allPlatformModules,t.moduleRef),o.unsubscribe()});return kv(r,n,()=>{let i=e.get(Pd);return i.runInitializers(),i.donePromise.then(()=>{let s=e.get(la,go);if(Sv(s||go),Hr(t)){let a=e.get(dt);return t.rootComponent!==void 0&&a.bootstrap(t.rootComponent),a}else return Hv(t.moduleRef,t.allPlatformModules),t.moduleRef})})})}function Hv(t,e){let n=t.injector.get(dt);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(t.instance.ngDoBootstrap)t.instance.ngDoBootstrap(n);else throw new y(-403,!1);e.push(t)}var Zr=null;function zv(t=[],e){return _t.create({name:e,providers:[{provide:Eo,useValue:"platform"},{provide:jd,useValue:new Set([()=>Zr=null])},...t]})}function Gv(t=[]){if(Zr)return Zr;let e=zv(t);return Zr=e,Rv(),qv(e),e}function qv(t){t.get(Ws,null)?.forEach(n=>n())}var qn=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=Wv;let t=e;return t})();function Wv(t){return Zv(Ne(),X(),(t&16)===16)}function Zv(t,e,n){if(Io(t)&&!n){let r=Rt(t.index,e);return new At(r,r)}else if(t.type&175){let r=e[Le];return new At(r,e)}return null}var Is=class{constructor(){}supports(e){return _d(e)}create(e){return new bs(e)}},Yv=(t,e)=>e,bs=class{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||Yv}forEachItem(e){let n;for(n=this._itHead;n!==null;n=n._next)e(n)}forEachOperation(e){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,n,r,o){let i;return e===null?i=this._itTail:(i=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),e!==null?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._reinsertAfter(e,i,o)):(e=this._linkedRecords===null?null:this._linkedRecords.get(r,o),e!==null?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._moveAfter(e,i,o)):e=this._addAfter(new Ms(n,r),i,o)),e}_verifyReinsertion(e,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?e=this._reinsertAfter(i,e._prev,o):e.currentIndex!=o&&(e.currentIndex=o,this._addToMoves(e,o)),e}_truncate(e){for(;e!==null;){let n=e._next;this._addToRemovals(this._unlink(e)),e=n}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let o=e._prevRemoved,i=e._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(e,n,r),this._addToMoves(e,r),e}_moveAfter(e,n,r){return this._unlink(e),this._insertAfter(e,n,r),this._addToMoves(e,r),e}_addAfter(e,n,r){return this._insertAfter(e,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,n,r){let o=n===null?this._itHead:n._next;return e._next=o,e._prev=n,o===null?this._itTail=e:o._prev=e,n===null?this._itHead=e:n._next=e,this._linkedRecords===null&&(this._linkedRecords=new mo),this._linkedRecords.put(e),e.currentIndex=r,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let n=e._prev,r=e._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,e}_addToMoves(e,n){return e.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new mo),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,n){return e.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},Ms=class{constructor(e,n){this.item=e,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},Ss=class{constructor(){this._head=null,this._tail=null}add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,e))return r;return null}remove(e){let n=e._prevDup,r=e._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},mo=class{constructor(){this.map=new Map}put(e){let n=e.trackById,r=this.map.get(n);r||(r=new Ss,this.map.set(n,r)),r.add(e)}get(e,n){let r=e,o=this.map.get(r);return o?o.get(e,n):null}remove(e){let n=e.trackById;return this.map.get(n).remove(e)&&this.map.delete(n),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function xu(t,e,n){let r=t.previousIndex;if(r===null)return r;let o=0;return n&&r{let e=class e{constructor(r){this.factories=r}static create(r,o){if(o!=null){let i=o.factories.slice();r=r.concat(i)}return new e(r)}static extend(r){return{provide:e,useFactory:o=>e.create(r,o||_u()),deps:[[e,new $u,new xs]]}}find(r){let o=this.factories.find(i=>i.supports(r));if(o!=null)return o;throw new y(901,!1)}};e.\u0275prov=D({token:e,providedIn:"root",factory:_u});let t=e;return t})();function Vd(t){try{let{rootComponent:e,appProviders:n,platformProviders:r}=t,o=Gv(r),i=[kd({}),{provide:Pn,useExisting:Uv},...n||[]],s=new po({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1});return Bv({r3Injector:s.injector,platformInjector:o,rootComponent:e})}catch(e){return Promise.reject(e)}}var Ud=new E("");var qd=null;function fn(){return qd}function Wd(t){qd??=t}var Fo=class{};var oe=new E(""),Zd=(()=>{let e=class e{historyGo(r){throw new Error("")}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:()=>p(ty),providedIn:"platform"});let t=e;return t})();var ty=(()=>{let e=class e extends Zd{constructor(){super(),this._doc=p(oe),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return fn().getBaseHref(this._doc)}onPopState(r){let o=fn().getGlobalEventTarget(this._doc,"window");return o.addEventListener("popstate",r,!1),()=>o.removeEventListener("popstate",r)}onHashChange(r){let o=fn().getGlobalEventTarget(this._doc,"window");return o.addEventListener("hashchange",r,!1),()=>o.removeEventListener("hashchange",r)}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(r){this._location.pathname=r}pushState(r,o,i){this._history.pushState(r,o,i)}replaceState(r,o,i){this._history.replaceState(r,o,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(r=0){this._history.go(r)}getState(){return this._history.state}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:()=>new e,providedIn:"platform"});let t=e;return t})();function Yd(t,e){if(t.length==0)return e;if(e.length==0)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,n==2?t+e.substring(1):n==1?t+e:t+"/"+e}function $d(t){let e=t.match(/#|\?|$/),n=e&&e.index||t.length,r=n-(t[n-1]==="/"?1:0);return t.slice(0,r)+t.slice(n)}function kt(t){return t&&t[0]!=="?"?"?"+t:t}var Lo=(()=>{let e=class e{historyGo(r){throw new Error("")}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:()=>p(Qd),providedIn:"root"});let t=e;return t})(),ny=new E(""),Qd=(()=>{let e=class e extends Lo{constructor(r,o){super(),this._platformLocation=r,this._removeListenerFns=[],this._baseHref=o??this._platformLocation.getBaseHrefFromDOM()??p(oe).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(r){this._removeListenerFns.push(this._platformLocation.onPopState(r),this._platformLocation.onHashChange(r))}getBaseHref(){return this._baseHref}prepareExternalUrl(r){return Yd(this._baseHref,r)}path(r=!1){let o=this._platformLocation.pathname+kt(this._platformLocation.search),i=this._platformLocation.hash;return i&&r?`${o}${i}`:o}pushState(r,o,i,s){let a=this.prepareExternalUrl(i+kt(s));this._platformLocation.pushState(r,o,a)}replaceState(r,o,i,s){let a=this.prepareExternalUrl(i+kt(s));this._platformLocation.replaceState(r,o,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(r=0){this._platformLocation.historyGo?.(r)}};e.\u0275fac=function(o){return new(o||e)(M(Zd),M(ny,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Wn=(()=>{let e=class e{constructor(r){this._subject=new ne,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=r;let o=this._locationStrategy.getBaseHref();this._basePath=iy($d(Bd(o))),this._locationStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(r=!1){return this.normalize(this._locationStrategy.path(r))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(r,o=""){return this.path()==this.normalize(r+kt(o))}normalize(r){return e.stripTrailingSlash(oy(this._basePath,Bd(r)))}prepareExternalUrl(r){return r&&r[0]!=="/"&&(r="/"+r),this._locationStrategy.prepareExternalUrl(r)}go(r,o="",i=null){this._locationStrategy.pushState(i,"",r,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(r+kt(o)),i)}replaceState(r,o="",i=null){this._locationStrategy.replaceState(i,"",r,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(r+kt(o)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(r=0){this._locationStrategy.historyGo?.(r)}onUrlChange(r){return this._urlChangeListeners.push(r),this._urlChangeSubscription??=this.subscribe(o=>{this._notifyUrlChangeListeners(o.url,o.state)}),()=>{let o=this._urlChangeListeners.indexOf(r);this._urlChangeListeners.splice(o,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(r="",o){this._urlChangeListeners.forEach(i=>i(r,o))}subscribe(r,o,i){return this._subject.subscribe({next:r,error:o,complete:i})}};e.normalizeQueryParams=kt,e.joinWithSlash=Yd,e.stripTrailingSlash=$d,e.\u0275fac=function(o){return new(o||e)(M(Lo))},e.\u0275prov=D({token:e,factory:()=>ry(),providedIn:"root"});let t=e;return t})();function ry(){return new Wn(M(Lo))}function oy(t,e){if(!t||!e.startsWith(t))return e;let n=e.substring(t.length);return n===""||["/",";","?","#"].includes(n[0])?n:e}function Bd(t){return t.replace(/\/index.html$/,"")}function iy(t){if(new RegExp("^(https?:)?//").test(t)){let[,n]=t.split(/\/\/[^\/]+/);return n}return t}function jo(t,e){e=encodeURIComponent(e);for(let n of t.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===e)return decodeURIComponent(i)}return null}var ha=class{constructor(e,n,r,o){this.$implicit=e,this.ngForOf=n,this.index=r,this.count=o}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},Kd=(()=>{let e=class e{set ngForOf(r){this._ngForOf=r,this._ngForOfDirty=!0}set ngForTrackBy(r){this._trackByFn=r}get ngForTrackBy(){return this._trackByFn}constructor(r,o,i){this._viewContainer=r,this._template=o,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(r){r&&(this._template=r)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let r=this._ngForOf;if(!this._differ&&r)if(0)try{}catch{}else this._differ=this._differs.find(r).create(this.ngForTrackBy)}if(this._differ){let r=this._differ.diff(this._ngForOf);r&&this._applyChanges(r)}}_applyChanges(r){let o=this._viewContainer;r.forEachOperation((i,s,a)=>{if(i.previousIndex==null)o.createEmbeddedView(this._template,new ha(i.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)o.remove(s===null?void 0:s);else if(s!==null){let c=o.get(s);o.move(c,a),Hd(c,i)}});for(let i=0,s=o.length;i{let s=o.get(i.currentIndex);Hd(s,i)})}static ngTemplateContextGuard(r,o){return!0}};e.\u0275fac=function(o){return new(o||e)(Ze(Hn),Ze(oa),Ze(da))},e.\u0275dir=wo({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let t=e;return t})();function Hd(t,e){t.context.$implicit=e.item}var pa=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=Vn({type:e}),e.\u0275inj=jn({});let t=e;return t})(),Jd="browser",sy="server";function Vo(t){return t===sy}var hn=class{};var Yn=class{},$o=class{},Ye=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(` +`).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=o.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((n,r)=>{this.setHeaderEntries(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let n=this.headers.get(e.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,n){return this.clone({name:e,value:n,op:"a"})}set(e,n){return this.clone({name:e,value:n,op:"s"})}delete(e,n){return this.clone({name:e,value:n,op:"d"})}maybeSetNormalizedName(e,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(n=>{this.headers.set(n,e.headers.get(n)),this.normalizedNames.set(n,e.normalizedNames.get(n))})}clone(e){let n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n}applyUpdate(e){let n=e.name.toLowerCase();switch(e.op){case"a":case"s":let r=e.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(e.name,n);let o=(e.op==="a"?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":let i=e.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}}setHeaderEntries(e,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=e.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(e,o)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>e(this.normalizedNames.get(n),this.headers.get(n)))}};var ma=class{encodeKey(e){return ef(e)}encodeValue(e){return ef(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function ay(t,e){let n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[e.decodeKey(o),""]:[e.decodeKey(o.slice(0,i)),e.decodeValue(o.slice(i+1))],c=n.get(s)||[];c.push(a),n.set(s,c)}),n}var cy=/%(\d[a-f0-9])/gi,uy={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ef(t){return encodeURIComponent(t).replace(cy,(e,n)=>uy[n]??e)}function Uo(t){return`${t}`}var pt=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new ma,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=ay(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(n=>{let r=e.fromObject[n],o=Array.isArray(r)?r.map(Uo):[Uo(r)];this.map.set(n,o)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let n=this.map.get(e);return n?n[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,n){return this.clone({param:e,value:n,op:"a"})}appendAll(e){let n=[];return Object.keys(e).forEach(r=>{let o=e[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(e,n){return this.clone({param:e,value:n,op:"s"})}delete(e,n){return this.clone({param:e,value:n,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let n=this.encoder.encodeKey(e);return this.map.get(e).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(e),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let n=(e.op==="a"?this.map.get(e.param):void 0)||[];n.push(Uo(e.value)),this.map.set(e.param,n);break;case"d":if(e.value!==void 0){let r=this.map.get(e.param)||[],o=r.indexOf(Uo(e.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(e.param,r):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var va=class{constructor(){this.map=new Map}set(e,n){return this.map.set(e,n),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function ly(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function tf(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function nf(t){return typeof Blob<"u"&&t instanceof Blob}function rf(t){return typeof FormData<"u"&&t instanceof FormData}function dy(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var Zn=class t{constructor(e,n,r,o){this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let i;if(ly(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 Ye,this.context??=new va,!this.params)this.params=new pt,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(f,e.setHeaders[f]),u)),e.setParams&&(l=Object.keys(e.setParams).reduce((h,f)=>h.set(f,e.setParams[f]),l)),new t(n,r,s,{params:l,headers:u,context:d,reportProgress:c,responseType:o,withCredentials:a,transferCache:i})}},gt=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(gt||{}),Qn=class{constructor(e,n=200,r="OK"){this.headers=e.headers||new Ye,this.status=e.status!==void 0?e.status:n,this.statusText=e.statusText||r,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},Bo=class t extends Qn{constructor(e={}){super(e),this.type=gt.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Kn=class t extends Qn{constructor(e={}){super(e),this.type=gt.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},ht=class extends Qn{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},cf=200,fy=204;function ga(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var wa=(()=>{let e=class e{constructor(r){this.handler=r}request(r,o,i={}){let s;if(r instanceof Zn)s=r;else{let u;i.headers instanceof Ye?u=i.headers:u=new Ye(i.headers);let l;i.params&&(i.params instanceof pt?l=i.params:l=new pt({fromObject:i.params})),s=new Zn(r,o,i.body!==void 0?i.body:null,{headers:u,context:i.context,params:l,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache})}let a=I(s).pipe(et(u=>this.handler.handle(u)));if(r instanceof Zn||i.observe==="events")return a;let c=a.pipe(de(u=>u instanceof Kn));switch(i.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return c.pipe(x(u=>{if(u.body!==null&&!(u.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return u.body}));case"blob":return c.pipe(x(u=>{if(u.body!==null&&!(u.body instanceof Blob))throw new Error("Response is not a Blob.");return u.body}));case"text":return c.pipe(x(u=>{if(u.body!==null&&typeof u.body!="string")throw new Error("Response is not a string.");return u.body}));case"json":default:return c.pipe(x(u=>u.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(r,o={}){return this.request("DELETE",r,o)}get(r,o={}){return this.request("GET",r,o)}head(r,o={}){return this.request("HEAD",r,o)}jsonp(r,o){return this.request("JSONP",r,{params:new pt().append(o,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(r,o={}){return this.request("OPTIONS",r,o)}patch(r,o,i={}){return this.request("PATCH",r,ga(i,o))}post(r,o,i={}){return this.request("POST",r,ga(i,o))}put(r,o,i={}){return this.request("PUT",r,ga(i,o))}};e.\u0275fac=function(o){return new(o||e)(M(Yn))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),hy=/^\)\]\}',?\n/,py="X-Request-URL";function of(t){if(t.url)return t.url;let e=py.toLocaleLowerCase();return t.headers.get(e)}var gy=(()=>{let e=class e{constructor(){this.fetchImpl=p(ya,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=p(G)}handle(r){return new F(o=>{let i=new AbortController;return this.doRequest(r,i.signal,o).then(Da,s=>o.error(new ht({error:s}))),()=>i.abort()})}doRequest(r,o,i){return Er(this,null,function*(){let s=this.createRequestInit(r),a;try{let g=this.ngZone.runOutsideAngular(()=>this.fetchImpl(r.urlWithParams,m({signal:o},s)));my(g),i.next({type:gt.Sent}),a=yield g}catch(g){i.error(new ht({error:g,status:g.status??0,statusText:g.statusText,url:r.urlWithParams,headers:g.headers}));return}let c=new Ye(a.headers),u=a.statusText,l=of(a)??r.urlWithParams,d=a.status,h=null;if(r.reportProgress&&i.next(new Bo({headers:c,status:d,statusText:u,url:l})),a.body){let g=a.headers.get("content-length"),C=[],v=a.body.getReader(),w=0,q,B,U=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>Er(this,null,function*(){for(;;){let{done:Z,value:ve}=yield v.read();if(Z)break;if(C.push(ve),w+=ve.length,r.reportProgress){B=r.responseType==="text"?(B??"")+(q??=new TextDecoder).decode(ve,{stream:!0}):void 0;let Ut=()=>i.next({type:gt.DownloadProgress,total:g?+g:void 0,loaded:w,partialText:B});U?U.run(Ut):Ut()}}}));let me=this.concatChunks(C,w);try{let Z=a.headers.get("Content-Type")??"";h=this.parseBody(r,me,Z)}catch(Z){i.error(new ht({error:Z,headers:new Ye(a.headers),status:a.status,statusText:a.statusText,url:of(a)??r.urlWithParams}));return}}d===0&&(d=h?cf:0),d>=200&&d<300?(i.next(new Kn({body:h,headers:c,status:d,statusText:u,url:l})),i.complete()):i.error(new ht({error:h,headers:c,status:d,statusText:u,url:l}))})}parseBody(r,o,i){switch(r.responseType){case"json":let s=new TextDecoder().decode(o).replace(hy,"");return s===""?null:JSON.parse(s);case"text":return new TextDecoder().decode(o);case"blob":return new Blob([o],{type:i});case"arraybuffer":return o.buffer}}createRequestInit(r){let o={},i=r.withCredentials?"include":void 0;if(r.headers.forEach((s,a)=>o[s]=a.join(",")),r.headers.has("Accept")||(o.Accept="application/json, text/plain, */*"),!r.headers.has("Content-Type")){let s=r.detectContentTypeHeader();s!==null&&(o["Content-Type"]=s)}return{body:r.serializeBody(),method:r.method,headers:o,credentials:i}}concatChunks(r,o){let i=new Uint8Array(o),s=0;for(let a of r)i.set(a,s),s+=a.length;return i}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),ya=class{};function Da(){}function my(t){t.then(Da,Da)}function vy(t,e){return e(t)}function yy(t,e,n){return(r,o)=>Te(n,()=>e(r,i=>t(i,o)))}var uf=new E(""),Dy=new E(""),wy=new E("",{providedIn:"root",factory:()=>!0});var sf=(()=>{let e=class e extends Yn{constructor(r,o){super(),this.backend=r,this.injector=o,this.chain=null,this.pendingTasks=p(ct),this.contributeToStability=p(wy)}handle(r){if(this.chain===null){let o=Array.from(new Set([...this.injector.get(uf),...this.injector.get(Dy,[])]));this.chain=o.reduceRight((i,s)=>yy(i,s,this.injector),vy)}if(this.contributeToStability){let o=this.pendingTasks.add();return this.chain(r,i=>this.backend.handle(i)).pipe(Et(()=>this.pendingTasks.remove(o)))}else return this.chain(r,o=>this.backend.handle(o))}};e.\u0275fac=function(o){return new(o||e)(M($o),M(se))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();var Ey=/^\)\]\}',?\n/;function Cy(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var af=(()=>{let e=class e{constructor(r){this.xhrFactory=r}handle(r){if(r.method==="JSONP")throw new y(-2800,!1);let o=this.xhrFactory;return(o.\u0275loadImpl?z(o.\u0275loadImpl()):I(null)).pipe(fe(()=>new F(s=>{let a=o.build();if(a.open(r.method,r.urlWithParams),r.withCredentials&&(a.withCredentials=!0),r.headers.forEach((v,w)=>a.setRequestHeader(v,w.join(","))),r.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!r.headers.has("Content-Type")){let v=r.detectContentTypeHeader();v!==null&&a.setRequestHeader("Content-Type",v)}if(r.responseType){let v=r.responseType.toLowerCase();a.responseType=v!=="json"?v:"text"}let c=r.serializeBody(),u=null,l=()=>{if(u!==null)return u;let v=a.statusText||"OK",w=new Ye(a.getAllResponseHeaders()),q=Cy(a)||r.url;return u=new Bo({headers:w,status:a.status,statusText:v,url:q}),u},d=()=>{let{headers:v,status:w,statusText:q,url:B}=l(),U=null;w!==fy&&(U=typeof a.response>"u"?a.responseText:a.response),w===0&&(w=U?cf:0);let me=w>=200&&w<300;if(r.responseType==="json"&&typeof U=="string"){let Z=U;U=U.replace(Ey,"");try{U=U!==""?JSON.parse(U):null}catch(ve){U=Z,me&&(me=!1,U={error:ve,text:U})}}me?(s.next(new Kn({body:U,headers:v,status:w,statusText:q,url:B||void 0})),s.complete()):s.error(new ht({error:U,headers:v,status:w,statusText:q,url:B||void 0}))},h=v=>{let{url:w}=l(),q=new ht({error:v,status:a.status||0,statusText:a.statusText||"Unknown Error",url:w||void 0});s.error(q)},f=!1,g=v=>{f||(s.next(l()),f=!0);let w={type:gt.DownloadProgress,loaded:v.loaded};v.lengthComputable&&(w.total=v.total),r.responseType==="text"&&a.responseText&&(w.partialText=a.responseText),s.next(w)},C=v=>{let w={type:gt.UploadProgress,loaded:v.loaded};v.lengthComputable&&(w.total=v.total),s.next(w)};return a.addEventListener("load",d),a.addEventListener("error",h),a.addEventListener("timeout",h),a.addEventListener("abort",h),r.reportProgress&&(a.addEventListener("progress",g),c!==null&&a.upload&&a.upload.addEventListener("progress",C)),a.send(c),s.next({type:gt.Sent}),()=>{a.removeEventListener("error",h),a.removeEventListener("abort",h),a.removeEventListener("load",d),a.removeEventListener("timeout",h),r.reportProgress&&(a.removeEventListener("progress",g),c!==null&&a.upload&&a.upload.removeEventListener("progress",C)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(o){return new(o||e)(M(hn))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),lf=new E(""),Iy="XSRF-TOKEN",by=new E("",{providedIn:"root",factory:()=>Iy}),My="X-XSRF-TOKEN",Sy=new E("",{providedIn:"root",factory:()=>My}),Ho=class{},Ty=(()=>{let e=class e{constructor(r,o,i){this.doc=r,this.platform=o,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let r=this.doc.cookie||"";return r!==this.lastCookieString&&(this.parseCount++,this.lastToken=jo(r,this.cookieName),this.lastCookieString=r),this.lastToken}};e.\u0275fac=function(o){return new(o||e)(M(oe),M(ut),M(by))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function xy(t,e){let n=t.url.toLowerCase();if(!p(lf)||t.method==="GET"||t.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return e(t);let r=p(Ho).getToken(),o=p(Sy);return r!=null&&!t.headers.has(o)&&(t=t.clone({headers:t.headers.set(o,r)})),e(t)}function df(...t){let e=[wa,af,sf,{provide:Yn,useExisting:sf},{provide:$o,useFactory:()=>p(gy,{optional:!0})??p(af)},{provide:uf,useValue:xy,multi:!0},{provide:lf,useValue:!0},{provide:Ho,useClass:Ty}];for(let n of t)e.push(...n.\u0275providers);return ln(e)}var Ia=class extends Fo{constructor(){super(...arguments),this.supportsDOMEvents=!0}},ba=class t extends Ia{static makeCurrent(){Wd(new t)}onAndCancel(e,n,r){return e.addEventListener(n,r),()=>{e.removeEventListener(n,r)}}dispatchEvent(e,n){e.dispatchEvent(n)}remove(e){e.remove()}createElement(e,n){return n=n||this.getDefaultDocument(),n.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,n){return n==="window"?window:n==="document"?e:n==="body"?e.body:null}getBaseHref(e){let n=Ny();return n==null?null:Ay(n)}resetBaseElement(){Jn=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return jo(document.cookie,e)}},Jn=null;function Ny(){return Jn=Jn||document.querySelector("base"),Jn?Jn.getAttribute("href"):null}function Ay(t){return new URL(t,document.baseURI).pathname}var Ry=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),zo=new E(""),gf=(()=>{let e=class e{constructor(r,o){this._zone=o,this._eventNameToPlugin=new Map,r.forEach(i=>{i.manager=this}),this._plugins=r.slice().reverse()}addEventListener(r,o,i){return this._findPluginFor(o).addEventListener(r,o,i)}getZone(){return this._zone}_findPluginFor(r){let o=this._eventNameToPlugin.get(r);if(o)return o;if(o=this._plugins.find(s=>s.supports(r)),!o)throw new y(5101,!1);return this._eventNameToPlugin.set(r,o),o}};e.\u0275fac=function(o){return new(o||e)(M(zo),M(G))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Xn=class{constructor(e){this._doc=e}},Ea="ng-app-id",mf=(()=>{let e=class e{constructor(r,o,i,s={}){this.doc=r,this.appId=o,this.nonce=i,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Vo(s),this.resetHostNodes()}addStyles(r){for(let o of r)this.changeUsageCount(o,1)===1&&this.onStyleAdded(o)}removeStyles(r){for(let o of r)this.changeUsageCount(o,-1)<=0&&this.onStyleRemoved(o)}ngOnDestroy(){let r=this.styleNodesInDOM;r&&(r.forEach(o=>o.remove()),r.clear());for(let o of this.getAllStyles())this.onStyleRemoved(o);this.resetHostNodes()}addHost(r){this.hostNodes.add(r);for(let o of this.getAllStyles())this.addStyleToHost(r,o)}removeHost(r){this.hostNodes.delete(r)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(r){for(let o of this.hostNodes)this.addStyleToHost(o,r)}onStyleRemoved(r){let o=this.styleRef;o.get(r)?.elements?.forEach(i=>i.remove()),o.delete(r)}collectServerRenderedStyles(){let r=this.doc.head?.querySelectorAll(`style[${Ea}="${this.appId}"]`);if(r?.length){let o=new Map;return r.forEach(i=>{i.textContent!=null&&o.set(i.textContent,i)}),o}return null}changeUsageCount(r,o){let i=this.styleRef;if(i.has(r)){let s=i.get(r);return s.usage+=o,s.usage}return i.set(r,{usage:o,elements:[]}),o}getStyleElement(r,o){let i=this.styleNodesInDOM,s=i?.get(o);if(s?.parentNode===r)return i.delete(o),s.removeAttribute(Ea),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=o,this.platformIsServer&&a.setAttribute(Ea,this.appId),r.appendChild(a),a}}addStyleToHost(r,o){let i=this.getStyleElement(r,o),s=this.styleRef,a=s.get(o)?.elements;a?a.push(i):s.set(o,{elements:[i],usage:1})}resetHostNodes(){let r=this.hostNodes;r.clear(),r.add(this.doc.head)}};e.\u0275fac=function(o){return new(o||e)(M(oe),M(qs),M(Zs,8),M(ut))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Ca={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"},Sa=/%COMP%/g,vf="%COMP%",Oy=`_nghost-${vf}`,Py=`_ngcontent-${vf}`,ky=!0,Fy=new E("",{providedIn:"root",factory:()=>ky});function Ly(t){return Py.replace(Sa,t)}function jy(t){return Oy.replace(Sa,t)}function yf(t,e){return e.map(n=>n.replace(Sa,t))}var ff=(()=>{let e=class e{constructor(r,o,i,s,a,c,u,l=null){this.eventManager=r,this.sharedStylesHost=o,this.appId=i,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=c,this.ngZone=u,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=Vo(c),this.defaultRenderer=new er(r,a,u,this.platformIsServer)}createRenderer(r,o){if(!r||!o)return this.defaultRenderer;this.platformIsServer&&o.encapsulation===Fe.ShadowDom&&(o=H(m({},o),{encapsulation:Fe.Emulated}));let i=this.getOrCreateRenderer(r,o);return i instanceof Go?i.applyToHost(r):i instanceof tr&&i.applyStyles(),i}getOrCreateRenderer(r,o){let i=this.rendererByCompId,s=i.get(o.id);if(!s){let a=this.doc,c=this.ngZone,u=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,h=this.platformIsServer;switch(o.encapsulation){case Fe.Emulated:s=new Go(u,l,o,this.appId,d,a,c,h);break;case Fe.ShadowDom:return new Ma(u,l,r,o,a,c,this.nonce,h);default:s=new tr(u,l,o,d,a,c,h);break}i.set(o.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(o){return new(o||e)(M(gf),M(mf),M(qs),M(Fy),M(oe),M(ut),M(G),M(Zs))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),er=class{constructor(e,n,r,o){this.eventManager=e,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,n){return n?this.doc.createElementNS(Ca[n]||n,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,n){(hf(e)?e.content:e).appendChild(n)}insertBefore(e,n,r){e&&(hf(e)?e.content:e).insertBefore(n,r)}removeChild(e,n){n.remove()}selectRootElement(e,n){let r=typeof e=="string"?this.doc.querySelector(e):e;if(!r)throw new y(-5104,!1);return n||(r.textContent=""),r}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,n,r,o){if(o){n=o+":"+n;let i=Ca[o];i?e.setAttributeNS(i,n,r):e.setAttribute(n,r)}else e.setAttribute(n,r)}removeAttribute(e,n,r){if(r){let o=Ca[r];o?e.removeAttributeNS(o,n):e.removeAttribute(`${r}:${n}`)}else e.removeAttribute(n)}addClass(e,n){e.classList.add(n)}removeClass(e,n){e.classList.remove(n)}setStyle(e,n,r,o){o&(Pt.DashCase|Pt.Important)?e.style.setProperty(n,r,o&Pt.Important?"important":""):e.style[n]=r}removeStyle(e,n,r){r&Pt.DashCase?e.style.removeProperty(n):e.style[n]=""}setProperty(e,n,r){e!=null&&(e[n]=r)}setValue(e,n){e.nodeValue=n}listen(e,n,r){if(typeof e=="string"&&(e=fn().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${n}`);return this.eventManager.addEventListener(e,n,this.decoratePreventDefault(r))}decoratePreventDefault(e){return n=>{if(n==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(n)):e(n))===!1&&n.preventDefault()}}};function hf(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Ma=class extends er{constructor(e,n,r,o,i,s,a,c){super(e,i,s,c),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=yf(o.id,o.styles);for(let l of u){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,n){return super.appendChild(this.nodeOrShadowRoot(e),n)}insertBefore(e,n,r){return super.insertBefore(this.nodeOrShadowRoot(e),n,r)}removeChild(e,n){return super.removeChild(null,n)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},tr=class extends er{constructor(e,n,r,o,i,s,a,c){super(e,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o,this.styles=c?yf(c,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Go=class extends tr{constructor(e,n,r,o,i,s,a,c){let u=o+"-"+r.id;super(e,n,r,i,s,a,c,u),this.contentAttr=Ly(u),this.hostAttr=jy(u)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,n){let r=super.createElement(e,n);return super.setAttribute(r,this.contentAttr,""),r}},Vy=(()=>{let e=class e extends Xn{constructor(r){super(r)}supports(r){return!0}addEventListener(r,o,i){return r.addEventListener(o,i,!1),()=>this.removeEventListener(r,o,i)}removeEventListener(r,o,i){return r.removeEventListener(o,i)}};e.\u0275fac=function(o){return new(o||e)(M(oe))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Uy=(()=>{let e=class e extends Xn{constructor(r){super(r),this.delegate=p(Ud,{optional:!0})}supports(r){return this.delegate?this.delegate.supports(r):!1}addEventListener(r,o,i){return this.delegate.addEventListener(r,o,i)}removeEventListener(r,o,i){return this.delegate.removeEventListener(r,o,i)}};e.\u0275fac=function(o){return new(o||e)(M(oe))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),pf=["alt","control","meta","shift"],$y={"\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"},By={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},Hy=(()=>{let e=class e extends Xn{constructor(r){super(r)}supports(r){return e.parseEventName(r)!=null}addEventListener(r,o,i){let s=e.parseEventName(o),a=e.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>fn().onAndCancel(r,s.domEventName,a))}static parseEventName(r){let o=r.toLowerCase().split("."),i=o.shift();if(o.length===0||!(i==="keydown"||i==="keyup"))return null;let s=e._normalizeKey(o.pop()),a="",c=o.indexOf("code");if(c>-1&&(o.splice(c,1),a="code."),pf.forEach(l=>{let d=o.indexOf(l);d>-1&&(o.splice(d,1),a+=l+".")}),a+=s,o.length!=0||s.length===0)return null;let u={};return u.domEventName=i,u.fullKey=a,u}static matchEventFullKeyCode(r,o){let i=$y[r.key]||r.key,s="";return o.indexOf("code.")>-1&&(i=r.code,s="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),pf.forEach(a=>{if(a!==i){let c=By[a];c(r)&&(s+=a+".")}}),s+=i,s===o)}static eventCallback(r,o,i){return s=>{e.matchEventFullKeyCode(s,r)&&i.runGuarded(()=>o(s))}}static _normalizeKey(r){return r==="esc"?"escape":r}};e.\u0275fac=function(o){return new(o||e)(M(oe))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function Df(t,e){return Vd(m({rootComponent:t},zy(e)))}function zy(t){return{appProviders:[...Yy,...t?.providers??[]],platformProviders:Zy}}function Gy(){ba.makeCurrent()}function qy(){return new st}function Wy(){return Wl(document),document}var Zy=[{provide:ut,useValue:Jd},{provide:Ws,useValue:Gy,multi:!0},{provide:oe,useFactory:Wy,deps:[]}];var Yy=[{provide:Eo,useValue:"root"},{provide:st,useFactory:qy,deps:[]},{provide:zo,useClass:Vy,multi:!0,deps:[oe,G,ut]},{provide:zo,useClass:Hy,multi:!0,deps:[oe]},{provide:zo,useClass:Uy,multi:!0},ff,mf,gf,{provide:un,useExisting:ff},{provide:hn,useClass:Ry,deps:[]},[]];var wf=(()=>{let e=class e{constructor(r){this._doc=r}getTitle(){return this._doc.title}setTitle(r){this._doc.title=r||""}};e.\u0275fac=function(o){return new(o||e)(M(oe))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var T="primary",yr=Symbol("RouteTitle"),Aa=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let n=this.params[e];return Array.isArray(n)?n[0]:n}return null}getAll(e){if(this.has(e)){let n=this.params[e];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}};function Dn(t){return new Aa(t)}function Ky(t,e,n){let r=n.path.split("/");if(r.length>t.length||n.pathMatch==="full"&&(e.hasChildren()||r.lengthr[i]===o)}else return t===e}function _f(t){return t.length>0?t[t.length-1]:null}function vt(t){return Ni(t)?t:Gn(t)?z(Promise.resolve(t)):I(t)}var Xy={exact:Af,subset:Rf},Nf={exact:eD,subset:tD,ignored:()=>!0};function Ef(t,e,n){return Xy[n.paths](t.root,e.root,n.matrixParams)&&Nf[n.queryParams](t.queryParams,e.queryParams)&&!(n.fragment==="exact"&&t.fragment!==e.fragment)}function eD(t,e){return $e(t,e)}function Af(t,e,n){if(!Lt(t.segments,e.segments)||!Zo(t.segments,e.segments,n)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let r in e.children)if(!t.children[r]||!Af(t.children[r],e.children[r],n))return!1;return!0}function tD(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>xf(t[n],e[n]))}function Rf(t,e,n){return Of(t,e,e.segments,n)}function Of(t,e,n,r){if(t.segments.length>n.length){let o=t.segments.slice(0,n.length);return!(!Lt(o,n)||e.hasChildren()||!Zo(o,n,r))}else if(t.segments.length===n.length){if(!Lt(t.segments,n)||!Zo(t.segments,n,r))return!1;for(let o in e.children)if(!t.children[o]||!Rf(t.children[o],e.children[o],r))return!1;return!0}else{let o=n.slice(0,t.segments.length),i=n.slice(t.segments.length);return!Lt(t.segments,o)||!Zo(t.segments,o,r)||!t.children[T]?!1:Of(t.children[T],e,i,r)}}function Zo(t,e,n){return e.every((r,o)=>Nf[n](t[o].parameters,r.parameters))}var Ke=class{constructor(e=new V([],{}),n={},r=null){this.root=e,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=Dn(this.queryParams),this._queryParamMap}toString(){return oD.serialize(this)}},V=class{constructor(e,n){this.segments=e,this.children=n,this.parent=null,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Yo(this)}},Ft=class{constructor(e,n){this.path=e,this.parameters=n}get parameterMap(){return this._parameterMap??=Dn(this.parameters),this._parameterMap}toString(){return kf(this)}};function nD(t,e){return Lt(t,e)&&t.every((n,r)=>$e(n.parameters,e[r].parameters))}function Lt(t,e){return t.length!==e.length?!1:t.every((n,r)=>n.path===e[r].path)}function rD(t,e){let n=[];return Object.entries(t.children).forEach(([r,o])=>{r===T&&(n=n.concat(e(o,r)))}),Object.entries(t.children).forEach(([r,o])=>{r!==T&&(n=n.concat(e(o,r)))}),n}var oc=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:()=>new cr,providedIn:"root"});let t=e;return t})(),cr=class{parse(e){let n=new Pa(e);return new Ke(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(e){let n=`/${nr(e.root,!0)}`,r=aD(e.queryParams),o=typeof e.fragment=="string"?`#${iD(e.fragment)}`:"";return`${n}${r}${o}`}},oD=new cr;function Yo(t){return t.segments.map(e=>kf(e)).join("/")}function nr(t,e){if(!t.hasChildren())return Yo(t);if(e){let n=t.children[T]?nr(t.children[T],!1):"",r=[];return Object.entries(t.children).forEach(([o,i])=>{o!==T&&r.push(`${o}:${nr(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=rD(t,(r,o)=>o===T?[nr(t.children[T],!1)]:[`${o}:${nr(r,!1)}`]);return Object.keys(t.children).length===1&&t.children[T]!=null?`${Yo(t)}/${n[0]}`:`${Yo(t)}/(${n.join("//")})`}}function Pf(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function qo(t){return Pf(t).replace(/%3B/gi,";")}function iD(t){return encodeURI(t)}function Oa(t){return Pf(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Qo(t){return decodeURIComponent(t)}function Cf(t){return Qo(t.replace(/\+/g,"%20"))}function kf(t){return`${Oa(t.path)}${sD(t.parameters)}`}function sD(t){return Object.entries(t).map(([e,n])=>`;${Oa(e)}=${Oa(n)}`).join("")}function aD(t){let e=Object.entries(t).map(([n,r])=>Array.isArray(r)?r.map(o=>`${qo(n)}=${qo(o)}`).join("&"):`${qo(n)}=${qo(r)}`).filter(n=>n);return e.length?`?${e.join("&")}`:""}var cD=/^[^\/()?;#]+/;function Ta(t){let e=t.match(cD);return e?e[0]:""}var uD=/^[^\/()?;=#]+/;function lD(t){let e=t.match(uD);return e?e[0]:""}var dD=/^[^=?&#]+/;function fD(t){let e=t.match(dD);return e?e[0]:""}var hD=/^[^&#]+/;function pD(t){let e=t.match(hD);return e?e[0]:""}var Pa=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new V([],{}):new V([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(e.length>0||Object.keys(n).length>0)&&(r[T]=new V(e,n)),r}parseSegment(){let e=Ta(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new y(4009,!1);return this.capture(e),new Ft(Qo(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let n=lD(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let o=Ta(this.remaining);o&&(r=o,this.capture(r))}e[Qo(n)]=Qo(r)}parseQueryParam(e){let n=fD(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=pD(this.remaining);s&&(r=s,this.capture(r))}let o=Cf(n),i=Cf(r);if(e.hasOwnProperty(o)){let s=e[o];Array.isArray(s)||(s=[s],e[o]=s),s.push(i)}else e[o]=i}parseParens(e){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=Ta(this.remaining),o=this.remaining[r.length];if(o!=="/"&&o!==")"&&o!==";")throw new y(4010,!1);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):e&&(i=T);let s=this.parseChildren();n[i]=Object.keys(s).length===1?s[T]:new V([],s),this.consumeOptional("//")}return n}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new y(4011,!1)}};function Ff(t){return t.segments.length>0?new V([],{[T]:t}):t}function Lf(t){let e={};for(let[r,o]of Object.entries(t.children)){let i=Lf(o);if(r===T&&i.segments.length===0&&i.hasChildren())for(let[s,a]of Object.entries(i.children))e[s]=a;else(i.segments.length>0||i.hasChildren())&&(e[r]=i)}let n=new V(t.segments,e);return gD(n)}function gD(t){if(t.numberOfChildren===1&&t.children[T]){let e=t.children[T];return new V(t.segments.concat(e.segments),e.children)}return t}function ur(t){return t instanceof Ke}function mD(t,e,n=null,r=null){let o=jf(t);return Vf(o,e,n,r)}function jf(t){let e;function n(i){let s={};for(let c of i.children){let u=n(c);s[c.outlet]=u}let a=new V(i.url,s);return i===t&&(e=a),a}let r=n(t.root),o=Ff(r);return e??o}function Vf(t,e,n,r){let o=t;for(;o.parent;)o=o.parent;if(e.length===0)return xa(o,o,o,n,r);let i=vD(e);if(i.toRoot())return xa(o,o,new V([],{}),n,r);let s=yD(i,o,t),a=s.processChildren?ir(s.segmentGroup,s.index,i.commands):$f(s.segmentGroup,s.index,i.commands);return xa(o,s.segmentGroup,a,n,r)}function Ko(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function lr(t){return typeof t=="object"&&t!=null&&t.outlets}function xa(t,e,n,r,o){let i={};r&&Object.entries(r).forEach(([c,u])=>{i[c]=Array.isArray(u)?u.map(l=>`${l}`):`${u}`});let s;t===e?s=n:s=Uf(t,e,n);let a=Ff(Lf(s));return new Ke(a,i,o)}function Uf(t,e,n){let r={};return Object.entries(t.children).forEach(([o,i])=>{i===e?r[o]=n:r[o]=Uf(i,e,n)}),new V(t.segments,r)}var Jo=class{constructor(e,n,r){if(this.isAbsolute=e,this.numberOfDoubleDots=n,this.commands=r,e&&r.length>0&&Ko(r[0]))throw new y(4003,!1);let o=r.find(lr);if(o&&o!==_f(r))throw new y(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function vD(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new Jo(!0,0,t);let e=0,n=!1,r=t.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===".."?e++:a!=""&&o.push(a))}),o):[...o,i]},[]);return new Jo(n,e,r)}var mn=class{constructor(e,n,r){this.segmentGroup=e,this.processChildren=n,this.index=r}};function yD(t,e,n){if(t.isAbsolute)return new mn(e,!0,0);if(!n)return new mn(e,!1,NaN);if(n.parent===null)return new mn(n,!0,0);let r=Ko(t.commands[0])?0:1,o=n.segments.length-1+r;return DD(n,o,t.numberOfDoubleDots)}function DD(t,e,n){let r=t,o=e,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new y(4005,!1);o=r.segments.length}return new mn(r,!1,o-i)}function wD(t){return lr(t[0])?t[0].outlets:{[T]:t}}function $f(t,e,n){if(t??=new V([],{}),t.segments.length===0&&t.hasChildren())return ir(t,e,n);let r=ED(t,e,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndexi!==T)&&t.children[T]&&t.numberOfChildren===1&&t.children[T].segments.length===0){let i=ir(t.children[T],e,n);return new V(t.segments,i.children)}return Object.entries(r).forEach(([i,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(o[i]=$f(t.children[i],e,s))}),Object.entries(t.children).forEach(([i,s])=>{r[i]===void 0&&(o[i]=s)}),new V(t.segments,o)}}function ED(t,e,n){let r=0,o=e,i={match:!1,pathIndex:0,commandIndex:0};for(;o=n.length)return i;let s=t.segments[o],a=n[r];if(lr(a))break;let c=`${a}`,u=r0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!bf(c,u,s))return i;r+=2}else{if(!bf(c,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}function ka(t,e,n){let r=t.segments.slice(0,e),o=0;for(;o{typeof r=="string"&&(r=[r]),r!==null&&(e[n]=ka(new V([],{}),0,r))}),e}function If(t){let e={};return Object.entries(t).forEach(([n,r])=>e[n]=`${r}`),e}function bf(t,e,n){return t==n.path&&$e(e,n.parameters)}var sr="imperative",ee=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(ee||{}),Ie=class{constructor(e,n){this.id=e,this.url=n}},dr=class extends Ie{constructor(e,n,r="imperative",o=null){super(e,n),this.type=ee.NavigationStart,this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},jt=class extends Ie{constructor(e,n,r){super(e,n),this.urlAfterRedirects=r,this.type=ee.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},ge=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(ge||{}),Fa=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Fa||{}),Qe=class extends Ie{constructor(e,n,r,o){super(e,n),this.reason=r,this.code=o,this.type=ee.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Vt=class extends Ie{constructor(e,n,r,o){super(e,n),this.reason=r,this.code=o,this.type=ee.NavigationSkipped}},fr=class extends Ie{constructor(e,n,r,o){super(e,n),this.error=r,this.target=o,this.type=ee.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Xo=class extends Ie{constructor(e,n,r,o){super(e,n),this.urlAfterRedirects=r,this.state=o,this.type=ee.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},La=class extends Ie{constructor(e,n,r,o){super(e,n),this.urlAfterRedirects=r,this.state=o,this.type=ee.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ja=class extends Ie{constructor(e,n,r,o,i){super(e,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i,this.type=ee.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Va=class extends Ie{constructor(e,n,r,o){super(e,n),this.urlAfterRedirects=r,this.state=o,this.type=ee.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ua=class extends Ie{constructor(e,n,r,o){super(e,n),this.urlAfterRedirects=r,this.state=o,this.type=ee.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},$a=class{constructor(e){this.route=e,this.type=ee.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Ba=class{constructor(e){this.route=e,this.type=ee.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Ha=class{constructor(e){this.snapshot=e,this.type=ee.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},za=class{constructor(e){this.snapshot=e,this.type=ee.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ga=class{constructor(e){this.snapshot=e,this.type=ee.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},qa=class{constructor(e){this.snapshot=e,this.type=ee.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var hr=class{},wn=class{constructor(e,n){this.url=e,this.navigationBehaviorOptions=n}};function ID(t,e){return t.providers&&!t._injector&&(t._injector=sa(t.providers,e,`Route: ${t.path}`)),t._injector??e}function Ae(t){return t.outlet||T}function bD(t,e){let n=t.filter(r=>Ae(r)===e);return n.push(...t.filter(r=>Ae(r)!==e)),n}function Dr(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let n=e.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}var Wa=class{get injector(){return Dr(this.route?.snapshot)??this.rootInjector}set injector(e){}constructor(e){this.rootInjector=e,this.outlet=null,this.route=null,this.children=new si(this.rootInjector),this.attachRef=null}},si=(()=>{let e=class e{constructor(r){this.rootInjector=r,this.contexts=new Map}onChildOutletCreated(r,o){let i=this.getOrCreateContext(r);i.outlet=o,this.contexts.set(r,i)}onChildOutletDestroyed(r){let o=this.getContext(r);o&&(o.outlet=null,o.attachRef=null)}onOutletDeactivated(){let r=this.contexts;return this.contexts=new Map,r}onOutletReAttached(r){this.contexts=r}getOrCreateContext(r){let o=this.getContext(r);return o||(o=new Wa(this.rootInjector),this.contexts.set(r,o)),o}getContext(r){return this.contexts.get(r)||null}};e.\u0275fac=function(o){return new(o||e)(M(se))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ei=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let n=this.pathFromRoot(e);return n.length>1?n[n.length-2]:null}children(e){let n=Za(e,this._root);return n?n.children.map(r=>r.value):[]}firstChild(e){let n=Za(e,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(e){let n=Ya(e,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==e)}pathFromRoot(e){return Ya(e,this._root).map(n=>n.value)}};function Za(t,e){if(t===e.value)return e;for(let n of e.children){let r=Za(t,n);if(r)return r}return null}function Ya(t,e){if(t===e.value)return[e];for(let n of e.children){let r=Ya(t,n);if(r.length)return r.unshift(e),r}return[]}var pe=class{constructor(e,n){this.value=e,this.children=n}toString(){return`TreeNode(${this.value})`}};function gn(t){let e={};return t&&t.children.forEach(n=>e[n.value.outlet]=n),e}var ti=class extends ei{constructor(e,n){super(e),this.snapshot=n,ic(this,e)}toString(){return this.snapshot.toString()}};function Bf(t){let e=MD(t),n=new J([new Ft("",{})]),r=new J({}),o=new J({}),i=new J({}),s=new J(""),a=new mt(n,r,i,s,o,T,t,e.root);return a.snapshot=e.root,new ti(new pe(a,[]),e)}function MD(t){let e={},n={},r={},o="",i=new vn([],e,r,o,n,T,t,null,{});return new ri("",new pe(i,[]))}var mt=class{constructor(e,n,r,o,i,s,a,c){this.urlSubject=e,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[yr]))??I(void 0),this.url=e,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(e=>Dn(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(x(e=>Dn(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function ni(t,e,n="emptyOnly"){let r,{routeConfig:o}=t;return e!==null&&(n==="always"||o?.path===""||!e.component&&!e.routeConfig?.loadComponent)?r={params:m(m({},e.params),t.params),data:m(m({},e.data),t.data),resolve:m(m(m(m({},t.data),e.data),o?.data),t._resolvedData)}:r={params:m({},t.params),data:m({},t.data),resolve:m(m({},t.data),t._resolvedData??{})},o&&zf(o)&&(r.resolve[yr]=o.title),r}var vn=class{get title(){return this.data?.[yr]}constructor(e,n,r,o,i,s,a,c,u){this.url=e,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??=Dn(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Dn(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(r=>r.toString()).join("/"),n=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${n}')`}},ri=class extends ei{constructor(e,n){super(n),this.url=e,ic(this,n)}toString(){return Hf(this._root)}};function ic(t,e){e.value._routerState=t,e.children.forEach(n=>ic(t,n))}function Hf(t){let e=t.children.length>0?` { ${t.children.map(Hf).join(", ")} } `:"";return`${t.value}${e}`}function _a(t){if(t.snapshot){let e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,$e(e.queryParams,n.queryParams)||t.queryParamsSubject.next(n.queryParams),e.fragment!==n.fragment&&t.fragmentSubject.next(n.fragment),$e(e.params,n.params)||t.paramsSubject.next(n.params),Jy(e.url,n.url)||t.urlSubject.next(n.url),$e(e.data,n.data)||t.dataSubject.next(n.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Qa(t,e){let n=$e(t.params,e.params)&&nD(t.url,e.url),r=!t.parent!=!e.parent;return n&&!r&&(!t.parent||Qa(t.parent,e.parent))}function zf(t){return typeof t.title=="string"||t.title===null}var sc=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=T,this.activateEvents=new ne,this.deactivateEvents=new ne,this.attachEvents=new ne,this.detachEvents=new ne,this.parentContexts=p(si),this.location=p(Hn),this.changeDetector=p(qn),this.inputBinder=p(ac,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(r){if(r.name){let{firstChange:o,previousValue:i}=r.name;if(o)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(r){return this.parentContexts.getContext(r)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let r=this.parentContexts.getContext(this.name);r?.route&&(r.attachRef?this.attach(r.attachRef,r.route):this.activateWith(r.route,r.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new y(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new y(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new y(4012,!1);this.location.detach();let r=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(r.instance),r}attach(r,o){this.activated=r,this._activatedRoute=o,this.location.insert(r.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(r.instance)}deactivate(){if(this.activated){let r=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(r)}}activateWith(r,o){if(this.isActivated)throw new y(4013,!1);this._activatedRoute=r;let i=this.location,a=r.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,u=new Ka(r,c,i.injector);this.activated=i.createComponent(a,{index:i.length,injector:u,environmentInjector:o}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=wo({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[bo]});let t=e;return t})(),Ka=class t{__ngOutletInjector(e){return new t(this.route,this.childContexts,e)}constructor(e,n,r){this.route=e,this.childContexts=n,this.parent=r}get(e,n){return e===mt?this.route:e===si?this.childContexts:this.parent.get(e,n)}},ac=new E("");function SD(t,e,n){let r=pr(t,e._root,n?n._root:void 0);return new ti(r,e)}function pr(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=e.value;let o=TD(t,e,n);return new pe(r,o)}else{if(t.shouldAttach(e.value)){let i=t.retrieve(e.value);if(i!==null){let s=i.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>pr(t,a)),s}}let r=xD(e.value),o=e.children.map(i=>pr(t,i));return new pe(r,o)}}function TD(t,e,n){return e.children.map(r=>{for(let o of n.children)if(t.shouldReuseRoute(r.value,o.value.snapshot))return pr(t,r,o);return pr(t,r)})}function xD(t){return new mt(new J(t.url),new J(t.params),new J(t.queryParams),new J(t.fragment),new J(t.data),t.outlet,t.component,t)}var gr=class{constructor(e,n){this.redirectTo=e,this.navigationBehaviorOptions=n}},Gf="ngNavigationCancelingError";function oi(t,e){let{redirectTo:n,navigationBehaviorOptions:r}=ur(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,o=qf(!1,ge.Redirect);return o.url=n,o.navigationBehaviorOptions=r,o}function qf(t,e){let n=new Error(`NavigationCancelingError: ${t||""}`);return n[Gf]=!0,n.cancellationCode=e,n}function _D(t){return Wf(t)&&ur(t.url)}function Wf(t){return!!t&&t[Gf]}var ND=(t,e,n,r)=>x(o=>(new Ja(e,o.targetRouterState,o.currentRouterState,n,r).activate(t),o)),Ja=class{constructor(e,n,r,o,i){this.routeReuseStrategy=e,this.futureState=n,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(e){let n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,e),_a(this.futureState.root),this.activateChildRoutes(n,r,e)}deactivateChildRoutes(e,n,r){let o=gn(n);e.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(e,n,r){let o=e.value,i=n?n.value:null;if(o===i)if(o.component){let s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(e,n,s.children)}else this.deactivateChildRoutes(e,n,r);else i&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(e,n){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,n):this.deactivateRouteAndOutlet(e,n)}detachAndStoreRouteSubtree(e,n){let r=n.getContext(e.value.outlet),o=r&&e.value.component?r.children:n,i=gn(e);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(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,n){let r=n.getContext(e.value.outlet),o=r&&e.value.component?r.children:n,i=gn(e);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(e,n,r){let o=gn(n);e.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new qa(i.value.snapshot))}),e.children.length&&this.forwardEvent(new za(e.value.snapshot))}activateRoutes(e,n,r){let o=e.value,i=n?n.value:null;if(_a(o),o===i)if(o.component){let s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(e,n,s.children)}else this.activateChildRoutes(e,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),_a(a.route.value),this.activateChildRoutes(e,null,s.children)}else s.attachRef=null,s.route=o,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(e,null,s.children)}else this.activateChildRoutes(e,null,r)}},ii=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},yn=class{constructor(e,n){this.component=e,this.route=n}};function AD(t,e,n){let r=t._root,o=e?e._root:null;return rr(r,o,n,[r.value])}function RD(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function Cn(t,e){let n=Symbol(),r=e.get(t,n);return r===n?typeof t=="function"&&!Ou(t)?t:e.get(t):r}function rr(t,e,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=gn(e);return t.children.forEach(s=>{OD(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>ar(a,n.getContext(s),o)),o}function OD(t,e,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=t.value,s=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){let c=PD(s,i,i.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new ii(r)):(i.data=s.data,i._resolvedData=s._resolvedData),i.component?rr(t,e,a?a.children:null,r,o):rr(t,e,n,r,o),c&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new yn(a.outlet.component,s))}else s&&ar(e,a,o),o.canActivateChecks.push(new ii(r)),i.component?rr(t,null,a?a.children:null,r,o):rr(t,null,n,r,o);return o}function PD(t,e,n){if(typeof n=="function")return n(t,e);switch(n){case"pathParamsChange":return!Lt(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Lt(t.url,e.url)||!$e(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Qa(t,e)||!$e(t.queryParams,e.queryParams);case"paramsChange":default:return!Qa(t,e)}}function ar(t,e,n){let r=gn(t),o=t.value;Object.entries(r).forEach(([i,s])=>{o.component?e?ar(s,e.children.getContext(i),n):ar(s,null,n):ar(s,e,n)}),o.component?e&&e.outlet&&e.outlet.isActivated?n.canDeactivateChecks.push(new yn(e.outlet.component,o)):n.canDeactivateChecks.push(new yn(null,o)):n.canDeactivateChecks.push(new yn(null,o))}function wr(t){return typeof t=="function"}function kD(t){return typeof t=="boolean"}function FD(t){return t&&wr(t.canLoad)}function LD(t){return t&&wr(t.canActivate)}function jD(t){return t&&wr(t.canActivateChild)}function VD(t){return t&&wr(t.canDeactivate)}function UD(t){return t&&wr(t.canMatch)}function Zf(t){return t instanceof Be||t?.name==="EmptyError"}var Wo=Symbol("INITIAL_VALUE");function En(){return fe(t=>Vr(t.map(e=>e.pipe(He(1),ki(Wo)))).pipe(x(e=>{for(let n of e)if(n!==!0){if(n===Wo)return Wo;if(n===!1||$D(n))return n}return!0}),de(e=>e!==Wo),He(1)))}function $D(t){return ur(t)||t instanceof gr}function BD(t,e){return Y(n=>{let{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return s.length===0&&i.length===0?I(H(m({},n),{guardsResult:!0})):HD(s,r,o,t).pipe(Y(a=>a&&kD(a)?zD(r,i,t,e):I(a)),x(a=>H(m({},n),{guardsResult:a})))})}function HD(t,e,n,r){return z(t).pipe(Y(o=>YD(o.component,o.route,n,e,r)),Re(o=>o!==!0,!0))}function zD(t,e,n,r){return z(e).pipe(et(o=>Yt(qD(o.route.parent,r),GD(o.route,r),ZD(t,o.path,n),WD(t,o.route,n))),Re(o=>o!==!0,!0))}function GD(t,e){return t!==null&&e&&e(new Ga(t)),I(!0)}function qD(t,e){return t!==null&&e&&e(new Ha(t)),I(!0)}function WD(t,e,n){let r=e.routeConfig?e.routeConfig.canActivate:null;if(!r||r.length===0)return I(!0);let o=r.map(i=>Ur(()=>{let s=Dr(e)??n,a=Cn(i,s),c=LD(a)?a.canActivate(e,t):Te(s,()=>a(e,t));return vt(c).pipe(Re())}));return I(o).pipe(En())}function ZD(t,e,n){let r=e[e.length-1],i=e.slice(0,e.length-1).reverse().map(s=>RD(s)).filter(s=>s!==null).map(s=>Ur(()=>{let a=s.guards.map(c=>{let u=Dr(s.node)??n,l=Cn(c,u),d=jD(l)?l.canActivateChild(r,t):Te(u,()=>l(r,t));return vt(d).pipe(Re())});return I(a).pipe(En())}));return I(i).pipe(En())}function YD(t,e,n,r,o){let i=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!i||i.length===0)return I(!0);let s=i.map(a=>{let c=Dr(e)??o,u=Cn(a,c),l=VD(u)?u.canDeactivate(t,e,n,r):Te(c,()=>u(t,e,n,r));return vt(l).pipe(Re())});return I(s).pipe(En())}function QD(t,e,n,r){let o=e.canLoad;if(o===void 0||o.length===0)return I(!0);let i=o.map(s=>{let a=Cn(s,t),c=FD(a)?a.canLoad(e,n):Te(t,()=>a(e,n));return vt(c)});return I(i).pipe(En(),Yf(r))}function Yf(t){return Si(K(e=>{if(typeof e!="boolean")throw oi(t,e)}),x(e=>e===!0))}function KD(t,e,n,r){let o=e.canMatch;if(!o||o.length===0)return I(!0);let i=o.map(s=>{let a=Cn(s,t),c=UD(a)?a.canMatch(e,n):Te(t,()=>a(e,n));return vt(c)});return I(i).pipe(En(),Yf(r))}var mr=class{constructor(e){this.segmentGroup=e||null}},vr=class extends Error{constructor(e){super(),this.urlTree=e}};function pn(t){return Zt(new mr(t))}function JD(t){return Zt(new y(4e3,!1))}function XD(t){return Zt(qf(!1,ge.GuardRejected))}var Xa=class{constructor(e,n){this.urlSerializer=e,this.urlTree=n}lineralizeSegments(e,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[T])return JD(`${e.redirectTo}`);o=o.children[T]}}applyRedirectCommands(e,n,r,o,i){if(typeof n!="string"){let a=n,{queryParams:c,fragment:u,routeConfig:l,url:d,outlet:h,params:f,data:g,title:C}=o,v=Te(i,()=>a({params:f,data:g,queryParams:c,fragment:u,routeConfig:l,url:d,outlet:h,title:C}));if(v instanceof Ke)throw new vr(v);n=v}let s=this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),e,r);if(n[0]==="/")throw new vr(s);return s}applyRedirectCreateUrlTree(e,n,r,o){let i=this.createSegmentGroup(e,n.root,r,o);return new Ke(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(e,n){let r={};return Object.entries(e).forEach(([o,i])=>{if(typeof i=="string"&&i[0]===":"){let a=i.substring(1);r[o]=n[a]}else r[o]=i}),r}createSegmentGroup(e,n,r,o){let i=this.createSegments(e,n.segments,r,o),s={};return Object.entries(n.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(e,c,r,o)}),new V(i,s)}createSegments(e,n,r,o){return n.map(i=>i.path[0]===":"?this.findPosParam(e,i,o):this.findOrReturn(i,r))}findPosParam(e,n,r){let o=r[n.path.substring(1)];if(!o)throw new y(4001,!1);return o}findOrReturn(e,n){let r=0;for(let o of n){if(o.path===e.path)return n.splice(r),o;r++}return e}},ec={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ew(t,e,n,r,o){let i=cc(t,e,n);return i.matched?(r=ID(e,r),KD(r,e,n,o).pipe(x(s=>s===!0?i:m({},ec)))):I(i)}function cc(t,e,n){if(e.path==="**")return tw(n);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||n.length>0)?m({},ec):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let o=(e.matcher||Ky)(n,t,e);if(!o)return m({},ec);let i={};Object.entries(o.posParams??{}).forEach(([a,c])=>{i[a]=c.path});let s=o.consumed.length>0?m(m({},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 tw(t){return{matched:!0,parameters:t.length>0?_f(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function Mf(t,e,n,r){return n.length>0&&ow(t,n,r)?{segmentGroup:new V(e,rw(r,new V(n,t.children))),slicedSegments:[]}:n.length===0&&iw(t,n,r)?{segmentGroup:new V(t.segments,nw(t,n,r,t.children)),slicedSegments:n}:{segmentGroup:new V(t.segments,t.children),slicedSegments:n}}function nw(t,e,n,r){let o={};for(let i of n)if(ai(t,e,i)&&!r[Ae(i)]){let s=new V([],{});o[Ae(i)]=s}return m(m({},r),o)}function rw(t,e){let n={};n[T]=e;for(let r of t)if(r.path===""&&Ae(r)!==T){let o=new V([],{});n[Ae(r)]=o}return n}function ow(t,e,n){return n.some(r=>ai(t,e,r)&&Ae(r)!==T)}function iw(t,e,n){return n.some(r=>ai(t,e,r))}function ai(t,e,n){return(t.hasChildren()||e.length>0)&&n.pathMatch==="full"?!1:n.path===""}function sw(t,e,n,r){return Ae(t)!==r&&(r===T||!ai(e,n,t))?!1:cc(e,t,n).matched}function aw(t,e,n){return e.length===0&&!t.children[n]}var tc=class{};function cw(t,e,n,r,o,i,s="emptyOnly"){return new nc(t,e,n,r,o,s,i).recognize()}var uw=31,nc=class{constructor(e,n,r,o,i,s,a){this.injector=e,this.configLoader=n,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Xa(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new y(4002,`'${e.segmentGroup}'`)}recognize(){let e=Mf(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(x(({children:n,rootSnapshot:r})=>{let o=new pe(r,n),i=new ri("",o),s=mD(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),{state:i,tree:s}}))}match(e){let n=new vn([],Object.freeze({}),Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),T,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,T,n).pipe(x(r=>({children:r,rootSnapshot:n})),Xe(r=>{if(r instanceof vr)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof mr?this.noMatchError(r):r}))}processSegmentGroup(e,n,r,o,i){return r.segments.length===0&&r.hasChildren()?this.processChildren(e,n,r,i):this.processSegment(e,n,r,r.segments,o,!0,i).pipe(x(s=>s instanceof pe?[s]:[]))}processChildren(e,n,r,o){let i=[];for(let s of Object.keys(r.children))s==="primary"?i.unshift(s):i.push(s);return z(i).pipe(et(s=>{let a=r.children[s],c=bD(n,s);return this.processSegmentGroup(e,c,a,s,o)}),Pi((s,a)=>(s.push(...a),s)),tt(null),Oi(),Y(s=>{if(s===null)return pn(r);let a=Qf(s);return lw(a),I(a)}))}processSegment(e,n,r,o,i,s,a){return z(n).pipe(et(c=>this.processSegmentAgainstRoute(c._injector??e,n,c,r,o,i,s,a).pipe(Xe(u=>{if(u instanceof mr)return I(null);throw u}))),Re(c=>!!c),Xe(c=>{if(Zf(c))return aw(r,o,i)?I(new tc):pn(r);throw c}))}processSegmentAgainstRoute(e,n,r,o,i,s,a,c){return sw(r,o,i,s)?r.redirectTo===void 0?this.matchSegmentAgainstRoute(e,o,r,i,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,o,n,r,i,s,c):pn(o):pn(o)}expandSegmentAgainstRouteUsingRedirect(e,n,r,o,i,s,a){let{matched:c,parameters:u,consumedSegments:l,positionalParamSegments:d,remainingSegments:h}=cc(n,o,i);if(!c)return pn(n);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>uw&&(this.allowRedirects=!1));let f=new vn(i,u,Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,Sf(o),Ae(o),o.component??o._loadedComponent??null,o,Tf(o)),g=ni(f,a,this.paramsInheritanceStrategy);f.params=Object.freeze(g.params),f.data=Object.freeze(g.data);let C=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,d,f,e);return this.applyRedirects.lineralizeSegments(o,C).pipe(Y(v=>this.processSegment(e,r,n,v.concat(h),s,!1,a)))}matchSegmentAgainstRoute(e,n,r,o,i,s){let a=ew(n,r,o,e,this.urlSerializer);return r.path==="**"&&(n.children={}),a.pipe(fe(c=>c.matched?(e=r._injector??e,this.getChildConfig(e,r,o).pipe(fe(({routes:u})=>{let l=r._loadedInjector??e,{parameters:d,consumedSegments:h,remainingSegments:f}=c,g=new vn(h,d,Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,Sf(r),Ae(r),r.component??r._loadedComponent??null,r,Tf(r)),C=ni(g,s,this.paramsInheritanceStrategy);g.params=Object.freeze(C.params),g.data=Object.freeze(C.data);let{segmentGroup:v,slicedSegments:w}=Mf(n,h,f,u);if(w.length===0&&v.hasChildren())return this.processChildren(l,u,v,g).pipe(x(B=>new pe(g,B)));if(u.length===0&&w.length===0)return I(new pe(g,[]));let q=Ae(r)===i;return this.processSegment(l,u,v,w,q?T:i,!0,g).pipe(x(B=>new pe(g,B instanceof pe?[B]:[])))}))):pn(n)))}getChildConfig(e,n,r){return n.children?I({routes:n.children,injector:e}):n.loadChildren?n._loadedRoutes!==void 0?I({routes:n._loadedRoutes,injector:n._loadedInjector}):QD(e,n,r,this.urlSerializer).pipe(Y(o=>o?this.configLoader.loadChildren(e,n).pipe(K(i=>{n._loadedRoutes=i.routes,n._loadedInjector=i.injector})):XD(n))):I({routes:[],injector:e})}};function lw(t){t.sort((e,n)=>e.value.outlet===T?-1:n.value.outlet===T?1:e.value.outlet.localeCompare(n.value.outlet))}function dw(t){let e=t.value.routeConfig;return e&&e.path===""}function Qf(t){let e=[],n=new Set;for(let r of t){if(!dw(r)){e.push(r);continue}let o=e.find(i=>r.value.routeConfig===i.value.routeConfig);o!==void 0?(o.children.push(...r.children),n.add(o)):e.push(r)}for(let r of n){let o=Qf(r.children);e.push(new pe(r.value,o))}return e.filter(r=>!n.has(r))}function Sf(t){return t.data||{}}function Tf(t){return t.resolve||{}}function fw(t,e,n,r,o,i){return Y(s=>cw(t,e,n,r,s.extractedUrl,o,i).pipe(x(({state:a,tree:c})=>H(m({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function hw(t,e){return Y(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 Kf(c))s.add(u);let a=0;return z(s).pipe(et(c=>i.has(c)?pw(c,r,t,e):(c.data=ni(c,c.parent,t).resolve,I(void 0))),K(()=>a++),Qt(1),Y(c=>a===s.size?I(n):le))})}function Kf(t){let e=t.children.map(n=>Kf(n)).flat();return[t,...e]}function pw(t,e,n,r){let o=t.routeConfig,i=t._resolve;return o?.title!==void 0&&!zf(o)&&(i[yr]=o.title),gw(i,t,e,r).pipe(x(s=>(t._resolvedData=s,t.data=ni(t,t.parent,n).resolve,null)))}function gw(t,e,n,r){let o=Ra(t);if(o.length===0)return I({});let i={};return z(o).pipe(Y(s=>mw(t[s],e,n,r).pipe(Re(),K(a=>{if(a instanceof gr)throw oi(new cr,a);i[s]=a}))),Qt(1),Ri(i),Xe(s=>Zf(s)?le:Zt(s)))}function mw(t,e,n,r){let o=Dr(e)??r,i=Cn(t,o),s=i.resolve?i.resolve(e,n):Te(o,()=>i(e,n));return vt(s)}function Na(t){return fe(e=>{let n=t(e);return n?z(n).pipe(x(()=>e)):I(e)})}var Jf=(()=>{let e=class e{buildTitle(r){let o,i=r.root;for(;i!==void 0;)o=this.getResolvedTitleForRoute(i)??o,i=i.children.find(s=>s.outlet===T);return o}getResolvedTitleForRoute(r){return r.data[yr]}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:()=>p(vw),providedIn:"root"});let t=e;return t})(),vw=(()=>{let e=class e extends Jf{constructor(r){super(),this.title=r}updateTitle(r){let o=this.buildTitle(r);o!==void 0&&this.title.setTitle(o)}};e.\u0275fac=function(o){return new(o||e)(M(wf))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),uc=new E("",{providedIn:"root",factory:()=>({})}),yw=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=Ve({type:e,selectors:[["ng-component"]],standalone:!0,features:[Ue],decls:1,vars:0,template:function(o,i){o&1&&zn(0,"router-outlet")},dependencies:[sc],encapsulation:2});let t=e;return t})();function lc(t){let e=t.children&&t.children.map(lc),n=e?H(m({},t),{children:e}):m({},t);return!n.component&&!n.loadComponent&&(e||n.loadChildren)&&n.outlet&&n.outlet!==T&&(n.component=yw),n}var dc=new E(""),Dw=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=p(ua)}loadComponent(r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return I(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let o=vt(r.loadComponent()).pipe(x(Xf),K(s=>{this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s}),Et(()=>{this.componentLoaders.delete(r)})),i=new Wt(o,()=>new te).pipe(qt());return this.componentLoaders.set(r,i),i}loadChildren(r,o){if(this.childrenLoaders.get(o))return this.childrenLoaders.get(o);if(o._loadedRoutes)return I({routes:o._loadedRoutes,injector:o._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(o);let s=ww(o,this.compiler,r,this.onLoadEndListener).pipe(Et(()=>{this.childrenLoaders.delete(o)})),a=new Wt(s,()=>new te).pipe(qt());return this.childrenLoaders.set(o,a),a}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function ww(t,e,n,r){return vt(t.loadChildren()).pipe(x(Xf),Y(o=>o instanceof Fn||Array.isArray(o)?I(o):z(e.compileModuleAsync(o))),x(o=>{r&&r(t);let i,s,a=!1;return Array.isArray(o)?(s=o,a=!0):(i=o.create(n).injector,s=i.get(dc,[],{optional:!0,self:!0}).flat()),{routes:s.map(lc),injector:i}}))}function Ew(t){return t&&typeof t=="object"&&"default"in t}function Xf(t){return Ew(t)?t.default:t}var fc=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:()=>p(Cw),providedIn:"root"});let t=e;return t})(),Cw=(()=>{let e=class e{shouldProcessUrl(r){return!0}extract(r){return r}merge(r,o){return r}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Iw=new E("");var bw=new E(""),Mw=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new te,this.transitionAbortSubject=new te,this.configLoader=p(Dw),this.environmentInjector=p(se),this.urlSerializer=p(oc),this.rootContexts=p(si),this.location=p(Wn),this.inputBindingEnabled=p(ac,{optional:!0})!==null,this.titleStrategy=p(Jf),this.options=p(uc,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=p(fc),this.createViewTransition=p(Iw,{optional:!0}),this.navigationErrorHandler=p(bw,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>I(void 0),this.rootComponentType=null;let r=i=>this.events.next(new $a(i)),o=i=>this.events.next(new Ba(i));this.configLoader.onLoadEndListener=o,this.configLoader.onLoadStartListener=r}complete(){this.transitions?.complete()}handleNavigationRequest(r){let o=++this.navigationId;this.transitions?.next(H(m(m({},this.transitions.value),r),{id:o}))}setupNavigations(r,o,i){return this.transitions=new J({id:0,currentUrlTree:o,currentRawUrl:o,extractedUrl:this.urlHandlingStrategy.extract(o),urlAfterRedirects:this.urlHandlingStrategy.extract(o),rawUrl:o,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:sr,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(de(s=>s.id!==0),x(s=>H(m({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),fe(s=>{let a=!1,c=!1;return I(s).pipe(fe(u=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",ge.SupersededByNewNavigation),le;this.currentTransition=s,this.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,targetBrowserUrl:typeof u.extras.browserUrl=="string"?this.urlSerializer.parse(u.extras.browserUrl):u.extras.browserUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?H(m({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let l=!r.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=u.extras.onSameUrlNavigation??r.onSameUrlNavigation;if(!l&&d!=="reload"){let h="";return this.events.next(new Vt(u.id,this.urlSerializer.serialize(u.rawUrl),h,Fa.IgnoredSameUrlNavigation)),u.resolve(!1),le}if(this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return I(u).pipe(fe(h=>{let f=this.transitions?.getValue();return this.events.next(new dr(h.id,this.urlSerializer.serialize(h.extractedUrl),h.source,h.restoredState)),f!==this.transitions?.getValue()?le:Promise.resolve(h)}),fw(this.environmentInjector,this.configLoader,this.rootComponentType,r.config,this.urlSerializer,this.paramsInheritanceStrategy),K(h=>{s.targetSnapshot=h.targetSnapshot,s.urlAfterRedirects=h.urlAfterRedirects,this.currentNavigation=H(m({},this.currentNavigation),{finalUrl:h.urlAfterRedirects});let f=new Xo(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(f)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){let{id:h,extractedUrl:f,source:g,restoredState:C,extras:v}=u,w=new dr(h,this.urlSerializer.serialize(f),g,C);this.events.next(w);let q=Bf(this.rootComponentType).snapshot;return this.currentTransition=s=H(m({},u),{targetSnapshot:q,urlAfterRedirects:f,extras:H(m({},v),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=f,I(s)}else{let h="";return this.events.next(new Vt(u.id,this.urlSerializer.serialize(u.extractedUrl),h,Fa.IgnoredByUrlHandlingStrategy)),u.resolve(!1),le}}),K(u=>{let l=new La(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}),x(u=>(this.currentTransition=s=H(m({},u),{guards:AD(u.targetSnapshot,u.currentSnapshot,this.rootContexts)}),s)),BD(this.environmentInjector,u=>this.events.next(u)),K(u=>{if(s.guardsResult=u.guardsResult,u.guardsResult&&typeof u.guardsResult!="boolean")throw oi(this.urlSerializer,u.guardsResult);let l=new ja(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(l)}),de(u=>u.guardsResult?!0:(this.cancelNavigationTransition(u,"",ge.GuardRejected),!1)),Na(u=>{if(u.guards.canActivateChecks.length)return I(u).pipe(K(l=>{let d=new Va(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),fe(l=>{let d=!1;return I(l).pipe(hw(this.paramsInheritanceStrategy,this.environmentInjector),K({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(l,"",ge.NoDataFromResolver)}}))}),K(l=>{let d=new Ua(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}))}),Na(u=>{let l=d=>{let h=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&h.push(this.configLoader.loadComponent(d.routeConfig).pipe(K(f=>{d.component=f}),x(()=>{})));for(let f of d.children)h.push(...l(f));return h};return Vr(l(u.targetSnapshot.root)).pipe(tt(null),He(1))}),Na(()=>this.afterPreactivation()),fe(()=>{let{currentSnapshot:u,targetSnapshot:l}=s,d=this.createViewTransition?.(this.environmentInjector,u.root,l.root);return d?z(d).pipe(x(()=>s)):I(s)}),x(u=>{let l=SD(r.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=s=H(m({},u),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,s}),K(()=>{this.events.next(new hr)}),ND(this.rootContexts,r.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),He(1),K({next:u=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new jt(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),this.titleStrategy?.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{a=!0}}),Fi(this.transitionAbortSubject.pipe(K(u=>{throw u}))),Et(()=>{!a&&!c&&this.cancelNavigationTransition(s,"",ge.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),Xe(u=>{if(c=!0,Wf(u))this.events.next(new Qe(s.id,this.urlSerializer.serialize(s.extractedUrl),u.message,u.cancellationCode)),_D(u)?this.events.next(new wn(u.url,u.navigationBehaviorOptions)):s.resolve(!1);else{let l=new fr(s.id,this.urlSerializer.serialize(s.extractedUrl),u,s.targetSnapshot??void 0);try{let d=Te(this.environmentInjector,()=>this.navigationErrorHandler?.(l));if(d instanceof gr){let{message:h,cancellationCode:f}=oi(this.urlSerializer,d);this.events.next(new Qe(s.id,this.urlSerializer.serialize(s.extractedUrl),h,f)),this.events.next(new wn(d.redirectTo,d.navigationBehaviorOptions))}else{this.events.next(l);let h=r.errorHandler(u);s.resolve(!!h)}}catch(d){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(d)}}return le}))}))}cancelNavigationTransition(r,o,i){let s=new Qe(r.id,this.urlSerializer.serialize(r.extractedUrl),o,i);this.events.next(s),r.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let r=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),o=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return r.toString()!==o?.toString()&&!this.currentNavigation?.extras.skipLocationChange}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Sw(t){return t!==sr}var Tw=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:()=>p(xw),providedIn:"root"});let t=e;return t})(),rc=class{shouldDetach(e){return!1}store(e,n){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,n){return e.routeConfig===n.routeConfig}},xw=(()=>{let e=class e extends rc{};e.\u0275fac=(()=>{let r;return function(i){return(r||(r=Hs(e)))(i||e)}})(),e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),eh=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:()=>p(_w),providedIn:"root"});let t=e;return t})(),_w=(()=>{let e=class e extends eh{constructor(){super(...arguments),this.location=p(Wn),this.urlSerializer=p(oc),this.options=p(uc,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=p(fc),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Ke,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Bf(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(r){return this.location.subscribe(o=>{o.type==="popstate"&&r(o.url,o.state)})}handleRouterEvent(r,o){if(r instanceof dr)this.stateMemento=this.createStateMemento();else if(r instanceof Vt)this.rawUrlTree=o.initialUrl;else if(r instanceof Xo){if(this.urlUpdateStrategy==="eager"&&!o.extras.skipLocationChange){let i=this.urlHandlingStrategy.merge(o.finalUrl,o.initialUrl);this.setBrowserUrl(o.targetBrowserUrl??i,o)}}else r instanceof hr?(this.currentUrlTree=o.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(o.finalUrl,o.initialUrl),this.routerState=o.targetRouterState,this.urlUpdateStrategy==="deferred"&&!o.extras.skipLocationChange&&this.setBrowserUrl(o.targetBrowserUrl??this.rawUrlTree,o)):r instanceof Qe&&(r.code===ge.GuardRejected||r.code===ge.NoDataFromResolver)?this.restoreHistory(o):r instanceof fr?this.restoreHistory(o,!0):r instanceof jt&&(this.lastSuccessfulId=r.id,this.currentPageId=this.browserPageId)}setBrowserUrl(r,o){let i=r instanceof Ke?this.urlSerializer.serialize(r):r;if(this.location.isCurrentPathEqualTo(i)||o.extras.replaceUrl){let s=this.browserPageId,a=m(m({},o.extras.state),this.generateNgRouterState(o.id,s));this.location.replaceState(i,"",a)}else{let s=m(m({},o.extras.state),this.generateNgRouterState(o.id,this.browserPageId+1));this.location.go(i,"",s)}}restoreHistory(r,o=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,s=this.currentPageId-i;s!==0?this.location.historyGo(s):this.currentUrlTree===r.finalUrl&&s===0&&(this.resetState(r),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(o&&this.resetState(r),this.resetUrlToCurrentUrlTree())}resetState(r){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,r.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(r,o){return this.canceledNavigationResolution==="computed"?{navigationId:r,\u0275routerPageId:o}:{navigationId:r}}};e.\u0275fac=(()=>{let r;return function(i){return(r||(r=Hs(e)))(i||e)}})(),e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),or=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(or||{});function Nw(t,e){t.events.pipe(de(n=>n instanceof jt||n instanceof Qe||n instanceof fr||n instanceof Vt),x(n=>n instanceof jt||n instanceof Vt?or.COMPLETE:(n instanceof Qe?n.code===ge.Redirect||n.code===ge.SupersededByNewNavigation:!1)?or.REDIRECTING:or.FAILED),de(n=>n!==or.REDIRECTING),He(1)).subscribe(()=>{e()})}function Aw(t){throw t}var Rw={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Ow={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},th=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=p(Po),this.stateManager=p(eh),this.options=p(uc,{optional:!0})||{},this.pendingTasks=p(ct),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=p(Mw),this.urlSerializer=p(oc),this.location=p(Wn),this.urlHandlingStrategy=p(fc),this._events=new te,this.errorHandler=this.options.errorHandler||Aw,this.navigated=!1,this.routeReuseStrategy=p(Tw),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=p(dc,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!p(ac,{optional:!0}),this.eventsSubscription=new W,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:r=>{this.console.warn(r)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let r=this.navigationTransitions.events.subscribe(o=>{try{let i=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(i!==null&&s!==null){if(this.stateManager.handleRouterEvent(o,s),o instanceof Qe&&o.code!==ge.Redirect&&o.code!==ge.SupersededByNewNavigation)this.navigated=!0;else if(o instanceof jt)this.navigated=!0;else if(o instanceof wn){let a=o.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(o.url,i.currentRawUrl),u=m({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Sw(i.source)},a);this.scheduleNavigation(c,sr,null,u,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}kw(o)&&this._events.next(o)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});this.eventsSubscription.add(r)}resetRootComponentType(r){this.routerState.root.component=r,this.navigationTransitions.rootComponentType=r}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),sr,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((r,o)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(r,"popstate",o)},0)})}navigateToSyncWithBrowser(r,o,i){let s={replaceUrl:!0},a=i?.navigationId?i:null;if(i){let u=m({},i);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(s.state=u)}let c=this.parseUrl(r);this.scheduleNavigation(c,o,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(r){this.config=r.map(lc),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(r,o={}){let{relativeTo:i,queryParams:s,fragment:a,queryParamsHandling:c,preserveFragment:u}=o,l=u?this.currentUrlTree.fragment:a,d=null;switch(c??this.options.defaultQueryParamsHandling){case"merge":d=m(m({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}d!==null&&(d=this.removeEmptyProps(d));let h;try{let f=i?i.snapshot:this.routerState.snapshot.root;h=jf(f)}catch{(typeof r[0]!="string"||r[0][0]!=="/")&&(r=[]),h=this.currentUrlTree.root}return Vf(h,r,d,l??null)}navigateByUrl(r,o={skipLocationChange:!1}){let i=ur(r)?r:this.parseUrl(r),s=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(s,sr,null,o)}navigate(r,o={skipLocationChange:!1}){return Pw(r),this.navigateByUrl(this.createUrlTree(r,o),o)}serializeUrl(r){return this.urlSerializer.serialize(r)}parseUrl(r){try{return this.urlSerializer.parse(r)}catch{return this.urlSerializer.parse("/")}}isActive(r,o){let i;if(o===!0?i=m({},Rw):o===!1?i=m({},Ow):i=o,ur(r))return Ef(this.currentUrlTree,r,i);let s=this.parseUrl(r);return Ef(this.currentUrlTree,s,i)}removeEmptyProps(r){return Object.entries(r).reduce((o,[i,s])=>(s!=null&&(o[i]=s),o),{})}scheduleNavigation(r,o,i,s,a){if(this.disposed)return Promise.resolve(!1);let c,u,l;a?(c=a.resolve,u=a.reject,l=a.promise):l=new Promise((h,f)=>{c=h,u=f});let d=this.pendingTasks.add();return Nw(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:o,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:r,extras:s,resolve:c,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(h=>Promise.reject(h))}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Pw(t){for(let e=0;en.\u0275providers)])}function Lw(t){return t.routerState.root}function jw(){let t=p(_t);return e=>{let n=t.get(dt);if(e!==n.components[0])return;let r=t.get(th),o=t.get(Vw);t.get(Uw)===1&&r.initialNavigation(),t.get($w,null,_.Optional)?.setUpPreloading(),t.get(Fw,null,_.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var Vw=new E("",{factory:()=>new te}),Uw=new E("",{providedIn:"root",factory:()=>1});var $w=new E("");function Hw(t,e){if(t&1&&(N(0,"tr")(1,"td"),R(2),A(),N(3,"td"),R(4),A(),N(5,"td"),R(6),A(),N(7,"td"),R(8),A(),N(9,"td"),R(10),A()()),t&2){let n=e.$implicit,r=e.index;Ce(2),lt(r+1),Ce(2),lt(n.name),Ce(2),lt(n.result),Ce(2),lt(n.state),Ce(2),lt(n.competition)}}var ci=class t{results={};filteredResults=[];currentEvent="333";currentState="";currentKindOfResult="single";constructor(){}ngOnInit(){this.results={333:[{id:"2012SATO03",name:"Caio Hideaki Sato",single:4.37,average:5.3,state:"SP",competitionSingle:"Etec Cubat\xE3o 2022",competitionAverage:"Etec Cubat\xE3o 2023"},{id:"2014CECC01",name:"Vicenzo Guerino Cecchini",single:4.86,average:6.21,state:"SP",competitionSingle:"Col\xE9gio Asther Open 2023",competitionAverage:"Col\xE9gio 2024"},{id:"2016MAND01",name:"Francisco Moraes Mandalozzo",single:5.07,average:6.25,state:"PR",competitionSingle:"Opentr\xF3polis CEFET 2024",competitionAverage:"Open 2024"},{id:"2012SATO03",name:"Antonio Gabriel Silva",single:5.58,average:6.31,state:"SC",competitionSingle:"South American Championship 2018",competitionAverage:"SAC 2020"},{id:"2012SATO03",name:"Tiago Akihiro Fujita",single:5.68,average:6.41,state:"SP",competitionSingle:"BioAteneu Santos 2023",competitionAverage:"BioAteneu 2024"}],444:[{id:"2012SATO03",name:"Caio Hideaki Sato",single:24.37,average:25.3,state:"SP",competitionSingle:"Etec Cubat\xE3o 2022",competitionAverage:"Etec Cubat\xE3o 2023"},{id:"2014CECC01",name:"Vicenzo Guerino Cecchini",single:24.86,average:26.21,state:"SP",competitionSingle:"Col\xE9gio Asther Open 2023",competitionAverage:"Col\xE9gio 2024"},{id:"2016MAND01",name:"Francisco Moraes Mandalozzo",single:25.07,average:26.25,state:"PR",competitionSingle:"Opentr\xF3polis CEFET 2024",competitionAverage:"Open 2024"},{id:"2012SATO03",name:"Antonio Gabriel Silva",single:25.58,average:26.31,state:"SC",competitionSingle:"South American Championship 2018",competitionAverage:"SAC 2020"},{id:"2012SATO03",name:"Tiago Akihiro Fujita",single:25.68,average:26.41,state:"SP",competitionSingle:"BioAteneu Santos 2023",competitionAverage:"BioAteneu 2024"}],555:[],666:[],777:[],minx:[]},this.updateFilteredResults()}updateFilteredResults(){let e=this.results[this.currentEvent].map(n=>{let r=this.currentKindOfResult=="single"?n.single.toString():n.average.toString();return{name:n.name,result:r,state:n.state,competition:this.currentKindOfResult=="single"?n.competitionSingle:n.competitionAverage}});this.currentState!=""?this.filteredResults=e.filter(n=>n.state==this.currentState):this.filteredResults=e}changeEventTo(e){this.currentEvent=e,this.updateFilteredResults()}changeStateTo(e){this.currentState=e,this.updateFilteredResults()}changeKindTo(e){this.currentKindOfResult=e,this.updateFilteredResults()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Ve({type:t,selectors:[["app-home-rankings"]],standalone:!0,features:[Ue],decls:55,vars:2,consts:[["href","/login"],[1,"cubingEvents"],[3,"click"],[1,"states"],[1,"kindOfResult"],[1,"row","mt-3"],[1,"col"],[1,"table-responsive"],[1,"table","table-hover"],[1,"thead-light"],["width","20",1,"text-center"],[1,"text-center"],["width","100",1,"text-center"],[4,"ngFor","ngForOf"]],template:function(n,r){n&1&&(N(0,"p"),R(1,"Home Rankings"),A(),N(2,"a",0),R(3,"Login"),A(),N(4,"section",1)(5,"div"),R(6,"Modalidade"),A(),N(7,"button",2),ce("click",function(){return r.changeEventTo("333")}),R(8,"333"),A(),N(9,"button",2),ce("click",function(){return r.changeEventTo("444")}),R(10,"444"),A(),N(11,"button",2),ce("click",function(){return r.changeEventTo("555")}),R(12,"555"),A(),N(13,"button",2),ce("click",function(){return r.changeEventTo("666")}),R(14,"666"),A(),N(15,"button",2),ce("click",function(){return r.changeEventTo("777")}),R(16,"777"),A(),N(17,"button",2),ce("click",function(){return r.changeEventTo("minx")}),R(18,"minx"),A()(),N(19,"section",3)(20,"div"),R(21,"Estado"),A(),N(22,"button",2),ce("click",function(){return r.changeStateTo("PR")}),R(23,"PR"),A(),N(24,"button",2),ce("click",function(){return r.changeStateTo("SC")}),R(25,"SC"),A(),N(26,"button",2),ce("click",function(){return r.changeStateTo("SP")}),R(27,"SP"),A()(),N(28,"section",4)(29,"div"),R(30,"Tipo"),A(),N(31,"button",2),ce("click",function(){return r.changeKindTo("single")}),R(32,"Single"),A(),N(33,"button",2),ce("click",function(){return r.changeKindTo("average")}),R(34,"Average"),A()(),N(35,"div",5)(36,"div",6)(37,"h1"),R(38,"Sort & Filter Data Tables in Angular"),A(),N(39,"div",7)(40,"table",8)(41,"thead",9)(42,"tr")(43,"th",10),R(44,"#"),A(),N(45,"th",11),R(46,"Nome"),A(),N(47,"th",12),R(48),A(),N(49,"th",12),R(50,"Estado"),A(),N(51,"th",11),R(52,"Competi\xE7\xE3o"),A()()(),N(53,"tbody"),aa(54,Hw,11,5,"tr",13),A()()()()()),n&2&&(Ce(48),lt(r.currentKindOfResult[0].toUpperCase()+r.currentKindOfResult.substring(1)),Ce(6),ca("ngForOf",r.filteredResults))},dependencies:[pa,Kd]})};var ui=class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Ve({type:t,selectors:[["app-wca-auth"]],standalone:!0,features:[Ue],decls:4,vars:0,consts:[["target","_blank","href","https://www.worldcubeassociation.org/oauth/authorize?client_id=OS6jVGAcxX_MwpLawxS1hRq8IVNEfu-FAthO72ARdyw&redirect_uri=https://diogojs.github.io/wca_statistics/register&response_type=code&scope=public",1,"btn-authorize"]],template:function(n,r){n&1&&(N(0,"p"),R(1,"Login into WCA..."),A(),N(2,"a",0),R(3,"Login WCA"),A())}})};var li=class t{constructor(e,n){this.route=e;this.httpClient=n;this.route.queryParamMap.subscribe(r=>{let o=r.params;o&&(this.api_code=o.code,this.requestToken())})}api_code="";token="";wcaid="";access_token_url="https://www.worldcubeassociation.org/oauth/token";data_url="https://www.worldcubeassociation.org/api/v0/me";requestToken(){let r={grant_type:"authorization_code",code:this.api_code,client_id:"OS6jVGAcxX_MwpLawxS1hRq8IVNEfu-FAthO72ARdyw",client_secret:"OP_J3qaVdOVL0I5vTwzKwRsyY2EVq9xZRKM9KsofN1I",redirect_uri:window.location.origin+window.location.pathname};console.log(r),this.httpClient.post(this.access_token_url,r).subscribe(o=>{console.log("Json object: "),console.log(o)})}static \u0275fac=function(n){return new(n||t)(Ze(mt),Ze(wa))};static \u0275cmp=Ve({type:t,selectors:[["app-user-registration"]],standalone:!0,features:[Ue],decls:8,vars:3,template:function(n,r){n&1&&(N(0,"p"),R(1,"user-registration works!"),A(),N(2,"div"),R(3),A(),N(4,"div"),R(5),A(),N(6,"div"),R(7),A()),n&2&&(Ce(3),dn("API Code: ",r.api_code,""),Ce(2),dn("Access Token: ",r.token,""),Ce(2),dn("WCA ID: ",r.wcaid,""))}})};var rh=[{path:"",component:ci},{path:"login",component:ui},{path:"register",component:li}];var oh={providers:[Fd({eventCoalescing:!0}),nh(rh),df()]};var di=class t{title="website";static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Ve({type:t,selectors:[["app-root"]],standalone:!0,features:[Ue],decls:1,vars:0,template:function(n,r){n&1&&zn(0,"router-outlet")},dependencies:[sc]})};Df(di,oh).catch(t=>console.error(t)); diff --git a/website/src/app/home-rankings/home-rankings.component.ts b/website/src/app/home-rankings/home-rankings.component.ts index 402d838..15c5f91 100644 --- a/website/src/app/home-rankings/home-rankings.component.ts +++ b/website/src/app/home-rankings/home-rankings.component.ts @@ -1,7 +1,7 @@ import { CommonModule } from '@angular/common'; import { Component, OnInit } from '@angular/core'; import { CubingEvent, PersonResult, Result } from '../data'; -import dataJson from '../data.json'; +//import dataJson from '../data.json'; @Component({ selector: 'app-home-rankings', @@ -21,7 +21,109 @@ export class HomeRankingsComponent implements OnInit { constructor() {} ngOnInit(): void { - this.results = dataJson; + // this.results = dataJson; + this.results = { + "333": + [ + { + "id": "2012SATO03", + "name": "Caio Hideaki Sato", + "single": 4.37, + "average": 5.30, + "state": "SP", + "competitionSingle": "Etec Cubatão 2022", + "competitionAverage": "Etec Cubatão 2023" + }, + { + "id": "2014CECC01", + "name": "Vicenzo Guerino Cecchini", + "single": 4.86, + "average": 6.21, + "state": "SP", + "competitionSingle": "Colégio Asther Open 2023", + "competitionAverage": "Colégio 2024" + }, + { + "id": "2016MAND01", + "name": "Francisco Moraes Mandalozzo", + "single": 5.07, + "average": 6.25, + "state": "PR", + "competitionSingle": "Opentrópolis CEFET 2024", + "competitionAverage": "Open 2024" + }, + { + "id": "2012SATO03", + "name": "Antonio Gabriel Silva", + "single": 5.58, + "average": 6.31, + "state": "SC", + "competitionSingle": "South American Championship 2018", + "competitionAverage": "SAC 2020" + }, + { + "id": "2012SATO03", + "name": "Tiago Akihiro Fujita", + "single": 5.68, + "average": 6.41, + "state": "SP", + "competitionSingle": "BioAteneu Santos 2023", + "competitionAverage": "BioAteneu 2024" + } + ], + "444": + [ + { + "id": "2012SATO03", + "name": "Caio Hideaki Sato", + "single": 24.37, + "average": 25.30, + "state": "SP", + "competitionSingle": "Etec Cubatão 2022", + "competitionAverage": "Etec Cubatão 2023" + }, + { + "id": "2014CECC01", + "name": "Vicenzo Guerino Cecchini", + "single": 24.86, + "average": 26.21, + "state": "SP", + "competitionSingle": "Colégio Asther Open 2023", + "competitionAverage": "Colégio 2024" + }, + { + "id": "2016MAND01", + "name": "Francisco Moraes Mandalozzo", + "single": 25.07, + "average": 26.25, + "state": "PR", + "competitionSingle": "Opentrópolis CEFET 2024", + "competitionAverage": "Open 2024" + }, + { + "id": "2012SATO03", + "name": "Antonio Gabriel Silva", + "single": 25.58, + "average": 26.31, + "state": "SC", + "competitionSingle": "South American Championship 2018", + "competitionAverage": "SAC 2020" + }, + { + "id": "2012SATO03", + "name": "Tiago Akihiro Fujita", + "single": 25.68, + "average": 26.41, + "state": "SP", + "competitionSingle": "BioAteneu Santos 2023", + "competitionAverage": "BioAteneu 2024" + } + ], + "555": [], + "666": [], + "777": [], + "minx": [] + } this.updateFilteredResults(); } diff --git a/website/src/app/user-registration/user-registration.component.ts b/website/src/app/user-registration/user-registration.component.ts index 5d7ad93..10f7753 100644 --- a/website/src/app/user-registration/user-registration.component.ts +++ b/website/src/app/user-registration/user-registration.component.ts @@ -1,7 +1,7 @@ import { HttpClient } from '@angular/common/http'; import { Component } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; -import wcaSecrets from '../../../wcaauth.json' +//import wcaSecrets from '../../../wcaauth.json' @Component({ selector: 'app-user-registration', @@ -33,11 +33,15 @@ export class UserRegistrationComponent { } requestToken(): void { + // let cid = wcaSecrets.client_id; + // let sec = wcaSecrets.secret; + let cid = "OS6jVGAcxX_MwpLawxS1hRq8IVNEfu-FAthO72ARdyw"; + let sec = "OP_J3qaVdOVL0I5vTwzKwRsyY2EVq9xZRKM9KsofN1I"; let api_params = { grant_type:'authorization_code', code:this.api_code, - client_id:wcaSecrets.client_id, - client_secret:wcaSecrets.secret, + client_id:cid, + client_secret:sec, redirect_uri:window.location.origin + window.location.pathname } console.log(api_params);