diff --git a/404.html b/404.html index 6dbcfdc..4739952 100644 --- a/404.html +++ b/404.html @@ -13,5 +13,5 @@ - + diff --git a/index.html b/index.html index 6dbcfdc..4739952 100644 --- a/index.html +++ b/index.html @@ -13,5 +13,5 @@ - + diff --git a/main-GQ2Y4EBA.js b/main-GQ2Y4EBA.js deleted file mode 100644 index eab4ec2..0000000 --- a/main-GQ2Y4EBA.js +++ /dev/null @@ -1,7 +0,0 @@ -var Uf=Object.defineProperty,Hf=Object.defineProperties;var zf=Object.getOwnPropertyDescriptors;var ru=Object.getOwnPropertySymbols;var Gf=Object.prototype.hasOwnProperty,Wf=Object.prototype.propertyIsEnumerable;var iu=(e,t,n)=>t in e?Uf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,g=(e,t)=>{for(var n in t||={})Gf.call(t,n)&&iu(e,n,t[n]);if(ru)for(var n of ru(t))Wf.call(t,n)&&iu(e,n,t[n]);return e},j=(e,t)=>Hf(e,zf(t));var to=(e,t,n)=>new Promise((r,i)=>{var o=u=>{try{a(n.next(u))}catch(c){i(c)}},s=u=>{try{a(n.throw(u))}catch(c){i(c)}},a=u=>u.done?r(u.value):Promise.resolve(u.value).then(o,s);a((n=n.apply(e,t)).next())});var ro=null;var no=1,ou=Symbol("SIGNAL");function O(e){let t=ro;return ro=e,t}function su(){return ro}var io={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 qf(e){if(!(co(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===no)){if(!e.producerMustRecompute(e)&&!so(e)){e.dirty=!1,e.lastCleanEpoch=no;return}e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=no}}function oo(e){return e&&(e.nextProducerIndex=0),O(e)}function au(e,t){if(O(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(co(e))for(let n=e.nextProducerIndex;ne.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function so(e){lo(e);for(let t=0;t0}function lo(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Zf(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Yf(e){return e.producerNode!==void 0}function Qf(){throw new Error}var Kf=Qf;function uu(e){Kf=e}function v(e){return typeof e=="function"}function At(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var mr=At(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription: -${n.map((r,i)=>`${i+1}) ${r.toString()}`).join(` - `)}`:"",this.name="UnsubscriptionError",this.errors=n});function st(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var U=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let o of n)o.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(v(r))try{r()}catch(o){t=o instanceof mr?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{cu(o)}catch(s){t=t??[],s instanceof mr?t=[...t,...s.errors]:t.push(s)}}if(t)throw new mr(t)}}add(t){var n;if(t&&t!==this)if(this.closed)cu(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&st(n,t)}remove(t){let{_finalizers:n}=this;n&&st(n,t),t instanceof e&&t._removeParent(this)}};U.EMPTY=(()=>{let e=new U;return e.closed=!0,e})();var fo=U.EMPTY;function vr(e){return e instanceof U||e&&"closed"in e&&v(e.remove)&&v(e.add)&&v(e.unsubscribe)}function cu(e){v(e)?e():e.unsubscribe()}var ye={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Nt={setTimeout(e,t,...n){let{delegate:r}=Nt;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Nt;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function yr(e){Nt.setTimeout(()=>{let{onUnhandledError:t}=ye;if(t)t(e);else throw e})}function Le(){}var lu=ho("C",void 0,void 0);function du(e){return ho("E",void 0,e)}function fu(e){return ho("N",e,void 0)}function ho(e,t,n){return{kind:e,value:t,error:n}}var at=null;function Rt(e){if(ye.useDeprecatedSynchronousErrorHandling){let t=!at;if(t&&(at={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=at;if(at=null,n)throw r}}else e()}function hu(e){ye.useDeprecatedSynchronousErrorHandling&&at&&(at.errorThrown=!0,at.error=e)}var ut=class extends U{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,vr(t)&&t.add(this)):this.destination=eh}static create(t,n,r){return new Ot(t,n,r)}next(t){this.isStopped?go(fu(t),this):this._next(t)}error(t){this.isStopped?go(du(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?go(lu,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},Jf=Function.prototype.bind;function po(e,t){return Jf.call(e,t)}var mo=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Dr(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Dr(r)}else Dr(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Dr(n)}}},Ot=class extends ut{constructor(t,n,r){super();let i;if(v(t)||!t)i={next:t??void 0,error:n??void 0,complete:r??void 0};else{let o;this&&ye.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),i={next:t.next&&po(t.next,o),error:t.error&&po(t.error,o),complete:t.complete&&po(t.complete,o)}):i=t}this.destination=new mo(i)}};function Dr(e){ye.useDeprecatedSynchronousErrorHandling?hu(e):yr(e)}function Xf(e){throw e}function go(e,t){let{onStoppedNotification:n}=ye;n&&Nt.setTimeout(()=>n(e,t))}var eh={closed:!0,next:Le,error:Xf,complete:Le};var Ft=typeof Symbol=="function"&&Symbol.observable||"@@observable";function se(e){return e}function vo(...e){return yo(e)}function yo(e){return e.length===0?se:e.length===1?e[0]:function(n){return e.reduce((r,i)=>i(r),n)}}var x=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,i){let o=nh(n)?n:new Ot(n,r,i);return Rt(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=pu(r),new r((i,o)=>{let s=new Ot({next:a=>{try{n(a)}catch(u){o(u),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[Ft](){return this}pipe(...n){return yo(n)(this)}toPromise(n){return n=pu(n),new n((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return e.create=t=>new e(t),e})();function pu(e){var t;return(t=e??ye.Promise)!==null&&t!==void 0?t:Promise}function th(e){return e&&v(e.next)&&v(e.error)&&v(e.complete)}function nh(e){return e&&e instanceof ut||th(e)&&vr(e)}function Do(e){return v(e?.lift)}function M(e){return t=>{if(Do(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function A(e,t,n,r,i){return new Co(e,t,n,r,i)}var Co=class extends ut{constructor(t,n,r,i,o,s){super(t),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(u){t.error(u)}}:super._next,this._error=i?function(a){try{i(a)}catch(u){t.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function Pt(){return M((e,t)=>{let n=null;e._refCount++;let r=A(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let i=e._connection,o=n;n=null,i&&(!o||i===o)&&i.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var Ze=class extends x{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Do(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new U;let n=this.getSubject();t.add(this.source.subscribe(A(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=U.EMPTY)}return t}refCount(){return Pt()(this)}};var gu=At(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var z=(()=>{class e extends x{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Cr(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new gu}next(n){Rt(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Rt(()=>{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(){Rt(()=>{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:i,observers:o}=this;return r||i?fo:(this.currentObservers=null,o.push(n),new U(()=>{this.currentObservers=null,st(o,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){let n=new x;return n.source=this,n}}return e.create=(t,n)=>new Cr(t,n),e})(),Cr=class extends z{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:fo}};var q=class extends z{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var wo={now(){return(wo.delegate||Date).now()},delegate:void 0};var wr=class extends U{constructor(t,n){super()}schedule(t,n=0){return this}};var In={setInterval(e,t,...n){let{delegate:r}=In;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=In;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var Er=class extends wr{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=!1}schedule(t,n=0){var r;if(this.closed)return this;this.state=t;let i=this.id,o=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(o,i,n)),this.pending=!0,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(o,this.id,n),this}requestAsyncId(t,n,r=0){return In.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(r!=null&&this.delay===r&&this.pending===!1)return n;n!=null&&In.clearInterval(n)}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let r=this._execute(t,n);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,n){let r=!1,i;try{this.work(t)}catch(o){r=!0,i=o||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),i}unsubscribe(){if(!this.closed){let{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,st(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var kt=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};kt.now=wo.now;var Ir=class extends kt{constructor(t,n=kt.now){super(t,n),this.actions=[],this._active=!1}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=!0;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var Eo=new Ir(Er),mu=Eo;var X=new x(e=>e.complete());function br(e){return e&&v(e.schedule)}function Io(e){return e[e.length-1]}function vu(e){return v(Io(e))?e.pop():void 0}function Me(e){return br(Io(e))?e.pop():void 0}function yu(e,t){return typeof Io(e)=="number"?e.pop():t}function Cu(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(l){try{c(r.next(l))}catch(d){s(d)}}function u(l){try{c(r.throw(l))}catch(d){s(d)}}function c(l){l.done?o(l.value):i(l.value).then(a,u)}c((r=r.apply(e,t||[])).next())})}function Du(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ct(e){return this instanceof ct?(this.v=e,this):new ct(e)}function wu(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(f){return function(m){return Promise.resolve(m).then(f,d)}}function a(f,m){r[f]&&(i[f]=function(T){return new Promise(function(k,V){o.push([f,T,k,V])>1||u(f,T)})},m&&(i[f]=m(i[f])))}function u(f,m){try{c(r[f](m))}catch(T){p(o[0][3],T)}}function c(f){f.value instanceof ct?Promise.resolve(f.value.v).then(l,d):p(o[0][2],f)}function l(f){u("next",f)}function d(f){u("throw",f)}function p(f,m){f(m),o.shift(),o.length&&u(o[0][0],o[0][1])}}function Eu(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Du=="function"?Du(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(s){return new Promise(function(a,u){s=e[o](s),i(a,u,s.done,s.value)})}}function i(o,s,a,u){Promise.resolve(u).then(function(c){o({value:c,done:a})},s)}}var Lt=e=>e&&typeof e.length=="number"&&typeof e!="function";function _r(e){return v(e?.then)}function Mr(e){return v(e[Ft])}function Sr(e){return Symbol.asyncIterator&&v(e?.[Symbol.asyncIterator])}function Tr(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function rh(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var xr=rh();function Ar(e){return v(e?.[xr])}function Nr(e){return wu(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:i}=yield ct(n.read());if(i)return yield ct(void 0);yield yield ct(r)}}finally{n.releaseLock()}})}function Rr(e){return v(e?.getReader)}function L(e){if(e instanceof x)return e;if(e!=null){if(Mr(e))return ih(e);if(Lt(e))return oh(e);if(_r(e))return sh(e);if(Sr(e))return Iu(e);if(Ar(e))return ah(e);if(Rr(e))return uh(e)}throw Tr(e)}function ih(e){return new x(t=>{let n=e[Ft]();if(v(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function oh(e){return new x(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,yr)})}function ah(e){return new x(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Iu(e){return new x(t=>{ch(e,t).catch(n=>t.error(n))})}function uh(e){return Iu(Nr(e))}function ch(e,t){var n,r,i,o;return Cu(this,void 0,void 0,function*(){try{for(n=Eu(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=n.return)&&(yield o.call(n))}finally{if(i)throw i.error}}t.complete()})}function re(e,t,n,r=0,i=!1){let o=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function Or(e,t=0){return M((n,r)=>{n.subscribe(A(r,i=>re(r,e,()=>r.next(i),t),()=>re(r,e,()=>r.complete(),t),i=>re(r,e,()=>r.error(i),t)))})}function Fr(e,t=0){return M((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function bu(e,t){return L(e).pipe(Fr(t),Or(t))}function _u(e,t){return L(e).pipe(Fr(t),Or(t))}function Mu(e,t){return new x(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Su(e,t){return new x(n=>{let r;return re(n,t,()=>{r=e[xr](),re(n,t,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){n.error(s);return}o?n.complete():n.next(i)},0,!0)}),()=>v(r?.return)&&r.return()})}function Pr(e,t){if(!e)throw new Error("Iterable cannot be null");return new x(n=>{re(n,t,()=>{let r=e[Symbol.asyncIterator]();re(n,t,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function Tu(e,t){return Pr(Nr(e),t)}function xu(e,t){if(e!=null){if(Mr(e))return bu(e,t);if(Lt(e))return Mu(e,t);if(_r(e))return _u(e,t);if(Sr(e))return Pr(e,t);if(Ar(e))return Su(e,t);if(Rr(e))return Tu(e,t)}throw Tr(e)}function B(e,t){return t?xu(e,t):L(e)}function C(...e){let t=Me(e);return B(e,t)}function Ye(e,t){let n=v(e)?e:()=>e,r=i=>i.error(n());return new x(t?i=>t.schedule(r,0,i):r)}function bo(e){return!!e&&(e instanceof x||v(e.lift)&&v(e.subscribe))}var Ve=At(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Au(e){return e instanceof Date&&!isNaN(e)}function I(e,t){return M((n,r)=>{let i=0;n.subscribe(A(r,o=>{r.next(e.call(t,o,i++))}))})}var{isArray:lh}=Array;function dh(e,t){return lh(t)?e(...t):e(t)}function kr(e){return I(t=>dh(e,t))}var{isArray:fh}=Array,{getPrototypeOf:hh,prototype:ph,keys:gh}=Object;function Nu(e){if(e.length===1){let t=e[0];if(fh(t))return{args:t,keys:null};if(mh(t)){let n=gh(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function mh(e){return e&&typeof e=="object"&&hh(e)===ph}function Ru(e,t){return e.reduce((n,r,i)=>(n[r]=t[i],n),{})}function Lr(...e){let t=Me(e),n=vu(e),{args:r,keys:i}=Nu(e);if(r.length===0)return B([],t);let o=new x(vh(r,t,i?s=>Ru(i,s):se));return n?o.pipe(kr(n)):o}function vh(e,t,n=se){return r=>{Ou(t,()=>{let{length:i}=e,o=new Array(i),s=i,a=i;for(let u=0;u{let c=B(e[u],t),l=!1;c.subscribe(A(r,d=>{o[u]=d,l||(l=!0,a--),a||r.next(n(o.slice()))},()=>{--s||r.complete()}))},r)},r)}}function Ou(e,t,n){e?re(n,e,t):t()}function Fu(e,t,n,r,i,o,s,a){let u=[],c=0,l=0,d=!1,p=()=>{d&&!u.length&&!c&&t.complete()},f=T=>c{o&&t.next(T),c++;let k=!1;L(n(T,l++)).subscribe(A(t,V=>{i?.(V),o?f(V):t.next(V)},()=>{k=!0},void 0,()=>{if(k)try{for(c--;u.length&&cm(V)):m(V)}p()}catch(V){t.error(V)}}))};return e.subscribe(A(t,f,()=>{d=!0,p()})),()=>{a?.()}}function $(e,t,n=1/0){return v(t)?$((r,i)=>I((o,s)=>t(r,o,i,s))(L(e(r,i))),n):(typeof t=="number"&&(n=t),M((r,i)=>Fu(r,i,e,n)))}function bn(e=1/0){return $(se,e)}function Pu(){return bn(1)}function Se(...e){return Pu()(B(e,Me(e)))}function lt(e){return new x(t=>{L(e()).subscribe(t)})}var yh=["addListener","removeListener"],Dh=["addEventListener","removeEventListener"],Ch=["on","off"];function Vt(e,t,n,r){if(v(n)&&(r=n,n=void 0),r)return Vt(e,t,n).pipe(kr(r));let[i,o]=Ih(e)?Dh.map(s=>a=>e[s](t,a,n)):wh(e)?yh.map(ku(e,t)):Eh(e)?Ch.map(ku(e,t)):[];if(!i&&Lt(e))return $(s=>Vt(s,t,n))(L(e));if(!i)throw new TypeError("Invalid event target");return new x(s=>{let a=(...u)=>s.next(1o(a)})}function ku(e,t){return n=>r=>e[n](t,r)}function wh(e){return v(e.addListener)&&v(e.removeListener)}function Eh(e){return v(e.on)&&v(e.off)}function Ih(e){return v(e.addEventListener)&&v(e.removeEventListener)}function Lu(e=0,t,n=mu){let r=-1;return t!=null&&(br(t)?n=t:r=t),new x(i=>{let o=Au(e)?+e-n.now():e;o<0&&(o=0);let s=0;return n.schedule(function(){i.closed||(i.next(s++),0<=r?this.schedule(void 0,r):i.complete())},o)})}function Vr(...e){let t=Me(e),n=yu(e,1/0),r=e;return r.length?r.length===1?L(r[0]):bn(n)(B(r,t)):X}var dt=new x(Le);function Q(e,t){return M((n,r)=>{let i=0;n.subscribe(A(r,o=>e.call(t,o,i++)&&r.next(o)))})}function Qe(e){return M((t,n)=>{let r=null,i=!1,o;r=t.subscribe(A(n,void 0,void 0,s=>{o=L(e(s,Qe(e)(t))),r?(r.unsubscribe(),r=null,o.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(n))})}function Vu(e,t,n,r,i){return(o,s)=>{let a=n,u=t,c=0;o.subscribe(A(s,l=>{let d=c++;u=a?e(u,l,d):(a=!0,l),r&&s.next(u)},i&&(()=>{a&&s.next(u),s.complete()})))}}function jt(e,t){return v(t)?$(e,t,1):$(e,1)}function ju(e){return new x(t=>e.subscribe(t))}var bh={connector:()=>new z};function jr(e,t=bh){let{connector:n}=t;return M((r,i)=>{let o=n();L(e(ju(o))).subscribe(i),i.add(r.subscribe(o))})}function Ke(e){return M((t,n)=>{let r=!1;t.subscribe(A(n,i=>{r=!0,n.next(i)},()=>{r||n.next(e),n.complete()}))})}function G(e){return e<=0?()=>X:M((t,n)=>{let r=0;t.subscribe(A(n,i=>{++r<=e&&(n.next(i),e<=r&&n.complete())}))})}function Bu(){return M((e,t)=>{e.subscribe(A(t,Le))})}function _n(e){return I(()=>e)}function _o(e,t){return t?n=>Se(t.pipe(G(1),Bu()),n.pipe(_o(e))):$((n,r)=>L(e(n,r)).pipe(G(1),_n(n)))}function Mo(e,t=Eo){let n=Lu(e,t);return _o(()=>n)}function Br(e=_h){return M((t,n)=>{let r=!1;t.subscribe(A(n,i=>{r=!0,n.next(i)},()=>r?n.complete():n.error(e())))})}function _h(){return new Ve}function Mn(e){return M((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Te(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Q((i,o)=>e(i,o,r)):se,G(1),n?Ke(t):Br(()=>new Ve))}function Bt(e){return e<=0?()=>X:M((t,n)=>{let r=[];t.subscribe(A(n,i=>{r.push(i),e{for(let i of r)n.next(i);n.complete()},void 0,()=>{r=null}))})}function So(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Q((i,o)=>e(i,o,r)):se,Bt(1),n?Ke(t):Br(()=>new Ve))}function $u(e,t){let n=v(e)?e:()=>e;return v(t)?jr(t,{connector:n}):r=>new Ze(r,n)}function To(e){return e?t=>jr(e)(t):t=>$u(new z)(t)}function xo(e,t){return M(Vu(e,t,arguments.length>=2,!0))}function Ao(...e){let t=Me(e);return M((n,r)=>{(t?Se(e,n,t):Se(e,n)).subscribe(r)})}function K(e,t){return M((n,r)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&r.complete();n.subscribe(A(r,u=>{i?.unsubscribe();let c=0,l=o++;L(e(u,l)).subscribe(i=A(r,d=>r.next(t?t(u,d,l,c++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function No(e){return M((t,n)=>{L(e).subscribe(A(n,()=>n.complete(),Le)),!n.closed&&t.subscribe(n)})}function W(e,t,n){let r=v(e)||t||n?{next:e,error:t,complete:n}:e;return r?M((i,o)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;i.subscribe(A(o,u=>{var c;(c=r.next)===null||c===void 0||c.call(r,u),o.next(u)},()=>{var u;a=!1,(u=r.complete)===null||u===void 0||u.call(r),o.complete()},u=>{var c;a=!1,(c=r.error)===null||c===void 0||c.call(r,u),o.error(u)},()=>{var u,c;a&&((u=r.unsubscribe)===null||u===void 0||u.call(r)),(c=r.finalize)===null||c===void 0||c.call(r)}))}):se}var y=class extends Error{constructor(t,n){super(Ds(t,n)),this.code=t}};function Ds(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}function hi(e){return{toString:e}.toString()}function P(e){for(let t in e)if(e[t]===P)return t;throw Error("Could not find renamed property on target object.")}function ie(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(ie).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(t==null)return""+t;let n=t.indexOf(` -`);return n===-1?t:t.substring(0,n)}function Uu(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var Mh=P({__forward_ref__:P});function Cs(e){return e.__forward_ref__=Cs,e.toString=function(){return ie(this())},e}function de(e){return Ic(e)?e():e}function Ic(e){return typeof e=="function"&&e.hasOwnProperty(Mh)&&e.__forward_ref__===Cs}function D(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function rt(e){return{providers:e.providers||[],imports:e.imports||[]}}function pi(e){return Hu(e,_c)||Hu(e,Mc)}function bc(e){return pi(e)!==null}function Hu(e,t){return e.hasOwnProperty(t)?e[t]:null}function Sh(e){let t=e&&(e[_c]||e[Mc]);return t||null}function zu(e){return e&&(e.hasOwnProperty(Gu)||e.hasOwnProperty(Th))?e[Gu]:null}var _c=P({\u0275prov:P}),Gu=P({\u0275inj:P}),Mc=P({ngInjectableDef:P}),Th=P({ngInjectorDef:P}),E=class{constructor(t,n){this._desc=t,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 Sc(e){return e&&!!e.\u0275providers}var xh=P({\u0275cmp:P}),Ah=P({\u0275dir:P}),Nh=P({\u0275pipe:P}),Rh=P({\u0275mod:P}),qr=P({\u0275fac:P}),xn=P({__NG_ELEMENT_ID__:P}),Wu=P({__NG_ENV_ID__:P});function Oh(e){return typeof e=="string"?e:e==null?"":String(e)}function Fh(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():Oh(e)}function Ph(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new y(-200,e)}function ws(e,t){throw new y(-201,!1)}var _=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(_||{}),Bo;function Tc(){return Bo}function le(e){let t=Bo;return Bo=e,t}function xc(e,t,n){let r=pi(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&_.Optional)return null;if(t!==void 0)return t;ws(e,"Injector")}var kh={},An=kh,Lh="__NG_DI_FLAG__",Zr="ngTempTokenPath",Vh="ngTokenPath",jh=/\n/gm,Bh="\u0275",qu="__source",zt;function $h(){return zt}function Je(e){let t=zt;return zt=e,t}function Uh(e,t=_.Default){if(zt===void 0)throw new y(-203,!1);return zt===null?xc(e,void 0,t):zt.get(e,t&_.Optional?null:void 0,t)}function S(e,t=_.Default){return(Tc()||Uh)(de(e),t)}function h(e,t=_.Default){return S(e,gi(t))}function gi(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function $o(e){let t=[];for(let n=0;n ");else if(typeof t=="object"){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):ie(a)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(jh,` - `)}`}function Wt(e,t){let n=e.hasOwnProperty(qr);return n?e[qr]:null}function Es(e,t){e.forEach(n=>Array.isArray(n)?Es(n,t):t(n))}function Ac(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Yr(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}var Nn={},xe=[],qt=new E(""),Nc=new E("",-1),Rc=new E(""),Qr=class{get(t,n=An){if(n===An){let r=new Error(`NullInjectorError: No provider for ${ie(t)}!`);throw r.name="NullInjectorError",r}return n}},Oc=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(Oc||{}),Re=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Re||{}),et=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(et||{});function Wh(e,t,n){let r=e.length;for(;;){let i=e.indexOf(t,n);if(i===-1)return i;if(i===0||e.charCodeAt(i-1)<=32){let o=t.length;if(i+o===r||e.charCodeAt(i+o)<=32)return i}n=i+1}}function Uo(e,t,n){let r=0;for(;rt){s=o-1;break}}}for(;o-1){let o;for(;++io?d="":d=i[l+1].toLowerCase(),r&2&&c!==d){if(De(r))return!1;s=!0}}}}return De(r)||s}function De(e){return(e&1)===0}function Jh(e,t,n,r){if(t===null)return-1;let i=0;if(r||!n){let o=!1;for(;i-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?i+="."+s:r&4&&(i+=" "+s);else i!==""&&!De(s)&&(t+=Yu(o,i),i=""),r=s,o=o||!De(r);n++}return i!==""&&(t+=Yu(o,i)),t}function rp(e){return e.map(np).join(",")}function ip(e){let t=[],n=[],r=1,i=2;for(;r{let t=jc(e),n=j(g({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Oc.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Re.Emulated,styles:e.styles||xe,_:null,schemas:e.schemas||null,tView:null,id:""});Bc(n);let r=e.dependencies;return n.directiveDefs=Ku(r,!1),n.pipeDefs=Ku(r,!0),n.id=ap(n),n})}function op(e){return pt(e)||Pc(e)}function sp(e){return e!==null}function it(e){return hi(()=>({type:e.type,bootstrap:e.bootstrap||xe,declarations:e.declarations||xe,imports:e.imports||xe,exports:e.exports||xe,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Qu(e,t){if(e==null)return Nn;let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],o,s,a=et.None;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o):(o=i,s=i),t?(n[o]=a!==et.None?[r,a]:r,t[o]=s):n[o]=r}return n}function Vn(e){return hi(()=>{let t=jc(e);return Bc(t),t})}function pt(e){return e[xh]||null}function Pc(e){return e[Ah]||null}function kc(e){return e[Nh]||null}function Lc(e){let t=pt(e)||Pc(e)||kc(e);return t!==null?t.standalone:!1}function Vc(e,t){let n=e[Rh]||null;if(!n&&t===!0)throw new Error(`Type ${ie(e)} does not have '\u0275mod' property.`);return n}function jc(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||Nn,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||xe,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Qu(e.inputs,t),outputs:Qu(e.outputs),debugInfo:null}}function Bc(e){e.features?.forEach(t=>t(e))}function Ku(e,t){if(!e)return null;let n=t?kc:op;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(sp)}function ap(e){let t=0,n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(let i of n)t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function en(e){return{\u0275providers:e}}function up(...e){return{\u0275providers:$c(!0,e),\u0275fromNgModule:!0}}function $c(e,...t){let n=[],r=new Set,i,o=s=>{n.push(s)};return Es(t,s=>{let a=s;Ho(a,o,[],r)&&(i||=[],i.push(a))}),i!==void 0&&Uc(i,o),n}function Uc(e,t){for(let n=0;n{t(o,r)})}}function Ho(e,t,n,r){if(e=de(e),!e)return!1;let i=null,o=zu(e),s=!o&&pt(e);if(!o&&!s){let u=e.ngModule;if(o=zu(u),o)i=u;else return!1}else{if(s&&!s.standalone)return!1;i=e}let a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){let u=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of u)Ho(c,t,n,r)}}else if(o){if(o.imports!=null&&!a){r.add(i);let c;try{Es(o.imports,l=>{Ho(l,t,n,r)&&(c||=[],c.push(l))})}finally{}c!==void 0&&Uc(c,t)}if(!a){let c=Wt(i)||(()=>new i);t({provide:i,useFactory:c,deps:xe},i),t({provide:Rc,useValue:i,multi:!0},i),t({provide:qt,useValue:()=>S(i),multi:!0},i)}let u=o.providers;if(u!=null&&!a){let c=e;_s(u,l=>{t(l,c)})}}else return!1;return i!==e&&e.providers!==void 0}function _s(e,t){for(let n of e)Sc(n)&&(n=n.\u0275providers),Array.isArray(n)?_s(n,t):t(n)}var cp=P({provide:String,useValue:P});function Hc(e){return e!==null&&typeof e=="object"&&cp in e}function lp(e){return!!(e&&e.useExisting)}function dp(e){return!!(e&&e.useFactory)}function zo(e){return typeof e=="function"}var vi=new E(""),Ur={},fp={},Ro;function Ms(){return Ro===void 0&&(Ro=new Qr),Ro}var pe=class{},Rn=class extends pe{get destroyed(){return this._destroyed}constructor(t,n,r,i){super(),this.parent=n,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Wo(t,s=>this.processProvider(s)),this.records.set(Nc,$t(void 0,this)),i.has("environment")&&this.records.set(pe,$t(void 0,this));let o=this.records.get(vi);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Rc,xe,_.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let t=O(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(),O(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let n=Je(this),r=le(void 0),i;try{return t()}finally{Je(n),le(r)}}get(t,n=An,r=_.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(Wu))return t[Wu](this);r=gi(r);let i,o=Je(this),s=le(void 0);try{if(!(r&_.SkipSelf)){let u=this.records.get(t);if(u===void 0){let c=yp(t)&&pi(t);c&&this.injectableDefInScope(c)?u=$t(Go(t),Ur):u=null,this.records.set(t,u)}if(u!=null)return this.hydrate(t,u)}let a=r&_.Self?Ms():this.parent;return n=r&_.Optional&&n===An?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Zr]=a[Zr]||[]).unshift(ie(t)),o)throw a;return zh(a,t,"R3InjectorError",this.source)}else throw a}finally{le(s),Je(o)}}resolveInjectorInitializers(){let t=O(null),n=Je(this),r=le(void 0),i;try{let o=this.get(qt,xe,_.Self);for(let s of o)s()}finally{Je(n),le(r),O(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(ie(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new y(205,!1)}processProvider(t){t=de(t);let n=zo(t)?t:de(t&&t.provide),r=pp(t);if(!zo(t)&&t.multi===!0){let i=this.records.get(n);i||(i=$t(void 0,Ur,!0),i.factory=()=>$o(i.multi),this.records.set(n,i)),n=t,i.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=O(null);try{return n.value===Ur&&(n.value=fp,n.value=n.factory()),typeof n.value=="object"&&n.value&&vp(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{O(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=de(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function Go(e){let t=pi(e),n=t!==null?t.factory:Wt(e);if(n!==null)return n;if(e instanceof E)throw new y(204,!1);if(e instanceof Function)return hp(e);throw new y(204,!1)}function hp(e){if(e.length>0)throw new y(204,!1);let n=Sh(e);return n!==null?()=>n.factory(e):()=>new e}function pp(e){if(Hc(e))return $t(void 0,e.useValue);{let t=gp(e);return $t(t,Ur)}}function gp(e,t,n){let r;if(zo(e)){let i=de(e);return Wt(i)||Go(i)}else if(Hc(e))r=()=>de(e.useValue);else if(dp(e))r=()=>e.useFactory(...$o(e.deps||[]));else if(lp(e))r=()=>S(de(e.useExisting));else{let i=de(e&&(e.useClass||e.provide));if(mp(e))r=()=>new i(...$o(e.deps));else return Wt(i)||Go(i)}return r}function $t(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function mp(e){return!!e.deps}function vp(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function yp(e){return typeof e=="function"||typeof e=="object"&&e instanceof E}function Wo(e,t){for(let n of e)Array.isArray(n)?Wo(n,t):n&&Sc(n)?Wo(n.\u0275providers,t):t(n)}function Ue(e,t){e instanceof Rn&&e.assertNotDestroyed();let n,r=Je(e),i=le(void 0);try{return t()}finally{Je(r),le(i)}}function Dp(){return Tc()!==void 0||$h()!=null}function Cp(e){return typeof e=="function"}var He=0,N=1,w=2,ee=3,Ce=4,Ee=5,Kr=6,Jr=7,we=8,Zt=9,je=10,ae=11,On=12,Ju=13,tn=14,Oe=15,Yt=16,Ut=17,Qt=18,yi=19,zc=20,Xe=21,Oo=22,fe=23,tt=25,Gc=1;var gt=7,Xr=8,ei=9,he=10,ti=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(ti||{});function ft(e){return Array.isArray(e)&&typeof e[Gc]=="object"}function ze(e){return Array.isArray(e)&&e[Gc]===!0}function Wc(e){return(e.flags&4)!==0}function Di(e){return e.componentOffset>-1}function Ss(e){return(e.flags&1)===1}function jn(e){return!!e.template}function qo(e){return(e[w]&512)!==0}var Zo=class{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function qc(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function Bn(){return Zc}function Zc(e){return e.type.prototype.ngOnChanges&&(e.setInput=Ep),wp}Bn.ngInherit=!0;function wp(){let e=Qc(this),t=e?.current;if(t){let n=e.previous;if(n===Nn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Ep(e,t,n,r,i){let o=this.declaredInputs[r],s=Qc(e)||Ip(e,{previous:Nn,current:null}),a=s.current||(s.current={}),u=s.previous,c=u[o];a[o]=new Zo(c&&c.currentValue,n,u===Nn),qc(e,t,i,n)}var Yc="__ngSimpleChanges__";function Qc(e){return e[Yc]||null}function Ip(e,t){return e[Yc]=t}var Xu=null;var Ae=function(e,t,n){Xu?.(e,t,n)},bp="svg",_p="math";function Be(e){for(;Array.isArray(e);)e=e[He];return e}function Ie(e,t){return Be(t[e.index])}function Kc(e,t){return e.data[t]}function Ct(e,t){let n=t[e];return ft(n)?n:n[He]}function Ts(e){return(e[w]&128)===128}function Mp(e){return ze(e[ee])}function ni(e,t){return t==null?null:e[t]}function Jc(e){e[Ut]=0}function Xc(e){e[w]&1024||(e[w]|=1024,Ts(e)&&wi(e))}function Sp(e,t){for(;e>0;)t=t[tn],e--;return t}function Ci(e){return!!(e[w]&9216||e[fe]?.dirty)}function Yo(e){e[je].changeDetectionScheduler?.notify(8),e[w]&64&&(e[w]|=1024),Ci(e)&&wi(e)}function wi(e){e[je].changeDetectionScheduler?.notify(0);let t=mt(e);for(;t!==null&&!(t[w]&8192||(t[w]|=8192,!Ts(t)));)t=mt(t)}function el(e,t){if((e[w]&256)===256)throw new y(911,!1);e[Xe]===null&&(e[Xe]=[]),e[Xe].push(t)}function Tp(e,t){if(e[Xe]===null)return;let n=e[Xe].indexOf(t);n!==-1&&e[Xe].splice(n,1)}function mt(e){let t=e[ee];return ze(t)?t[ee]:t}var R={lFrame:dl(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var tl=!1;function xp(){return R.lFrame.elementDepthCount}function Ap(){R.lFrame.elementDepthCount++}function Np(){R.lFrame.elementDepthCount--}function nl(){return R.bindingsEnabled}function Rp(){return R.skipHydrationRootTNode!==null}function Op(e){return R.skipHydrationRootTNode===e}function Fp(){R.skipHydrationRootTNode=null}function Z(){return R.lFrame.lView}function wt(){return R.lFrame.tView}function rl(e){return R.lFrame.contextLView=e,e[we]}function il(e){return R.lFrame.contextLView=null,e}function be(){let e=ol();for(;e!==null&&e.type===64;)e=e.parent;return e}function ol(){return R.lFrame.currentTNode}function Pp(){let e=R.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function $n(e,t){let n=R.lFrame;n.currentTNode=e,n.isParent=t}function sl(){return R.lFrame.isParent}function kp(){R.lFrame.isParent=!1}function al(){return tl}function ec(e){tl=e}function Lp(e){return R.lFrame.bindingIndex=e}function Vp(){return R.lFrame.bindingIndex++}function jp(){return R.lFrame.inI18n}function Bp(e,t){let n=R.lFrame;n.bindingIndex=n.bindingRootIndex=e,Qo(t)}function $p(){return R.lFrame.currentDirectiveIndex}function Qo(e){R.lFrame.currentDirectiveIndex=e}function ul(e){R.lFrame.currentQueryIndex=e}function Up(e){let t=e[N];return t.type===2?t.declTNode:t.type===1?e[Ee]:null}function cl(e,t,n){if(n&_.SkipSelf){let i=t,o=e;for(;i=i.parent,i===null&&!(n&_.Host);)if(i=Up(o),i===null||(o=o[tn],i.type&10))break;if(i===null)return!1;t=i,e=o}let r=R.lFrame=ll();return r.currentTNode=t,r.lView=e,!0}function xs(e){let t=ll(),n=e[N];R.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function ll(){let e=R.lFrame,t=e===null?null:e.child;return t===null?dl(e):t}function dl(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function fl(){let e=R.lFrame;return R.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var hl=fl;function As(){let e=fl();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Hp(e){return(R.lFrame.contextLView=Sp(e,R.lFrame.contextLView))[we]}function pl(){return R.lFrame.selectedIndex}function vt(e){R.lFrame.selectedIndex=e}function zp(){let e=R.lFrame;return Kc(e.tView,e.selectedIndex)}function Gp(){return R.lFrame.currentNamespace}var gl=!0;function Ns(){return gl}function Rs(e){gl=e}function Wp(e,t,n){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){let s=Zc(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}i&&(n.preOrderHooks??=[]).push(0-e,i),o&&((n.preOrderHooks??=[]).push(e,o),(n.preOrderCheckHooks??=[]).push(e,o))}function Os(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[u]<0&&(e[Ut]+=65536),(a>14>16&&(e[w]&3)===t&&(e[w]+=16384,tc(a,o)):tc(a,o)}var Gt=-1,Fn=class{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function Zp(e){return e instanceof Fn}function Yp(e){return(e.flags&8)!==0}function Qp(e){return(e.flags&16)!==0}var Po={},Ko=class{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=gi(r);let i=this.injector.get(t,Po,r);return i!==Po||n===Po?i:this.parentInjector.get(t,n,r)}};function vl(e){return e!==Gt}function ri(e){return e&32767}function Kp(e){return e>>16}function ii(e,t){let n=Kp(e),r=t;for(;n>0;)r=r[tn],n--;return r}var Jo=!0;function nc(e){let t=Jo;return Jo=e,t}var Jp=256,yl=Jp-1,Dl=5,Xp=0,Ne={};function eg(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(xn)&&(r=n[xn]),r==null&&(r=n[xn]=Xp++);let i=r&yl,o=1<>Dl)]|=o}function Cl(e,t){let n=wl(e,t);if(n!==-1)return n;let r=t[N];r.firstCreatePass&&(e.injectorIndex=t.length,ko(r.data,e),ko(t,null),ko(r.blueprint,null));let i=Fs(e,t),o=e.injectorIndex;if(vl(i)){let s=ri(i),a=ii(i,t),u=a[N].data;for(let c=0;c<8;c++)t[o+c]=a[s+c]|u[s+c]}return t[o+8]=i,o}function ko(e,t){e.push(0,0,0,0,0,0,0,0,t)}function wl(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Fs(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;i!==null;){if(r=Ml(i),r===null)return Gt;if(n++,i=i[tn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Gt}function tg(e,t,n){eg(e,t,n)}function El(e,t,n){if(n&_.Optional||e!==void 0)return e;ws(t,"NodeInjector")}function Il(e,t,n,r){if(n&_.Optional&&r===void 0&&(r=null),!(n&(_.Self|_.Host))){let i=e[Zt],o=le(void 0);try{return i?i.get(t,r,n&_.Optional):xc(t,r,n&_.Optional)}finally{le(o)}}return El(r,t,n)}function bl(e,t,n,r=_.Default,i){if(e!==null){if(t[w]&2048&&!(r&_.Self)){let s=sg(e,t,n,r,Ne);if(s!==Ne)return s}let o=_l(e,t,n,r,Ne);if(o!==Ne)return o}return Il(t,n,r,i)}function _l(e,t,n,r,i){let o=ig(n);if(typeof o=="function"){if(!cl(t,e,r))return r&_.Host?El(i,n,r):Il(t,n,r,i);try{let s;if(s=o(r),s==null&&!(r&_.Optional))ws(n);else return s}finally{hl()}}else if(typeof o=="number"){let s=null,a=wl(e,t),u=Gt,c=r&_.Host?t[Oe][Ee]:null;for((a===-1||r&_.SkipSelf)&&(u=a===-1?Fs(e,t):t[a+8],u===Gt||!ic(r,!1)?a=-1:(s=t[N],a=ri(u),t=ii(u,t)));a!==-1;){let l=t[N];if(rc(o,a,l.data)){let d=ng(a,t,n,s,r,c);if(d!==Ne)return d}u=t[a+8],u!==Gt&&ic(r,t[N].data[a+8]===c)&&rc(o,a,t)?(s=l,a=ri(u),t=ii(u,t)):a=-1}}return i}function ng(e,t,n,r,i,o){let s=t[N],a=s.data[e+8],u=r==null?Di(a)&&Jo:r!=s&&(a.type&3)!==0,c=i&_.Host&&o===a,l=rg(a,s,n,u,c);return l!==null?Pn(t,s,l,a):Ne}function rg(e,t,n,r,i){let o=e.providerIndexes,s=t.data,a=o&1048575,u=e.directiveStart,c=e.directiveEnd,l=o>>20,d=r?a:a+l,p=i?a+l:c;for(let f=d;f=u&&m.type===n)return f}if(i){let f=s[u];if(f&&jn(f)&&f.type===n)return u}return null}function Pn(e,t,n,r){let i=e[n],o=t.data;if(Zp(i)){let s=i;s.resolving&&Ph(Fh(o[n]));let a=nc(s.canSeeViewProviders);s.resolving=!0;let u,c=s.injectImpl?le(s.injectImpl):null,l=cl(e,r,_.Default);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&Wp(n,o[n],t)}finally{c!==null&&le(c),nc(a),s.resolving=!1,hl()}}return i}function ig(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(xn)?e[xn]:void 0;return typeof t=="number"?t>=0?t&yl:og:t}function rc(e,t,n){let r=1<>Dl)]&r)}function ic(e,t){return!(e&_.Self)&&!(e&_.Host&&t)}var ht=class{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return bl(this._tNode,this._lView,t,gi(r),n)}};function og(){return new ht(be(),Z())}function Ei(e){return hi(()=>{let t=e.prototype.constructor,n=t[qr]||Xo(t),r=Object.prototype,i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){let o=i[qr]||Xo(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function Xo(e){return Ic(e)?()=>{let t=Xo(de(e));return t&&t()}:Wt(e)}function sg(e,t,n,r,i){let o=e,s=t;for(;o!==null&&s!==null&&s[w]&2048&&!(s[w]&512);){let a=_l(o,s,n,r|_.Self,Ne);if(a!==Ne)return a;let u=o.parent;if(!u){let c=s[zc];if(c){let l=c.get(n,Ne,r);if(l!==Ne)return l}u=Ml(s),s=s[tn]}o=u}return i}function Ml(e){let t=e[N],n=t.type;return n===2?t.declTNode:n===1?e[Ee]:null}function oc(e,t=null,n=null,r){let i=Sl(e,t,n,r);return i.resolveInjectorInitializers(),i}function Sl(e,t=null,n=null,r,i=new Set){let o=[n||xe,up(e)];return r=r||(typeof e=="object"?void 0:ie(e)),new Rn(o,t||Ms(),r||null,i)}var Fe=class e{static{this.THROW_IF_NOT_FOUND=An}static{this.NULL=new Qr}static create(t,n){if(Array.isArray(t))return oc({name:""},n,t,"");{let r=t.name??"";return oc({name:r},t.parent,t.providers,r)}}static{this.\u0275prov=D({token:e,providedIn:"any",factory:()=>S(Nc)})}static{this.__NG_ELEMENT_ID__=-1}};var ag=new E("");ag.__NG_ELEMENT_ID__=e=>{let t=be();if(t===null)throw new y(204,!1);if(t.type&2)return t.value;if(e&_.Optional)return null;throw new y(204,!1)};var ug="ngOriginalError";function Lo(e){return e[ug]}var Tl=!0,xl=(()=>{class e{static{this.__NG_ELEMENT_ID__=cg}static{this.__NG_ENV_ID__=n=>n}}return e})(),es=class extends xl{constructor(t){super(),this._lView=t}onDestroy(t){return el(this._lView,t),()=>Tp(this._lView,t)}};function cg(){return new es(Z())}var nn=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new q(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275prov=D({token:e,providedIn:"root",factory:()=>new e})}}return e})();var ts=class extends z{constructor(t=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=t,Dp()&&(this.destroyRef=h(xl,{optional:!0})??void 0,this.pendingTasks=h(nn,{optional:!0})??void 0)}emit(t){let n=O(null);try{super.next(t)}finally{O(n)}}subscribe(t,n,r){let i=t,o=n||(()=>null),s=r;if(t&&typeof t=="object"){let u=t;i=u.next?.bind(u),o=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(o=this.wrapInTimeout(o),i&&(i=this.wrapInTimeout(i)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:i,error:o,complete:s});return t instanceof U&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},J=ts;function oi(...e){}function Al(e){let t,n;function r(){e=oi;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function sc(e){return queueMicrotask(()=>e()),()=>{e=oi}}var Ps="isAngularZone",si=Ps+"_ID",lg=0,H=class e{constructor(t){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new J(!1),this.onMicrotaskEmpty=new J(!1),this.onStable=new J(!1),this.onError=new J(!1);let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:o=Tl}=t;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=!i&&r,s.shouldCoalesceRunChangeDetection=i,s.callbackScheduled=!1,s.scheduleInRootZone=o,hg(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Ps)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new y(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new y(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,t,dg,oi,oi);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},dg={};function ks(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function fg(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Al(()=>{e.callbackScheduled=!1,ns(e),e.isCheckStableRunning=!0,ks(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),ns(e)}function hg(e){let t=()=>{fg(e)},n=lg++;e._inner=e._inner.fork({name:"angular",properties:{[Ps]:!0,[si]:n,[si+n]:!0},onInvokeTask:(r,i,o,s,a,u)=>{if(pg(u))return r.invokeTask(o,s,a,u);try{return ac(e),r.invokeTask(o,s,a,u)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),uc(e)}},onInvoke:(r,i,o,s,a,u,c)=>{try{return ac(e),r.invoke(o,s,a,u,c)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!gg(u)&&t(),uc(e)}},onHasTask:(r,i,o,s)=>{r.hasTask(o,s),i===o&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,ns(e),ks(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,i,o,s)=>(r.handleError(o,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function ns(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function ac(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function uc(e){e._nesting--,ks(e)}var rs=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new J,this.onMicrotaskEmpty=new J,this.onStable=new J,this.onError=new J}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,i){return t.apply(n,r)}};function pg(e){return Nl(e,"__ignore_ng_zone__")}function gg(e){return Nl(e,"__scheduler_tick__")}function Nl(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var $e=class{constructor(){this._console=console}handleError(t){let n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Lo(t);for(;n&&Lo(n);)n=Lo(n);return n||null}},mg=new E("",{providedIn:"root",factory:()=>{let e=h(H),t=h($e);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function vg(){return Ii(be(),Z())}function Ii(e,t){return new Un(Ie(e,t))}var Un=(()=>{class e{constructor(n){this.nativeElement=n}static{this.__NG_ELEMENT_ID__=vg}}return e})();function Rl(e){return(e.flags&128)===128}var Ol=new Map,yg=0;function Dg(){return yg++}function Cg(e){Ol.set(e[yi],e)}function is(e){Ol.delete(e[yi])}var cc="__ngContext__";function yt(e,t){ft(t)?(e[cc]=t[yi],Cg(t)):e[cc]=t}function Fl(e){return kl(e[On])}function Pl(e){return kl(e[Ce])}function kl(e){for(;e!==null&&!ze(e);)e=e[Ce];return e}var os;function Ll(e){os=e}function wg(){if(os!==void 0)return os;if(typeof document<"u")return document;throw new y(210,!1)}var Ls=new E("",{providedIn:"root",factory:()=>Eg}),Eg="ng",Vs=new E(""),Ge=new E("",{providedIn:"platform",factory:()=>"unknown"});var js=new E("",{providedIn:"root",factory:()=>wg().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Ig="h",bg="b";var _g=()=>null;function Bs(e,t,n=!1){return _g(e,t,n)}var Vl=!1,Mg=new E("",{providedIn:"root",factory:()=>Vl});function jl(e){return e instanceof Function?e():e}var Et=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Et||{}),Sg;function $s(e,t){return Sg(e,t)}function Ht(e,t,n,r,i){if(r!=null){let o,s=!1;ze(r)?o=r:ft(r)&&(s=!0,r=r[He]);let a=Be(r);e===0&&n!==null?i==null?zl(t,n,a):ai(t,n,a,i||null,!0):e===1&&n!==null?ai(t,n,a,i||null,!0):e===2?$g(t,a,s):e===3&&t.destroyNode(a),o!=null&&Hg(t,e,o,n,i)}}function Tg(e,t){return e.createText(t)}function Bl(e,t,n){return e.createElement(t,n)}function xg(e,t){$l(e,t),t[He]=null,t[Ee]=null}function Ag(e,t,n,r,i,o){r[He]=i,r[Ee]=t,bi(e,r,n,1,i,o)}function $l(e,t){t[je].changeDetectionScheduler?.notify(9),bi(e,t,t[ae],2,null,null)}function Ng(e){let t=e[On];if(!t)return Vo(e[N],e);for(;t;){let n=null;if(ft(t))n=t[On];else{let r=t[he];r&&(n=r)}if(!n){for(;t&&!t[Ce]&&t!==e;)ft(t)&&Vo(t[N],t),t=t[ee];t===null&&(t=e),ft(t)&&Vo(t[N],t),n=t&&t[Ce]}t=n}}function Rg(e,t,n,r){let i=he+r,o=n.length;r>0&&(n[i-1][Ce]=t),r0&&(e[n-1][Ce]=r[Ce]);let o=Yr(e,he+t);xg(r[N],r);let s=o[Qt];s!==null&&s.detachView(o[N]),r[ee]=null,r[Ce]=null,r[w]&=-129}return r}function Hl(e,t){if(!(t[w]&256)){let n=t[ae];n.destroyNode&&bi(e,t,n,3,null,null),Ng(t)}}function Vo(e,t){if(t[w]&256)return;let n=O(null);try{t[w]&=-129,t[w]|=256,t[fe]&&ao(t[fe]),Fg(e,t),Og(e,t),t[N].type===1&&t[ae].destroy();let r=t[Yt];if(r!==null&&ze(t[ee])){r!==t[ee]&&Us(r,t);let i=t[Qt];i!==null&&i.detachView(e)}is(t)}finally{O(n)}}function Og(e,t){let n=e.cleanup,r=t[Jr];if(n!==null)for(let o=0;o=0?r[s]():r[-s].unsubscribe(),o+=2}else{let s=r[n[o+1]];n[o].call(s)}r!==null&&(t[Jr]=null);let i=t[Xe];if(i!==null){t[Xe]=null;for(let o=0;o-1){let{encapsulation:o}=e.data[r.directiveStart+i];if(o===Re.None||o===Re.Emulated)return null}return Ie(r,n)}}function ai(e,t,n,r,i){e.insertBefore(t,n,r,i)}function zl(e,t,n){e.appendChild(t,n)}function lc(e,t,n,r,i){r!==null?ai(e,t,n,r,i):zl(e,t,n)}function Gl(e,t){return e.parentNode(t)}function Lg(e,t){return e.nextSibling(t)}function Vg(e,t,n){return Bg(e,t,n)}function jg(e,t,n){return e.type&40?Ie(e,n):null}var Bg=jg,dc;function Hs(e,t,n,r){let i=Pg(e,r,t),o=t[ae],s=r.parent||t[Ee],a=Vg(s,r,t);if(i!=null)if(Array.isArray(n))for(let u=0;utt&&Kl(e,t,tt,!1),Ae(s?2:0,i),n(r,i)}finally{vt(o),Ae(s?3:1,i)}}function td(e,t,n){if(Wc(t)){let r=O(null);try{let i=t.directiveStart,o=t.directiveEnd;for(let s=i;snull;function Kg(e,t,n,r,i,o){let s=t?t.injectorIndex:-1,a=0;return Rp()&&(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:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function fc(e,t,n,r,i){for(let o in t){if(!t.hasOwnProperty(o))continue;let s=t[o];if(s===void 0)continue;r??={};let a,u=et.None;Array.isArray(s)?(a=s[0],u=s[1]):a=s;let c=o;if(i!==null){if(!i.hasOwnProperty(o))continue;c=i[o]}e===0?hc(r,n,c,a,u):hc(r,n,c,a)}return r}function hc(e,t,n,r,i){let o;e.hasOwnProperty(n)?(o=e[n]).push(t,r):o=e[n]=[t,r],i!==void 0&&o.push(i)}function Jg(e,t,n){let r=t.directiveStart,i=t.directiveEnd,o=e.data,s=t.attrs,a=[],u=null,c=null;for(let l=r;l0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function im(e,t,n,r){let i=n.directiveStart,o=n.directiveEnd;Di(n)&&dm(t,n,e.data[i+n.componentOffset]),e.firstCreatePass||Cl(n,t),yt(r,t);let s=n.initialInputs;for(let a=i;a{wi(e.lView)},consumerOnSignalRead(){this.lView[fe]=this}});function Mm(e){let t=e[fe]??Object.create(Sm);return t.lView=e,t}var Sm=j(g({},io),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=mt(e.lView);for(;t&&!fd(t[N]);)t=mt(t);t&&Xc(t)},consumerOnSignalRead(){this.lView[fe]=this}});function fd(e){return e.type!==2}var Tm=100;function hd(e,t=!0,n=0){let r=e[je],i=r.rendererFactory,o=!1;o||i.begin?.();try{xm(e,n)}catch(s){throw t&&ld(e,s),s}finally{o||(i.end?.(),r.inlineEffectRunner?.flush())}}function xm(e,t){let n=al();try{ec(!0),ls(e,t);let r=0;for(;Ci(e);){if(r===Tm)throw new y(103,!1);r++,ls(e,1)}}finally{ec(n)}}function Am(e,t,n,r){let i=t[w];if((i&256)===256)return;let o=!1,s=!1;!o&&t[je].inlineEffectRunner?.flush(),xs(t);let a=!0,u=null,c=null;o||(fd(e)?(c=Em(t),u=oo(c)):su()===null?(a=!1,c=Mm(t),u=oo(c)):t[fe]&&(ao(t[fe]),t[fe]=null));try{Jc(t),Lp(e.bindingStartIndex),n!==null&&ed(e,t,n,2,r);let l=(i&3)===3;if(!o)if(l){let f=e.preOrderCheckHooks;f!==null&&Hr(t,f,null)}else{let f=e.preOrderHooks;f!==null&&zr(t,f,0,null),Fo(t,0)}if(s||Nm(t),pd(t,0),e.contentQueries!==null&&cd(e,t),!o)if(l){let f=e.contentCheckHooks;f!==null&&Hr(t,f)}else{let f=e.contentHooks;f!==null&&zr(t,f,1),Fo(t,1)}Gg(e,t);let d=e.components;d!==null&&md(t,d,0);let p=e.viewQuery;if(p!==null&&cs(2,p,r),!o)if(l){let f=e.viewCheckHooks;f!==null&&Hr(t,f)}else{let f=e.viewHooks;f!==null&&zr(t,f,2),Fo(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Oo]){for(let f of t[Oo])f();t[Oo]=null}o||(t[w]&=-73)}catch(l){throw o||wi(t),l}finally{c!==null&&(au(c,u),a&&bm(c)),As()}}function pd(e,t){for(let n=Fl(e);n!==null;n=Pl(n))for(let r=he;r-1&&(ss(t,r),Yr(n,r))}this._attachedToViewContainer=!1}Hl(this._lView[N],this._lView)}onDestroy(t){el(this._lView,t)}markForCheck(){Zs(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[w]&=-129}reattach(){Yo(this._lView),this._lView[w]|=128}detectChanges(){this._lView[w]|=1024,hd(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new y(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=qo(this._lView),n=this._lView[Yt];n!==null&&!t&&Us(n,this._lView),$l(this._lView[N],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new y(902,!1);this._appRef=t;let n=qo(this._lView),r=this._lView[Yt];r!==null&&!n&&Ul(r,this._lView),Yo(this._lView)}},Ys=(()=>{class e{static{this.__NG_ELEMENT_ID__=Pm}}return e})(),Om=Ys,Fm=class extends Om{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){let i=Dm(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new Dt(i)}};function Pm(){return km(be(),Z())}function km(e,t){return e.type&4?new Fm(t,e,Ii(e,t)):null}var v0=new RegExp(`^(\\d+)*(${bg}|${Ig})*(.*)`);var Lm=()=>null;function gc(e,t){return Lm(e,t)}var Kt=class{},Ti=new E("",{providedIn:"root",factory:()=>!1});var vd=new E(""),yd=new E(""),ds=class{},ci=class{};function Vm(e){let t=Error(`No component factory found for ${ie(e)}.`);return t[jm]=e,t}var jm="ngComponent";var fs=class{resolveComponentFactory(t){throw Vm(t)}},Jt=class{static{this.NULL=new fs}},Xt=class{};var Bm=(()=>{class e{static{this.\u0275prov=D({token:e,providedIn:"root",factory:()=>null})}}return e})();function hs(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,o=0;if(t!==null)for(let s=0;s0&&ql(e,n,o.join(" "))}}function qm(e,t,n){let r=e.projection=[];for(let i=0;i{class e{static{this.__NG_ELEMENT_ID__=Ym}}return e})();function Ym(){let e=be();return Km(e,Z())}var Qm=Hn,Dd=class extends Qm{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Ii(this._hostTNode,this._hostLView)}get injector(){return new ht(this._hostTNode,this._hostLView)}get parentInjector(){let t=Fs(this._hostTNode,this._hostLView);if(vl(t)){let n=ii(t,this._hostLView),r=ri(t),i=n[N].data[r+8];return new ht(i,n)}else return new ht(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=vc(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-he}createEmbeddedView(t,n,r){let i,o;typeof r=="number"?i=r:r!=null&&(i=r.index,o=r.injector);let s=gc(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},o,s);return this.insertImpl(a,i,pc(this._hostTNode,s)),a}createComponent(t,n,r,i,o){let s=t&&!Cp(t),a;if(s)a=n;else{let m=n||{};a=m.index,r=m.injector,i=m.projectableNodes,o=m.environmentInjector||m.ngModuleRef}let u=s?t:new kn(pt(t)),c=r||this.parentInjector;if(!o&&u.ngModule==null){let T=(s?c:this.parentInjector).get(pe,null);T&&(o=T)}let l=pt(u.componentType??{}),d=gc(this._lContainer,l?.id??null),p=d?.firstChild??null,f=u.create(c,i,p,o);return this.insertImpl(f.hostView,a,pc(this._hostTNode,d)),f}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let i=t._lView;if(Mp(i)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let u=i[ee],c=new Dd(u,u[Ee],u[ee]);c.detach(c.indexOf(t))}}let o=this._adjustIndex(n),s=this._lContainer;return Cm(s,i,o,r),t.attachToViewContainerRef(),Ac(jo(s),o,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=vc(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=ss(this._lContainer,n);r&&(Yr(jo(this._lContainer),n),Hl(r[N],r))}detach(t){let n=this._adjustIndex(t,-1),r=ss(this._lContainer,n);return r&&Yr(jo(this._lContainer),n)!=null?new Dt(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function vc(e){return e[Xr]}function jo(e){return e[Xr]||(e[Xr]=[])}function Km(e,t){let n,r=t[e.index];return ze(r)?n=r:(n=ud(r,t,null,e),t[e.index]=n,Si(t,n)),Xm(n,t,e,r),new Dd(n,e,t)}function Jm(e,t){let n=e[ae],r=n.createComment(""),i=Ie(t,e),o=Gl(n,i);return ai(n,o,r,Lg(n,i),!1),r}var Xm=nv,ev=()=>!1;function tv(e,t,n){return ev(e,t,n)}function nv(e,t,n,r){if(e[gt])return;let i;n.type&8?i=Be(r):i=Jm(t,n),e[gt]=i}var yc=new Set;function Qs(e){yc.has(e)||(yc.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var nt=class{},Ln=class{};var gs=class extends nt{constructor(t,n,r,i=!0){super(),this.ngModuleType=t,this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new li(this);let o=Vc(t);this._bootstrapComponents=jl(o.bootstrap),this._r3Injector=Sl(t,n,[{provide:nt,useValue:this},{provide:Jt,useValue:this.componentFactoryResolver},...r],ie(t),new Set(["environment"])),i&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},ms=class extends Ln{constructor(t){super(),this.moduleType=t}create(t){return new gs(this.moduleType,t,[])}};var di=class extends nt{constructor(t){super(),this.componentFactoryResolver=new li(this),this.instance=null;let n=new Rn([...t.providers,{provide:nt,useValue:this},{provide:Jt,useValue:this.componentFactoryResolver}],t.parent||Ms(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Ks(e,t,n=null){return new di({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}function rv(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function iv(e){return(e.flags&32)===32}function ov(e,t,n,r,i,o,s,a,u){let c=t.consts,l=Mi(t,e,4,s||null,a||null);od(t,n,l,ni(c,u)),Os(t,l);let d=l.tView=Gs(2,l,r,i,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c,null);return t.queries!==null&&(t.queries.template(t,l),d.queries=t.queries.embeddedTView(l)),l}function sv(e,t,n,r,i,o,s,a,u,c){let l=n+tt,d=t.firstCreatePass?ov(l,t,e,r,i,o,s,a,u):t.data[l];$n(d,!1);let p=av(t,e,d,n);Ns()&&Hs(t,e,p,d),yt(p,e);let f=ud(p,e,p,d);return e[l]=f,Si(e,f),tv(f,d,e),Ss(d)&&nd(t,e,d),u!=null&&rd(e,d,c),d}function Js(e,t,n,r,i,o,s,a){let u=Z(),c=wt(),l=ni(c.consts,o);return sv(u,c,e,t,n,r,i,l,s,a),Js}var av=uv;function uv(e,t,n,r){return Rs(!0),t[ae].createComment("")}var Tn=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(Tn||{}),cv=(()=>{class e{constructor(){this.impl=null}execute(){this.impl?.execute()}static{this.\u0275prov=D({token:e,providedIn:"root",factory:()=>new e})}}return e})(),Dc=class e{constructor(){this.ngZone=h(H),this.scheduler=h(Kt),this.errorHandler=h($e,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}static{this.PHASES=[Tn.EarlyRead,Tn.Write,Tn.MixedReadWrite,Tn.Read]}execute(){this.executing=!0;for(let t of e.PHASES)for(let n of this.sequences)if(!(n.erroredOrDestroyed||!n.hooks[t]))try{n.pipelinedValue=this.ngZone.runOutsideAngular(()=>n.hooks[t](n.pipelinedValue))}catch(r){n.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(let t of this.sequences)t.afterRun(),t.once&&(this.sequences.delete(t),t.destroy());for(let t of this.deferredRegistrations)this.sequences.add(t);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(t){this.executing?this.deferredRegistrations.add(t):(this.sequences.add(t),this.scheduler.notify(6))}unregister(t){this.executing&&this.sequences.has(t)?(t.erroredOrDestroyed=!0,t.pipelinedValue=void 0,t.once=!0):(this.sequences.delete(t),this.deferredRegistrations.delete(t))}static{this.\u0275prov=D({token:e,providedIn:"root",factory:()=>new e})}};function Xs(e,t,n){let r=Z(),i=Vp();if(rv(r,i,t)){let o=wt(),s=zp();em(o,s,r,e,t,r[ae],n,!1)}return Xs}function Cc(e,t,n,r,i){let o=t.inputs,s=i?"class":"style";Ws(e,n,o[s],s,r)}function lv(e,t,n,r,i,o){let s=t.consts,a=ni(s,i),u=Mi(t,e,2,r,a);return od(t,n,u,ni(s,o)),u.attrs!==null&&hs(u,u.attrs,!1),u.mergedAttrs!==null&&hs(u,u.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,u),u}function on(e,t,n,r){let i=Z(),o=wt(),s=tt+e,a=i[ae],u=o.firstCreatePass?lv(s,o,i,t,n,r):o.data[s],c=dv(o,i,u,a,t,e);i[s]=c;let l=Ss(u);return $n(u,!0),Zl(a,c,u),!iv(u)&&Ns()&&Hs(o,i,c,u),xp()===0&&yt(c,i),Ap(),l&&(nd(o,i,u),td(o,u,i)),r!==null&&rd(i,u),on}function sn(){let e=be();sl()?kp():(e=e.parent,$n(e,!1));let t=e;Op(t)&&Fp(),Np();let n=wt();return n.firstCreatePass&&(Os(n,e),Wc(e)&&n.queries.elementEnd(e)),t.classesWithoutHost!=null&&Yp(t)&&Cc(n,t,Z(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&Qp(t)&&Cc(n,t,Z(),t.stylesWithoutHost,!1),sn}function an(e,t,n,r){return on(e,t,n,r),sn(),an}var dv=(e,t,n,r,i,o)=>(Rs(!0),Bl(r,i,Gp()));function Cd(){return Z()}var fi="en-US";var fv=fi;function hv(e){typeof e=="string"&&(fv=e.toLowerCase().replace(/_/g,"-"))}var pv=(e,t,n)=>{};function zn(e,t,n,r){let i=Z(),o=wt(),s=be();return mv(o,i,i[ae],s,e,t,r),zn}function gv(e,t,n,r){let i=e.cleanup;if(i!=null)for(let o=0;ou?a[u]:null}typeof s=="string"&&(o+=2)}return null}function mv(e,t,n,r,i,o,s){let a=Ss(r),c=e.firstCreatePass&&gm(e),l=t[we],d=pm(t),p=!0;if(r.type&3||s){let T=Ie(r,t),k=s?s(T):T,V=d.length,te=s?ve=>s(Be(ve[r.index])):r.index,ne=null;if(!s&&a&&(ne=gv(e,t,i,r.index)),ne!==null){let ve=ne.__ngLastListenerFn__||ne;ve.__ngNextListenerFn__=o,ne.__ngLastListenerFn__=o,p=!1}else{o=Ec(r,t,l,o),pv(T,i,o);let ve=n.listen(k,i,o);d.push(o,ve),c&&c.push(i,te,V,V+1)}}else o=Ec(r,t,l,o);let f=r.outputs,m;if(p&&f!==null&&(m=f[i])){let T=m.length;if(T)for(let k=0;k-1?Ct(e.index,t):t;Zs(s,5);let a=wc(t,n,r,o),u=i.__ngNextListenerFn__;for(;u;)a=wc(t,n,u,o)&&a,u=u.__ngNextListenerFn__;return a}}function wd(e=1){return Hp(e)}function ea(e,t=""){let n=Z(),r=wt(),i=e+tt,o=r.firstCreatePass?Mi(r,i,1,t,null):r.data[i],s=vv(r,n,o,t,e);n[i]=s,Ns()&&Hs(r,n,s,o),$n(o,!1)}var vv=(e,t,n,r,i)=>(Rs(!0),Tg(t[ae],r));var yv=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=$c(!1,n.type),i=r.length>0?Ks([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,i)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=D({token:e,providedIn:"environment",factory:()=>new e(S(pe))})}}return e})();function xi(e){Qs("NgStandalone"),e.getStandaloneInjector=t=>t.get(yv).getOrCreateStandaloneInjector(e)}var Ai=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();var Ed=new E("");function un(e){return!!e&&typeof e.then=="function"}function Id(e){return!!e&&typeof e.subscribe=="function"}var Ni=new E(""),bd=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=h(Ni,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let i of this.appInits){let o=i();if(un(o))n.push(o);else if(Id(o)){let s=new Promise((a,u)=>{o.subscribe({complete:a,error:u})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),n.length===0&&r(),this.initialized=!0}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),ta=new E("");function Dv(){uu(()=>{throw new y(600,!1)})}function Cv(e){return e.isBoundToModule}var wv=10;function Ev(e,t,n){try{let r=n();return un(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var Pe=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=h(mg),this.afterRenderManager=h(cv),this.zonelessEnabled=h(Ti),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new z,this.afterTick=new z,this.componentTypes=[],this.components=[],this.isStable=h(nn).hasPendingTasks.pipe(I(n=>!n)),this._injector=h(pe)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:i=>{i&&r()}})}).finally(()=>{n.unsubscribe()})}get injector(){return this._injector}bootstrap(n,r){let i=n instanceof ci;if(!this._injector.get(bd).done){let p=!i&&Lc(n),f=!1;throw new y(405,f)}let s;i?s=n:s=this._injector.get(Jt).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=Cv(s)?void 0:this._injector.get(nt),u=r||s.selector,c=s.create(Fe.NULL,[],u,a),l=c.location.nativeElement,d=c.injector.get(Ed,null);return d?.registerApplication(l),c.onDestroy(()=>{this.detachView(c.hostView),Gr(this.components,c),d?.unregisterApplication(l)}),this._loadComponent(c),c}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new y(101,!1);let n=O(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,O(n),this.afterTick.next()}}synchronize(){let n=null;this._injector.destroyed||(n=this._injector.get(Xt,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;this.dirtyFlags!==0&&r++Ci(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;Gr(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let r=this._injector.get(ta,[]);[...this._bootstrapListeners,...r].forEach(i=>i(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Gr(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new y(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Gr(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Iv(e,t,n,r){if(!n&&!Ci(e))return;hd(e,t,n&&!r?0:1)}var vs=class{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},na=(()=>{class e{compileModuleSync(n){return new ms(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),i=Vc(n),o=jl(i.declarations).reduce((s,a)=>{let u=pt(a);return u&&s.push(new kn(u)),s},[]);return new vs(r,o)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var bv=(()=>{class e{constructor(){this.zone=h(H),this.changeDetectionScheduler=h(Kt),this.applicationRef=h(Pe)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),_v=new E("",{factory:()=>!1});function _d({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new H(j(g({},Sd()),{scheduleInRootZone:n})),[{provide:H,useFactory:e},{provide:qt,multi:!0,useFactory:()=>{let r=h(bv,{optional:!0});return()=>r.initialize()}},{provide:qt,multi:!0,useFactory:()=>{let r=h(Mv);return()=>{r.initialize()}}},t===!0?{provide:vd,useValue:!0}:[],{provide:yd,useValue:n??Tl}]}function Md(e){let t=e?.ignoreChangesOutsideZone,n=e?.scheduleInRootZone,r=_d({ngZoneFactory:()=>{let i=Sd(e);return i.scheduleInRootZone=n,i.shouldCoalesceEventChangeDetection&&Qs("NgZone_CoalesceEvent"),new H(i)},ignoreChangesOutsideZone:t,scheduleInRootZone:n});return en([{provide:_v,useValue:!0},{provide:Ti,useValue:!1},r])}function Sd(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var Mv=(()=>{class e{constructor(){this.subscription=new U,this.initialized=!1,this.zone=h(H),this.pendingTasks=h(nn)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{H.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{H.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Sv=(()=>{class e{constructor(){this.appRef=h(Pe),this.taskService=h(nn),this.ngZone=h(H),this.zonelessEnabled=h(Ti),this.disableScheduling=h(vd,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new U,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(si):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(h(yd,{optional:!0})??!1),this.cancelScheduledCallback=null,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 rs||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 7:{this.appRef.deferredDirtyFlags|=8;break}case 9:case 8:case 6:case 10:default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?sc:Al;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(si+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,sc(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Tv(){return typeof $localize<"u"&&$localize.locale||fi}var ra=new E("",{providedIn:"root",factory:()=>h(ra,_.Optional|_.SkipSelf)||Tv()});var ys=new E("");function $r(e){return!e.moduleRef}function xv(e){let t=$r(e)?e.r3Injector:e.moduleRef.injector,n=t.get(H);return n.run(()=>{$r(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get($e,null),i;if(n.runOutsideAngular(()=>{i=n.onError.subscribe({next:o=>{r.handleError(o)}})}),$r(e)){let o=()=>t.destroy(),s=e.platformInjector.get(ys);s.add(o),t.onDestroy(()=>{i.unsubscribe(),s.delete(o)})}else{let o=()=>e.moduleRef.destroy(),s=e.platformInjector.get(ys);s.add(o),e.moduleRef.onDestroy(()=>{Gr(e.allPlatformModules,e.moduleRef),i.unsubscribe(),s.delete(o)})}return Ev(r,n,()=>{let o=t.get(bd);return o.runInitializers(),o.donePromise.then(()=>{let s=t.get(ra,fi);if(hv(s||fi),$r(e)){let a=t.get(Pe);return e.rootComponent!==void 0&&a.bootstrap(e.rootComponent),a}else return Av(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function Av(e,t){let n=e.injector.get(Pe);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new y(-403,!1);t.push(e)}var Wr=null;function Nv(e=[],t){return Fe.create({name:t,providers:[{provide:vi,useValue:"platform"},{provide:ys,useValue:new Set([()=>Wr=null])},...e]})}function Rv(e=[]){if(Wr)return Wr;let t=Nv(e);return Wr=t,Dv(),Ov(t),t}function Ov(e){e.get(Vs,null)?.forEach(n=>n())}function Td(){return!1}var cn=(()=>{class e{static{this.__NG_ELEMENT_ID__=Fv}}return e})();function Fv(e){return Pv(be(),Z(),(e&16)===16)}function Pv(e,t,n){if(Di(e)&&!n){let r=Ct(e.index,t);return new Dt(r,r)}else if(e.type&175){let r=t[Oe];return new Dt(r,t)}return null}function xd(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,i=Rv(r),o=[_d({}),{provide:Kt,useExisting:Sv},...n||[]],s=new di({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1});return xv({r3Injector:s.injector,platformInjector:i,rootComponent:t})}catch(t){return Promise.reject(t)}}var Fd=null;function dn(){return Fd}function Pd(e){Fd??=e}var Ri=class{};var ge=new E(""),kd=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=D({token:e,factory:()=>h(Bv),providedIn:"platform"})}}return e})();var Bv=(()=>{class e extends kd{constructor(){super(),this._doc=h(ge),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return dn().getBaseHref(this._doc)}onPopState(n){let r=dn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=dn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,i){this._history.pushState(n,r,i)}replaceState(n,r,i){this._history.replaceState(n,r,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=D({token:e,factory:()=>new e,providedIn:"platform"})}}return e})();function Ld(e,t){if(e.length==0)return t;if(t.length==0)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,n==2?e+t.substring(1):n==1?e+t:e+"/"+t}function Ad(e){let t=e.match(/#|\?|$/),n=t&&t.index||e.length,r=n-(e[n-1]==="/"?1:0);return e.slice(0,r)+e.slice(n)}function It(e){return e&&e[0]!=="?"?"?"+e:e}var Fi=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=D({token:e,factory:()=>h(Vd),providedIn:"root"})}}return e})(),$v=new E(""),Vd=(()=>{class e extends Fi{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??h(ge).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Ld(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+It(this._platformLocation.search),i=this._platformLocation.hash;return i&&n?`${r}${i}`:r}pushState(n,r,i,o){let s=this.prepareExternalUrl(i+It(o));this._platformLocation.pushState(n,r,s)}replaceState(n,r,i,o){let s=this.prepareExternalUrl(i+It(o));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static{this.\u0275fac=function(r){return new(r||e)(S(kd),S($v,8))}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Gn=(()=>{class e{constructor(n){this._subject=new J,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=zv(Ad(Nd(r))),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(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+It(r))}normalize(n){return e.stripTrailingSlash(Hv(this._basePath,Nd(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",i=null){this._locationStrategy.pushState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+It(r)),i)}replaceState(n,r="",i=null){this._locationStrategy.replaceState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+It(r)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(i=>i(n,r))}subscribe(n,r,i){return this._subject.subscribe({next:n,error:r,complete:i})}static{this.normalizeQueryParams=It}static{this.joinWithSlash=Ld}static{this.stripTrailingSlash=Ad}static{this.\u0275fac=function(r){return new(r||e)(S(Fi))}}static{this.\u0275prov=D({token:e,factory:()=>Uv(),providedIn:"root"})}}return e})();function Uv(){return new Gn(S(Fi))}function Hv(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function Nd(e){return e.replace(/\/index.html$/,"")}function zv(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}function jd(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[i,o]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===t)return decodeURIComponent(o)}return null}var Bd=(()=>{class e{constructor(n,r){this._viewContainer=n,this._context=new ia,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){Rd("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){Rd("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,r){return!0}static{this.\u0275fac=function(r){return new(r||e)(rn(Hn),rn(Ys))}}static{this.\u0275dir=Vn({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return e})(),ia=class{constructor(){this.$implicit=null,this.ngIf=null}};function Rd(e,t){if(!!!(!t||t.createEmbeddedView))throw new Error(`${e} must be a TemplateRef, but received '${ie(t)}'.`)}var aa=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=it({type:e})}static{this.\u0275inj=rt({})}}return e})(),ua="browser",Gv="server";function ca(e){return e===ua}function la(e){return e===Gv}var Oi=class{};var ha=class extends Ri{constructor(){super(...arguments),this.supportsDOMEvents=!0}},pa=class e extends ha{static makeCurrent(){Pd(new e)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=Zv();return n==null?null:Yv(n)}resetBaseElement(){Wn=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return jd(document.cookie,t)}},Wn=null;function Zv(){return Wn=Wn||document.querySelector("base"),Wn?Wn.getAttribute("href"):null}function Yv(e){return new URL(e,document.baseURI).pathname}var Qv=(()=>{class e{build(){return new XMLHttpRequest}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac})}}return e})(),ga=new E(""),zd=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(i=>{i.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,i){return this._findPluginFor(r).addEventListener(n,r,i)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(o=>o.supports(n)),!r)throw new y(5101,!1);return this._eventNameToPlugin.set(n,r),r}static{this.\u0275fac=function(r){return new(r||e)(S(ga),S(H))}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac})}}return e})(),Pi=class{constructor(t){this._doc=t}},da="ng-app-id",Gd=(()=>{class e{constructor(n,r,i,o={}){this.doc=n,this.appId=r,this.nonce=i,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=la(o),this.resetHostNodes()}addStyles(n){for(let r of n)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(n){for(let r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){let r=this.styleRef;r.get(n)?.elements?.forEach(i=>i.remove()),r.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${da}="${this.appId}"]`);if(n?.length){let r=new Map;return n.forEach(i=>{i.textContent!=null&&r.set(i.textContent,i)}),r}return null}changeUsageCount(n,r){let i=this.styleRef;if(i.has(n)){let o=i.get(n);return o.usage+=r,o.usage}return i.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){let i=this.styleNodesInDOM,o=i?.get(r);if(o?.parentNode===n)return i.delete(r),o.removeAttribute(da),o;{let s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(da,this.appId),n.appendChild(s),s}}addStyleToHost(n,r){let i=this.getStyleElement(n,r),o=this.styleRef,s=o.get(r)?.elements;s?s.push(i):o.set(r,{elements:[i],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}static{this.\u0275fac=function(r){return new(r||e)(S(ge),S(Ls),S(js,8),S(Ge))}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac})}}return e})(),fa={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"},va=/%COMP%/g,Wd="%COMP%",Kv=`_nghost-${Wd}`,Jv=`_ngcontent-${Wd}`,Xv=!0,ey=new E("",{providedIn:"root",factory:()=>Xv});function ty(e){return Jv.replace(va,e)}function ny(e){return Kv.replace(va,e)}function qd(e,t){return t.map(n=>n.replace(va,e))}var $d=(()=>{class e{constructor(n,r,i,o,s,a,u,c=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=u,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=la(a),this.defaultRenderer=new qn(n,s,u,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Re.ShadowDom&&(r=j(g({},r),{encapsulation:Re.Emulated}));let i=this.getOrCreateRenderer(n,r);return i instanceof ki?i.applyToHost(n):i instanceof Zn&&i.applyStyles(),i}getOrCreateRenderer(n,r){let i=this.rendererByCompId,o=i.get(r.id);if(!o){let s=this.doc,a=this.ngZone,u=this.eventManager,c=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case Re.Emulated:o=new ki(u,c,r,this.appId,l,s,a,d);break;case Re.ShadowDom:return new ma(u,c,n,r,s,a,this.nonce,d);default:o=new Zn(u,c,r,l,s,a,d);break}i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(r){return new(r||e)(S(zd),S(Gd),S(Ls),S(ey),S(ge),S(Ge),S(H),S(js))}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac})}}return e})(),qn=class{constructor(t,n,r,i){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(fa[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(Ud(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(Ud(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new y(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,i){if(i){n=i+":"+n;let o=fa[i];o?t.setAttributeNS(o,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let i=fa[r];i?t.removeAttributeNS(i,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,i){i&(Et.DashCase|Et.Important)?t.style.setProperty(n,r,i&Et.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&Et.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r){if(typeof t=="string"&&(t=dn().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))===!1&&n.preventDefault()}}};function Ud(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var ma=class extends qn{constructor(t,n,r,i,o,s,a,u){super(t,o,s,u),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=qd(i.id,i.styles);for(let l of c){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Zn=class extends qn{constructor(t,n,r,i,o,s,a,u){super(t,o,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=i,this.styles=u?qd(u,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},ki=class extends Zn{constructor(t,n,r,i,o,s,a,u){let c=i+"-"+r.id;super(t,n,r,o,s,a,u,c),this.contentAttr=ty(c),this.hostAttr=ny(c)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}},ry=(()=>{class e extends Pi{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,i){return n.addEventListener(r,i,!1),()=>this.removeEventListener(n,r,i)}removeEventListener(n,r,i){return n.removeEventListener(r,i)}static{this.\u0275fac=function(r){return new(r||e)(S(ge))}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac})}}return e})(),Hd=["alt","control","meta","shift"],iy={"\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"},oy={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},sy=(()=>{class e extends Pi{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,i){let o=e.parseEventName(r),s=e.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>dn().onAndCancel(n,o.domEventName,s))}static parseEventName(n){let r=n.toLowerCase().split("."),i=r.shift();if(r.length===0||!(i==="keydown"||i==="keyup"))return null;let o=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),Hd.forEach(c=>{let l=r.indexOf(c);l>-1&&(r.splice(l,1),s+=c+".")}),s+=o,r.length!=0||o.length===0)return null;let u={};return u.domEventName=i,u.fullKey=s,u}static matchEventFullKeyCode(n,r){let i=iy[n.key]||n.key,o="";return r.indexOf("code.")>-1&&(i=n.code,o="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),Hd.forEach(s=>{if(s!==i){let a=oy[s];a(n)&&(o+=s+".")}}),o+=i,o===r)}static eventCallback(n,r,i){return o=>{e.matchEventFullKeyCode(o,n)&&i.runGuarded(()=>r(o))}}static _normalizeKey(n){return n==="esc"?"escape":n}static{this.\u0275fac=function(r){return new(r||e)(S(ge))}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac})}}return e})();function Zd(e,t){return xd(g({rootComponent:e},ay(t)))}function ay(e){return{appProviders:[...fy,...e?.providers??[]],platformProviders:dy}}function uy(){pa.makeCurrent()}function cy(){return new $e}function ly(){return Ll(document),document}var dy=[{provide:Ge,useValue:ua},{provide:Vs,useValue:uy,multi:!0},{provide:ge,useFactory:ly,deps:[]}];var fy=[{provide:vi,useValue:"root"},{provide:$e,useFactory:cy,deps:[]},{provide:ga,useClass:ry,multi:!0,deps:[ge,H,Ge]},{provide:ga,useClass:sy,multi:!0,deps:[ge]},$d,Gd,zd,{provide:Xt,useExisting:$d},{provide:Oi,useClass:Qv,deps:[]},[]];var Yd=(()=>{class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}static{this.\u0275fac=function(r){return new(r||e)(S(ge))}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var b="primary",dr=Symbol("RouteTitle"),Ea=class{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}};function vn(e){return new Ea(e)}function gy(e,t,n){let r=n.path.split("/");if(r.length>e.length||n.pathMatch==="full"&&(t.hasChildren()||r.lengthr[o]===i)}else return e===t}function of(e){return e.length>0?e[e.length-1]:null}function ot(e){return bo(e)?e:un(e)?B(Promise.resolve(e)):C(e)}var vy={exact:af,subset:uf},sf={exact:yy,subset:Dy,ignored:()=>!0};function Qd(e,t,n){return vy[n.paths](e.root,t.root,n.matrixParams)&&sf[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function yy(e,t){return ke(e,t)}function af(e,t,n){if(!_t(e.segments,t.segments)||!ji(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!af(e.children[r],t.children[r],n))return!1;return!0}function Dy(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>rf(e[n],t[n]))}function uf(e,t,n){return cf(e,t,t.segments,n)}function cf(e,t,n,r){if(e.segments.length>n.length){let i=e.segments.slice(0,n.length);return!(!_t(i,n)||t.hasChildren()||!ji(i,n,r))}else if(e.segments.length===n.length){if(!_t(e.segments,n)||!ji(e.segments,n,r))return!1;for(let i in t.children)if(!e.children[i]||!uf(e.children[i],t.children[i],r))return!1;return!0}else{let i=n.slice(0,e.segments.length),o=n.slice(e.segments.length);return!_t(e.segments,i)||!ji(e.segments,i,r)||!e.children[b]?!1:cf(e.children[b],t,o,r)}}function ji(e,t,n){return t.every((r,i)=>sf[n](e[i].parameters,r.parameters))}var qe=class{constructor(t=new F([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=vn(this.queryParams),this._queryParamMap}toString(){return Ey.serialize(this)}},F=class{constructor(t,n){this.segments=t,this.children=n,this.parent=null,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Bi(this)}},bt=class{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap??=vn(this.parameters),this._parameterMap}toString(){return df(this)}};function Cy(e,t){return _t(e,t)&&e.every((n,r)=>ke(n.parameters,t[r].parameters))}function _t(e,t){return e.length!==t.length?!1:e.every((n,r)=>n.path===t[r].path)}function wy(e,t){let n=[];return Object.entries(e.children).forEach(([r,i])=>{r===b&&(n=n.concat(t(i,r)))}),Object.entries(e.children).forEach(([r,i])=>{r!==b&&(n=n.concat(t(i,r)))}),n}var Ya=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=D({token:e,factory:()=>new tr,providedIn:"root"})}}return e})(),tr=class{parse(t){let n=new _a(t);return new qe(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n=`/${Yn(t.root,!0)}`,r=_y(t.queryParams),i=typeof t.fragment=="string"?`#${Iy(t.fragment)}`:"";return`${n}${r}${i}`}},Ey=new tr;function Bi(e){return e.segments.map(t=>df(t)).join("/")}function Yn(e,t){if(!e.hasChildren())return Bi(e);if(t){let n=e.children[b]?Yn(e.children[b],!1):"",r=[];return Object.entries(e.children).forEach(([i,o])=>{i!==b&&r.push(`${i}:${Yn(o,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=wy(e,(r,i)=>i===b?[Yn(e.children[b],!1)]:[`${i}:${Yn(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[b]!=null?`${Bi(e)}/${n[0]}`:`${Bi(e)}/(${n.join("//")})`}}function lf(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Li(e){return lf(e).replace(/%3B/gi,";")}function Iy(e){return encodeURI(e)}function ba(e){return lf(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function $i(e){return decodeURIComponent(e)}function Kd(e){return $i(e.replace(/\+/g,"%20"))}function df(e){return`${ba(e.path)}${by(e.parameters)}`}function by(e){return Object.entries(e).map(([t,n])=>`;${ba(t)}=${ba(n)}`).join("")}function _y(e){let t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(i=>`${Li(n)}=${Li(i)}`).join("&"):`${Li(n)}=${Li(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}var My=/^[^\/()?;#]+/;function ya(e){let t=e.match(My);return t?t[0]:""}var Sy=/^[^\/()?;=#]+/;function Ty(e){let t=e.match(Sy);return t?t[0]:""}var xy=/^[^=?&#]+/;function Ay(e){let t=e.match(xy);return t?t[0]:""}var Ny=/^[^&#]+/;function Ry(e){let t=e.match(Ny);return t?t[0]:""}var _a=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new F([],{}):new F([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[b]=new F(t,n)),r}parseSegment(){let t=ya(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new y(4009,!1);return this.capture(t),new bt($i(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=Ty(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let i=ya(this.remaining);i&&(r=i,this.capture(r))}t[$i(n)]=$i(r)}parseQueryParam(t){let n=Ay(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=Ry(this.remaining);s&&(r=s,this.capture(r))}let i=Kd(n),o=Kd(r);if(t.hasOwnProperty(i)){let s=t[i];Array.isArray(s)||(s=[s],t[i]=s),s.push(o)}else t[i]=o}parseParens(t){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=ya(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new y(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=b);let s=this.parseChildren();n[o]=Object.keys(s).length===1?s[b]:new F([],s),this.consumeOptional("//")}return n}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new y(4011,!1)}};function ff(e){return e.segments.length>0?new F([],{[b]:e}):e}function hf(e){let t={};for(let[r,i]of Object.entries(e.children)){let o=hf(i);if(r===b&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))t[s]=a;else(o.segments.length>0||o.hasChildren())&&(t[r]=o)}let n=new F(e.segments,t);return Oy(n)}function Oy(e){if(e.numberOfChildren===1&&e.children[b]){let t=e.children[b];return new F(e.segments.concat(t.segments),t.children)}return e}function nr(e){return e instanceof qe}function Fy(e,t,n=null,r=null){let i=pf(e);return gf(i,t,n,r)}function pf(e){let t;function n(o){let s={};for(let u of o.children){let c=n(u);s[u.outlet]=c}let a=new F(o.url,s);return o===e&&(t=a),a}let r=n(e.root),i=ff(r);return t??i}function gf(e,t,n,r){let i=e;for(;i.parent;)i=i.parent;if(t.length===0)return Da(i,i,i,n,r);let o=Py(t);if(o.toRoot())return Da(i,i,new F([],{}),n,r);let s=ky(o,i,e),a=s.processChildren?Jn(s.segmentGroup,s.index,o.commands):vf(s.segmentGroup,s.index,o.commands);return Da(i,s.segmentGroup,a,n,r)}function Ui(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function rr(e){return typeof e=="object"&&e!=null&&e.outlets}function Da(e,t,n,r,i){let o={};r&&Object.entries(r).forEach(([u,c])=>{o[u]=Array.isArray(c)?c.map(l=>`${l}`):`${c}`});let s;e===t?s=n:s=mf(e,t,n);let a=ff(hf(s));return new qe(a,o,i)}function mf(e,t,n){let r={};return Object.entries(e.children).forEach(([i,o])=>{o===t?r[i]=n:r[i]=mf(o,t,n)}),new F(e.segments,r)}var Hi=class{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&Ui(r[0]))throw new y(4003,!1);let i=r.find(rr);if(i&&i!==of(r))throw new y(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Py(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new Hi(!0,0,e);let t=0,n=!1,r=e.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([u,c])=>{a[u]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,u)=>{u==0&&a==="."||(u==0&&a===""?n=!0:a===".."?t++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new Hi(n,t,r)}var pn=class{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}};function ky(e,t,n){if(e.isAbsolute)return new pn(t,!0,0);if(!n)return new pn(t,!1,NaN);if(n.parent===null)return new pn(n,!0,0);let r=Ui(e.commands[0])?0:1,i=n.segments.length-1+r;return Ly(n,i,e.numberOfDoubleDots)}function Ly(e,t,n){let r=e,i=t,o=n;for(;o>i;){if(o-=i,r=r.parent,!r)throw new y(4005,!1);i=r.segments.length}return new pn(r,!1,i-o)}function Vy(e){return rr(e[0])?e[0].outlets:{[b]:e}}function vf(e,t,n){if(e??=new F([],{}),e.segments.length===0&&e.hasChildren())return Jn(e,t,n);let r=jy(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndexo!==b)&&e.children[b]&&e.numberOfChildren===1&&e.children[b].segments.length===0){let o=Jn(e.children[b],t,n);return new F(e.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=vf(e.children[o],t,s))}),Object.entries(e.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new F(e.segments,i)}}function jy(e,t,n){let r=0,i=t,o={match:!1,pathIndex:0,commandIndex:0};for(;i=n.length)return o;let s=e.segments[i],a=n[r];if(rr(a))break;let u=`${a}`,c=r0&&u===void 0)break;if(u&&c&&typeof c=="object"&&c.outlets===void 0){if(!Xd(u,c,s))return o;r+=2}else{if(!Xd(u,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function Ma(e,t,n){let r=e.segments.slice(0,t),i=0;for(;i{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=Ma(new F([],{}),0,r))}),t}function Jd(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function Xd(e,t,n){return e==n.path&&ke(t,n.parameters)}var Xn="imperative",Y=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(Y||{}),me=class{constructor(t,n){this.id=t,this.url=n}},ir=class extends me{constructor(t,n,r="imperative",i=null){super(t,n),this.type=Y.NavigationStart,this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Mt=class extends me{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r,this.type=Y.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},ce=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(ce||{}),Sa=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(Sa||{}),We=class extends me{constructor(t,n,r,i){super(t,n),this.reason=r,this.code=i,this.type=Y.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},St=class extends me{constructor(t,n,r,i){super(t,n),this.reason=r,this.code=i,this.type=Y.NavigationSkipped}},or=class extends me{constructor(t,n,r,i){super(t,n),this.error=r,this.target=i,this.type=Y.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},zi=class extends me{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=Y.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ta=class extends me{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=Y.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},xa=class extends me{constructor(t,n,r,i,o){super(t,n),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o,this.type=Y.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Aa=class extends me{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=Y.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Na=class extends me{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=Y.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ra=class{constructor(t){this.route=t,this.type=Y.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Oa=class{constructor(t){this.route=t,this.type=Y.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Fa=class{constructor(t){this.snapshot=t,this.type=Y.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Pa=class{constructor(t){this.snapshot=t,this.type=Y.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ka=class{constructor(t){this.snapshot=t,this.type=Y.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},La=class{constructor(t){this.snapshot=t,this.type=Y.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var sr=class{},yn=class{constructor(t,n){this.url=t,this.navigationBehaviorOptions=n}};function $y(e,t){return e.providers&&!e._injector&&(e._injector=Ks(e.providers,t,`Route: ${e.path}`)),e._injector??t}function _e(e){return e.outlet||b}function Uy(e,t){let n=e.filter(r=>_e(r)===t);return n.push(...e.filter(r=>_e(r)!==t)),n}function fr(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){let n=t.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}var Va=class{get injector(){return fr(this.route?.snapshot)??this.rootInjector}set injector(t){}constructor(t){this.rootInjector=t,this.outlet=null,this.route=null,this.children=new Ki(this.rootInjector),this.attachRef=null}},Ki=(()=>{class e{constructor(n){this.rootInjector=n,this.contexts=new Map}onChildOutletCreated(n,r){let i=this.getOrCreateContext(n);i.outlet=r,this.contexts.set(n,i)}onChildOutletDestroyed(n){let r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new Va(this.rootInjector),this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}static{this.\u0275fac=function(r){return new(r||e)(S(pe))}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Gi=class{constructor(t){this._root=t}get root(){return this._root.value}parent(t){let n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){let n=ja(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=ja(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=Ba(t,this._root);return n.length<2?[]:n[n.length-2].children.map(i=>i.value).filter(i=>i!==t)}pathFromRoot(t){return Ba(t,this._root).map(n=>n.value)}};function ja(e,t){if(e===t.value)return t;for(let n of t.children){let r=ja(e,n);if(r)return r}return null}function Ba(e,t){if(e===t.value)return[t];for(let n of t.children){let r=Ba(e,n);if(r.length)return r.unshift(t),r}return[]}var ue=class{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}};function hn(e){let t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}var Wi=class extends Gi{constructor(t,n){super(t),this.snapshot=n,Qa(this,t)}toString(){return this.snapshot.toString()}};function yf(e){let t=Hy(e),n=new q([new bt("",{})]),r=new q({}),i=new q({}),o=new q({}),s=new q(""),a=new Dn(n,r,o,s,i,b,e,t.root);return a.snapshot=t.root,new Wi(new ue(a,[]),t)}function Hy(e){let t={},n={},r={},i="",o=new gn([],t,r,i,n,b,e,null,{});return new Zi("",new ue(o,[]))}var Dn=class{constructor(t,n,r,i,o,s,a,u){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=u,this.title=this.dataSubject?.pipe(I(c=>c[dr]))??C(void 0),this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o}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(I(t=>vn(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(I(t=>vn(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function qi(e,t,n="emptyOnly"){let r,{routeConfig:i}=e;return t!==null&&(n==="always"||i?.path===""||!t.component&&!t.routeConfig?.loadComponent)?r={params:g(g({},t.params),e.params),data:g(g({},t.data),e.data),resolve:g(g(g(g({},e.data),t.data),i?.data),e._resolvedData)}:r={params:g({},e.params),data:g({},e.data),resolve:g(g({},e.data),e._resolvedData??{})},i&&Cf(i)&&(r.resolve[dr]=i.title),r}var gn=class{get title(){return this.data?.[dr]}constructor(t,n,r,i,o,s,a,u,c){this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=u,this._resolve=c}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??=vn(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=vn(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(r=>r.toString()).join("/"),n=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${n}')`}},Zi=class extends Gi{constructor(t,n){super(n),this.url=t,Qa(this,n)}toString(){return Df(this._root)}};function Qa(e,t){t.value._routerState=e,t.children.forEach(n=>Qa(e,n))}function Df(e){let t=e.children.length>0?` { ${e.children.map(Df).join(", ")} } `:"";return`${e.value}${t}`}function Ca(e){if(e.snapshot){let t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,ke(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),ke(t.params,n.params)||e.paramsSubject.next(n.params),my(t.url,n.url)||e.urlSubject.next(n.url),ke(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function $a(e,t){let n=ke(e.params,t.params)&&Cy(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||$a(e.parent,t.parent))}function Cf(e){return typeof e.title=="string"||e.title===null}var Ka=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=b,this.activateEvents=new J,this.deactivateEvents=new J,this.attachEvents=new J,this.detachEvents=new J,this.parentContexts=h(Ki),this.location=h(Hn),this.changeDetector=h(cn),this.inputBinder=h(Ja,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:i}=n.name;if(r)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(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new 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 n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new y(4013,!1);this._activatedRoute=n;let i=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,u=new Ua(n,a,i.injector);this.activated=i.createComponent(s,{index:i.length,injector:u,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=Vn({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Bn]})}}return e})(),Ua=class e{__ngOutletInjector(t){return new e(this.route,this.childContexts,t)}constructor(t,n,r){this.route=t,this.childContexts=n,this.parent=r}get(t,n){return t===Dn?this.route:t===Ki?this.childContexts:this.parent.get(t,n)}},Ja=new E("");function zy(e,t,n){let r=ar(e,t._root,n?n._root:void 0);return new Wi(r,t)}function ar(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=t.value;let i=Gy(e,t,n);return new ue(r,i)}else{if(e.shouldAttach(t.value)){let o=e.retrieve(t.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>ar(e,a)),s}}let r=Wy(t.value),i=t.children.map(o=>ar(e,o));return new ue(r,i)}}function Gy(e,t,n){return t.children.map(r=>{for(let i of n.children)if(e.shouldReuseRoute(r.value,i.value.snapshot))return ar(e,r,i);return ar(e,r)})}function Wy(e){return new Dn(new q(e.url),new q(e.params),new q(e.queryParams),new q(e.fragment),new q(e.data),e.outlet,e.component,e)}var ur=class{constructor(t,n){this.redirectTo=t,this.navigationBehaviorOptions=n}},wf="ngNavigationCancelingError";function Yi(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=nr(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,i=Ef(!1,ce.Redirect);return i.url=n,i.navigationBehaviorOptions=r,i}function Ef(e,t){let n=new Error(`NavigationCancelingError: ${e||""}`);return n[wf]=!0,n.cancellationCode=t,n}function qy(e){return If(e)&&nr(e.url)}function If(e){return!!e&&e[wf]}var Zy=(e,t,n,r)=>I(i=>(new Ha(t,i.targetRouterState,i.currentRouterState,n,r).activate(e),i)),Ha=class{constructor(t,n,r,i,o){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(t){let n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),Ca(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){let i=hn(n);t.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(t,n,r){let i=t.value,o=n?n.value:null;if(i===o)if(i.component){let s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else o&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){let r=n.getContext(t.value.outlet),i=r&&t.value.component?r.children:n,o=hn(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){let r=n.getContext(t.value.outlet),i=r&&t.value.component?r.children:n,o=hn(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){let i=hn(n);t.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new La(o.value.snapshot))}),t.children.length&&this.forwardEvent(new Pa(t.value.snapshot))}activateRoutes(t,n,r){let i=t.value,o=n?n.value:null;if(Ca(i),i===o)if(i.component){let s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(i.component){let s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.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),Ca(a.route.value),this.activateChildRoutes(t,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(t,null,s.children)}else this.activateChildRoutes(t,null,r)}},Qi=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},mn=class{constructor(t,n){this.component=t,this.route=n}};function Yy(e,t,n){let r=e._root,i=t?t._root:null;return Qn(r,i,n,[r.value])}function Qy(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function wn(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e=="function"&&!bc(e)?e:t.get(e):r}function Qn(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=hn(t);return e.children.forEach(s=>{Ky(s,o[s.value.outlet],n,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>er(a,n.getContext(s),i)),i}function Ky(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let u=Jy(s,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new Qi(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Qn(e,t,a?a.children:null,r,i):Qn(e,t,n,r,i),u&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new mn(a.outlet.component,s))}else s&&er(t,a,i),i.canActivateChecks.push(new Qi(r)),o.component?Qn(e,null,a?a.children:null,r,i):Qn(e,null,n,r,i);return i}function Jy(e,t,n){if(typeof n=="function")return n(e,t);switch(n){case"pathParamsChange":return!_t(e.url,t.url);case"pathParamsOrQueryParamsChange":return!_t(e.url,t.url)||!ke(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!$a(e,t)||!ke(e.queryParams,t.queryParams);case"paramsChange":default:return!$a(e,t)}}function er(e,t,n){let r=hn(e),i=e.value;Object.entries(r).forEach(([o,s])=>{i.component?t?er(s,t.children.getContext(o),n):er(s,null,n):er(s,t,n)}),i.component?t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new mn(t.outlet.component,i)):n.canDeactivateChecks.push(new mn(null,i)):n.canDeactivateChecks.push(new mn(null,i))}function hr(e){return typeof e=="function"}function Xy(e){return typeof e=="boolean"}function eD(e){return e&&hr(e.canLoad)}function tD(e){return e&&hr(e.canActivate)}function nD(e){return e&&hr(e.canActivateChild)}function rD(e){return e&&hr(e.canDeactivate)}function iD(e){return e&&hr(e.canMatch)}function bf(e){return e instanceof Ve||e?.name==="EmptyError"}var Vi=Symbol("INITIAL_VALUE");function Cn(){return K(e=>Lr(e.map(t=>t.pipe(G(1),Ao(Vi)))).pipe(I(t=>{for(let n of t)if(n!==!0){if(n===Vi)return Vi;if(n===!1||oD(n))return n}return!0}),Q(t=>t!==Vi),G(1)))}function oD(e){return nr(e)||e instanceof ur}function sD(e,t){return $(n=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=n;return s.length===0&&o.length===0?C(j(g({},n),{guardsResult:!0})):aD(s,r,i,e).pipe($(a=>a&&Xy(a)?uD(r,o,e,t):C(a)),I(a=>j(g({},n),{guardsResult:a})))})}function aD(e,t,n,r){return B(e).pipe($(i=>hD(i.component,i.route,n,t,r)),Te(i=>i!==!0,!0))}function uD(e,t,n,r){return B(t).pipe(jt(i=>Se(lD(i.route.parent,r),cD(i.route,r),fD(e,i.path,n),dD(e,i.route,n))),Te(i=>i!==!0,!0))}function cD(e,t){return e!==null&&t&&t(new ka(e)),C(!0)}function lD(e,t){return e!==null&&t&&t(new Fa(e)),C(!0)}function dD(e,t,n){let r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||r.length===0)return C(!0);let i=r.map(o=>lt(()=>{let s=fr(t)??n,a=wn(o,s),u=tD(a)?a.canActivate(t,e):Ue(s,()=>a(t,e));return ot(u).pipe(Te())}));return C(i).pipe(Cn())}function fD(e,t,n){let r=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>Qy(s)).filter(s=>s!==null).map(s=>lt(()=>{let a=s.guards.map(u=>{let c=fr(s.node)??n,l=wn(u,c),d=nD(l)?l.canActivateChild(r,e):Ue(c,()=>l(r,e));return ot(d).pipe(Te())});return C(a).pipe(Cn())}));return C(o).pipe(Cn())}function hD(e,t,n,r,i){let o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||o.length===0)return C(!0);let s=o.map(a=>{let u=fr(t)??i,c=wn(a,u),l=rD(c)?c.canDeactivate(e,t,n,r):Ue(u,()=>c(e,t,n,r));return ot(l).pipe(Te())});return C(s).pipe(Cn())}function pD(e,t,n,r){let i=t.canLoad;if(i===void 0||i.length===0)return C(!0);let o=i.map(s=>{let a=wn(s,e),u=eD(a)?a.canLoad(t,n):Ue(e,()=>a(t,n));return ot(u)});return C(o).pipe(Cn(),_f(r))}function _f(e){return vo(W(t=>{if(typeof t!="boolean")throw Yi(e,t)}),I(t=>t===!0))}function gD(e,t,n,r){let i=t.canMatch;if(!i||i.length===0)return C(!0);let o=i.map(s=>{let a=wn(s,e),u=iD(a)?a.canMatch(t,n):Ue(e,()=>a(t,n));return ot(u)});return C(o).pipe(Cn(),_f(r))}var cr=class{constructor(t){this.segmentGroup=t||null}},lr=class extends Error{constructor(t){super(),this.urlTree=t}};function fn(e){return Ye(new cr(e))}function mD(e){return Ye(new y(4e3,!1))}function vD(e){return Ye(Ef(!1,ce.GuardRejected))}var za=class{constructor(t,n){this.urlSerializer=t,this.urlTree=n}lineralizeSegments(t,n){let r=[],i=n.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return C(r);if(i.numberOfChildren>1||!i.children[b])return mD(`${t.redirectTo}`);i=i.children[b]}}applyRedirectCommands(t,n,r,i,o){if(typeof n!="string"){let a=n,{queryParams:u,fragment:c,routeConfig:l,url:d,outlet:p,params:f,data:m,title:T}=i,k=Ue(o,()=>a({params:f,data:m,queryParams:u,fragment:c,routeConfig:l,url:d,outlet:p,title:T}));if(k instanceof qe)throw new lr(k);n=k}let s=this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r);if(n[0]==="/")throw new lr(s);return s}applyRedirectCreateUrlTree(t,n,r,i){let o=this.createSegmentGroup(t,n.root,r,i);return new qe(o,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){let r={};return Object.entries(t).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);r[i]=n[a]}else r[i]=o}),r}createSegmentGroup(t,n,r,i){let o=this.createSegments(t,n.segments,r,i),s={};return Object.entries(n.children).forEach(([a,u])=>{s[a]=this.createSegmentGroup(t,u,r,i)}),new F(o,s)}createSegments(t,n,r,i){return n.map(o=>o.path[0]===":"?this.findPosParam(t,o,i):this.findOrReturn(o,r))}findPosParam(t,n,r){let i=r[n.path.substring(1)];if(!i)throw new y(4001,!1);return i}findOrReturn(t,n){let r=0;for(let i of n){if(i.path===t.path)return n.splice(r),i;r++}return t}},Ga={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function yD(e,t,n,r,i){let o=Mf(e,t,n);return o.matched?(r=$y(t,r),gD(r,t,n,i).pipe(I(s=>s===!0?o:g({},Ga)))):C(o)}function Mf(e,t,n){if(t.path==="**")return DD(n);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?g({},Ga):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let i=(t.matcher||gy)(n,e,t);if(!i)return g({},Ga);let o={};Object.entries(i.posParams??{}).forEach(([a,u])=>{o[a]=u.path});let s=i.consumed.length>0?g(g({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:n.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function DD(e){return{matched:!0,parameters:e.length>0?of(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function ef(e,t,n,r){return n.length>0&&ED(e,n,r)?{segmentGroup:new F(t,wD(r,new F(n,e.children))),slicedSegments:[]}:n.length===0&&ID(e,n,r)?{segmentGroup:new F(e.segments,CD(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new F(e.segments,e.children),slicedSegments:n}}function CD(e,t,n,r){let i={};for(let o of n)if(Ji(e,t,o)&&!r[_e(o)]){let s=new F([],{});i[_e(o)]=s}return g(g({},r),i)}function wD(e,t){let n={};n[b]=t;for(let r of e)if(r.path===""&&_e(r)!==b){let i=new F([],{});n[_e(r)]=i}return n}function ED(e,t,n){return n.some(r=>Ji(e,t,r)&&_e(r)!==b)}function ID(e,t,n){return n.some(r=>Ji(e,t,r))}function Ji(e,t,n){return(e.hasChildren()||t.length>0)&&n.pathMatch==="full"?!1:n.path===""}function bD(e,t,n){return t.length===0&&!e.children[n]}var Wa=class{};function _D(e,t,n,r,i,o,s="emptyOnly"){return new qa(e,t,n,r,i,s,o).recognize()}var MD=31,qa=class{constructor(t,n,r,i,o,s,a){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new za(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new y(4002,`'${t.segmentGroup}'`)}recognize(){let t=ef(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(I(({children:n,rootSnapshot:r})=>{let i=new ue(r,n),o=new Zi("",i),s=Fy(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(t){let n=new gn([],Object.freeze({}),Object.freeze(g({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),b,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,t,b,n).pipe(I(r=>({children:r,rootSnapshot:n})),Qe(r=>{if(r instanceof lr)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof cr?this.noMatchError(r):r}))}processSegmentGroup(t,n,r,i,o){return r.segments.length===0&&r.hasChildren()?this.processChildren(t,n,r,o):this.processSegment(t,n,r,r.segments,i,!0,o).pipe(I(s=>s instanceof ue?[s]:[]))}processChildren(t,n,r,i){let o=[];for(let s of Object.keys(r.children))s==="primary"?o.unshift(s):o.push(s);return B(o).pipe(jt(s=>{let a=r.children[s],u=Uy(n,s);return this.processSegmentGroup(t,u,a,s,i)}),xo((s,a)=>(s.push(...a),s)),Ke(null),So(),$(s=>{if(s===null)return fn(r);let a=Sf(s);return SD(a),C(a)}))}processSegment(t,n,r,i,o,s,a){return B(n).pipe(jt(u=>this.processSegmentAgainstRoute(u._injector??t,n,u,r,i,o,s,a).pipe(Qe(c=>{if(c instanceof cr)return C(null);throw c}))),Te(u=>!!u),Qe(u=>{if(bf(u))return bD(r,i,o)?C(new Wa):fn(r);throw u}))}processSegmentAgainstRoute(t,n,r,i,o,s,a,u){return _e(r)!==s&&(s===b||!Ji(i,o,r))?fn(i):r.redirectTo===void 0?this.matchSegmentAgainstRoute(t,i,r,o,s,u):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,i,n,r,o,s,u):fn(i)}expandSegmentAgainstRouteUsingRedirect(t,n,r,i,o,s,a){let{matched:u,parameters:c,consumedSegments:l,positionalParamSegments:d,remainingSegments:p}=Mf(n,i,o);if(!u)return fn(n);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>MD&&(this.allowRedirects=!1));let f=new gn(o,c,Object.freeze(g({},this.urlTree.queryParams)),this.urlTree.fragment,tf(i),_e(i),i.component??i._loadedComponent??null,i,nf(i)),m=qi(f,a,this.paramsInheritanceStrategy);f.params=Object.freeze(m.params),f.data=Object.freeze(m.data);let T=this.applyRedirects.applyRedirectCommands(l,i.redirectTo,d,f,t);return this.applyRedirects.lineralizeSegments(i,T).pipe($(k=>this.processSegment(t,r,n,k.concat(p),s,!1,a)))}matchSegmentAgainstRoute(t,n,r,i,o,s){let a=yD(n,r,i,t,this.urlSerializer);return r.path==="**"&&(n.children={}),a.pipe(K(u=>u.matched?(t=r._injector??t,this.getChildConfig(t,r,i).pipe(K(({routes:c})=>{let l=r._loadedInjector??t,{parameters:d,consumedSegments:p,remainingSegments:f}=u,m=new gn(p,d,Object.freeze(g({},this.urlTree.queryParams)),this.urlTree.fragment,tf(r),_e(r),r.component??r._loadedComponent??null,r,nf(r)),T=qi(m,s,this.paramsInheritanceStrategy);m.params=Object.freeze(T.params),m.data=Object.freeze(T.data);let{segmentGroup:k,slicedSegments:V}=ef(n,p,f,c);if(V.length===0&&k.hasChildren())return this.processChildren(l,c,k,m).pipe(I(ne=>new ue(m,ne)));if(c.length===0&&V.length===0)return C(new ue(m,[]));let te=_e(r)===o;return this.processSegment(l,c,k,V,te?b:o,!0,m).pipe(I(ne=>new ue(m,ne instanceof ue?[ne]:[])))}))):fn(n)))}getChildConfig(t,n,r){return n.children?C({routes:n.children,injector:t}):n.loadChildren?n._loadedRoutes!==void 0?C({routes:n._loadedRoutes,injector:n._loadedInjector}):pD(t,n,r,this.urlSerializer).pipe($(i=>i?this.configLoader.loadChildren(t,n).pipe(W(o=>{n._loadedRoutes=o.routes,n._loadedInjector=o.injector})):vD(n))):C({routes:[],injector:t})}};function SD(e){e.sort((t,n)=>t.value.outlet===b?-1:n.value.outlet===b?1:t.value.outlet.localeCompare(n.value.outlet))}function TD(e){let t=e.value.routeConfig;return t&&t.path===""}function Sf(e){let t=[],n=new Set;for(let r of e){if(!TD(r)){t.push(r);continue}let i=t.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),n.add(i)):t.push(r)}for(let r of n){let i=Sf(r.children);t.push(new ue(r.value,i))}return t.filter(r=>!n.has(r))}function tf(e){return e.data||{}}function nf(e){return e.resolve||{}}function xD(e,t,n,r,i,o){return $(s=>_D(e,t,n,r,s.extractedUrl,i,o).pipe(I(({state:a,tree:u})=>j(g({},s),{targetSnapshot:a,urlAfterRedirects:u}))))}function AD(e,t){return $(n=>{let{targetSnapshot:r,guards:{canActivateChecks:i}}=n;if(!i.length)return C(n);let o=new Set(i.map(u=>u.route)),s=new Set;for(let u of o)if(!s.has(u))for(let c of Tf(u))s.add(c);let a=0;return B(s).pipe(jt(u=>o.has(u)?ND(u,r,e,t):(u.data=qi(u,u.parent,e).resolve,C(void 0))),W(()=>a++),Bt(1),$(u=>a===s.size?C(n):X))})}function Tf(e){let t=e.children.map(n=>Tf(n)).flat();return[e,...t]}function ND(e,t,n,r){let i=e.routeConfig,o=e._resolve;return i?.title!==void 0&&!Cf(i)&&(o[dr]=i.title),RD(o,e,t,r).pipe(I(s=>(e._resolvedData=s,e.data=qi(e,e.parent,n).resolve,null)))}function RD(e,t,n,r){let i=Ia(e);if(i.length===0)return C({});let o={};return B(i).pipe($(s=>OD(e[s],t,n,r).pipe(Te(),W(a=>{if(a instanceof ur)throw Yi(new tr,a);o[s]=a}))),Bt(1),_n(o),Qe(s=>bf(s)?X:Ye(s)))}function OD(e,t,n,r){let i=fr(t)??r,o=wn(e,i),s=o.resolve?o.resolve(t,n):Ue(i,()=>o(t,n));return ot(s)}function wa(e){return K(t=>{let n=e(t);return n?B(n).pipe(I(()=>t)):C(t)})}var xf=(()=>{class e{buildTitle(n){let r,i=n.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===b);return r}getResolvedTitleForRoute(n){return n.data[dr]}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=D({token:e,factory:()=>h(FD),providedIn:"root"})}}return e})(),FD=(()=>{class e extends xf{constructor(n){super(),this.title=n}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r)}static{this.\u0275fac=function(r){return new(r||e)(S(Yd))}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Xa=new E("",{providedIn:"root",factory:()=>({})}),PD=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=mi({type:e,selectors:[["ng-component"]],standalone:!0,features:[xi],decls:1,vars:0,template:function(r,i){r&1&&an(0,"router-outlet")},dependencies:[Ka],encapsulation:2})}}return e})();function eu(e){let t=e.children&&e.children.map(eu),n=t?j(g({},e),{children:t}):g({},e);return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==b&&(n.component=PD),n}var tu=new E(""),kD=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=h(na)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return C(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let r=ot(n.loadComponent()).pipe(I(Af),W(o=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=o}),Mn(()=>{this.componentLoaders.delete(n)})),i=new Ze(r,()=>new z).pipe(Pt());return this.componentLoaders.set(n,i),i}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return C({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=LD(r,this.compiler,n,this.onLoadEndListener).pipe(Mn(()=>{this.childrenLoaders.delete(r)})),s=new Ze(o,()=>new z).pipe(Pt());return this.childrenLoaders.set(r,s),s}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function LD(e,t,n,r){return ot(e.loadChildren()).pipe(I(Af),$(i=>i instanceof Ln||Array.isArray(i)?C(i):B(t.compileModuleAsync(i))),I(i=>{r&&r(e);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(n).injector,s=o.get(tu,[],{optional:!0,self:!0}).flat()),{routes:s.map(eu),injector:o}}))}function VD(e){return e&&typeof e=="object"&&"default"in e}function Af(e){return VD(e)?e.default:e}var nu=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=D({token:e,factory:()=>h(jD),providedIn:"root"})}}return e})(),jD=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),BD=new E("");var $D=new E(""),UD=(()=>{class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new z,this.transitionAbortSubject=new z,this.configLoader=h(kD),this.environmentInjector=h(pe),this.urlSerializer=h(Ya),this.rootContexts=h(Ki),this.location=h(Gn),this.inputBindingEnabled=h(Ja,{optional:!0})!==null,this.titleStrategy=h(xf),this.options=h(Xa,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=h(nu),this.createViewTransition=h(BD,{optional:!0}),this.navigationErrorHandler=h($D,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>C(void 0),this.rootComponentType=null;let n=i=>this.events.next(new Ra(i)),r=i=>this.events.next(new Oa(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;this.transitions?.next(j(g(g({},this.transitions.value),n),{id:r}))}setupNavigations(n,r,i){return this.transitions=new q({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Xn,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Q(o=>o.id!==0),I(o=>j(g({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),K(o=>{let s=!1,a=!1;return C(o).pipe(K(u=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",ce.SupersededByNewNavigation),X;this.currentTransition=o,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?j(g({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let c=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),l=u.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!c&&l!=="reload"){let d="";return this.events.next(new St(u.id,this.urlSerializer.serialize(u.rawUrl),d,Sa.IgnoredSameUrlNavigation)),u.resolve(!1),X}if(this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return C(u).pipe(K(d=>{let p=this.transitions?.getValue();return this.events.next(new ir(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),p!==this.transitions?.getValue()?X:Promise.resolve(d)}),xD(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),W(d=>{o.targetSnapshot=d.targetSnapshot,o.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation=j(g({},this.currentNavigation),{finalUrl:d.urlAfterRedirects});let p=new zi(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(p)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){let{id:d,extractedUrl:p,source:f,restoredState:m,extras:T}=u,k=new ir(d,this.urlSerializer.serialize(p),f,m);this.events.next(k);let V=yf(this.rootComponentType).snapshot;return this.currentTransition=o=j(g({},u),{targetSnapshot:V,urlAfterRedirects:p,extras:j(g({},T),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=p,C(o)}else{let d="";return this.events.next(new St(u.id,this.urlSerializer.serialize(u.extractedUrl),d,Sa.IgnoredByUrlHandlingStrategy)),u.resolve(!1),X}}),W(u=>{let c=new Ta(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(c)}),I(u=>(this.currentTransition=o=j(g({},u),{guards:Yy(u.targetSnapshot,u.currentSnapshot,this.rootContexts)}),o)),sD(this.environmentInjector,u=>this.events.next(u)),W(u=>{if(o.guardsResult=u.guardsResult,u.guardsResult&&typeof u.guardsResult!="boolean")throw Yi(this.urlSerializer,u.guardsResult);let c=new xa(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(c)}),Q(u=>u.guardsResult?!0:(this.cancelNavigationTransition(u,"",ce.GuardRejected),!1)),wa(u=>{if(u.guards.canActivateChecks.length)return C(u).pipe(W(c=>{let l=new Aa(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),K(c=>{let l=!1;return C(c).pipe(AD(this.paramsInheritanceStrategy,this.environmentInjector),W({next:()=>l=!0,complete:()=>{l||this.cancelNavigationTransition(c,"",ce.NoDataFromResolver)}}))}),W(c=>{let l=new Na(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}))}),wa(u=>{let c=l=>{let d=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(l.routeConfig).pipe(W(p=>{l.component=p}),I(()=>{})));for(let p of l.children)d.push(...c(p));return d};return Lr(c(u.targetSnapshot.root)).pipe(Ke(null),G(1))}),wa(()=>this.afterPreactivation()),K(()=>{let{currentSnapshot:u,targetSnapshot:c}=o,l=this.createViewTransition?.(this.environmentInjector,u.root,c.root);return l?B(l).pipe(I(()=>o)):C(o)}),I(u=>{let c=zy(n.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=o=j(g({},u),{targetRouterState:c}),this.currentNavigation.targetRouterState=c,o}),W(()=>{this.events.next(new sr)}),Zy(this.rootContexts,n.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),G(1),W({next:u=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Mt(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),this.titleStrategy?.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{s=!0}}),No(this.transitionAbortSubject.pipe(W(u=>{throw u}))),Mn(()=>{!s&&!a&&this.cancelNavigationTransition(o,"",ce.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),Qe(u=>{if(a=!0,If(u))this.events.next(new We(o.id,this.urlSerializer.serialize(o.extractedUrl),u.message,u.cancellationCode)),qy(u)?this.events.next(new yn(u.url,u.navigationBehaviorOptions)):o.resolve(!1);else{let c=new or(o.id,this.urlSerializer.serialize(o.extractedUrl),u,o.targetSnapshot??void 0);try{let l=Ue(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(l instanceof ur){let{message:d,cancellationCode:p}=Yi(this.urlSerializer,l);this.events.next(new We(o.id,this.urlSerializer.serialize(o.extractedUrl),d,p)),this.events.next(new yn(l.redirectTo,l.navigationBehaviorOptions))}else{this.events.next(c);let d=n.errorHandler(u);o.resolve(!!d)}}catch(l){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(l)}}return X}))}))}cancelNavigationTransition(n,r,i){let o=new We(n.id,this.urlSerializer.serialize(n.extractedUrl),r,i);this.events.next(o),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let n=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return n.toString()!==r?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function HD(e){return e!==Xn}var zD=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=D({token:e,factory:()=>h(GD),providedIn:"root"})}}return e})(),Za=class{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}},GD=(()=>{class e extends Za{static{this.\u0275fac=(()=>{let n;return function(i){return(n||(n=Ei(e)))(i||e)}})()}static{this.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Nf=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=D({token:e,factory:()=>h(WD),providedIn:"root"})}}return e})(),WD=(()=>{class e extends Nf{constructor(){super(...arguments),this.location=h(Gn),this.urlSerializer=h(Ya),this.options=h(Xa,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=h(nu),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new qe,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=yf(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(n){return this.location.subscribe(r=>{r.type==="popstate"&&n(r.url,r.state)})}handleRouterEvent(n,r){if(n instanceof ir)this.stateMemento=this.createStateMemento();else if(n instanceof St)this.rawUrlTree=r.initialUrl;else if(n instanceof zi){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let i=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(r.targetBrowserUrl??i,r)}}else n instanceof sr?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(r.targetBrowserUrl??this.rawUrlTree,r)):n instanceof We&&(n.code===ce.GuardRejected||n.code===ce.NoDataFromResolver)?this.restoreHistory(r):n instanceof or?this.restoreHistory(r,!0):n instanceof Mt&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){let i=n instanceof qe?this.urlSerializer.serialize(n):n;if(this.location.isCurrentPathEqualTo(i)||r.extras.replaceUrl){let o=this.browserPageId,s=g(g({},r.extras.state),this.generateNgRouterState(r.id,o));this.location.replaceState(i,"",s)}else{let o=g(g({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(i,"",o)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.currentUrlTree===n.finalUrl&&o===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}static{this.\u0275fac=(()=>{let n;return function(i){return(n||(n=Ei(e)))(i||e)}})()}static{this.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Kn=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(Kn||{});function qD(e,t){e.events.pipe(Q(n=>n instanceof Mt||n instanceof We||n instanceof or||n instanceof St),I(n=>n instanceof Mt||n instanceof St?Kn.COMPLETE:(n instanceof We?n.code===ce.Redirect||n.code===ce.SupersededByNewNavigation:!1)?Kn.REDIRECTING:Kn.FAILED),Q(n=>n!==Kn.REDIRECTING),G(1)).subscribe(()=>{t()})}function ZD(e){throw e}var YD={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},QD={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Rf=(()=>{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=h(Ai),this.stateManager=h(Nf),this.options=h(Xa,{optional:!0})||{},this.pendingTasks=h(nn),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=h(UD),this.urlSerializer=h(Ya),this.location=h(Gn),this.urlHandlingStrategy=h(nu),this._events=new z,this.errorHandler=this.options.errorHandler||ZD,this.navigated=!1,this.routeReuseStrategy=h(zD),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=h(tu,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!h(Ja,{optional:!0}),this.eventsSubscription=new U,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof We&&r.code!==ce.Redirect&&r.code!==ce.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Mt)this.navigated=!0;else if(r instanceof yn){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),u=g({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||HD(i.source)},s);this.scheduleNavigation(a,Xn,null,u,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}JD(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Xn,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",r)},0)})}navigateToSyncWithBrowser(n,r,i){let o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){let u=g({},i);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(o.state=u)}let a=this.parseUrl(n);this.scheduleNavigation(a,r,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(eu),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(n,r={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:u}=r,c=u?this.currentUrlTree.fragment:s,l=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":l=g(g({},this.currentUrlTree.queryParams),o);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=o||null}l!==null&&(l=this.removeEmptyProps(l));let d;try{let p=i?i.snapshot:this.routerState.snapshot.root;d=pf(p)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),d=this.currentUrlTree.root}return gf(d,n,l,c??null)}navigateByUrl(n,r={skipLocationChange:!1}){let i=nr(n)?n:this.parseUrl(n),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Xn,null,r)}navigate(n,r={skipLocationChange:!1}){return KD(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,r){let i;if(r===!0?i=g({},YD):r===!1?i=g({},QD):i=r,nr(n))return Qd(this.currentUrlTree,n,i);let o=this.parseUrl(n);return Qd(this.currentUrlTree,o,i)}removeEmptyProps(n){return Object.entries(n).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(n,r,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,u,c;s?(a=s.resolve,u=s.reject,c=s.promise):c=new Promise((d,p)=>{a=d,u=p});let l=this.pendingTasks.add();return qD(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(l))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:o,resolve:a,reject:u,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(d=>Promise.reject(d))}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function KD(e){for(let t=0;tn.\u0275providers)])}function eC(e){return e.routerState.root}function tC(){let e=h(Fe);return t=>{let n=e.get(Pe);if(t!==n.components[0])return;let r=e.get(Rf),i=e.get(nC);e.get(rC)===1&&r.initialNavigation(),e.get(iC,null,_.Optional)?.setUpPreloading(),e.get(XD,null,_.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var nC=new E("",{factory:()=>new z}),rC=new E("",{providedIn:"root",factory:()=>1});var iC=new E("");var Ff=[];var gr="Service workers are disabled or not supported by this browser";function oC(e){return lt(()=>Ye(new Error(e)))}var En=class{constructor(t){if(this.serviceWorker=t,!t)this.worker=this.events=this.registration=oC(gr);else{let r=Vt(t,"controllerchange").pipe(I(()=>t.controller)),i=lt(()=>C(t.controller)),o=Se(i,r);this.worker=o.pipe(Q(l=>!!l)),this.registration=this.worker.pipe(K(()=>t.getRegistration()));let c=Vt(t,"message").pipe(I(l=>l.data)).pipe(Q(l=>l&&l.type)).pipe(To());c.connect(),this.events=c}}postMessage(t,n){return this.worker.pipe(G(1),W(r=>{r.postMessage(g({action:t},n))})).toPromise().then(()=>{})}postMessageWithOperation(t,n,r){let i=this.waitForOperationCompleted(r),o=this.postMessage(t,n);return Promise.all([o,i]).then(([,s])=>s)}generateNonce(){return Math.round(Math.random()*1e7)}eventsOfType(t){let n;return typeof t=="string"?n=r=>r.type===t:n=r=>t.includes(r.type),this.events.pipe(Q(n))}nextEventOfType(t){return this.eventsOfType(t).pipe(G(1))}waitForOperationCompleted(t){return this.eventsOfType("OPERATION_COMPLETED").pipe(Q(n=>n.nonce===t),G(1),I(n=>{if(n.result!==void 0)return n.result;throw new Error(n.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}},sC=(()=>{class e{get isEnabled(){return this.sw.isEnabled}constructor(n){if(this.sw=n,this.pushManager=null,this.subscriptionChanges=new z,!n.isEnabled){this.messages=dt,this.notificationClicks=dt,this.subscription=dt;return}this.messages=this.sw.eventsOfType("PUSH").pipe(I(i=>i.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe(I(i=>i.data)),this.pushManager=this.sw.registration.pipe(I(i=>i.pushManager));let r=this.pushManager.pipe(K(i=>i.getSubscription()));this.subscription=Vr(r,this.subscriptionChanges)}requestSubscription(n){if(!this.sw.isEnabled||this.pushManager===null)return Promise.reject(new Error(gr));let r={userVisibleOnly:!0},i=this.decodeBase64(n.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),o=new Uint8Array(new ArrayBuffer(i.length));for(let s=0;ss.subscribe(r)),G(1)).toPromise().then(s=>(this.subscriptionChanges.next(s),s))}unsubscribe(){if(!this.sw.isEnabled)return Promise.reject(new Error(gr));let n=r=>{if(r===null)throw new Error("Not subscribed to push notifications.");return r.unsubscribe().then(i=>{if(!i)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})};return this.subscription.pipe(G(1),K(n)).toPromise()}decodeBase64(n){return atob(n)}static{this.\u0275fac=function(r){return new(r||e)(S(En))}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac})}}return e})(),aC=(()=>{class e{get isEnabled(){return this.sw.isEnabled}constructor(n){if(this.sw=n,!n.isEnabled){this.versionUpdates=dt,this.unrecoverable=dt;return}this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY","NO_NEW_VERSION_DETECTED"]),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(gr));let n=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:n},n)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(gr));let n=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:n},n)}static{this.\u0275fac=function(r){return new(r||e)(S(En))}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac})}}return e})();var Pf=new E("");function uC(e,t,n,r){return()=>{if(!(ca(r)&&"serviceWorker"in navigator&&n.enabled!==!1))return;let i=e.get(H),o=e.get(Pe);i.runOutsideAngular(()=>{let a=navigator.serviceWorker,u=()=>a.controller?.postMessage({action:"INITIALIZE"});a.addEventListener("controllerchange",u),o.onDestroy(()=>{a.removeEventListener("controllerchange",u)})});let s;if(typeof n.registrationStrategy=="function")s=n.registrationStrategy();else{let[a,...u]=(n.registrationStrategy||"registerWhenStable:30000").split(":");switch(a){case"registerImmediately":s=C(null);break;case"registerWithDelay":s=kf(+u[0]||0);break;case"registerWhenStable":let c=B(e.get(Pe).whenStable());s=u[0]?Vr(c,kf(+u[0])):c;break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${n.registrationStrategy}`)}}i.runOutsideAngular(()=>s.pipe(G(1)).subscribe(()=>navigator.serviceWorker.register(t,{scope:n.scope}).catch(a=>console.error("Service worker registration failed with:",a))))}}function kf(e){return C(null).pipe(Mo(e))}function cC(e,t){return new En(ca(t)&&e.enabled!==!1?navigator.serviceWorker:void 0)}var pr=class{};function Lf(e,t={}){return en([sC,aC,{provide:Pf,useValue:e},{provide:pr,useValue:t},{provide:En,useFactory:cC,deps:[pr,Ge]},{provide:Ni,useFactory:uC,deps:[Fe,Pf,pr,Ge],multi:!0}])}var Vf={providers:[Md({eventCoalescing:!0}),Of(Ff),Lf("ngsw-worker.js",{enabled:!Td(),registrationStrategy:"registerWhenStable:30000"})]};var lC={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},TT=j(g({},lC),{"[class.ng-submitted]":"isSubmitted"});var dC=new E("CallSetDisabledState",{providedIn:"root",factory:()=>jf}),jf="always";var fC=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=it({type:e})}static{this.\u0275inj=rt({})}}return e})();var Bf=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:dC,useValue:n.callSetDisabledState??jf}]}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=it({type:e})}static{this.\u0275inj=rt({imports:[fC]})}}return e})();function hC(e,t){if(e&1){let n=Cd();on(0,"button",3),zn("click",function(){rl(n);let i=wd();return il(i.installPwa())}),ea(1," Install App "),sn()}}var Xi=class e{deferredPrompt;showInstallButton=!1;ngOnInit(){window.addEventListener("beforeinstallprompt",t=>{t.preventDefault(),this.deferredPrompt=t,this.showInstallButton=!0})}installPwa(){return to(this,null,function*(){if(!this.deferredPrompt)return;this.deferredPrompt.prompt();let{outcome:t}=yield this.deferredPrompt.userChoice;t==="accepted"&&(this.showInstallButton=!1),this.deferredPrompt=null})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=mi({type:e,selectors:[["app-root"]],standalone:!0,features:[xi],decls:6,vars:1,consts:[[1,"fullscreen-container"],["src","/icons/icon-1024x1024.png","alt","Moments Logo",1,"logo"],["class","install-button",3,"click",4,"ngIf"],[1,"install-button",3,"click"]],template:function(n,r){n&1&&(on(0,"div",0),an(1,"img",1),on(2,"h1"),ea(3,"In development..."),sn(),Js(4,hC,2,0,"button",2),sn(),an(5,"router-outlet")),n&2&&(Ql(4),Xs("ngIf",r.showInstallButton))},dependencies:[Ka,aa,Bd,Bf],styles:[".fullscreen-container[_ngcontent-%COMP%]{position:relative;width:100vw;height:100vh;overflow:hidden}.fullscreen-container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover}.fullscreen-container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:#fff;font-size:3rem;text-shadow:2px 2px 4px rgba(0,0,0,.5)}.install-button[_ngcontent-%COMP%]{position:fixed;bottom:20px;right:20px;padding:12px 24px;background-color:#007bff;color:#fff;border:none;border-radius:24px;font-size:1.1rem;cursor:pointer;box-shadow:0 2px 5px #0003;z-index:1000;transition:transform .2s}.install-button[_ngcontent-%COMP%]:hover{transform:scale(1.05);background-color:#0056b3}"]})};Zd(Xi,Vf).catch(e=>console.error(e)); diff --git a/main-L6ZYKM2Y.js b/main-L6ZYKM2Y.js new file mode 100644 index 0000000..9931eb0 --- /dev/null +++ b/main-L6ZYKM2Y.js @@ -0,0 +1,7 @@ +var fp=Object.defineProperty,hp=Object.defineProperties;var pp=Object.getOwnPropertyDescriptors;var ec=Object.getOwnPropertySymbols;var gp=Object.prototype.hasOwnProperty,mp=Object.prototype.propertyIsEnumerable;var tc=(e,t,n)=>t in e?fp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,g=(e,t)=>{for(var n in t||={})gp.call(t,n)&&tc(e,n,t[n]);if(ec)for(var n of ec(t))mp.call(t,n)&&tc(e,n,t[n]);return e},B=(e,t)=>hp(e,pp(t));var Yn=(e,t,n)=>new Promise((r,i)=>{var o=u=>{try{a(n.next(u))}catch(c){i(c)}},s=u=>{try{a(n.throw(u))}catch(c){i(c)}},a=u=>u.done?r(u.value):Promise.resolve(u.value).then(o,s);a((n=n.apply(e,t)).next())});var Vo=null;var Lo=1,nc=Symbol("SIGNAL");function O(e){let t=Vo;return Vo=e,t}function rc(){return Vo}var jo={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 vp(e){if(!(zo(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===Lo)){if(!e.producerMustRecompute(e)&&!$o(e)){e.dirty=!1,e.lastCleanEpoch=Lo;return}e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=Lo}}function Bo(e){return e&&(e.nextProducerIndex=0),O(e)}function ic(e,t){if(O(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(zo(e))for(let n=e.nextProducerIndex;ne.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function $o(e){Go(e);for(let t=0;t0}function Go(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function yp(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Dp(e){return e.producerNode!==void 0}function Cp(){throw new Error}var wp=Cp;function oc(e){wp=e}function v(e){return typeof e=="function"}function Yt(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Br=Yt(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription: +${n.map((r,i)=>`${i+1}) ${r.toString()}`).join(` + `)}`:"",this.name="UnsubscriptionError",this.errors=n});function Mt(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var z=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let o of n)o.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(v(r))try{r()}catch(o){t=o instanceof Br?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{sc(o)}catch(s){t=t??[],s instanceof Br?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Br(t)}}add(t){var n;if(t&&t!==this)if(this.closed)sc(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&Mt(n,t)}remove(t){let{_finalizers:n}=this;n&&Mt(n,t),t instanceof e&&t._removeParent(this)}};z.EMPTY=(()=>{let e=new z;return e.closed=!0,e})();var Wo=z.EMPTY;function $r(e){return e instanceof z||e&&"closed"in e&&v(e.remove)&&v(e.add)&&v(e.unsubscribe)}function sc(e){v(e)?e():e.unsubscribe()}var be={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Qt={setTimeout(e,t,...n){let{delegate:r}=Qt;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Qt;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Ur(e){Qt.setTimeout(()=>{let{onUnhandledError:t}=be;if(t)t(e);else throw e})}function qe(){}var ac=qo("C",void 0,void 0);function uc(e){return qo("E",void 0,e)}function cc(e){return qo("N",e,void 0)}function qo(e,t,n){return{kind:e,value:t,error:n}}var St=null;function Kt(e){if(be.useDeprecatedSynchronousErrorHandling){let t=!St;if(t&&(St={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=St;if(St=null,n)throw r}}else e()}function lc(e){be.useDeprecatedSynchronousErrorHandling&&St&&(St.errorThrown=!0,St.error=e)}var xt=class extends z{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,$r(t)&&t.add(this)):this.destination=bp}static create(t,n,r){return new Jt(t,n,r)}next(t){this.isStopped?Yo(cc(t),this):this._next(t)}error(t){this.isStopped?Yo(uc(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Yo(ac,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},Ep=Function.prototype.bind;function Zo(e,t){return Ep.call(e,t)}var Qo=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Hr(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Hr(r)}else Hr(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Hr(n)}}},Jt=class extends xt{constructor(t,n,r){super();let i;if(v(t)||!t)i={next:t??void 0,error:n??void 0,complete:r??void 0};else{let o;this&&be.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),i={next:t.next&&Zo(t.next,o),error:t.error&&Zo(t.error,o),complete:t.complete&&Zo(t.complete,o)}):i=t}this.destination=new Qo(i)}};function Hr(e){be.useDeprecatedSynchronousErrorHandling?lc(e):Ur(e)}function Ip(e){throw e}function Yo(e,t){let{onStoppedNotification:n}=be;n&&Qt.setTimeout(()=>n(e,t))}var bp={closed:!0,next:qe,error:Ip,complete:qe};var Xt=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ue(e){return e}function Ko(...e){return Jo(e)}function Jo(e){return e.length===0?ue:e.length===1?e[0]:function(n){return e.reduce((r,i)=>i(r),n)}}var N=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,i){let o=Mp(n)?n:new Jt(n,r,i);return Kt(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=dc(r),new r((i,o)=>{let s=new Jt({next:a=>{try{n(a)}catch(u){o(u),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[Xt](){return this}pipe(...n){return Jo(n)(this)}toPromise(n){return n=dc(n),new n((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return e.create=t=>new e(t),e})();function dc(e){var t;return(t=e??be.Promise)!==null&&t!==void 0?t:Promise}function _p(e){return e&&v(e.next)&&v(e.error)&&v(e.complete)}function Mp(e){return e&&e instanceof xt||_p(e)&&$r(e)}function Xo(e){return v(e?.lift)}function x(e){return t=>{if(Xo(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function R(e,t,n,r,i){return new es(e,t,n,r,i)}var es=class extends xt{constructor(t,n,r,i,o,s){super(t),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(u){t.error(u)}}:super._next,this._error=i?function(a){try{i(a)}catch(u){t.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function en(){return x((e,t)=>{let n=null;e._refCount++;let r=R(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let i=e._connection,o=n;n=null,i&&(!o||i===o)&&i.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var ut=class extends N{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Xo(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new z;let n=this.getSubject();t.add(this.source.subscribe(R(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=z.EMPTY)}return t}refCount(){return en()(this)}};var fc=Yt(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var G=(()=>{class e extends N{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new zr(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new fc}next(n){Kt(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Kt(()=>{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(){Kt(()=>{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:i,observers:o}=this;return r||i?Wo:(this.currentObservers=null,o.push(n),new z(()=>{this.currentObservers=null,Mt(o,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){let n=new N;return n.source=this,n}}return e.create=(t,n)=>new zr(t,n),e})(),zr=class extends G{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:Wo}};var Q=class extends G{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var ts={now(){return(ts.delegate||Date).now()},delegate:void 0};var Gr=class extends z{constructor(t,n){super()}schedule(t,n=0){return this}};var Qn={setInterval(e,t,...n){let{delegate:r}=Qn;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=Qn;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var Wr=class extends Gr{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=!1}schedule(t,n=0){var r;if(this.closed)return this;this.state=t;let i=this.id,o=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(o,i,n)),this.pending=!0,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(o,this.id,n),this}requestAsyncId(t,n,r=0){return Qn.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(r!=null&&this.delay===r&&this.pending===!1)return n;n!=null&&Qn.clearInterval(n)}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let r=this._execute(t,n);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,n){let r=!1,i;try{this.work(t)}catch(o){r=!0,i=o||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),i}unsubscribe(){if(!this.closed){let{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,Mt(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var tn=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};tn.now=ts.now;var qr=class extends tn{constructor(t,n=tn.now){super(t,n),this.actions=[],this._active=!1}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=!0;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var ns=new qr(Wr),hc=ns;var ee=new N(e=>e.complete());function Zr(e){return e&&v(e.schedule)}function rs(e){return e[e.length-1]}function pc(e){return v(rs(e))?e.pop():void 0}function Fe(e){return Zr(rs(e))?e.pop():void 0}function gc(e,t){return typeof rs(e)=="number"?e.pop():t}function vc(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(l){try{c(r.next(l))}catch(d){s(d)}}function u(l){try{c(r.throw(l))}catch(d){s(d)}}function c(l){l.done?o(l.value):i(l.value).then(a,u)}c((r=r.apply(e,t||[])).next())})}function mc(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Tt(e){return this instanceof Tt?(this.v=e,this):new Tt(e)}function yc(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(f){return function(m){return Promise.resolve(m).then(f,d)}}function a(f,m){r[f]&&(i[f]=function(A){return new Promise(function(k,V){o.push([f,A,k,V])>1||u(f,A)})},m&&(i[f]=m(i[f])))}function u(f,m){try{c(r[f](m))}catch(A){p(o[0][3],A)}}function c(f){f.value instanceof Tt?Promise.resolve(f.value.v).then(l,d):p(o[0][2],f)}function l(f){u("next",f)}function d(f){u("throw",f)}function p(f,m){f(m),o.shift(),o.length&&u(o[0][0],o[0][1])}}function Dc(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof mc=="function"?mc(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(s){return new Promise(function(a,u){s=e[o](s),i(a,u,s.done,s.value)})}}function i(o,s,a,u){Promise.resolve(u).then(function(c){o({value:c,done:a})},s)}}var nn=e=>e&&typeof e.length=="number"&&typeof e!="function";function Yr(e){return v(e?.then)}function Qr(e){return v(e[Xt])}function Kr(e){return Symbol.asyncIterator&&v(e?.[Symbol.asyncIterator])}function Jr(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Sp(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Xr=Sp();function ei(e){return v(e?.[Xr])}function ti(e){return yc(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:i}=yield Tt(n.read());if(i)return yield Tt(void 0);yield yield Tt(r)}}finally{n.releaseLock()}})}function ni(e){return v(e?.getReader)}function L(e){if(e instanceof N)return e;if(e!=null){if(Qr(e))return xp(e);if(nn(e))return Tp(e);if(Yr(e))return Ap(e);if(Kr(e))return Cc(e);if(ei(e))return Np(e);if(ni(e))return Rp(e)}throw Jr(e)}function xp(e){return new N(t=>{let n=e[Xt]();if(v(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Tp(e){return new N(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Ur)})}function Np(e){return new N(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Cc(e){return new N(t=>{Op(e,t).catch(n=>t.error(n))})}function Rp(e){return Cc(ti(e))}function Op(e,t){var n,r,i,o;return vc(this,void 0,void 0,function*(){try{for(n=Dc(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=n.return)&&(yield o.call(n))}finally{if(i)throw i.error}}t.complete()})}function ie(e,t,n,r=0,i=!1){let o=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function ri(e,t=0){return x((n,r)=>{n.subscribe(R(r,i=>ie(r,e,()=>r.next(i),t),()=>ie(r,e,()=>r.complete(),t),i=>ie(r,e,()=>r.error(i),t)))})}function ii(e,t=0){return x((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function wc(e,t){return L(e).pipe(ii(t),ri(t))}function Ec(e,t){return L(e).pipe(ii(t),ri(t))}function Ic(e,t){return new N(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function bc(e,t){return new N(n=>{let r;return ie(n,t,()=>{r=e[Xr](),ie(n,t,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){n.error(s);return}o?n.complete():n.next(i)},0,!0)}),()=>v(r?.return)&&r.return()})}function oi(e,t){if(!e)throw new Error("Iterable cannot be null");return new N(n=>{ie(n,t,()=>{let r=e[Symbol.asyncIterator]();ie(n,t,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function _c(e,t){return oi(ti(e),t)}function Mc(e,t){if(e!=null){if(Qr(e))return wc(e,t);if(nn(e))return Ic(e,t);if(Yr(e))return Ec(e,t);if(Kr(e))return oi(e,t);if(ei(e))return bc(e,t);if(ni(e))return _c(e,t)}throw Jr(e)}function j(e,t){return t?Mc(e,t):L(e)}function D(...e){let t=Fe(e);return j(e,t)}function ct(e,t){let n=v(e)?e:()=>e,r=i=>i.error(n());return new N(t?i=>t.schedule(r,0,i):r)}function is(e){return!!e&&(e instanceof N||v(e.lift)&&v(e.subscribe))}var Ze=Yt(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Sc(e){return e instanceof Date&&!isNaN(e)}function b(e,t){return x((n,r)=>{let i=0;n.subscribe(R(r,o=>{r.next(e.call(t,o,i++))}))})}var{isArray:Fp}=Array;function Pp(e,t){return Fp(t)?e(...t):e(t)}function si(e){return b(t=>Pp(e,t))}var{isArray:kp}=Array,{getPrototypeOf:Lp,prototype:Vp,keys:jp}=Object;function xc(e){if(e.length===1){let t=e[0];if(kp(t))return{args:t,keys:null};if(Bp(t)){let n=jp(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function Bp(e){return e&&typeof e=="object"&&Lp(e)===Vp}function Tc(e,t){return e.reduce((n,r,i)=>(n[r]=t[i],n),{})}function Kn(...e){let t=Fe(e),n=pc(e),{args:r,keys:i}=xc(e);if(r.length===0)return j([],t);let o=new N($p(r,t,i?s=>Tc(i,s):ue));return n?o.pipe(si(n)):o}function $p(e,t,n=ue){return r=>{Ac(t,()=>{let{length:i}=e,o=new Array(i),s=i,a=i;for(let u=0;u{let c=j(e[u],t),l=!1;c.subscribe(R(r,d=>{o[u]=d,l||(l=!0,a--),a||r.next(n(o.slice()))},()=>{--s||r.complete()}))},r)},r)}}function Ac(e,t,n){e?ie(n,e,t):t()}function Nc(e,t,n,r,i,o,s,a){let u=[],c=0,l=0,d=!1,p=()=>{d&&!u.length&&!c&&t.complete()},f=A=>c{o&&t.next(A),c++;let k=!1;L(n(A,l++)).subscribe(R(t,V=>{i?.(V),o?f(V):t.next(V)},()=>{k=!0},void 0,()=>{if(k)try{for(c--;u.length&&cm(V)):m(V)}p()}catch(V){t.error(V)}}))};return e.subscribe(R(t,f,()=>{d=!0,p()})),()=>{a?.()}}function $(e,t,n=1/0){return v(t)?$((r,i)=>b((o,s)=>t(r,o,i,s))(L(e(r,i))),n):(typeof t=="number"&&(n=t),x((r,i)=>Nc(r,i,e,n)))}function lt(e=1/0){return $(ue,e)}function Rc(){return lt(1)}function Pe(...e){return Rc()(j(e,Fe(e)))}function At(e){return new N(t=>{L(e()).subscribe(t)})}var Up=["addListener","removeListener"],Hp=["addEventListener","removeEventListener"],zp=["on","off"];function rn(e,t,n,r){if(v(n)&&(r=n,n=void 0),r)return rn(e,t,n).pipe(si(r));let[i,o]=qp(e)?Hp.map(s=>a=>e[s](t,a,n)):Gp(e)?Up.map(Oc(e,t)):Wp(e)?zp.map(Oc(e,t)):[];if(!i&&nn(e))return $(s=>rn(s,t,n))(L(e));if(!i)throw new TypeError("Invalid event target");return new N(s=>{let a=(...u)=>s.next(1o(a)})}function Oc(e,t){return n=>r=>e[n](t,r)}function Gp(e){return v(e.addListener)&&v(e.removeListener)}function Wp(e){return v(e.on)&&v(e.off)}function qp(e){return v(e.addEventListener)&&v(e.removeEventListener)}function Fc(e=0,t,n=hc){let r=-1;return t!=null&&(Zr(t)?n=t:r=t),new N(i=>{let o=Sc(e)?+e-n.now():e;o<0&&(o=0);let s=0;return n.schedule(function(){i.closed||(i.next(s++),0<=r?this.schedule(void 0,r):i.complete())},o)})}function ai(...e){let t=Fe(e),n=gc(e,1/0),r=e;return r.length?r.length===1?L(r[0]):lt(n)(j(r,t)):ee}var Nt=new N(qe);function W(e,t){return x((n,r)=>{let i=0;n.subscribe(R(r,o=>e.call(t,o,i++)&&r.next(o)))})}function dt(e){return x((t,n)=>{let r=null,i=!1,o;r=t.subscribe(R(n,void 0,void 0,s=>{o=L(e(s,dt(e)(t))),r?(r.unsubscribe(),r=null,o.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(n))})}function Pc(e,t,n,r,i){return(o,s)=>{let a=n,u=t,c=0;o.subscribe(R(s,l=>{let d=c++;u=a?e(u,l,d):(a=!0,l),r&&s.next(u)},i&&(()=>{a&&s.next(u),s.complete()})))}}function Rt(e,t){return v(t)?$(e,t,1):$(e,1)}function kc(e){return new N(t=>e.subscribe(t))}var Zp={connector:()=>new G};function ui(e,t=Zp){let{connector:n}=t;return x((r,i)=>{let o=n();L(e(kc(o))).subscribe(i),i.add(r.subscribe(o))})}function ft(e){return x((t,n)=>{let r=!1;t.subscribe(R(n,i=>{r=!0,n.next(i)},()=>{r||n.next(e),n.complete()}))})}function q(e){return e<=0?()=>ee:x((t,n)=>{let r=0;t.subscribe(R(n,i=>{++r<=e&&(n.next(i),e<=r&&n.complete())}))})}function Lc(){return x((e,t)=>{e.subscribe(R(t,qe))})}function Jn(e){return b(()=>e)}function os(e,t){return t?n=>Pe(t.pipe(q(1),Lc()),n.pipe(os(e))):$((n,r)=>L(e(n,r)).pipe(q(1),Jn(n)))}function ss(e,t=ns){let n=Fc(e,t);return os(()=>n)}function ci(e=Yp){return x((t,n)=>{let r=!1;t.subscribe(R(n,i=>{r=!0,n.next(i)},()=>r?n.complete():n.error(e())))})}function Yp(){return new Ze}function Xn(e){return x((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function ke(e,t){let n=arguments.length>=2;return r=>r.pipe(e?W((i,o)=>e(i,o,r)):ue,q(1),n?ft(t):ci(()=>new Ze))}function on(e){return e<=0?()=>ee:x((t,n)=>{let r=[];t.subscribe(R(n,i=>{r.push(i),e{for(let i of r)n.next(i);n.complete()},void 0,()=>{r=null}))})}function as(e,t){let n=arguments.length>=2;return r=>r.pipe(e?W((i,o)=>e(i,o,r)):ue,on(1),n?ft(t):ci(()=>new Ze))}function Vc(e,t){let n=v(e)?e:()=>e;return v(t)?ui(t,{connector:n}):r=>new ut(r,n)}function us(e){return e?t=>ui(e)(t):t=>Vc(new G)(t)}function cs(e,t){return x(Pc(e,t,arguments.length>=2,!0))}function ls(...e){let t=Fe(e);return x((n,r)=>{(t?Pe(e,n,t):Pe(e,n)).subscribe(r)})}function K(e,t){return x((n,r)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&r.complete();n.subscribe(R(r,u=>{i?.unsubscribe();let c=0,l=o++;L(e(u,l)).subscribe(i=R(r,d=>r.next(t?t(u,d,l,c++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function ds(e){return x((t,n)=>{L(e).subscribe(R(n,()=>n.complete(),qe)),!n.closed&&t.subscribe(n)})}function Z(e,t,n){let r=v(e)||t||n?{next:e,error:t,complete:n}:e;return r?x((i,o)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;i.subscribe(R(o,u=>{var c;(c=r.next)===null||c===void 0||c.call(r,u),o.next(u)},()=>{var u;a=!1,(u=r.complete)===null||u===void 0||u.call(r),o.complete()},u=>{var c;a=!1,(c=r.error)===null||c===void 0||c.call(r,u),o.error(u)},()=>{var u,c;a&&((u=r.unsubscribe)===null||u===void 0||u.call(r)),(c=r.finalize)===null||c===void 0||c.call(r)}))}):ue}var Cl="https://g.co/ng/security#xss",C=class extends Error{constructor(t,n){super(la(t,n)),this.code=t}};function la(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}function ur(e){return{toString:e}.toString()}var li="__parameters__";function Qp(e){return function(...n){if(e){let r=e(...n);for(let i in r)this[i]=r[i]}}}function wl(e,t,n){return ur(()=>{let r=Qp(t);function i(...o){if(this instanceof i)return r.apply(this,o),this;let s=new i(...o);return a.annotation=s,a;function a(u,c,l){let d=u.hasOwnProperty(li)?u[li]:Object.defineProperty(u,li,{value:[]})[li];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),u}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}var Cs=globalThis;function P(e){for(let t in e)if(e[t]===P)return t;throw Error("Could not find renamed property on target object.")}function oe(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(oe).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(t==null)return""+t;let n=t.indexOf(` +`);return n===-1?t:t.substring(0,n)}function jc(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var Kp=P({__forward_ref__:P});function da(e){return e.__forward_ref__=da,e.toString=function(){return oe(this())},e}function ve(e){return El(e)?e():e}function El(e){return typeof e=="function"&&e.hasOwnProperty(Kp)&&e.__forward_ref__===da}function y(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Xe(e){return{providers:e.providers||[],imports:e.imports||[]}}function ji(e){return Bc(e,bl)||Bc(e,_l)}function Il(e){return ji(e)!==null}function Bc(e,t){return e.hasOwnProperty(t)?e[t]:null}function Jp(e){let t=e&&(e[bl]||e[_l]);return t||null}function $c(e){return e&&(e.hasOwnProperty(Uc)||e.hasOwnProperty(Xp))?e[Uc]:null}var bl=P({\u0275prov:P}),Uc=P({\u0275inj:P}),_l=P({ngInjectableDef:P}),Xp=P({ngInjectorDef:P}),w=class{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=y({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Ml(e){return e&&!!e.\u0275providers}var eg=P({\u0275cmp:P}),tg=P({\u0275dir:P}),ng=P({\u0275pipe:P}),rg=P({\u0275mod:P}),Di=P({\u0275fac:P}),tr=P({__NG_ELEMENT_ID__:P}),Hc=P({__NG_ENV_ID__:P});function fa(e){return typeof e=="string"?e:e==null?"":String(e)}function ig(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():fa(e)}function og(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new C(-200,e)}function ha(e,t){throw new C(-201,!1)}var M=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(M||{}),ws;function Sl(){return ws}function me(e){let t=ws;return ws=e,t}function xl(e,t,n){let r=ji(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&M.Optional)return null;if(t!==void 0)return t;ha(e,"Injector")}var sg={},nr=sg,Es="__NG_DI_FLAG__",Ci="ngTempTokenPath",ag="ngTokenPath",ug=/\n/gm,cg="\u0275",zc="__source",ln;function lg(){return ln}function ht(e){let t=ln;return ln=e,t}function dg(e,t=M.Default){if(ln===void 0)throw new C(-203,!1);return ln===null?xl(e,void 0,t):ln.get(e,t&M.Optional?null:void 0,t)}function I(e,t=M.Default){return(Sl()||dg)(ve(e),t)}function h(e,t=M.Default){return I(e,Bi(t))}function Bi(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Is(e){let t=[];for(let n=0;n ");else if(typeof t=="object"){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):oe(a)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(ug,` + `)}`}var pa=Tl(wl("Optional"),8);var Al=Tl(wl("SkipSelf"),4);function fn(e,t){let n=e.hasOwnProperty(Di);return n?e[Di]:null}function gg(e,t,n){if(e.length!==t.length)return!1;for(let r=0;rArray.isArray(n)?ga(n,t):t(n))}function Nl(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function wi(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}var rr={},Le=[],hn=new w(""),Rl=new w("",-1),Ol=new w(""),Ei=class{get(t,n=nr){if(n===nr){let r=new Error(`NullInjectorError: No provider for ${oe(t)}!`);throw r.name="NullInjectorError",r}return n}},Fl=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(Fl||{}),Be=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Be||{}),mt=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(mt||{});function vg(e,t,n){let r=e.length;for(;;){let i=e.indexOf(t,n);if(i===-1)return i;if(i===0||e.charCodeAt(i-1)<=32){let o=t.length;if(i+o===r||e.charCodeAt(i+o)<=32)return i}n=i+1}}function bs(e,t,n){let r=0;for(;rt){s=o-1;break}}}for(;o-1){let o;for(;++io?d="":d=i[l+1].toLowerCase(),r&2&&c!==d){if(_e(r))return!1;s=!0}}}}return _e(r)||s}function _e(e){return(e&1)===0}function Eg(e,t,n,r){if(t===null)return-1;let i=0;if(r||!n){let o=!1;for(;i-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?i+="."+s:r&4&&(i+=" "+s);else i!==""&&!_e(s)&&(t+=Wc(o,i),i=""),r=s,o=o||!_e(r);n++}return i!==""&&(t+=Wc(o,i)),t}function Sg(e){return e.map(Mg).join(",")}function xg(e){let t=[],n=[],r=1,i=2;for(;r{let t=$l(e),n=B(g({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Fl.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Be.Emulated,styles:e.styles||Le,_:null,schemas:e.schemas||null,tView:null,id:""});Ul(n);let r=e.dependencies;return n.directiveDefs=Zc(r,!1),n.pipeDefs=Zc(r,!0),n.id=Ng(n),n})}function Tg(e){return vt(e)||Ll(e)}function Ag(e){return e!==null}function et(e){return ur(()=>({type:e.type,bootstrap:e.bootstrap||Le,declarations:e.declarations||Le,imports:e.imports||Le,exports:e.exports||Le,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function qc(e,t){if(e==null)return rr;let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],o,s,a=mt.None;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o):(o=i,s=i),t?(n[o]=a!==mt.None?[r,a]:r,t[o]=s):n[o]=r}return n}function In(e){return ur(()=>{let t=$l(e);return Ul(t),t})}function vt(e){return e[eg]||null}function Ll(e){return e[tg]||null}function Vl(e){return e[ng]||null}function jl(e){let t=vt(e)||Ll(e)||Vl(e);return t!==null?t.standalone:!1}function Bl(e,t){let n=e[rg]||null;if(!n&&t===!0)throw new Error(`Type ${oe(e)} does not have '\u0275mod' property.`);return n}function $l(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||rr,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||Le,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:qc(e.inputs,t),outputs:qc(e.outputs),debugInfo:null}}function Ul(e){e.features?.forEach(t=>t(e))}function Zc(e,t){if(!e)return null;let n=t?Vl:Tg;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(Ag)}function Ng(e){let t=0,n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(let i of n)t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function bn(e){return{\u0275providers:e}}function Rg(...e){return{\u0275providers:Hl(!0,e),\u0275fromNgModule:!0}}function Hl(e,...t){let n=[],r=new Set,i,o=s=>{n.push(s)};return ga(t,s=>{let a=s;_s(a,o,[],r)&&(i||=[],i.push(a))}),i!==void 0&&zl(i,o),n}function zl(e,t){for(let n=0;n{t(o,r)})}}function _s(e,t,n,r){if(e=ve(e),!e)return!1;let i=null,o=$c(e),s=!o&&vt(e);if(!o&&!s){let u=e.ngModule;if(o=$c(u),o)i=u;else return!1}else{if(s&&!s.standalone)return!1;i=e}let a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){let u=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of u)_s(c,t,n,r)}}else if(o){if(o.imports!=null&&!a){r.add(i);let c;try{ga(o.imports,l=>{_s(l,t,n,r)&&(c||=[],c.push(l))})}finally{}c!==void 0&&zl(c,t)}if(!a){let c=fn(i)||(()=>new i);t({provide:i,useFactory:c,deps:Le},i),t({provide:Ol,useValue:i,multi:!0},i),t({provide:hn,useValue:()=>I(i),multi:!0},i)}let u=o.providers;if(u!=null&&!a){let c=e;ya(u,l=>{t(l,c)})}}else return!1;return i!==e&&e.providers!==void 0}function ya(e,t){for(let n of e)Ml(n)&&(n=n.\u0275providers),Array.isArray(n)?ya(n,t):t(n)}var Og=P({provide:String,useValue:P});function Gl(e){return e!==null&&typeof e=="object"&&Og in e}function Fg(e){return!!(e&&e.useExisting)}function Pg(e){return!!(e&&e.useFactory)}function Ms(e){return typeof e=="function"}var $i=new w(""),hi={},kg={},fs;function Da(){return fs===void 0&&(fs=new Ei),fs}var le=class{},ir=class extends le{get destroyed(){return this._destroyed}constructor(t,n,r,i){super(),this.parent=n,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,xs(t,s=>this.processProvider(s)),this.records.set(Rl,sn(void 0,this)),i.has("environment")&&this.records.set(le,sn(void 0,this));let o=this.records.get($i);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Ol,Le,M.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let t=O(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(),O(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let n=ht(this),r=me(void 0),i;try{return t()}finally{ht(n),me(r)}}get(t,n=nr,r=M.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(Hc))return t[Hc](this);r=Bi(r);let i,o=ht(this),s=me(void 0);try{if(!(r&M.SkipSelf)){let u=this.records.get(t);if(u===void 0){let c=Ug(t)&&ji(t);c&&this.injectableDefInScope(c)?u=sn(Ss(t),hi):u=null,this.records.set(t,u)}if(u!=null)return this.hydrate(t,u)}let a=r&M.Self?Da():this.parent;return n=r&M.Optional&&n===nr?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Ci]=a[Ci]||[]).unshift(oe(t)),o)throw a;return hg(a,t,"R3InjectorError",this.source)}else throw a}finally{me(s),ht(o)}}resolveInjectorInitializers(){let t=O(null),n=ht(this),r=me(void 0),i;try{let o=this.get(hn,Le,M.Self);for(let s of o)s()}finally{ht(n),me(r),O(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(oe(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new C(205,!1)}processProvider(t){t=ve(t);let n=Ms(t)?t:ve(t&&t.provide),r=Vg(t);if(!Ms(t)&&t.multi===!0){let i=this.records.get(n);i||(i=sn(void 0,hi,!0),i.factory=()=>Is(i.multi),this.records.set(n,i)),n=t,i.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=O(null);try{return n.value===hi&&(n.value=kg,n.value=n.factory()),typeof n.value=="object"&&n.value&&$g(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{O(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=ve(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function Ss(e){let t=ji(e),n=t!==null?t.factory:fn(e);if(n!==null)return n;if(e instanceof w)throw new C(204,!1);if(e instanceof Function)return Lg(e);throw new C(204,!1)}function Lg(e){if(e.length>0)throw new C(204,!1);let n=Jp(e);return n!==null?()=>n.factory(e):()=>new e}function Vg(e){if(Gl(e))return sn(void 0,e.useValue);{let t=jg(e);return sn(t,hi)}}function jg(e,t,n){let r;if(Ms(e)){let i=ve(e);return fn(i)||Ss(i)}else if(Gl(e))r=()=>ve(e.useValue);else if(Pg(e))r=()=>e.useFactory(...Is(e.deps||[]));else if(Fg(e))r=()=>I(ve(e.useExisting));else{let i=ve(e&&(e.useClass||e.provide));if(Bg(e))r=()=>new i(...Is(e.deps));else return fn(i)||Ss(i)}return r}function sn(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Bg(e){return!!e.deps}function $g(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Ug(e){return typeof e=="function"||typeof e=="object"&&e instanceof w}function xs(e,t){for(let n of e)Array.isArray(n)?xs(n,t):n&&Ml(n)?xs(n.\u0275providers,t):t(n)}function He(e,t){e instanceof ir&&e.assertNotDestroyed();let n,r=ht(e),i=me(void 0);try{return t()}finally{ht(r),me(i)}}function Wl(){return Sl()!==void 0||lg()!=null}function Hg(e){if(!Wl())throw new C(-203,!1)}function zg(e){return typeof e=="function"}var tt=0,S=1,E=2,X=3,Me=4,xe=5,Ii=6,bi=7,Se=8,pn=9,$e=10,te=11,or=12,Yc=13,_n=14,Ue=15,Ft=16,an=17,Ye=18,Ui=19,ql=20,pt=21,hs=22,ye=23,Qe=25,Zl=1;var Pt=7,_i=8,gn=9,ce=10,Mi=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Mi||{});function gt(e){return Array.isArray(e)&&typeof e[Zl]=="object"}function nt(e){return Array.isArray(e)&&e[Zl]===!0}function Yl(e){return(e.flags&4)!==0}function Hi(e){return e.componentOffset>-1}function Ca(e){return(e.flags&1)===1}function cr(e){return!!e.template}function Ts(e){return(e[E]&512)!==0}var As=class{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Ql(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function Mn(){return Kl}function Kl(e){return e.type.prototype.ngOnChanges&&(e.setInput=Wg),Gg}Mn.ngInherit=!0;function Gg(){let e=Xl(this),t=e?.current;if(t){let n=e.previous;if(n===rr)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Wg(e,t,n,r,i){let o=this.declaredInputs[r],s=Xl(e)||qg(e,{previous:rr,current:null}),a=s.current||(s.current={}),u=s.previous,c=u[o];a[o]=new As(c&&c.currentValue,n,u===rr),Ql(e,t,i,n)}var Jl="__ngSimpleChanges__";function Xl(e){return e[Jl]||null}function qg(e,t){return e[Jl]=t}var Qc=null;var Ve=function(e,t,n){Qc?.(e,t,n)},Zg="svg",Yg="math";function Ke(e){for(;Array.isArray(e);)e=e[tt];return e}function De(e,t){return Ke(t[e.index])}function ed(e,t){return e.data[t]}function Qg(e,t){return e[t]}function Dt(e,t){let n=t[e];return gt(n)?n:n[tt]}function Kg(e){return(e[E]&4)===4}function wa(e){return(e[E]&128)===128}function Jg(e){return nt(e[X])}function Si(e,t){return t==null?null:e[t]}function td(e){e[an]=0}function nd(e){e[E]&1024||(e[E]|=1024,wa(e)&&Gi(e))}function Xg(e,t){for(;e>0;)t=t[_n],e--;return t}function zi(e){return!!(e[E]&9216||e[ye]?.dirty)}function Ns(e){e[$e].changeDetectionScheduler?.notify(8),e[E]&64&&(e[E]|=1024),zi(e)&&Gi(e)}function Gi(e){e[$e].changeDetectionScheduler?.notify(0);let t=kt(e);for(;t!==null&&!(t[E]&8192||(t[E]|=8192,!wa(t)));)t=kt(t)}function rd(e,t){if((e[E]&256)===256)throw new C(911,!1);e[pt]===null&&(e[pt]=[]),e[pt].push(t)}function em(e,t){if(e[pt]===null)return;let n=e[pt].indexOf(t);n!==-1&&e[pt].splice(n,1)}function kt(e){let t=e[X];return nt(t)?t[X]:t}var T={lFrame:hd(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var id=!1;function tm(){return T.lFrame.elementDepthCount}function nm(){T.lFrame.elementDepthCount++}function rm(){T.lFrame.elementDepthCount--}function od(){return T.bindingsEnabled}function im(){return T.skipHydrationRootTNode!==null}function om(e){return T.skipHydrationRootTNode===e}function sm(){T.skipHydrationRootTNode=null}function H(){return T.lFrame.lView}function ze(){return T.lFrame.tView}function Ct(e){return T.lFrame.contextLView=e,e[Se]}function wt(e){return T.lFrame.contextLView=null,e}function fe(){let e=sd();for(;e!==null&&e.type===64;)e=e.parent;return e}function sd(){return T.lFrame.currentTNode}function am(){let e=T.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function lr(e,t){let n=T.lFrame;n.currentTNode=e,n.isParent=t}function ad(){return T.lFrame.isParent}function um(){T.lFrame.isParent=!1}function cm(){return T.lFrame.contextLView}function ud(){return id}function Kc(e){id=e}function lm(){let e=T.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function dm(e){return T.lFrame.bindingIndex=e}function cd(){return T.lFrame.bindingIndex++}function fm(){return T.lFrame.inI18n}function hm(e,t){let n=T.lFrame;n.bindingIndex=n.bindingRootIndex=e,Rs(t)}function pm(){return T.lFrame.currentDirectiveIndex}function Rs(e){T.lFrame.currentDirectiveIndex=e}function ld(){return T.lFrame.currentQueryIndex}function Ea(e){T.lFrame.currentQueryIndex=e}function gm(e){let t=e[S];return t.type===2?t.declTNode:t.type===1?e[xe]:null}function dd(e,t,n){if(n&M.SkipSelf){let i=t,o=e;for(;i=i.parent,i===null&&!(n&M.Host);)if(i=gm(o),i===null||(o=o[_n],i.type&10))break;if(i===null)return!1;t=i,e=o}let r=T.lFrame=fd();return r.currentTNode=t,r.lView=e,!0}function Ia(e){let t=fd(),n=e[S];T.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function fd(){let e=T.lFrame,t=e===null?null:e.child;return t===null?hd(e):t}function hd(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function pd(){let e=T.lFrame;return T.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var gd=pd;function ba(){let e=pd();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function mm(e){return(T.lFrame.contextLView=Xg(e,T.lFrame.contextLView))[Se]}function md(){return T.lFrame.selectedIndex}function Lt(e){T.lFrame.selectedIndex=e}function vd(){let e=T.lFrame;return ed(e.tView,e.selectedIndex)}function vm(){return T.lFrame.currentNamespace}var yd=!0;function _a(){return yd}function Ma(e){yd=e}function ym(e,t,n){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){let s=Kl(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}i&&(n.preOrderHooks??=[]).push(0-e,i),o&&((n.preOrderHooks??=[]).push(e,o),(n.preOrderCheckHooks??=[]).push(e,o))}function Sa(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[u]<0&&(e[an]+=65536),(a>14>16&&(e[E]&3)===t&&(e[E]+=16384,Jc(a,o)):Jc(a,o)}var dn=-1,sr=class{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function Cm(e){return e instanceof sr}function wm(e){return(e.flags&8)!==0}function Em(e){return(e.flags&16)!==0}var gs={},Os=class{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=Bi(r);let i=this.injector.get(t,gs,r);return i!==gs||n===gs?i:this.parentInjector.get(t,n,r)}};function Cd(e){return e!==dn}function xi(e){return e&32767}function Im(e){return e>>16}function Ti(e,t){let n=Im(e),r=t;for(;n>0;)r=r[_n],n--;return r}var Fs=!0;function Xc(e){let t=Fs;return Fs=e,t}var bm=256,wd=bm-1,Ed=5,_m=0,je={};function Mm(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(tr)&&(r=n[tr]),r==null&&(r=n[tr]=_m++);let i=r&wd,o=1<>Ed)]|=o}function Id(e,t){let n=bd(e,t);if(n!==-1)return n;let r=t[S];r.firstCreatePass&&(e.injectorIndex=t.length,ms(r.data,e),ms(t,null),ms(r.blueprint,null));let i=xa(e,t),o=e.injectorIndex;if(Cd(i)){let s=xi(i),a=Ti(i,t),u=a[S].data;for(let c=0;c<8;c++)t[o+c]=a[s+c]|u[s+c]}return t[o+8]=i,o}function ms(e,t){e.push(0,0,0,0,0,0,0,0,t)}function bd(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function xa(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;i!==null;){if(r=Td(i),r===null)return dn;if(n++,i=i[_n],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return dn}function Sm(e,t,n){Mm(e,t,n)}function xm(e,t){if(t==="class")return e.classes;if(t==="style")return e.styles;let n=e.attrs;if(n){let r=n.length,i=0;for(;i>20,d=r?a:a+l,p=i?a+l:c;for(let f=d;f=u&&m.type===n)return f}if(i){let f=s[u];if(f&&cr(f)&&f.type===n)return u}return null}function mn(e,t,n,r){let i=e[n],o=t.data;if(Cm(i)){let s=i;s.resolving&&og(ig(o[n]));let a=Xc(s.canSeeViewProviders);s.resolving=!0;let u,c=s.injectImpl?me(s.injectImpl):null,l=dd(e,r,M.Default);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&ym(n,o[n],t)}finally{c!==null&&me(c),Xc(a),s.resolving=!1,gd()}}return i}function Am(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(tr)?e[tr]:void 0;return typeof t=="number"?t>=0?t&wd:Nm:t}function el(e,t,n){let r=1<>Ed)]&r)}function tl(e,t){return!(e&M.Self)&&!(e&M.Host&&t)}var Ot=class{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Sd(this._tNode,this._lView,t,Bi(r),n)}};function Nm(){return new Ot(fe(),H())}function Wi(e){return ur(()=>{let t=e.prototype.constructor,n=t[Di]||Ps(t),r=Object.prototype,i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){let o=i[Di]||Ps(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function Ps(e){return El(e)?()=>{let t=Ps(ve(e));return t&&t()}:fn(e)}function Rm(e,t,n,r,i){let o=e,s=t;for(;o!==null&&s!==null&&s[E]&2048&&!(s[E]&512);){let a=xd(o,s,n,r|M.Self,je);if(a!==je)return a;let u=o.parent;if(!u){let c=s[ql];if(c){let l=c.get(n,je,r);if(l!==je)return l}u=Td(s),s=s[_n]}o=u}return i}function Td(e){let t=e[S],n=t.type;return n===2?t.declTNode:n===1?e[xe]:null}function Ta(e){return xm(fe(),e)}function nl(e,t=null,n=null,r){let i=Ad(e,t,n,r);return i.resolveInjectorInitializers(),i}function Ad(e,t=null,n=null,r,i=new Set){let o=[n||Le,Rg(e)];return r=r||(typeof e=="object"?void 0:oe(e)),new ir(o,t||Da(),r||null,i)}var de=class e{static{this.THROW_IF_NOT_FOUND=nr}static{this.NULL=new Ei}static create(t,n){if(Array.isArray(t))return nl({name:""},n,t,"");{let r=t.name??"";return nl({name:r},t.parent,t.providers,r)}}static{this.\u0275prov=y({token:e,providedIn:"any",factory:()=>I(Rl)})}static{this.__NG_ELEMENT_ID__=-1}};var Om=new w("");Om.__NG_ELEMENT_ID__=e=>{let t=fe();if(t===null)throw new C(204,!1);if(t.type&2)return t.value;if(e&M.Optional)return null;throw new C(204,!1)};var Fm="ngOriginalError";function vs(e){return e[Fm]}var Nd=!0,Aa=(()=>{class e{static{this.__NG_ELEMENT_ID__=Pm}static{this.__NG_ENV_ID__=n=>n}}return e})(),ks=class extends Aa{constructor(t){super(),this._lView=t}onDestroy(t){return rd(this._lView,t),()=>em(this._lView,t)}};function Pm(){return new ks(H())}var Sn=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Q(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275prov=y({token:e,providedIn:"root",factory:()=>new e})}}return e})();var Ls=class extends G{constructor(t=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=t,Wl()&&(this.destroyRef=h(Aa,{optional:!0})??void 0,this.pendingTasks=h(Sn,{optional:!0})??void 0)}emit(t){let n=O(null);try{super.next(t)}finally{O(n)}}subscribe(t,n,r){let i=t,o=n||(()=>null),s=r;if(t&&typeof t=="object"){let u=t;i=u.next?.bind(u),o=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(o=this.wrapInTimeout(o),i&&(i=this.wrapInTimeout(i)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:i,error:o,complete:s});return t instanceof z&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},J=Ls;function Ai(...e){}function Rd(e){let t,n;function r(){e=Ai;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function rl(e){return queueMicrotask(()=>e()),()=>{e=Ai}}var Na="isAngularZone",Ni=Na+"_ID",km=0,U=class e{constructor(t){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new J(!1),this.onMicrotaskEmpty=new J(!1),this.onStable=new J(!1),this.onError=new J(!1);let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:o=Nd}=t;if(typeof Zone>"u")throw new C(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=!i&&r,s.shouldCoalesceRunChangeDetection=i,s.callbackScheduled=!1,s.scheduleInRootZone=o,jm(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Na)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new C(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new C(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,t,Lm,Ai,Ai);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},Lm={};function Ra(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Vm(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Rd(()=>{e.callbackScheduled=!1,Vs(e),e.isCheckStableRunning=!0,Ra(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Vs(e)}function jm(e){let t=()=>{Vm(e)},n=km++;e._inner=e._inner.fork({name:"angular",properties:{[Na]:!0,[Ni]:n,[Ni+n]:!0},onInvokeTask:(r,i,o,s,a,u)=>{if(Bm(u))return r.invokeTask(o,s,a,u);try{return il(e),r.invokeTask(o,s,a,u)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),ol(e)}},onInvoke:(r,i,o,s,a,u,c)=>{try{return il(e),r.invoke(o,s,a,u,c)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!$m(u)&&t(),ol(e)}},onHasTask:(r,i,o,s)=>{r.hasTask(o,s),i===o&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Vs(e),Ra(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,i,o,s)=>(r.handleError(o,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function Vs(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function il(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function ol(e){e._nesting--,Ra(e)}var js=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new J,this.onMicrotaskEmpty=new J,this.onStable=new J,this.onError=new J}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,i){return t.apply(n,r)}};function Bm(e){return Od(e,"__ignore_ng_zone__")}function $m(e){return Od(e,"__scheduler_tick__")}function Od(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Je=class{constructor(){this._console=console}handleError(t){let n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&vs(t);for(;n&&vs(n);)n=vs(n);return n||null}},Um=new w("",{providedIn:"root",factory:()=>{let e=h(U),t=h(Je);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function Hm(){return xn(fe(),H())}function xn(e,t){return new rt(De(e,t))}var rt=(()=>{class e{constructor(n){this.nativeElement=n}static{this.__NG_ELEMENT_ID__=Hm}}return e})();function zm(e){return e instanceof rt?e.nativeElement:e}function Gm(){return this._results[Symbol.iterator]()}var Bs=class e{get changes(){return this._changes??=new J}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let n=e.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=Gm)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=mg(t);(this._changesDetected=!gg(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function Fd(e){return(e.flags&128)===128}var Pd=new Map,Wm=0;function qm(){return Wm++}function Zm(e){Pd.set(e[Ui],e)}function $s(e){Pd.delete(e[Ui])}var sl="__ngContext__";function Vt(e,t){gt(t)?(e[sl]=t[Ui],Zm(t)):e[sl]=t}function kd(e){return Vd(e[or])}function Ld(e){return Vd(e[Me])}function Vd(e){for(;e!==null&&!nt(e);)e=e[Me];return e}var Us;function jd(e){Us=e}function Ym(){if(Us!==void 0)return Us;if(typeof document<"u")return document;throw new C(210,!1)}var Oa=new w("",{providedIn:"root",factory:()=>Qm}),Qm="ng",Fa=new w(""),Te=new w("",{providedIn:"platform",factory:()=>"unknown"});var Pa=new w("",{providedIn:"root",factory:()=>Ym().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Km="h",Jm="b";var Xm=()=>null;function ka(e,t,n=!1){return Xm(e,t,n)}var Bd=!1,ev=new w("",{providedIn:"root",factory:()=>Bd});var di;function tv(){if(di===void 0&&(di=null,Cs.trustedTypes))try{di=Cs.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return di}function al(e){return tv()?.createScriptURL(e)||e}var Ri=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Cl})`}};function qi(e){return e instanceof Ri?e.changingThisBreaksApplicationSecurity:e}function La(e,t){let n=nv(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Cl})`)}return n===t}function nv(e){return e instanceof Ri&&e.getTypeName()||null}var rv=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function $d(e){return e=String(e),e.match(rv)?e:"unsafe:"+e}var Zi=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Zi||{});function iv(e){let t=Hd();return t?t.sanitize(Zi.URL,e)||"":La(e,"URL")?qi(e):$d(fa(e))}function ov(e){let t=Hd();if(t)return al(t.sanitize(Zi.RESOURCE_URL,e)||"");if(La(e,"ResourceURL"))return al(qi(e));throw new C(904,!1)}function sv(e,t){return t==="src"&&(e==="embed"||e==="frame"||e==="iframe"||e==="media"||e==="script")||t==="href"&&(e==="base"||e==="link")?ov:iv}function Ud(e,t,n){return sv(t,n)(e)}function Hd(){let e=H();return e&&e[$e].sanitizer}function zd(e){return e instanceof Function?e():e}function av(e){return(e??h(de)).get(Te)==="browser"}var Bt=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Bt||{}),uv;function Va(e,t){return uv(e,t)}function un(e,t,n,r,i){if(r!=null){let o,s=!1;nt(r)?o=r:gt(r)&&(s=!0,r=r[tt]);let a=Ke(r);e===0&&n!==null?i==null?Yd(t,n,a):Oi(t,n,a,i||null,!0):e===1&&n!==null?Oi(t,n,a,i||null,!0):e===2?Ev(t,a,s):e===3&&t.destroyNode(a),o!=null&&bv(t,e,o,n,i)}}function cv(e,t){return e.createText(t)}function Gd(e,t,n){return e.createElement(t,n)}function lv(e,t){Wd(e,t),t[tt]=null,t[xe]=null}function dv(e,t,n,r,i,o){r[tt]=i,r[xe]=t,Yi(e,r,n,1,i,o)}function Wd(e,t){t[$e].changeDetectionScheduler?.notify(9),Yi(e,t,t[te],2,null,null)}function fv(e){let t=e[or];if(!t)return ys(e[S],e);for(;t;){let n=null;if(gt(t))n=t[or];else{let r=t[ce];r&&(n=r)}if(!n){for(;t&&!t[Me]&&t!==e;)gt(t)&&ys(t[S],t),t=t[X];t===null&&(t=e),gt(t)&&ys(t[S],t),n=t&&t[Me]}t=n}}function hv(e,t,n,r){let i=ce+r,o=n.length;r>0&&(n[i-1][Me]=t),r0&&(e[n-1][Me]=r[Me]);let o=wi(e,ce+t);lv(r[S],r);let s=o[Ye];s!==null&&s.detachView(o[S]),r[X]=null,r[Me]=null,r[E]&=-129}return r}function Zd(e,t){if(!(t[E]&256)){let n=t[te];n.destroyNode&&Yi(e,t,n,3,null,null),fv(t)}}function ys(e,t){if(t[E]&256)return;let n=O(null);try{t[E]&=-129,t[E]|=256,t[ye]&&Uo(t[ye]),gv(e,t),pv(e,t),t[S].type===1&&t[te].destroy();let r=t[Ft];if(r!==null&&nt(t[X])){r!==t[X]&&ja(r,t);let i=t[Ye];i!==null&&i.detachView(e)}$s(t)}finally{O(n)}}function pv(e,t){let n=e.cleanup,r=t[bi];if(n!==null)for(let o=0;o=0?r[s]():r[-s].unsubscribe(),o+=2}else{let s=r[n[o+1]];n[o].call(s)}r!==null&&(t[bi]=null);let i=t[pt];if(i!==null){t[pt]=null;for(let o=0;o-1){let{encapsulation:o}=e.data[r.directiveStart+i];if(o===Be.None||o===Be.Emulated)return null}return De(r,n)}}function Oi(e,t,n,r,i){e.insertBefore(t,n,r,i)}function Yd(e,t,n){e.appendChild(t,n)}function ul(e,t,n,r,i){r!==null?Oi(e,t,n,r,i):Yd(e,t,n)}function Qd(e,t){return e.parentNode(t)}function yv(e,t){return e.nextSibling(t)}function Dv(e,t,n){return wv(e,t,n)}function Cv(e,t,n){return e.type&40?De(e,n):null}var wv=Cv,cl;function Ba(e,t,n,r){let i=mv(e,r,t),o=t[te],s=r.parent||t[xe],a=Dv(s,r,t);if(i!=null)if(Array.isArray(n))for(let u=0;uQe&&ef(e,t,Qe,!1),Ve(s?2:0,i),n(r,i)}finally{Lt(o),Ve(s?3:1,i)}}function sf(e,t,n){if(Yl(t)){let r=O(null);try{let i=t.directiveStart,o=t.directiveEnd;for(let s=i;snull;function Rv(e,t,n,r){let i=gf(t);i.push(n),e.firstCreatePass&&mf(e).push(r,i.length-1)}function Ov(e,t,n,r,i,o){let s=t?t.injectorIndex:-1,a=0;return im()&&(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:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function ll(e,t,n,r,i){for(let o in t){if(!t.hasOwnProperty(o))continue;let s=t[o];if(s===void 0)continue;r??={};let a,u=mt.None;Array.isArray(s)?(a=s[0],u=s[1]):a=s;let c=o;if(i!==null){if(!i.hasOwnProperty(o))continue;c=i[o]}e===0?dl(r,n,c,a,u):dl(r,n,c,a)}return r}function dl(e,t,n,r,i){let o;e.hasOwnProperty(n)?(o=e[n]).push(t,r):o=e[n]=[t,r],i!==void 0&&o.push(i)}function Fv(e,t,n){let r=t.directiveStart,i=t.directiveEnd,o=e.data,s=t.attrs,a=[],u=null,c=null;for(let l=r;l0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function Bv(e,t,n,r){let i=n.directiveStart,o=n.directiveEnd;Hi(n)&&qv(t,n,e.data[i+n.componentOffset]),e.firstCreatePass||Id(n,t),Vt(r,t);let s=n.initialInputs;for(let a=i;a{Gi(e.lView)},consumerOnSignalRead(){this.lView[ye]=this}});function uy(e){let t=e[ye]??Object.create(cy);return t.lView=e,t}var cy=B(g({},jo),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=kt(e.lView);for(;t&&!Df(t[S]);)t=kt(t);t&&nd(t)},consumerOnSignalRead(){this.lView[ye]=this}});function Df(e){return e.type!==2}var ly=100;function Cf(e,t=!0,n=0){let r=e[$e],i=r.rendererFactory,o=!1;o||i.begin?.();try{dy(e,n)}catch(s){throw t&&vf(e,s),s}finally{o||(i.end?.(),r.inlineEffectRunner?.flush())}}function dy(e,t){let n=ud();try{Kc(!0),qs(e,t);let r=0;for(;zi(e);){if(r===ly)throw new C(103,!1);r++,qs(e,1)}}finally{Kc(n)}}function fy(e,t,n,r){let i=t[E];if((i&256)===256)return;let o=!1,s=!1;!o&&t[$e].inlineEffectRunner?.flush(),Ia(t);let a=!0,u=null,c=null;o||(Df(e)?(c=iy(t),u=Bo(c)):rc()===null?(a=!1,c=uy(t),u=Bo(c)):t[ye]&&(Uo(t[ye]),t[ye]=null));try{td(t),dm(e.bindingStartIndex),n!==null&&of(e,t,n,2,r);let l=(i&3)===3;if(!o)if(l){let f=e.preOrderCheckHooks;f!==null&&pi(t,f,null)}else{let f=e.preOrderHooks;f!==null&&gi(t,f,0,null),ps(t,0)}if(s||hy(t),wf(t,0),e.contentQueries!==null&&pf(e,t),!o)if(l){let f=e.contentCheckHooks;f!==null&&pi(t,f)}else{let f=e.contentHooks;f!==null&&gi(t,f,1),ps(t,1)}Mv(e,t);let d=e.components;d!==null&&If(t,d,0);let p=e.viewQuery;if(p!==null&&Ws(2,p,r),!o)if(l){let f=e.viewCheckHooks;f!==null&&pi(t,f)}else{let f=e.viewHooks;f!==null&&gi(t,f,2),ps(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[hs]){for(let f of t[hs])f();t[hs]=null}o||(t[E]&=-73)}catch(l){throw o||Gi(t),l}finally{c!==null&&(ic(c,u),a&&sy(c)),ba()}}function wf(e,t){for(let n=kd(e);n!==null;n=Ld(n))for(let r=ce;r-1&&(Hs(t,r),wi(n,r))}this._attachedToViewContainer=!1}Zd(this._lView[S],this._lView)}onDestroy(t){rd(this._lView,t)}markForCheck(){qa(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[E]&=-129}reattach(){Ns(this._lView),this._lView[E]|=128}detectChanges(){this._lView[E]|=1024,Cf(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new C(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=Ts(this._lView),n=this._lView[Ft];n!==null&&!t&&ja(n,this._lView),Wd(this._lView[S],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new C(902,!1);this._appRef=t;let n=Ts(this._lView),r=this._lView[Ft];r!==null&&!n&&qd(r,this._lView),Ns(this._lView)}},vn=(()=>{class e{static{this.__NG_ELEMENT_ID__=vy}}return e})(),gy=vn,my=class extends gy{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){let i=ty(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new jt(i)}};function vy(){return Za(fe(),H())}function Za(e,t){return e.type&4?new my(t,e,xn(e,t)):null}var yx=new RegExp(`^(\\d+)*(${Jm}|${Km})*(.*)`);var yy=()=>null;function hl(e,t){return yy(e,t)}var yn=class{},Xi=new w("",{providedIn:"root",factory:()=>!1});var bf=new w(""),_f=new w(""),Zs=class{},Pi=class{};function Dy(e){let t=Error(`No component factory found for ${oe(e)}.`);return t[Cy]=e,t}var Cy="ngComponent";var Ys=class{resolveComponentFactory(t){throw Dy(t)}},Dn=class{static{this.NULL=new Ys}},Cn=class{},dr=(()=>{class e{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>wy()}}return e})();function wy(){let e=H(),t=fe(),n=Dt(t.index,e);return(gt(n)?n:e)[te]}var Ey=(()=>{class e{static{this.\u0275prov=y({token:e,providedIn:"root",factory:()=>null})}}return e})();function Qs(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,o=0;if(t!==null)for(let s=0;s0&&Jd(e,n,o.join(" "))}}function Ty(e,t,n){let r=e.projection=[];for(let i=0;i{class e{static{this.__NG_ELEMENT_ID__=Ny}}return e})();function Ny(){let e=fe();return Sf(e,H())}var Ry=$t,Mf=class extends Ry{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return xn(this._hostTNode,this._hostLView)}get injector(){return new Ot(this._hostTNode,this._hostLView)}get parentInjector(){let t=xa(this._hostTNode,this._hostLView);if(Cd(t)){let n=Ti(t,this._hostLView),r=xi(t),i=n[S].data[r+8];return new Ot(i,n)}else return new Ot(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=gl(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-ce}createEmbeddedView(t,n,r){let i,o;typeof r=="number"?i=r:r!=null&&(i=r.index,o=r.injector);let s=hl(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},o,s);return this.insertImpl(a,i,fl(this._hostTNode,s)),a}createComponent(t,n,r,i,o){let s=t&&!zg(t),a;if(s)a=n;else{let m=n||{};a=m.index,r=m.injector,i=m.projectableNodes,o=m.environmentInjector||m.ngModuleRef}let u=s?t:new wn(vt(t)),c=r||this.parentInjector;if(!o&&u.ngModule==null){let A=(s?c:this.parentInjector).get(le,null);A&&(o=A)}let l=vt(u.componentType??{}),d=hl(this._lContainer,l?.id??null),p=d?.firstChild??null,f=u.create(c,i,p,o);return this.insertImpl(f.hostView,a,fl(this._hostTNode,d)),f}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let i=t._lView;if(Jg(i)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let u=i[X],c=new Mf(u,u[xe],u[X]);c.detach(c.indexOf(t))}}let o=this._adjustIndex(n),s=this._lContainer;return ny(s,i,o,r),t.attachToViewContainerRef(),Nl(Ds(s),o,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=gl(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Hs(this._lContainer,n);r&&(wi(Ds(this._lContainer),n),Zd(r[S],r))}detach(t){let n=this._adjustIndex(t,-1),r=Hs(this._lContainer,n);return r&&wi(Ds(this._lContainer),n)!=null?new jt(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function gl(e){return e[_i]}function Ds(e){return e[_i]||(e[_i]=[])}function Sf(e,t){let n,r=t[e.index];return nt(r)?n=r:(n=hf(r,t,null,e),t[e.index]=n,Ji(t,n)),Fy(n,t,e,r),new Mf(n,e,t)}function Oy(e,t){let n=e[te],r=n.createComment(""),i=De(t,e),o=Qd(n,i);return Oi(n,o,r,yv(n,i),!1),r}var Fy=Ly,Py=()=>!1;function ky(e,t,n){return Py(e,t,n)}function Ly(e,t,n,r){if(e[Pt])return;let i;n.type&8?i=Ke(r):i=Oy(t,n),e[Pt]=i}var Js=class e{constructor(t){this.queryList=t,this.matches=null}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},Xs=class e{constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,i=[];for(let o=0;o0)r.push(s[a/2]);else{let c=o[a+1],l=t[-u];for(let d=ce;dt.trim())}function Wy(e,t,n){e.queries===null&&(e.queries=new ta),e.queries.track(new na(t,n))}function Ya(e,t){return e.queries.getByIndex(t)}function qy(e,t){let n=e[S],r=Ya(n,t);return r.crossesNgTemplate?ra(n,e,t,[]):xf(n,e,r,t)}var ml=new Set;function eo(e){ml.has(e)||(ml.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function Qa(e){let t=e.inputConfig,n={};for(let r in t)if(t.hasOwnProperty(r)){let i=t[r];Array.isArray(i)&&i[3]&&(n[r]=i[3])}e.inputTransforms=n}var yt=class{},ar=class{};var ia=class extends yt{constructor(t,n,r,i=!0){super(),this.ngModuleType=t,this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new ki(this);let o=Bl(t);this._bootstrapComponents=zd(o.bootstrap),this._r3Injector=Ad(t,n,[{provide:yt,useValue:this},{provide:Dn,useValue:this.componentFactoryResolver},...r],oe(t),new Set(["environment"])),i&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},oa=class extends ar{constructor(t){super(),this.moduleType=t}create(t){return new ia(this.moduleType,t,[])}};var Li=class extends yt{constructor(t){super(),this.componentFactoryResolver=new ki(this),this.instance=null;let n=new ir([...t.providers,{provide:yt,useValue:this},{provide:Dn,useValue:this.componentFactoryResolver}],t.parent||Da(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function to(e,t,n=null){return new Li({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}function Zy(e,t,n){return e[t]=n}function Yy(e,t){return e[t]}function Tf(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function Qy(e){return(e.flags&32)===32}function Ky(e,t,n,r,i,o,s,a,u){let c=t.consts,l=Ki(t,e,4,s||null,a||null);lf(t,n,l,Si(c,u)),Sa(t,l);let d=l.tView=za(2,l,r,i,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c,null);return t.queries!==null&&(t.queries.template(t,l),d.queries=t.queries.embeddedTView(l)),l}function Jy(e,t,n,r,i,o,s,a,u,c){let l=n+Qe,d=t.firstCreatePass?Ky(l,t,e,r,i,o,s,a,u):t.data[l];lr(d,!1);let p=Xy(t,e,d,n);_a()&&Ba(t,e,p,d),Vt(p,e);let f=hf(p,e,p,d);return e[l]=f,Ji(e,f),ky(f,d,e),Ca(d)&&af(t,e,d),u!=null&&uf(e,d,c),d}function no(e,t,n,r,i,o,s,a){let u=H(),c=ze(),l=Si(c.consts,o);return Jy(u,c,e,t,n,r,i,l,s,a),no}var Xy=eD;function eD(e,t,n,r){return Ma(!0),t[te].createComment("")}var cn=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(cn||{}),Af=(()=>{class e{constructor(){this.impl=null}execute(){this.impl?.execute()}static{this.\u0275prov=y({token:e,providedIn:"root",factory:()=>new e})}}return e})(),sa=class e{constructor(){this.ngZone=h(U),this.scheduler=h(yn),this.errorHandler=h(Je,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}static{this.PHASES=[cn.EarlyRead,cn.Write,cn.MixedReadWrite,cn.Read]}execute(){this.executing=!0;for(let t of e.PHASES)for(let n of this.sequences)if(!(n.erroredOrDestroyed||!n.hooks[t]))try{n.pipelinedValue=this.ngZone.runOutsideAngular(()=>n.hooks[t](n.pipelinedValue))}catch(r){n.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(let t of this.sequences)t.afterRun(),t.once&&(this.sequences.delete(t),t.destroy());for(let t of this.deferredRegistrations)this.sequences.add(t);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(t){this.executing?this.deferredRegistrations.add(t):(this.sequences.add(t),this.scheduler.notify(6))}unregister(t){this.executing&&this.sequences.has(t)?(t.erroredOrDestroyed=!0,t.pipelinedValue=void 0,t.once=!0):(this.sequences.delete(t),this.deferredRegistrations.delete(t))}static{this.\u0275prov=y({token:e,providedIn:"root",factory:()=>new e})}},aa=class{constructor(t,n,r,i){this.impl=t,this.hooks=n,this.once=r,this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.()}};function Ka(e,t){!t?.injector&&Hg(Ka);let n=t?.injector??h(de);return av(n)?(eo("NgAfterNextRender"),nD(e,n,t,!0)):rD}function tD(e,t){if(e instanceof Function){let n=[void 0,void 0,void 0,void 0];return n[t]=e,n}else return[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function nD(e,t,n,r){let i=t.get(Af);i.impl??=t.get(sa);let o=n?.phase??cn.MixedReadWrite,s=n?.manualCleanup!==!0?t.get(Aa):null,a=new aa(i.impl,tD(e,o),r,s);return i.impl.register(a),a}var rD={destroy(){}};function ro(e,t,n,r){let i=H(),o=cd();if(Tf(i,o,t)){let s=ze(),a=vd();Zv(a,i,e,t,n,r)}return ro}function fr(e,t,n){let r=H(),i=cd();if(Tf(r,i,t)){let o=ze(),s=vd();kv(o,s,r,e,t,r[te],n,!1)}return fr}function vl(e,t,n,r,i){let o=t.inputs,s=i?"class":"style";Ga(e,n,o[s],s,r)}function iD(e,t,n,r,i,o){let s=t.consts,a=Si(s,i),u=Ki(t,e,2,r,a);return lf(t,n,u,Si(s,o)),u.attrs!==null&&Qs(u,u.attrs,!1),u.mergedAttrs!==null&&Qs(u,u.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,u),u}function Ce(e,t,n,r){let i=H(),o=ze(),s=Qe+e,a=i[te],u=o.firstCreatePass?iD(s,o,i,t,n,r):o.data[s],c=oD(o,i,u,a,t,e);i[s]=c;let l=Ca(u);return lr(u,!0),Xd(a,c,u),!Qy(u)&&_a()&&Ba(o,i,c,u),tm()===0&&Vt(c,i),nm(),l&&(af(o,i,u),sf(o,u,i)),r!==null&&uf(i,u),Ce}function Ae(){let e=fe();ad()?um():(e=e.parent,lr(e,!1));let t=e;om(t)&&sm(),rm();let n=ze();return n.firstCreatePass&&(Sa(n,e),Yl(e)&&n.queries.elementEnd(e)),t.classesWithoutHost!=null&&wm(t)&&vl(n,t,H(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&Em(t)&&vl(n,t,H(),t.stylesWithoutHost,!1),Ae}function Et(e,t,n,r){return Ce(e,t,n,r),Ae(),Et}var oD=(e,t,n,r,i,o)=>(Ma(!0),Gd(r,i,vm()));function io(){return H()}var Vi="en-US";var sD=Vi;function aD(e){typeof e=="string"&&(sD=e.toLowerCase().replace(/_/g,"-"))}var uD=(e,t,n)=>{};function Ne(e,t,n,r){let i=H(),o=ze(),s=fe();return lD(o,i,i[te],s,e,t,r),Ne}function cD(e,t,n,r){let i=e.cleanup;if(i!=null)for(let o=0;ou?a[u]:null}typeof s=="string"&&(o+=2)}return null}function lD(e,t,n,r,i,o,s){let a=Ca(r),c=e.firstCreatePass&&mf(e),l=t[Se],d=gf(t),p=!0;if(r.type&3||s){let A=De(r,t),k=s?s(A):A,V=d.length,ne=s?Ie=>s(Ke(Ie[r.index])):r.index,re=null;if(!s&&a&&(re=cD(e,t,i,r.index)),re!==null){let Ie=re.__ngLastListenerFn__||re;Ie.__ngNextListenerFn__=o,re.__ngLastListenerFn__=o,p=!1}else{o=Dl(r,t,l,o),uD(A,i,o);let Ie=n.listen(k,i,o);d.push(o,Ie),c&&c.push(i,ne,V,V+1)}}else o=Dl(r,t,l,o);let f=r.outputs,m;if(p&&f!==null&&(m=f[i])){let A=m.length;if(A)for(let k=0;k-1?Dt(e.index,t):t;qa(s,5);let a=yl(t,n,r,o),u=i.__ngNextListenerFn__;for(;u;)a=yl(t,n,u,o)&&a,u=u.__ngNextListenerFn__;return a}}function Ja(e=1){return mm(e)}function Xa(e,t,n){zy(e,t,n)}function oo(e){let t=H(),n=ze(),r=ld();Ea(r+1);let i=Ya(n,r);if(e.dirty&&Kg(t)===((i.metadata.flags&2)===2)){if(i.matches===null)e.reset([]);else{let o=qy(t,r);e.reset(o,zm),e.notifyOnChanges()}return!0}return!1}function so(){return Uy(H(),ld())}function Nf(e){let t=cm();return Qg(t,Qe+e)}function Ut(e,t=""){let n=H(),r=ze(),i=e+Qe,o=r.firstCreatePass?Ki(r,i,1,t,null):r.data[i],s=dD(r,n,o,t,e);n[i]=s,_a()&&Ba(r,n,s,o),lr(o,!1)}var dD=(e,t,n,r,i)=>(Ma(!0),cv(t[te],r));var fD=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=Hl(!1,n.type),i=r.length>0?to([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,i)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=y({token:e,providedIn:"environment",factory:()=>new e(I(le))})}}return e})();function Tn(e){eo("NgStandalone"),e.getStandaloneInjector=t=>t.get(fD).getOrCreateStandaloneInjector(e)}function Rf(e,t,n){let r=lm()+e,i=H();return i[r]===Ua?Zy(i,r,n?t.call(n):t()):Yy(i,r)}var ao=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();var Of=new w("");function An(e){return!!e&&typeof e.then=="function"}function Ff(e){return!!e&&typeof e.subscribe=="function"}var Nn=new w(""),Pf=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=h(Nn,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let i of this.appInits){let o=i();if(An(o))n.push(o);else if(Ff(o)){let s=new Promise((a,u)=>{o.subscribe({complete:a,error:u})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),n.length===0&&r(),this.initialized=!0}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),uo=new w("");function hD(){oc(()=>{throw new C(600,!1)})}function pD(e){return e.isBoundToModule}var gD=10;function mD(e,t,n){try{let r=n();return An(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var Ge=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=h(Um),this.afterRenderManager=h(Af),this.zonelessEnabled=h(Xi),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new G,this.afterTick=new G,this.componentTypes=[],this.components=[],this.isStable=h(Sn).hasPendingTasks.pipe(b(n=>!n)),this._injector=h(le)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:i=>{i&&r()}})}).finally(()=>{n.unsubscribe()})}get injector(){return this._injector}bootstrap(n,r){let i=n instanceof Pi;if(!this._injector.get(Pf).done){let p=!i&&jl(n),f=!1;throw new C(405,f)}let s;i?s=n:s=this._injector.get(Dn).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=pD(s)?void 0:this._injector.get(yt),u=r||s.selector,c=s.create(de.NULL,[],u,a),l=c.location.nativeElement,d=c.injector.get(Of,null);return d?.registerApplication(l),c.onDestroy(()=>{this.detachView(c.hostView),vi(this.components,c),d?.unregisterApplication(l)}),this._loadComponent(c),c}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new C(101,!1);let n=O(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,O(n),this.afterTick.next()}}synchronize(){let n=null;this._injector.destroyed||(n=this._injector.get(Cn,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;this.dirtyFlags!==0&&r++zi(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;vi(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let r=this._injector.get(uo,[]);[...this._bootstrapListeners,...r].forEach(i=>i(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>vi(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new C(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function vi(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function vD(e,t,n,r){if(!n&&!zi(e))return;Cf(e,t,n&&!r?0:1)}var ua=class{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},co=(()=>{class e{compileModuleSync(n){return new oa(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),i=Bl(n),o=zd(i.declarations).reduce((s,a)=>{let u=vt(a);return u&&s.push(new wn(u)),s},[]);return new ua(r,o)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var yD=(()=>{class e{constructor(){this.zone=h(U),this.changeDetectionScheduler=h(yn),this.applicationRef=h(Ge)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),DD=new w("",{factory:()=>!1});function kf({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new U(B(g({},Vf()),{scheduleInRootZone:n})),[{provide:U,useFactory:e},{provide:hn,multi:!0,useFactory:()=>{let r=h(yD,{optional:!0});return()=>r.initialize()}},{provide:hn,multi:!0,useFactory:()=>{let r=h(CD);return()=>{r.initialize()}}},t===!0?{provide:bf,useValue:!0}:[],{provide:_f,useValue:n??Nd}]}function Lf(e){let t=e?.ignoreChangesOutsideZone,n=e?.scheduleInRootZone,r=kf({ngZoneFactory:()=>{let i=Vf(e);return i.scheduleInRootZone=n,i.shouldCoalesceEventChangeDetection&&eo("NgZone_CoalesceEvent"),new U(i)},ignoreChangesOutsideZone:t,scheduleInRootZone:n});return bn([{provide:DD,useValue:!0},{provide:Xi,useValue:!1},r])}function Vf(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var CD=(()=>{class e{constructor(){this.subscription=new z,this.initialized=!1,this.zone=h(U),this.pendingTasks=h(Sn)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{U.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{U.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var wD=(()=>{class e{constructor(){this.appRef=h(Ge),this.taskService=h(Sn),this.ngZone=h(U),this.zonelessEnabled=h(Xi),this.disableScheduling=h(bf,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new z,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Ni):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(h(_f,{optional:!0})??!1),this.cancelScheduledCallback=null,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 js||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 7:{this.appRef.deferredDirtyFlags|=8;break}case 9:case 8:case 6:case 10:default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?rl:Rd;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Ni+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,rl(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function ED(){return typeof $localize<"u"&&$localize.locale||Vi}var eu=new w("",{providedIn:"root",factory:()=>h(eu,M.Optional|M.SkipSelf)||ED()});var ca=new w("");function fi(e){return!e.moduleRef}function ID(e){let t=fi(e)?e.r3Injector:e.moduleRef.injector,n=t.get(U);return n.run(()=>{fi(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Je,null),i;if(n.runOutsideAngular(()=>{i=n.onError.subscribe({next:o=>{r.handleError(o)}})}),fi(e)){let o=()=>t.destroy(),s=e.platformInjector.get(ca);s.add(o),t.onDestroy(()=>{i.unsubscribe(),s.delete(o)})}else{let o=()=>e.moduleRef.destroy(),s=e.platformInjector.get(ca);s.add(o),e.moduleRef.onDestroy(()=>{vi(e.allPlatformModules,e.moduleRef),i.unsubscribe(),s.delete(o)})}return mD(r,n,()=>{let o=t.get(Pf);return o.runInitializers(),o.donePromise.then(()=>{let s=t.get(eu,Vi);if(aD(s||Vi),fi(e)){let a=t.get(Ge);return e.rootComponent!==void 0&&a.bootstrap(e.rootComponent),a}else return bD(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function bD(e,t){let n=e.injector.get(Ge);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new C(-403,!1);t.push(e)}var yi=null;function _D(e=[],t){return de.create({name:t,providers:[{provide:$i,useValue:"platform"},{provide:ca,useValue:new Set([()=>yi=null])},...e]})}function MD(e=[]){if(yi)return yi;let t=_D(e);return yi=t,hD(),SD(t),t}function SD(e){e.get(Fa,null)?.forEach(n=>n())}function jf(){return!1}var Rn=(()=>{class e{static{this.__NG_ELEMENT_ID__=xD}}return e})();function xD(e){return TD(fe(),H(),(e&16)===16)}function TD(e,t,n){if(Hi(e)&&!n){let r=Dt(e.index,t);return new jt(r,r)}else if(e.type&175){let r=t[Ue];return new jt(r,t)}return null}function Bf(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,i=MD(r),o=[kf({}),{provide:yn,useExisting:wD},...n||[]],s=new Li({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1});return ID({r3Injector:s.injector,platformInjector:i,rootComponent:t})}catch(t){return Promise.reject(t)}}function On(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function $f(e){let t=vt(e);if(!t)return null;let n=new wn(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}var Gf=null;function Fn(){return Gf}function Wf(e){Gf??=e}var lo=class{};var se=new w(""),ou=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:()=>h(ND),providedIn:"platform"})}}return e})(),qf=new w(""),ND=(()=>{class e extends ou{constructor(){super(),this._doc=h(se),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Fn().getBaseHref(this._doc)}onPopState(n){let r=Fn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=Fn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,i){this._history.pushState(n,r,i)}replaceState(n,r,i){this._history.replaceState(n,r,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:()=>new e,providedIn:"platform"})}}return e})();function su(e,t){if(e.length==0)return t;if(t.length==0)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,n==2?e+t.substring(1):n==1?e+t:e+"/"+t}function Uf(e){let t=e.match(/#|\?|$/),n=t&&t.index||e.length,r=n-(e[n-1]==="/"?1:0);return e.slice(0,r)+e.slice(n)}function it(e){return e&&e[0]!=="?"?"?"+e:e}var ot=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:()=>h(au),providedIn:"root"})}}return e})(),Zf=new w(""),au=(()=>{class e extends ot{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??h(se).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return su(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+it(this._platformLocation.search),i=this._platformLocation.hash;return i&&n?`${r}${i}`:r}pushState(n,r,i,o){let s=this.prepareExternalUrl(i+it(o));this._platformLocation.pushState(n,r,s)}replaceState(n,r,i,o){let s=this.prepareExternalUrl(i+it(o));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static{this.\u0275fac=function(r){return new(r||e)(I(ou),I(Zf,8))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Yf=(()=>{class e extends ot{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],r!=null&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let r=this._platformLocation.hash??"#";return r.length>0?r.substring(1):r}prepareExternalUrl(n){let r=su(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,i,o){let s=this.prepareExternalUrl(i+it(o));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,i,o){let s=this.prepareExternalUrl(i+it(o));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static{this.\u0275fac=function(r){return new(r||e)(I(ou),I(Zf,8))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})(),Pn=(()=>{class e{constructor(n){this._subject=new J,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=FD(Uf(Hf(r))),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(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+it(r))}normalize(n){return e.stripTrailingSlash(OD(this._basePath,Hf(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",i=null){this._locationStrategy.pushState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+it(r)),i)}replaceState(n,r="",i=null){this._locationStrategy.replaceState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+it(r)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(i=>i(n,r))}subscribe(n,r,i){return this._subject.subscribe({next:n,error:r,complete:i})}static{this.normalizeQueryParams=it}static{this.joinWithSlash=su}static{this.stripTrailingSlash=Uf}static{this.\u0275fac=function(r){return new(r||e)(I(ot))}}static{this.\u0275prov=y({token:e,factory:()=>RD(),providedIn:"root"})}}return e})();function RD(){return new Pn(I(ot))}function OD(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function Hf(e){return e.replace(/\/index.html$/,"")}function FD(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}function Qf(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[i,o]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===t)return decodeURIComponent(o)}return null}var Kf=(()=>{class e{constructor(n,r){this._viewContainer=n,this._context=new tu,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){zf("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){zf("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,r){return!0}static{this.\u0275fac=function(r){return new(r||e)(he($t),he(vn))}}static{this.\u0275dir=In({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return e})(),tu=class{constructor(){this.$implicit=null,this.ngIf=null}};function zf(e,t){if(!!!(!t||t.createEmbeddedView))throw new Error(`${e} must be a TemplateRef, but received '${oe(t)}'.`)}var hr=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=et({type:e})}static{this.\u0275inj=Xe({})}}return e})(),uu="browser",PD="server";function ho(e){return e===uu}function cu(e){return e===PD}var Jf=(()=>{class e{static{this.\u0275prov=y({token:e,providedIn:"root",factory:()=>ho(h(Te))?new nu(h(se),window):new ru})}}return e})(),nu=class{constructor(t,n){this.document=t,this.window=n,this.offset=()=>[0,0]}setOffset(t){Array.isArray(t)?this.offset=()=>t:this.offset=t}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(t){this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){let n=kD(this.document,t);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(t){this.window.history.scrollRestoration=t}scrollToElement(t){let n=t.getBoundingClientRect(),r=n.left+this.window.pageXOffset,i=n.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(r-o[0],i-o[1])}};function kD(e,t){let n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if(typeof e.createTreeWalker=="function"&&e.body&&typeof e.body.attachShadow=="function"){let r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),i=r.currentNode;for(;i;){let o=i.shadowRoot;if(o){let s=o.getElementById(t)||o.querySelector(`[name="${t}"]`);if(s)return s}i=r.nextNode()}}return null}var ru=class{setOffset(t){}getScrollPosition(){return[0,0]}scrollToPosition(t){}scrollToAnchor(t){}setHistoryScrollRestoration(t){}},fo=class{};var fu=class extends lo{constructor(){super(...arguments),this.supportsDOMEvents=!0}},hu=class e extends fu{static makeCurrent(){Wf(new e)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=LD();return n==null?null:VD(n)}resetBaseElement(){pr=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Qf(document.cookie,t)}},pr=null;function LD(){return pr=pr||document.querySelector("base"),pr?pr.getAttribute("href"):null}function VD(e){return new URL(e,document.baseURI).pathname}var jD=(()=>{class e{build(){return new XMLHttpRequest}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})(),pu=new w(""),rh=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(i=>{i.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,i){return this._findPluginFor(r).addEventListener(n,r,i)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(o=>o.supports(n)),!r)throw new C(5101,!1);return this._eventNameToPlugin.set(n,r),r}static{this.\u0275fac=function(r){return new(r||e)(I(pu),I(U))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})(),po=class{constructor(t){this._doc=t}},lu="ng-app-id",ih=(()=>{class e{constructor(n,r,i,o={}){this.doc=n,this.appId=r,this.nonce=i,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=cu(o),this.resetHostNodes()}addStyles(n){for(let r of n)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(n){for(let r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){let r=this.styleRef;r.get(n)?.elements?.forEach(i=>i.remove()),r.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${lu}="${this.appId}"]`);if(n?.length){let r=new Map;return n.forEach(i=>{i.textContent!=null&&r.set(i.textContent,i)}),r}return null}changeUsageCount(n,r){let i=this.styleRef;if(i.has(n)){let o=i.get(n);return o.usage+=r,o.usage}return i.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){let i=this.styleNodesInDOM,o=i?.get(r);if(o?.parentNode===n)return i.delete(r),o.removeAttribute(lu),o;{let s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(lu,this.appId),n.appendChild(s),s}}addStyleToHost(n,r){let i=this.getStyleElement(n,r),o=this.styleRef,s=o.get(r)?.elements;s?s.push(i):o.set(r,{elements:[i],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}static{this.\u0275fac=function(r){return new(r||e)(I(se),I(Oa),I(Pa,8),I(Te))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})(),du={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"},mu=/%COMP%/g,oh="%COMP%",BD=`_nghost-${oh}`,$D=`_ngcontent-${oh}`,UD=!0,HD=new w("",{providedIn:"root",factory:()=>UD});function zD(e){return $D.replace(mu,e)}function GD(e){return BD.replace(mu,e)}function sh(e,t){return t.map(n=>n.replace(mu,e))}var eh=(()=>{class e{constructor(n,r,i,o,s,a,u,c=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=u,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=cu(a),this.defaultRenderer=new gr(n,s,u,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Be.ShadowDom&&(r=B(g({},r),{encapsulation:Be.Emulated}));let i=this.getOrCreateRenderer(n,r);return i instanceof go?i.applyToHost(n):i instanceof mr&&i.applyStyles(),i}getOrCreateRenderer(n,r){let i=this.rendererByCompId,o=i.get(r.id);if(!o){let s=this.doc,a=this.ngZone,u=this.eventManager,c=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case Be.Emulated:o=new go(u,c,r,this.appId,l,s,a,d);break;case Be.ShadowDom:return new gu(u,c,n,r,s,a,this.nonce,d);default:o=new mr(u,c,r,l,s,a,d);break}i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(r){return new(r||e)(I(rh),I(ih),I(Oa),I(HD),I(se),I(Te),I(U),I(Pa))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})(),gr=class{constructor(t,n,r,i){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(du[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(th(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(th(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new C(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,i){if(i){n=i+":"+n;let o=du[i];o?t.setAttributeNS(o,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let i=du[r];i?t.removeAttributeNS(i,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,i){i&(Bt.DashCase|Bt.Important)?t.style.setProperty(n,r,i&Bt.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&Bt.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r){if(typeof t=="string"&&(t=Fn().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))===!1&&n.preventDefault()}}};function th(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var gu=class extends gr{constructor(t,n,r,i,o,s,a,u){super(t,o,s,u),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=sh(i.id,i.styles);for(let l of c){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},mr=class extends gr{constructor(t,n,r,i,o,s,a,u){super(t,o,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=i,this.styles=u?sh(u,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},go=class extends mr{constructor(t,n,r,i,o,s,a,u){let c=i+"-"+r.id;super(t,n,r,o,s,a,u,c),this.contentAttr=zD(c),this.hostAttr=GD(c)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}},WD=(()=>{class e extends po{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,i){return n.addEventListener(r,i,!1),()=>this.removeEventListener(n,r,i)}removeEventListener(n,r,i){return n.removeEventListener(r,i)}static{this.\u0275fac=function(r){return new(r||e)(I(se))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})(),nh=["alt","control","meta","shift"],qD={"\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"},ZD={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},YD=(()=>{class e extends po{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,i){let o=e.parseEventName(r),s=e.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Fn().onAndCancel(n,o.domEventName,s))}static parseEventName(n){let r=n.toLowerCase().split("."),i=r.shift();if(r.length===0||!(i==="keydown"||i==="keyup"))return null;let o=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),nh.forEach(c=>{let l=r.indexOf(c);l>-1&&(r.splice(l,1),s+=c+".")}),s+=o,r.length!=0||o.length===0)return null;let u={};return u.domEventName=i,u.fullKey=s,u}static matchEventFullKeyCode(n,r){let i=qD[n.key]||n.key,o="";return r.indexOf("code.")>-1&&(i=n.code,o="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),nh.forEach(s=>{if(s!==i){let a=ZD[s];a(n)&&(o+=s+".")}}),o+=i,o===r)}static eventCallback(n,r,i){return o=>{e.matchEventFullKeyCode(o,n)&&i.runGuarded(()=>r(o))}}static _normalizeKey(n){return n==="esc"?"escape":n}static{this.\u0275fac=function(r){return new(r||e)(I(se))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})();function ah(e,t){return Bf(g({rootComponent:e},QD(t)))}function QD(e){return{appProviders:[...tC,...e?.providers??[]],platformProviders:eC}}function KD(){hu.makeCurrent()}function JD(){return new Je}function XD(){return jd(document),document}var eC=[{provide:Te,useValue:uu},{provide:Fa,useValue:KD,multi:!0},{provide:se,useFactory:XD,deps:[]}];var tC=[{provide:$i,useValue:"root"},{provide:Je,useFactory:JD,deps:[]},{provide:pu,useClass:WD,multi:!0,deps:[se,U,Te]},{provide:pu,useClass:YD,multi:!0,deps:[se]},eh,ih,rh,{provide:Cn,useExisting:eh},{provide:fo,useClass:jD,deps:[]},[]];var uh=(()=>{class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}static{this.\u0275fac=function(r){return new(r||e)(I(se))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var _="primary",Nr=Symbol("RouteTitle"),wu=class{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}};function $n(e){return new wu(e)}function rC(e,t,n){let r=n.path.split("/");if(r.length>e.length||n.pathMatch==="full"&&(t.hasChildren()||r.lengthr[o]===i)}else return e===t}function Ch(e){return e.length>0?e[e.length-1]:null}function _t(e){return is(e)?e:An(e)?j(Promise.resolve(e)):D(e)}var oC={exact:Eh,subset:Ih},wh={exact:sC,subset:aC,ignored:()=>!0};function ch(e,t,n){return oC[n.paths](e.root,t.root,n.matrixParams)&&wh[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function sC(e,t){return We(e,t)}function Eh(e,t,n){if(!Gt(e.segments,t.segments)||!yo(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!Eh(e.children[r],t.children[r],n))return!1;return!0}function aC(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>Dh(e[n],t[n]))}function Ih(e,t,n){return bh(e,t,t.segments,n)}function bh(e,t,n,r){if(e.segments.length>n.length){let i=e.segments.slice(0,n.length);return!(!Gt(i,n)||t.hasChildren()||!yo(i,n,r))}else if(e.segments.length===n.length){if(!Gt(e.segments,n)||!yo(e.segments,n,r))return!1;for(let i in t.children)if(!e.children[i]||!Ih(e.children[i],t.children[i],r))return!1;return!0}else{let i=n.slice(0,e.segments.length),o=n.slice(e.segments.length);return!Gt(e.segments,i)||!yo(e.segments,i,r)||!e.children[_]?!1:bh(e.children[_],t,o,r)}}function yo(e,t,n){return t.every((r,i)=>wh[n](e[i].parameters,r.parameters))}var at=class{constructor(t=new F([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=$n(this.queryParams),this._queryParamMap}toString(){return lC.serialize(this)}},F=class{constructor(t,n){this.segments=t,this.children=n,this.parent=null,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Do(this)}},zt=class{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap??=$n(this.parameters),this._parameterMap}toString(){return Mh(this)}};function uC(e,t){return Gt(e,t)&&e.every((n,r)=>We(n.parameters,t[r].parameters))}function Gt(e,t){return e.length!==t.length?!1:e.every((n,r)=>n.path===t[r].path)}function cC(e,t){let n=[];return Object.entries(e.children).forEach(([r,i])=>{r===_&&(n=n.concat(t(i,r)))}),Object.entries(e.children).forEach(([r,i])=>{r!==_&&(n=n.concat(t(i,r)))}),n}var Rr=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:()=>new Un,providedIn:"root"})}}return e})(),Un=class{parse(t){let n=new bu(t);return new at(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n=`/${vr(t.root,!0)}`,r=hC(t.queryParams),i=typeof t.fragment=="string"?`#${dC(t.fragment)}`:"";return`${n}${r}${i}`}},lC=new Un;function Do(e){return e.segments.map(t=>Mh(t)).join("/")}function vr(e,t){if(!e.hasChildren())return Do(e);if(t){let n=e.children[_]?vr(e.children[_],!1):"",r=[];return Object.entries(e.children).forEach(([i,o])=>{i!==_&&r.push(`${i}:${vr(o,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=cC(e,(r,i)=>i===_?[vr(e.children[_],!1)]:[`${i}:${vr(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[_]!=null?`${Do(e)}/${n[0]}`:`${Do(e)}/(${n.join("//")})`}}function _h(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function mo(e){return _h(e).replace(/%3B/gi,";")}function dC(e){return encodeURI(e)}function Iu(e){return _h(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Co(e){return decodeURIComponent(e)}function lh(e){return Co(e.replace(/\+/g,"%20"))}function Mh(e){return`${Iu(e.path)}${fC(e.parameters)}`}function fC(e){return Object.entries(e).map(([t,n])=>`;${Iu(t)}=${Iu(n)}`).join("")}function hC(e){let t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(i=>`${mo(n)}=${mo(i)}`).join("&"):`${mo(n)}=${mo(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}var pC=/^[^\/()?;#]+/;function vu(e){let t=e.match(pC);return t?t[0]:""}var gC=/^[^\/()?;=#]+/;function mC(e){let t=e.match(gC);return t?t[0]:""}var vC=/^[^=?&#]+/;function yC(e){let t=e.match(vC);return t?t[0]:""}var DC=/^[^&#]+/;function CC(e){let t=e.match(DC);return t?t[0]:""}var bu=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new F([],{}):new F([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[_]=new F(t,n)),r}parseSegment(){let t=vu(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new C(4009,!1);return this.capture(t),new zt(Co(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=mC(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let i=vu(this.remaining);i&&(r=i,this.capture(r))}t[Co(n)]=Co(r)}parseQueryParam(t){let n=yC(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=CC(this.remaining);s&&(r=s,this.capture(r))}let i=lh(n),o=lh(r);if(t.hasOwnProperty(i)){let s=t[i];Array.isArray(s)||(s=[s],t[i]=s),s.push(o)}else t[i]=o}parseParens(t){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=vu(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new C(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=_);let s=this.parseChildren();n[o]=Object.keys(s).length===1?s[_]:new F([],s),this.consumeOptional("//")}return n}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new C(4011,!1)}};function Sh(e){return e.segments.length>0?new F([],{[_]:e}):e}function xh(e){let t={};for(let[r,i]of Object.entries(e.children)){let o=xh(i);if(r===_&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))t[s]=a;else(o.segments.length>0||o.hasChildren())&&(t[r]=o)}let n=new F(e.segments,t);return wC(n)}function wC(e){if(e.numberOfChildren===1&&e.children[_]){let t=e.children[_];return new F(e.segments.concat(t.segments),t.children)}return e}function Wt(e){return e instanceof at}function EC(e,t,n=null,r=null){let i=Th(e);return Ah(i,t,n,r)}function Th(e){let t;function n(o){let s={};for(let u of o.children){let c=n(u);s[u.outlet]=c}let a=new F(o.url,s);return o===e&&(t=a),a}let r=n(e.root),i=Sh(r);return t??i}function Ah(e,t,n,r){let i=e;for(;i.parent;)i=i.parent;if(t.length===0)return yu(i,i,i,n,r);let o=IC(t);if(o.toRoot())return yu(i,i,new F([],{}),n,r);let s=bC(o,i,e),a=s.processChildren?Cr(s.segmentGroup,s.index,o.commands):Rh(s.segmentGroup,s.index,o.commands);return yu(i,s.segmentGroup,a,n,r)}function wo(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function Ir(e){return typeof e=="object"&&e!=null&&e.outlets}function yu(e,t,n,r,i){let o={};r&&Object.entries(r).forEach(([u,c])=>{o[u]=Array.isArray(c)?c.map(l=>`${l}`):`${c}`});let s;e===t?s=n:s=Nh(e,t,n);let a=Sh(xh(s));return new at(a,o,i)}function Nh(e,t,n){let r={};return Object.entries(e.children).forEach(([i,o])=>{o===t?r[i]=n:r[i]=Nh(o,t,n)}),new F(e.segments,r)}var Eo=class{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&wo(r[0]))throw new C(4003,!1);let i=r.find(Ir);if(i&&i!==Ch(r))throw new C(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function IC(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new Eo(!0,0,e);let t=0,n=!1,r=e.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([u,c])=>{a[u]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,u)=>{u==0&&a==="."||(u==0&&a===""?n=!0:a===".."?t++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new Eo(n,t,r)}var Vn=class{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}};function bC(e,t,n){if(e.isAbsolute)return new Vn(t,!0,0);if(!n)return new Vn(t,!1,NaN);if(n.parent===null)return new Vn(n,!0,0);let r=wo(e.commands[0])?0:1,i=n.segments.length-1+r;return _C(n,i,e.numberOfDoubleDots)}function _C(e,t,n){let r=e,i=t,o=n;for(;o>i;){if(o-=i,r=r.parent,!r)throw new C(4005,!1);i=r.segments.length}return new Vn(r,!1,i-o)}function MC(e){return Ir(e[0])?e[0].outlets:{[_]:e}}function Rh(e,t,n){if(e??=new F([],{}),e.segments.length===0&&e.hasChildren())return Cr(e,t,n);let r=SC(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndexo!==_)&&e.children[_]&&e.numberOfChildren===1&&e.children[_].segments.length===0){let o=Cr(e.children[_],t,n);return new F(e.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=Rh(e.children[o],t,s))}),Object.entries(e.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new F(e.segments,i)}}function SC(e,t,n){let r=0,i=t,o={match:!1,pathIndex:0,commandIndex:0};for(;i=n.length)return o;let s=e.segments[i],a=n[r];if(Ir(a))break;let u=`${a}`,c=r0&&u===void 0)break;if(u&&c&&typeof c=="object"&&c.outlets===void 0){if(!fh(u,c,s))return o;r+=2}else{if(!fh(u,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function _u(e,t,n){let r=e.segments.slice(0,t),i=0;for(;i{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=_u(new F([],{}),0,r))}),t}function dh(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function fh(e,t,n){return e==n.path&&We(t,n.parameters)}var wr="imperative",Y=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(Y||{}),we=class{constructor(t,n){this.id=t,this.url=n}},Hn=class extends we{constructor(t,n,r="imperative",i=null){super(t,n),this.type=Y.NavigationStart,this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Ee=class extends we{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r,this.type=Y.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},ge=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(ge||{}),Io=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(Io||{}),st=class extends we{constructor(t,n,r,i){super(t,n),this.reason=r,this.code=i,this.type=Y.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},It=class extends we{constructor(t,n,r,i){super(t,n),this.reason=r,this.code=i,this.type=Y.NavigationSkipped}},br=class extends we{constructor(t,n,r,i){super(t,n),this.error=r,this.target=i,this.type=Y.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},bo=class extends we{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=Y.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Mu=class extends we{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=Y.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Su=class extends we{constructor(t,n,r,i,o){super(t,n),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o,this.type=Y.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},xu=class extends we{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=Y.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Tu=class extends we{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=Y.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Au=class{constructor(t){this.route=t,this.type=Y.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Nu=class{constructor(t){this.route=t,this.type=Y.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Ru=class{constructor(t){this.snapshot=t,this.type=Y.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ou=class{constructor(t){this.snapshot=t,this.type=Y.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Fu=class{constructor(t){this.snapshot=t,this.type=Y.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Pu=class{constructor(t){this.snapshot=t,this.type=Y.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},_o=class{constructor(t,n,r){this.routerEvent=t,this.position=n,this.anchor=r,this.type=Y.Scroll}toString(){let t=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${t}')`}},_r=class{},zn=class{constructor(t,n){this.url=t,this.navigationBehaviorOptions=n}};function TC(e,t){return e.providers&&!e._injector&&(e._injector=to(e.providers,t,`Route: ${e.path}`)),e._injector??t}function Re(e){return e.outlet||_}function AC(e,t){let n=e.filter(r=>Re(r)===t);return n.push(...e.filter(r=>Re(r)!==t)),n}function Or(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){let n=t.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}var ku=class{get injector(){return Or(this.route?.snapshot)??this.rootInjector}set injector(t){}constructor(t){this.rootInjector=t,this.outlet=null,this.route=null,this.children=new Fr(this.rootInjector),this.attachRef=null}},Fr=(()=>{class e{constructor(n){this.rootInjector=n,this.contexts=new Map}onChildOutletCreated(n,r){let i=this.getOrCreateContext(n);i.outlet=r,this.contexts.set(n,i)}onChildOutletDestroyed(n){let r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new ku(this.rootInjector),this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}static{this.\u0275fac=function(r){return new(r||e)(I(le))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Mo=class{constructor(t){this._root=t}get root(){return this._root.value}parent(t){let n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){let n=Lu(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=Lu(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=Vu(t,this._root);return n.length<2?[]:n[n.length-2].children.map(i=>i.value).filter(i=>i!==t)}pathFromRoot(t){return Vu(t,this._root).map(n=>n.value)}};function Lu(e,t){if(e===t.value)return t;for(let n of t.children){let r=Lu(e,n);if(r)return r}return null}function Vu(e,t){if(e===t.value)return[t];for(let n of t.children){let r=Vu(e,n);if(r.length)return r.unshift(t),r}return[]}var pe=class{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}};function Ln(e){let t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}var So=class extends Mo{constructor(t,n){super(t),this.snapshot=n,qu(this,t)}toString(){return this.snapshot.toString()}};function Oh(e){let t=NC(e),n=new Q([new zt("",{})]),r=new Q({}),i=new Q({}),o=new Q({}),s=new Q(""),a=new bt(n,r,o,s,i,_,e,t.root);return a.snapshot=t.root,new So(new pe(a,[]),t)}function NC(e){let t={},n={},r={},i="",o=new jn([],t,r,i,n,_,e,null,{});return new To("",new pe(o,[]))}var bt=class{constructor(t,n,r,i,o,s,a,u){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=u,this.title=this.dataSubject?.pipe(b(c=>c[Nr]))??D(void 0),this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o}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(b(t=>$n(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(b(t=>$n(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function xo(e,t,n="emptyOnly"){let r,{routeConfig:i}=e;return t!==null&&(n==="always"||i?.path===""||!t.component&&!t.routeConfig?.loadComponent)?r={params:g(g({},t.params),e.params),data:g(g({},t.data),e.data),resolve:g(g(g(g({},e.data),t.data),i?.data),e._resolvedData)}:r={params:g({},e.params),data:g({},e.data),resolve:g(g({},e.data),e._resolvedData??{})},i&&Ph(i)&&(r.resolve[Nr]=i.title),r}var jn=class{get title(){return this.data?.[Nr]}constructor(t,n,r,i,o,s,a,u,c){this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=u,this._resolve=c}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??=$n(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=$n(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(r=>r.toString()).join("/"),n=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${n}')`}},To=class extends Mo{constructor(t,n){super(n),this.url=t,qu(this,n)}toString(){return Fh(this._root)}};function qu(e,t){t.value._routerState=e,t.children.forEach(n=>qu(e,n))}function Fh(e){let t=e.children.length>0?` { ${e.children.map(Fh).join(", ")} } `:"";return`${e.value}${t}`}function Du(e){if(e.snapshot){let t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,We(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),We(t.params,n.params)||e.paramsSubject.next(n.params),iC(t.url,n.url)||e.urlSubject.next(n.url),We(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function ju(e,t){let n=We(e.params,t.params)&&uC(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||ju(e.parent,t.parent))}function Ph(e){return typeof e.title=="string"||e.title===null}var Zu=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=_,this.activateEvents=new J,this.deactivateEvents=new J,this.attachEvents=new J,this.detachEvents=new J,this.parentContexts=h(Fr),this.location=h($t),this.changeDetector=h(Rn),this.inputBinder=h(Oo,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:i}=n.name;if(r)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(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new C(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new C(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new C(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new C(4013,!1);this._activatedRoute=n;let i=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,u=new Bu(n,a,i.injector);this.activated=i.createComponent(s,{index:i.length,injector:u,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=In({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Mn]})}}return e})(),Bu=class e{__ngOutletInjector(t){return new e(this.route,this.childContexts,t)}constructor(t,n,r){this.route=t,this.childContexts=n,this.parent=r}get(t,n){return t===bt?this.route:t===Fr?this.childContexts:this.parent.get(t,n)}},Oo=new w(""),hh=(()=>{class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){let{activatedRoute:r}=n,i=Kn([r.queryParams,r.params,r.data]).pipe(K(([o,s,a],u)=>(a=g(g(g({},o),s),a),u===0?D(a):Promise.resolve(a)))).subscribe(o=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(n);return}let s=$f(r.component);if(!s){this.unsubscribeFromRouteData(n);return}for(let{templateName:a}of s.inputs)n.activatedComponentRef.setInput(a,o[a])});this.outletDataSubscriptions.set(n,i)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})();function RC(e,t,n){let r=Mr(e,t._root,n?n._root:void 0);return new So(r,t)}function Mr(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=t.value;let i=OC(e,t,n);return new pe(r,i)}else{if(e.shouldAttach(t.value)){let o=e.retrieve(t.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>Mr(e,a)),s}}let r=FC(t.value),i=t.children.map(o=>Mr(e,o));return new pe(r,i)}}function OC(e,t,n){return t.children.map(r=>{for(let i of n.children)if(e.shouldReuseRoute(r.value,i.value.snapshot))return Mr(e,r,i);return Mr(e,r)})}function FC(e){return new bt(new Q(e.url),new Q(e.params),new Q(e.queryParams),new Q(e.fragment),new Q(e.data),e.outlet,e.component,e)}var Sr=class{constructor(t,n){this.redirectTo=t,this.navigationBehaviorOptions=n}},kh="ngNavigationCancelingError";function Ao(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=Wt(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,i=Lh(!1,ge.Redirect);return i.url=n,i.navigationBehaviorOptions=r,i}function Lh(e,t){let n=new Error(`NavigationCancelingError: ${e||""}`);return n[kh]=!0,n.cancellationCode=t,n}function PC(e){return Vh(e)&&Wt(e.url)}function Vh(e){return!!e&&e[kh]}var kC=(e,t,n,r)=>b(i=>(new $u(t,i.targetRouterState,i.currentRouterState,n,r).activate(e),i)),$u=class{constructor(t,n,r,i,o){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(t){let n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),Du(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){let i=Ln(n);t.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(t,n,r){let i=t.value,o=n?n.value:null;if(i===o)if(i.component){let s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else o&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){let r=n.getContext(t.value.outlet),i=r&&t.value.component?r.children:n,o=Ln(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){let r=n.getContext(t.value.outlet),i=r&&t.value.component?r.children:n,o=Ln(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){let i=Ln(n);t.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new Pu(o.value.snapshot))}),t.children.length&&this.forwardEvent(new Ou(t.value.snapshot))}activateRoutes(t,n,r){let i=t.value,o=n?n.value:null;if(Du(i),i===o)if(i.component){let s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(i.component){let s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.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),Du(a.route.value),this.activateChildRoutes(t,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(t,null,s.children)}else this.activateChildRoutes(t,null,r)}},No=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},Bn=class{constructor(t,n){this.component=t,this.route=n}};function LC(e,t,n){let r=e._root,i=t?t._root:null;return yr(r,i,n,[r.value])}function VC(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function Wn(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e=="function"&&!Il(e)?e:t.get(e):r}function yr(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=Ln(t);return e.children.forEach(s=>{jC(s,o[s.value.outlet],n,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Er(a,n.getContext(s),i)),i}function jC(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let u=BC(s,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new No(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?yr(e,t,a?a.children:null,r,i):yr(e,t,n,r,i),u&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Bn(a.outlet.component,s))}else s&&Er(t,a,i),i.canActivateChecks.push(new No(r)),o.component?yr(e,null,a?a.children:null,r,i):yr(e,null,n,r,i);return i}function BC(e,t,n){if(typeof n=="function")return n(e,t);switch(n){case"pathParamsChange":return!Gt(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Gt(e.url,t.url)||!We(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ju(e,t)||!We(e.queryParams,t.queryParams);case"paramsChange":default:return!ju(e,t)}}function Er(e,t,n){let r=Ln(e),i=e.value;Object.entries(r).forEach(([o,s])=>{i.component?t?Er(s,t.children.getContext(o),n):Er(s,null,n):Er(s,t,n)}),i.component?t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new Bn(t.outlet.component,i)):n.canDeactivateChecks.push(new Bn(null,i)):n.canDeactivateChecks.push(new Bn(null,i))}function Pr(e){return typeof e=="function"}function $C(e){return typeof e=="boolean"}function UC(e){return e&&Pr(e.canLoad)}function HC(e){return e&&Pr(e.canActivate)}function zC(e){return e&&Pr(e.canActivateChild)}function GC(e){return e&&Pr(e.canDeactivate)}function WC(e){return e&&Pr(e.canMatch)}function jh(e){return e instanceof Ze||e?.name==="EmptyError"}var vo=Symbol("INITIAL_VALUE");function Gn(){return K(e=>Kn(e.map(t=>t.pipe(q(1),ls(vo)))).pipe(b(t=>{for(let n of t)if(n!==!0){if(n===vo)return vo;if(n===!1||qC(n))return n}return!0}),W(t=>t!==vo),q(1)))}function qC(e){return Wt(e)||e instanceof Sr}function ZC(e,t){return $(n=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=n;return s.length===0&&o.length===0?D(B(g({},n),{guardsResult:!0})):YC(s,r,i,e).pipe($(a=>a&&$C(a)?QC(r,o,e,t):D(a)),b(a=>B(g({},n),{guardsResult:a})))})}function YC(e,t,n,r){return j(e).pipe($(i=>tw(i.component,i.route,n,t,r)),ke(i=>i!==!0,!0))}function QC(e,t,n,r){return j(t).pipe(Rt(i=>Pe(JC(i.route.parent,r),KC(i.route,r),ew(e,i.path,n),XC(e,i.route,n))),ke(i=>i!==!0,!0))}function KC(e,t){return e!==null&&t&&t(new Fu(e)),D(!0)}function JC(e,t){return e!==null&&t&&t(new Ru(e)),D(!0)}function XC(e,t,n){let r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||r.length===0)return D(!0);let i=r.map(o=>At(()=>{let s=Or(t)??n,a=Wn(o,s),u=HC(a)?a.canActivate(t,e):He(s,()=>a(t,e));return _t(u).pipe(ke())}));return D(i).pipe(Gn())}function ew(e,t,n){let r=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>VC(s)).filter(s=>s!==null).map(s=>At(()=>{let a=s.guards.map(u=>{let c=Or(s.node)??n,l=Wn(u,c),d=zC(l)?l.canActivateChild(r,e):He(c,()=>l(r,e));return _t(d).pipe(ke())});return D(a).pipe(Gn())}));return D(o).pipe(Gn())}function tw(e,t,n,r,i){let o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||o.length===0)return D(!0);let s=o.map(a=>{let u=Or(t)??i,c=Wn(a,u),l=GC(c)?c.canDeactivate(e,t,n,r):He(u,()=>c(e,t,n,r));return _t(l).pipe(ke())});return D(s).pipe(Gn())}function nw(e,t,n,r){let i=t.canLoad;if(i===void 0||i.length===0)return D(!0);let o=i.map(s=>{let a=Wn(s,e),u=UC(a)?a.canLoad(t,n):He(e,()=>a(t,n));return _t(u)});return D(o).pipe(Gn(),Bh(r))}function Bh(e){return Ko(Z(t=>{if(typeof t!="boolean")throw Ao(e,t)}),b(t=>t===!0))}function rw(e,t,n,r){let i=t.canMatch;if(!i||i.length===0)return D(!0);let o=i.map(s=>{let a=Wn(s,e),u=WC(a)?a.canMatch(t,n):He(e,()=>a(t,n));return _t(u)});return D(o).pipe(Gn(),Bh(r))}var xr=class{constructor(t){this.segmentGroup=t||null}},Tr=class extends Error{constructor(t){super(),this.urlTree=t}};function kn(e){return ct(new xr(e))}function iw(e){return ct(new C(4e3,!1))}function ow(e){return ct(Lh(!1,ge.GuardRejected))}var Uu=class{constructor(t,n){this.urlSerializer=t,this.urlTree=n}lineralizeSegments(t,n){let r=[],i=n.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return D(r);if(i.numberOfChildren>1||!i.children[_])return iw(`${t.redirectTo}`);i=i.children[_]}}applyRedirectCommands(t,n,r,i,o){if(typeof n!="string"){let a=n,{queryParams:u,fragment:c,routeConfig:l,url:d,outlet:p,params:f,data:m,title:A}=i,k=He(o,()=>a({params:f,data:m,queryParams:u,fragment:c,routeConfig:l,url:d,outlet:p,title:A}));if(k instanceof at)throw new Tr(k);n=k}let s=this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r);if(n[0]==="/")throw new Tr(s);return s}applyRedirectCreateUrlTree(t,n,r,i){let o=this.createSegmentGroup(t,n.root,r,i);return new at(o,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){let r={};return Object.entries(t).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);r[i]=n[a]}else r[i]=o}),r}createSegmentGroup(t,n,r,i){let o=this.createSegments(t,n.segments,r,i),s={};return Object.entries(n.children).forEach(([a,u])=>{s[a]=this.createSegmentGroup(t,u,r,i)}),new F(o,s)}createSegments(t,n,r,i){return n.map(o=>o.path[0]===":"?this.findPosParam(t,o,i):this.findOrReturn(o,r))}findPosParam(t,n,r){let i=r[n.path.substring(1)];if(!i)throw new C(4001,!1);return i}findOrReturn(t,n){let r=0;for(let i of n){if(i.path===t.path)return n.splice(r),i;r++}return t}},Hu={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function sw(e,t,n,r,i){let o=$h(e,t,n);return o.matched?(r=TC(t,r),rw(r,t,n,i).pipe(b(s=>s===!0?o:g({},Hu)))):D(o)}function $h(e,t,n){if(t.path==="**")return aw(n);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?g({},Hu):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let i=(t.matcher||rC)(n,e,t);if(!i)return g({},Hu);let o={};Object.entries(i.posParams??{}).forEach(([a,u])=>{o[a]=u.path});let s=i.consumed.length>0?g(g({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:n.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function aw(e){return{matched:!0,parameters:e.length>0?Ch(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function ph(e,t,n,r){return n.length>0&&lw(e,n,r)?{segmentGroup:new F(t,cw(r,new F(n,e.children))),slicedSegments:[]}:n.length===0&&dw(e,n,r)?{segmentGroup:new F(e.segments,uw(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new F(e.segments,e.children),slicedSegments:n}}function uw(e,t,n,r){let i={};for(let o of n)if(Fo(e,t,o)&&!r[Re(o)]){let s=new F([],{});i[Re(o)]=s}return g(g({},r),i)}function cw(e,t){let n={};n[_]=t;for(let r of e)if(r.path===""&&Re(r)!==_){let i=new F([],{});n[Re(r)]=i}return n}function lw(e,t,n){return n.some(r=>Fo(e,t,r)&&Re(r)!==_)}function dw(e,t,n){return n.some(r=>Fo(e,t,r))}function Fo(e,t,n){return(e.hasChildren()||t.length>0)&&n.pathMatch==="full"?!1:n.path===""}function fw(e,t,n){return t.length===0&&!e.children[n]}var zu=class{};function hw(e,t,n,r,i,o,s="emptyOnly"){return new Gu(e,t,n,r,i,s,o).recognize()}var pw=31,Gu=class{constructor(t,n,r,i,o,s,a){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Uu(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new C(4002,`'${t.segmentGroup}'`)}recognize(){let t=ph(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(b(({children:n,rootSnapshot:r})=>{let i=new pe(r,n),o=new To("",i),s=EC(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(t){let n=new jn([],Object.freeze({}),Object.freeze(g({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),_,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,t,_,n).pipe(b(r=>({children:r,rootSnapshot:n})),dt(r=>{if(r instanceof Tr)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof xr?this.noMatchError(r):r}))}processSegmentGroup(t,n,r,i,o){return r.segments.length===0&&r.hasChildren()?this.processChildren(t,n,r,o):this.processSegment(t,n,r,r.segments,i,!0,o).pipe(b(s=>s instanceof pe?[s]:[]))}processChildren(t,n,r,i){let o=[];for(let s of Object.keys(r.children))s==="primary"?o.unshift(s):o.push(s);return j(o).pipe(Rt(s=>{let a=r.children[s],u=AC(n,s);return this.processSegmentGroup(t,u,a,s,i)}),cs((s,a)=>(s.push(...a),s)),ft(null),as(),$(s=>{if(s===null)return kn(r);let a=Uh(s);return gw(a),D(a)}))}processSegment(t,n,r,i,o,s,a){return j(n).pipe(Rt(u=>this.processSegmentAgainstRoute(u._injector??t,n,u,r,i,o,s,a).pipe(dt(c=>{if(c instanceof xr)return D(null);throw c}))),ke(u=>!!u),dt(u=>{if(jh(u))return fw(r,i,o)?D(new zu):kn(r);throw u}))}processSegmentAgainstRoute(t,n,r,i,o,s,a,u){return Re(r)!==s&&(s===_||!Fo(i,o,r))?kn(i):r.redirectTo===void 0?this.matchSegmentAgainstRoute(t,i,r,o,s,u):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,i,n,r,o,s,u):kn(i)}expandSegmentAgainstRouteUsingRedirect(t,n,r,i,o,s,a){let{matched:u,parameters:c,consumedSegments:l,positionalParamSegments:d,remainingSegments:p}=$h(n,i,o);if(!u)return kn(n);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>pw&&(this.allowRedirects=!1));let f=new jn(o,c,Object.freeze(g({},this.urlTree.queryParams)),this.urlTree.fragment,gh(i),Re(i),i.component??i._loadedComponent??null,i,mh(i)),m=xo(f,a,this.paramsInheritanceStrategy);f.params=Object.freeze(m.params),f.data=Object.freeze(m.data);let A=this.applyRedirects.applyRedirectCommands(l,i.redirectTo,d,f,t);return this.applyRedirects.lineralizeSegments(i,A).pipe($(k=>this.processSegment(t,r,n,k.concat(p),s,!1,a)))}matchSegmentAgainstRoute(t,n,r,i,o,s){let a=sw(n,r,i,t,this.urlSerializer);return r.path==="**"&&(n.children={}),a.pipe(K(u=>u.matched?(t=r._injector??t,this.getChildConfig(t,r,i).pipe(K(({routes:c})=>{let l=r._loadedInjector??t,{parameters:d,consumedSegments:p,remainingSegments:f}=u,m=new jn(p,d,Object.freeze(g({},this.urlTree.queryParams)),this.urlTree.fragment,gh(r),Re(r),r.component??r._loadedComponent??null,r,mh(r)),A=xo(m,s,this.paramsInheritanceStrategy);m.params=Object.freeze(A.params),m.data=Object.freeze(A.data);let{segmentGroup:k,slicedSegments:V}=ph(n,p,f,c);if(V.length===0&&k.hasChildren())return this.processChildren(l,c,k,m).pipe(b(re=>new pe(m,re)));if(c.length===0&&V.length===0)return D(new pe(m,[]));let ne=Re(r)===o;return this.processSegment(l,c,k,V,ne?_:o,!0,m).pipe(b(re=>new pe(m,re instanceof pe?[re]:[])))}))):kn(n)))}getChildConfig(t,n,r){return n.children?D({routes:n.children,injector:t}):n.loadChildren?n._loadedRoutes!==void 0?D({routes:n._loadedRoutes,injector:n._loadedInjector}):nw(t,n,r,this.urlSerializer).pipe($(i=>i?this.configLoader.loadChildren(t,n).pipe(Z(o=>{n._loadedRoutes=o.routes,n._loadedInjector=o.injector})):ow(n))):D({routes:[],injector:t})}};function gw(e){e.sort((t,n)=>t.value.outlet===_?-1:n.value.outlet===_?1:t.value.outlet.localeCompare(n.value.outlet))}function mw(e){let t=e.value.routeConfig;return t&&t.path===""}function Uh(e){let t=[],n=new Set;for(let r of e){if(!mw(r)){t.push(r);continue}let i=t.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),n.add(i)):t.push(r)}for(let r of n){let i=Uh(r.children);t.push(new pe(r.value,i))}return t.filter(r=>!n.has(r))}function gh(e){return e.data||{}}function mh(e){return e.resolve||{}}function vw(e,t,n,r,i,o){return $(s=>hw(e,t,n,r,s.extractedUrl,i,o).pipe(b(({state:a,tree:u})=>B(g({},s),{targetSnapshot:a,urlAfterRedirects:u}))))}function yw(e,t){return $(n=>{let{targetSnapshot:r,guards:{canActivateChecks:i}}=n;if(!i.length)return D(n);let o=new Set(i.map(u=>u.route)),s=new Set;for(let u of o)if(!s.has(u))for(let c of Hh(u))s.add(c);let a=0;return j(s).pipe(Rt(u=>o.has(u)?Dw(u,r,e,t):(u.data=xo(u,u.parent,e).resolve,D(void 0))),Z(()=>a++),on(1),$(u=>a===s.size?D(n):ee))})}function Hh(e){let t=e.children.map(n=>Hh(n)).flat();return[e,...t]}function Dw(e,t,n,r){let i=e.routeConfig,o=e._resolve;return i?.title!==void 0&&!Ph(i)&&(o[Nr]=i.title),Cw(o,e,t,r).pipe(b(s=>(e._resolvedData=s,e.data=xo(e,e.parent,n).resolve,null)))}function Cw(e,t,n,r){let i=Eu(e);if(i.length===0)return D({});let o={};return j(i).pipe($(s=>ww(e[s],t,n,r).pipe(ke(),Z(a=>{if(a instanceof Sr)throw Ao(new Un,a);o[s]=a}))),on(1),Jn(o),dt(s=>jh(s)?ee:ct(s)))}function ww(e,t,n,r){let i=Or(t)??r,o=Wn(e,i),s=o.resolve?o.resolve(t,n):He(i,()=>o(t,n));return _t(s)}function Cu(e){return K(t=>{let n=e(t);return n?j(n).pipe(b(()=>t)):D(t)})}var zh=(()=>{class e{buildTitle(n){let r,i=n.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===_);return r}getResolvedTitleForRoute(n){return n.data[Nr]}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:()=>h(Ew),providedIn:"root"})}}return e})(),Ew=(()=>{class e extends zh{constructor(n){super(),this.title=n}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r)}static{this.\u0275fac=function(r){return new(r||e)(I(uh))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),kr=new w("",{providedIn:"root",factory:()=>({})}),Iw=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=En({type:e,selectors:[["ng-component"]],standalone:!0,features:[Tn],decls:1,vars:0,template:function(r,i){r&1&&Et(0,"router-outlet")},dependencies:[Zu],encapsulation:2})}}return e})();function Yu(e){let t=e.children&&e.children.map(Yu),n=t?B(g({},e),{children:t}):g({},e);return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==_&&(n.component=Iw),n}var Ar=new w(""),Qu=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=h(co)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return D(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let r=_t(n.loadComponent()).pipe(b(Gh),Z(o=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=o}),Xn(()=>{this.componentLoaders.delete(n)})),i=new ut(r,()=>new G).pipe(en());return this.componentLoaders.set(n,i),i}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return D({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=bw(r,this.compiler,n,this.onLoadEndListener).pipe(Xn(()=>{this.childrenLoaders.delete(r)})),s=new ut(o,()=>new G).pipe(en());return this.childrenLoaders.set(r,s),s}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function bw(e,t,n,r){return _t(e.loadChildren()).pipe(b(Gh),$(i=>i instanceof ar||Array.isArray(i)?D(i):j(t.compileModuleAsync(i))),b(i=>{r&&r(e);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(n).injector,s=o.get(Ar,[],{optional:!0,self:!0}).flat()),{routes:s.map(Yu),injector:o}}))}function _w(e){return e&&typeof e=="object"&&"default"in e}function Gh(e){return _w(e)?e.default:e}var Ku=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:()=>h(Mw),providedIn:"root"})}}return e})(),Mw=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Wh=new w(""),qh=new w("");function Sw(e,t,n){let r=e.get(qh),i=e.get(se);return e.get(U).runOutsideAngular(()=>{if(!i.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(c=>setTimeout(c));let o,s=new Promise(c=>{o=c}),a=i.startViewTransition(()=>(o(),xw(e))),{onViewTransitionCreated:u}=r;return u&&He(e,()=>u({transition:a,from:t,to:n})),s})}function xw(e){return new Promise(t=>{Ka({read:()=>setTimeout(t)},{injector:e})})}var Tw=new w(""),Ju=(()=>{class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new G,this.transitionAbortSubject=new G,this.configLoader=h(Qu),this.environmentInjector=h(le),this.urlSerializer=h(Rr),this.rootContexts=h(Fr),this.location=h(Pn),this.inputBindingEnabled=h(Oo,{optional:!0})!==null,this.titleStrategy=h(zh),this.options=h(kr,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=h(Ku),this.createViewTransition=h(Wh,{optional:!0}),this.navigationErrorHandler=h(Tw,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>D(void 0),this.rootComponentType=null;let n=i=>this.events.next(new Au(i)),r=i=>this.events.next(new Nu(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;this.transitions?.next(B(g(g({},this.transitions.value),n),{id:r}))}setupNavigations(n,r,i){return this.transitions=new Q({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:wr,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(W(o=>o.id!==0),b(o=>B(g({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),K(o=>{let s=!1,a=!1;return D(o).pipe(K(u=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",ge.SupersededByNewNavigation),ee;this.currentTransition=o,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?B(g({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let c=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),l=u.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!c&&l!=="reload"){let d="";return this.events.next(new It(u.id,this.urlSerializer.serialize(u.rawUrl),d,Io.IgnoredSameUrlNavigation)),u.resolve(!1),ee}if(this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return D(u).pipe(K(d=>{let p=this.transitions?.getValue();return this.events.next(new Hn(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),p!==this.transitions?.getValue()?ee:Promise.resolve(d)}),vw(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),Z(d=>{o.targetSnapshot=d.targetSnapshot,o.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation=B(g({},this.currentNavigation),{finalUrl:d.urlAfterRedirects});let p=new bo(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(p)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){let{id:d,extractedUrl:p,source:f,restoredState:m,extras:A}=u,k=new Hn(d,this.urlSerializer.serialize(p),f,m);this.events.next(k);let V=Oh(this.rootComponentType).snapshot;return this.currentTransition=o=B(g({},u),{targetSnapshot:V,urlAfterRedirects:p,extras:B(g({},A),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=p,D(o)}else{let d="";return this.events.next(new It(u.id,this.urlSerializer.serialize(u.extractedUrl),d,Io.IgnoredByUrlHandlingStrategy)),u.resolve(!1),ee}}),Z(u=>{let c=new Mu(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(c)}),b(u=>(this.currentTransition=o=B(g({},u),{guards:LC(u.targetSnapshot,u.currentSnapshot,this.rootContexts)}),o)),ZC(this.environmentInjector,u=>this.events.next(u)),Z(u=>{if(o.guardsResult=u.guardsResult,u.guardsResult&&typeof u.guardsResult!="boolean")throw Ao(this.urlSerializer,u.guardsResult);let c=new Su(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(c)}),W(u=>u.guardsResult?!0:(this.cancelNavigationTransition(u,"",ge.GuardRejected),!1)),Cu(u=>{if(u.guards.canActivateChecks.length)return D(u).pipe(Z(c=>{let l=new xu(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),K(c=>{let l=!1;return D(c).pipe(yw(this.paramsInheritanceStrategy,this.environmentInjector),Z({next:()=>l=!0,complete:()=>{l||this.cancelNavigationTransition(c,"",ge.NoDataFromResolver)}}))}),Z(c=>{let l=new Tu(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}))}),Cu(u=>{let c=l=>{let d=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(l.routeConfig).pipe(Z(p=>{l.component=p}),b(()=>{})));for(let p of l.children)d.push(...c(p));return d};return Kn(c(u.targetSnapshot.root)).pipe(ft(null),q(1))}),Cu(()=>this.afterPreactivation()),K(()=>{let{currentSnapshot:u,targetSnapshot:c}=o,l=this.createViewTransition?.(this.environmentInjector,u.root,c.root);return l?j(l).pipe(b(()=>o)):D(o)}),b(u=>{let c=RC(n.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=o=B(g({},u),{targetRouterState:c}),this.currentNavigation.targetRouterState=c,o}),Z(()=>{this.events.next(new _r)}),kC(this.rootContexts,n.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),q(1),Z({next:u=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Ee(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),this.titleStrategy?.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{s=!0}}),ds(this.transitionAbortSubject.pipe(Z(u=>{throw u}))),Xn(()=>{!s&&!a&&this.cancelNavigationTransition(o,"",ge.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),dt(u=>{if(a=!0,Vh(u))this.events.next(new st(o.id,this.urlSerializer.serialize(o.extractedUrl),u.message,u.cancellationCode)),PC(u)?this.events.next(new zn(u.url,u.navigationBehaviorOptions)):o.resolve(!1);else{let c=new br(o.id,this.urlSerializer.serialize(o.extractedUrl),u,o.targetSnapshot??void 0);try{let l=He(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(l instanceof Sr){let{message:d,cancellationCode:p}=Ao(this.urlSerializer,l);this.events.next(new st(o.id,this.urlSerializer.serialize(o.extractedUrl),d,p)),this.events.next(new zn(l.redirectTo,l.navigationBehaviorOptions))}else{this.events.next(c);let d=n.errorHandler(u);o.resolve(!!d)}}catch(l){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(l)}}return ee}))}))}cancelNavigationTransition(n,r,i){let o=new st(n.id,this.urlSerializer.serialize(n.extractedUrl),r,i);this.events.next(o),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let n=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return n.toString()!==r?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Aw(e){return e!==wr}var Nw=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:()=>h(Rw),providedIn:"root"})}}return e})(),Wu=class{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}},Rw=(()=>{class e extends Wu{static{this.\u0275fac=(()=>{let n;return function(i){return(n||(n=Wi(e)))(i||e)}})()}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Zh=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:()=>h(Ow),providedIn:"root"})}}return e})(),Ow=(()=>{class e extends Zh{constructor(){super(...arguments),this.location=h(Pn),this.urlSerializer=h(Rr),this.options=h(kr,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=h(Ku),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new at,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Oh(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(n){return this.location.subscribe(r=>{r.type==="popstate"&&n(r.url,r.state)})}handleRouterEvent(n,r){if(n instanceof Hn)this.stateMemento=this.createStateMemento();else if(n instanceof It)this.rawUrlTree=r.initialUrl;else if(n instanceof bo){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let i=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(r.targetBrowserUrl??i,r)}}else n instanceof _r?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(r.targetBrowserUrl??this.rawUrlTree,r)):n instanceof st&&(n.code===ge.GuardRejected||n.code===ge.NoDataFromResolver)?this.restoreHistory(r):n instanceof br?this.restoreHistory(r,!0):n instanceof Ee&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){let i=n instanceof at?this.urlSerializer.serialize(n):n;if(this.location.isCurrentPathEqualTo(i)||r.extras.replaceUrl){let o=this.browserPageId,s=g(g({},r.extras.state),this.generateNgRouterState(r.id,o));this.location.replaceState(i,"",s)}else{let o=g(g({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(i,"",o)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.currentUrlTree===n.finalUrl&&o===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}static{this.\u0275fac=(()=>{let n;return function(i){return(n||(n=Wi(e)))(i||e)}})()}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Dr=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(Dr||{});function Yh(e,t){e.events.pipe(W(n=>n instanceof Ee||n instanceof st||n instanceof br||n instanceof It),b(n=>n instanceof Ee||n instanceof It?Dr.COMPLETE:(n instanceof st?n.code===ge.Redirect||n.code===ge.SupersededByNewNavigation:!1)?Dr.REDIRECTING:Dr.FAILED),W(n=>n!==Dr.REDIRECTING),q(1)).subscribe(()=>{t()})}function Fw(e){throw e}var Pw={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},kw={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Oe=(()=>{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=h(ao),this.stateManager=h(Zh),this.options=h(kr,{optional:!0})||{},this.pendingTasks=h(Sn),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=h(Ju),this.urlSerializer=h(Rr),this.location=h(Pn),this.urlHandlingStrategy=h(Ku),this._events=new G,this.errorHandler=this.options.errorHandler||Fw,this.navigated=!1,this.routeReuseStrategy=h(Nw),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=h(Ar,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!h(Oo,{optional:!0}),this.eventsSubscription=new z,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof st&&r.code!==ge.Redirect&&r.code!==ge.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Ee)this.navigated=!0;else if(r instanceof zn){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),u=g({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Aw(i.source)},s);this.scheduleNavigation(a,wr,null,u,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}Vw(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),wr,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",r)},0)})}navigateToSyncWithBrowser(n,r,i){let o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){let u=g({},i);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(o.state=u)}let a=this.parseUrl(n);this.scheduleNavigation(a,r,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(Yu),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(n,r={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:u}=r,c=u?this.currentUrlTree.fragment:s,l=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":l=g(g({},this.currentUrlTree.queryParams),o);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=o||null}l!==null&&(l=this.removeEmptyProps(l));let d;try{let p=i?i.snapshot:this.routerState.snapshot.root;d=Th(p)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),d=this.currentUrlTree.root}return Ah(d,n,l,c??null)}navigateByUrl(n,r={skipLocationChange:!1}){let i=Wt(n)?n:this.parseUrl(n),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,wr,null,r)}navigate(n,r={skipLocationChange:!1}){return Lw(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,r){let i;if(r===!0?i=g({},Pw):r===!1?i=g({},kw):i=r,Wt(n))return ch(this.currentUrlTree,n,i);let o=this.parseUrl(n);return ch(this.currentUrlTree,o,i)}removeEmptyProps(n){return Object.entries(n).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(n,r,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,u,c;s?(a=s.resolve,u=s.reject,c=s.promise):c=new Promise((d,p)=>{a=d,u=p});let l=this.pendingTasks.add();return Yh(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(l))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:o,resolve:a,reject:u,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(d=>Promise.reject(d))}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Lw(e){for(let t=0;t{class e{constructor(n,r,i,o,s,a){this.router=n,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=a,this.href=null,this.onChanges=new G,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;let u=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=u==="a"||u==="area",this.isAnchorElement?this.subscription=n.events.subscribe(c=>{c instanceof Ee&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){n==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(Wt(n)?this.routerLinkInput=n:this.routerLinkInput=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0"))}onClick(n,r,i,o,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(n!==0||r||i||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let u={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,u),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let n=this.urlTree;this.href=n!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n)):null;let r=this.href===null?null:Ud(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(n,r){let i=this.renderer,o=this.el.nativeElement;r!==null?i.setAttribute(o,n,r):i.removeAttribute(o,n)}get urlTree(){return this.routerLinkInput===null?null:Wt(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static{this.\u0275fac=function(r){return new(r||e)(he(Oe),he(bt),Ta("tabindex"),he(dr),he(rt),he(ot))}}static{this.\u0275dir=In({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,i){r&1&&Ne("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&ro("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",On],skipLocationChange:[2,"skipLocationChange","skipLocationChange",On],replaceUrl:[2,"replaceUrl","replaceUrl",On],routerLink:"routerLink"},standalone:!0,features:[Qa,Mn]})}}return e})();var Ro=class{};var jw=(()=>{class e{constructor(n,r,i,o,s){this.router=n,this.injector=i,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(W(n=>n instanceof Ee),Rt(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){let i=[];for(let o of r){o.providers&&!o._injector&&(o._injector=to(o.providers,n,`Route: ${o.path}`));let s=o._injector??n,a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(a,o.children??o._loadedRoutes))}return j(i).pipe(lt())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let i;r.loadChildren&&r.canLoad===void 0?i=this.loader.loadChildren(n,r):i=D(null);let o=i.pipe($(s=>s===null?D(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??n,s.routes))));if(r.loadComponent&&!r._loadedComponent){let s=this.loader.loadComponent(r);return j([o,s]).pipe(lt())}else return o})}static{this.\u0275fac=function(r){return new(r||e)(I(Oe),I(co),I(le),I(Ro),I(Qu))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Kh=new w(""),Bw=(()=>{class e{constructor(n,r,i,o,s={}){this.urlSerializer=n,this.transitions=r,this.viewportScroller=i,this.zone=o,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration||="disabled",s.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof Hn?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof Ee?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof It&&n.code===Io.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof _o&&(n.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(n.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new _o(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static{this.\u0275fac=function(r){tf()}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})();function Jh(e,...t){return bn([{provide:Ar,multi:!0,useValue:e},[],{provide:bt,useFactory:Xh,deps:[Oe]},{provide:uo,multi:!0,useFactory:ep},t.map(n=>n.\u0275providers)])}function Xh(e){return e.routerState.root}function Lr(e,t){return{\u0275kind:e,\u0275providers:t}}function ep(){let e=h(de);return t=>{let n=e.get(Ge);if(t!==n.components[0])return;let r=e.get(Oe),i=e.get(tp);e.get(Xu)===1&&r.initialNavigation(),e.get(np,null,M.Optional)?.setUpPreloading(),e.get(Kh,null,M.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var tp=new w("",{factory:()=>new G}),Xu=new w("",{providedIn:"root",factory:()=>1});function $w(){return Lr(2,[{provide:Xu,useValue:0},{provide:Nn,multi:!0,deps:[de],useFactory:t=>{let n=t.get(qf,Promise.resolve());return()=>n.then(()=>new Promise(r=>{let i=t.get(Oe),o=t.get(tp);Yh(i,()=>{r(!0)}),t.get(Ju).afterPreactivation=()=>(r(!0),o.closed?D(void 0):o),i.initialNavigation()}))}}])}function Uw(){return Lr(3,[{provide:Nn,multi:!0,useFactory:()=>{let t=h(Oe);return()=>{t.setUpLocationChangeListener()}}},{provide:Xu,useValue:2}])}var np=new w("");function Hw(e){return Lr(0,[{provide:np,useExisting:jw},{provide:Ro,useExisting:e}])}function zw(){return Lr(8,[hh,{provide:Oo,useExisting:hh}])}function Gw(e){let t=[{provide:Wh,useValue:Sw},{provide:qh,useValue:g({skipNextTransition:!!e?.skipInitialTransition},e)}];return Lr(9,t)}var vh=new w("ROUTER_FORROOT_GUARD"),Ww=[Pn,{provide:Rr,useClass:Un},Oe,Fr,{provide:bt,useFactory:Xh,deps:[Oe]},Qu,[]],rp=(()=>{class e{constructor(n){}static forRoot(n,r){return{ngModule:e,providers:[Ww,[],{provide:Ar,multi:!0,useValue:n},{provide:vh,useFactory:Qw,deps:[[Oe,new pa,new Al]]},{provide:kr,useValue:r||{}},r?.useHash?Zw():Yw(),qw(),r?.preloadingStrategy?Hw(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?Kw(r):[],r?.bindToComponentInputs?zw().\u0275providers:[],r?.enableViewTransitions?Gw().\u0275providers:[],Jw()]}}static forChild(n){return{ngModule:e,providers:[{provide:Ar,multi:!0,useValue:n}]}}static{this.\u0275fac=function(r){return new(r||e)(I(vh,8))}}static{this.\u0275mod=et({type:e})}static{this.\u0275inj=Xe({})}}return e})();function qw(){return{provide:Kh,useFactory:()=>{let e=h(Jf),t=h(U),n=h(kr),r=h(Ju),i=h(Rr);return n.scrollOffset&&e.setOffset(n.scrollOffset),new Bw(i,r,e,t,n)}}}function Zw(){return{provide:ot,useClass:Yf}}function Yw(){return{provide:ot,useClass:au}}function Qw(e){return"guarded"}function Kw(e){return[e.initialNavigation==="disabled"?Uw().\u0275providers:[],e.initialNavigation==="enabledBlocking"?$w().\u0275providers:[]]}var yh=new w("");function Jw(){return[{provide:yh,useFactory:ep},{provide:uo,multi:!0,useExisting:yh}]}var tE=["canvas"],nE=["fileInput"],Po=class e{canvasRef;fileInput;canvas;ctx;photos=[];scale=1;isDragging=!1;selectedPhoto=null;lastX=0;lastY=0;maxZIndex=0;ngAfterViewInit(){this.canvas=this.canvasRef.nativeElement,this.ctx=this.canvas.getContext("2d"),this.setupCanvas(),this.setupEventListeners()}setupCanvas(){this.canvas.width=window.innerWidth,this.canvas.height=window.innerHeight,this.render()}setupEventListeners(){this.canvas.addEventListener("wheel",this.handleZoom.bind(this)),this.canvas.addEventListener("mousedown",this.handleMouseDown.bind(this)),this.canvas.addEventListener("mousemove",this.handleMouseMove.bind(this)),this.canvas.addEventListener("mouseup",this.handleMouseUp.bind(this)),this.canvas.addEventListener("dblclick",this.handleDoubleClick.bind(this))}handleFileSelect(t){let n=t.target.files;n&&this.loadImages(Array.from(n))}handleDrop(t){t.preventDefault();let n=Array.from(t.dataTransfer?.files||[]);this.loadImages(n.filter(r=>r.type.startsWith("image/")))}loadImages(t){return Yn(this,null,function*(){for(let n of t){let r=URL.createObjectURL(n),i=new Image;i.src=r,yield i.decode(),this.photos.push({id:Date.now()+Math.random(),url:r,x:Math.random()*(this.canvas.width-200),y:Math.random()*(this.canvas.height-200),width:200,height:200*i.height/i.width,zIndex:++this.maxZIndex,rotation:(Math.random()-.5)*.5})}this.render()})}render(){this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height);let t=[...this.photos].sort((n,r)=>n.zIndex-r.zIndex);for(let n of t){let r=new Image;r.src=n.url,this.ctx.save(),this.ctx.translate(n.x+n.width/2,n.y+n.height/2),this.ctx.rotate(n.rotation),this.ctx.drawImage(r,-n.width/2,-n.height/2,n.width,n.height),this.ctx.restore()}}saveCollage(){let t=this.canvas.toDataURL("image/png"),n=document.createElement("a");n.download="collage.png",n.href=t,n.click()}handleZoom(t){t.preventDefault();let n=-Math.sign(t.deltaY)*.1;this.scale=Math.max(.1,Math.min(5,this.scale+n)),this.render()}handleMouseDown(t){let{offsetX:n,offsetY:r}=t;this.lastX=n,this.lastY=r,this.selectedPhoto=this.findPhotoAtPosition(n,r),this.selectedPhoto&&(this.isDragging=!0)}handleMouseMove(t){if(!this.isDragging||!this.selectedPhoto)return;let n=t.offsetX-this.lastX,r=t.offsetY-this.lastY;this.selectedPhoto.x+=n,this.selectedPhoto.y+=r,this.lastX=t.offsetX,this.lastY=t.offsetY,this.render()}handleMouseUp(){this.isDragging=!1,this.selectedPhoto=null}findPhotoAtPosition(t,n){return this.photos.find(r=>t>=r.x&&t<=r.x+r.width&&n>=r.y&&n<=r.y+r.height)||null}handleDoubleClick(t){let n=this.findPhotoAtPosition(t.offsetX,t.offsetY);n&&(this.maxZIndex++,n.zIndex=this.maxZIndex,this.render())}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=En({type:e,selectors:[["app-photo-collage"]],viewQuery:function(n,r){if(n&1&&(Xa(tE,5),Xa(nE,5)),n&2){let i;oo(i=so())&&(r.canvasRef=i.first),oo(i=so())&&(r.fileInput=i.first)}},standalone:!0,features:[Tn],decls:10,vars:0,consts:[["canvas",""],["fileInput",""],[1,"collage-container",3,"dragover","drop"],["type","file","accept","image/*","multiple","",2,"display","none",3,"change"],[1,"controls"],[3,"click"]],template:function(n,r){if(n&1){let i=io();Ce(0,"div",2),Ne("dragover",function(s){return Ct(i),wt(s.preventDefault())})("drop",function(s){return Ct(i),wt(r.handleDrop(s))}),Et(1,"canvas",null,0),Ce(3,"input",3,1),Ne("change",function(s){return Ct(i),wt(r.handleFileSelect(s))}),Ae(),Ce(5,"div",4)(6,"button",5),Ne("click",function(){Ct(i);let s=Nf(4);return wt(s.click())}),Ut(7,"Add Photos"),Ae(),Ce(8,"button",5),Ne("click",function(){return Ct(i),wt(r.saveCollage())}),Ut(9,"Save Collage"),Ae()()()}},dependencies:[hr],styles:[".collage-container[_ngcontent-%COMP%]{width:100vw;height:100vh;position:relative;overflow:hidden}canvas[_ngcontent-%COMP%]{position:absolute;top:0;left:0;cursor:move}.controls[_ngcontent-%COMP%]{position:fixed;bottom:20px;left:50%;transform:translate(-50%);display:flex;gap:10px;z-index:1000}.controls[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:10px 20px;border-radius:20px;border:none;background:#007bffe6;color:#fff;cursor:pointer;transition:transform .2s}.controls[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{transform:scale(1.05);background:#007bff}"]})};var rE={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},nA=B(g({},rE),{"[class.ng-submitted]":"isSubmitted"});var iE=new w("CallSetDisabledState",{providedIn:"root",factory:()=>ip}),ip="always";var oE=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=et({type:e})}static{this.\u0275inj=Xe({})}}return e})();var op=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:iE,useValue:n.callSetDisabledState??ip}]}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=et({type:e})}static{this.\u0275inj=Xe({imports:[oE]})}}return e})();var sE=()=>["/collage"];function aE(e,t){if(e&1){let n=io();Ce(0,"button",6),Ne("click",function(){Ct(n);let i=Ja(2);return wt(i.installPwa())}),Ut(1," Install App "),Ae()}}function uE(e,t){if(e&1&&(Ce(0,"div",1),Et(1,"img",2),Ce(2,"div",3)(3,"h1"),Ut(4,"Welcome to Moments"),Ae(),Ce(5,"button",4),Ut(6," Create Collage "),Ae(),no(7,aE,2,0,"button",5),Ae()()),e&2){let n=Ja();Ha(5),fr("routerLink",Rf(2,sE)),Ha(2),fr("ngIf",n.showInstallButton)}}var qn=class e{constructor(t){this.router=t;t.events.pipe(W(n=>n instanceof Ee)).subscribe(n=>{this.showWelcome=n.url==="/home"||n.url==="/"})}deferredPrompt;showInstallButton=!1;showWelcome=!0;ngOnInit(){window.addEventListener("beforeinstallprompt",t=>{t.preventDefault(),this.deferredPrompt=t,this.showInstallButton=!0})}installPwa(){return Yn(this,null,function*(){if(!this.deferredPrompt)return;this.deferredPrompt.prompt();let{outcome:t}=yield this.deferredPrompt.userChoice;t==="accepted"&&(this.showInstallButton=!1),this.deferredPrompt=null})}static \u0275fac=function(n){return new(n||e)(he(Oe))};static \u0275cmp=En({type:e,selectors:[["app-root"]],standalone:!0,features:[Tn],decls:2,vars:1,consts:[["class","fullscreen-container",4,"ngIf"],[1,"fullscreen-container"],["src","/icons/icon-1024x1024.png","alt","Moments Logo",1,"logo"],[1,"content"],[1,"start-button",3,"routerLink"],["class","install-button",3,"click",4,"ngIf"],[1,"install-button",3,"click"]],template:function(n,r){n&1&&(no(0,uE,8,3,"div",0),Et(1,"router-outlet")),n&2&&fr("ngIf",r.showWelcome)},dependencies:[Zu,hr,Kf,op,rp,Qh],styles:[".fullscreen-container[_ngcontent-%COMP%]{position:relative;width:100vw;height:100vh;overflow:hidden}.fullscreen-container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover}.content[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center;z-index:1}.content[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{color:#fff;font-size:3rem;text-shadow:2px 2px 4px rgba(0,0,0,.5);margin-bottom:2rem}.start-button[_ngcontent-%COMP%]{padding:12px 24px;background-color:#007bff;color:#fff;border:none;border-radius:24px;font-size:1.1rem;cursor:pointer;box-shadow:0 2px 5px #0003;transition:transform .2s}.start-button[_ngcontent-%COMP%]:hover{transform:scale(1.05);background-color:#0056b3}.install-button[_ngcontent-%COMP%]{position:fixed;bottom:20px;right:20px;padding:12px 24px;background-color:#007bff;color:#fff;border:none;border-radius:24px;font-size:1.1rem;cursor:pointer;box-shadow:0 2px 5px #0003;z-index:1000;transition:transform .2s}.install-button[_ngcontent-%COMP%]:hover{transform:scale(1.05);background-color:#0056b3}"]})};var sp=[{path:"",redirectTo:"/home",pathMatch:"full"},{path:"home",component:qn},{path:"collage",component:Po}];var jr="Service workers are disabled or not supported by this browser";function cE(e){return At(()=>ct(new Error(e)))}var Zn=class{constructor(t){if(this.serviceWorker=t,!t)this.worker=this.events=this.registration=cE(jr);else{let r=rn(t,"controllerchange").pipe(b(()=>t.controller)),i=At(()=>D(t.controller)),o=Pe(i,r);this.worker=o.pipe(W(l=>!!l)),this.registration=this.worker.pipe(K(()=>t.getRegistration()));let c=rn(t,"message").pipe(b(l=>l.data)).pipe(W(l=>l&&l.type)).pipe(us());c.connect(),this.events=c}}postMessage(t,n){return this.worker.pipe(q(1),Z(r=>{r.postMessage(g({action:t},n))})).toPromise().then(()=>{})}postMessageWithOperation(t,n,r){let i=this.waitForOperationCompleted(r),o=this.postMessage(t,n);return Promise.all([o,i]).then(([,s])=>s)}generateNonce(){return Math.round(Math.random()*1e7)}eventsOfType(t){let n;return typeof t=="string"?n=r=>r.type===t:n=r=>t.includes(r.type),this.events.pipe(W(n))}nextEventOfType(t){return this.eventsOfType(t).pipe(q(1))}waitForOperationCompleted(t){return this.eventsOfType("OPERATION_COMPLETED").pipe(W(n=>n.nonce===t),q(1),b(n=>{if(n.result!==void 0)return n.result;throw new Error(n.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}},lE=(()=>{class e{get isEnabled(){return this.sw.isEnabled}constructor(n){if(this.sw=n,this.pushManager=null,this.subscriptionChanges=new G,!n.isEnabled){this.messages=Nt,this.notificationClicks=Nt,this.subscription=Nt;return}this.messages=this.sw.eventsOfType("PUSH").pipe(b(i=>i.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe(b(i=>i.data)),this.pushManager=this.sw.registration.pipe(b(i=>i.pushManager));let r=this.pushManager.pipe(K(i=>i.getSubscription()));this.subscription=ai(r,this.subscriptionChanges)}requestSubscription(n){if(!this.sw.isEnabled||this.pushManager===null)return Promise.reject(new Error(jr));let r={userVisibleOnly:!0},i=this.decodeBase64(n.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),o=new Uint8Array(new ArrayBuffer(i.length));for(let s=0;ss.subscribe(r)),q(1)).toPromise().then(s=>(this.subscriptionChanges.next(s),s))}unsubscribe(){if(!this.sw.isEnabled)return Promise.reject(new Error(jr));let n=r=>{if(r===null)throw new Error("Not subscribed to push notifications.");return r.unsubscribe().then(i=>{if(!i)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})};return this.subscription.pipe(q(1),K(n)).toPromise()}decodeBase64(n){return atob(n)}static{this.\u0275fac=function(r){return new(r||e)(I(Zn))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})(),dE=(()=>{class e{get isEnabled(){return this.sw.isEnabled}constructor(n){if(this.sw=n,!n.isEnabled){this.versionUpdates=Nt,this.unrecoverable=Nt;return}this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY","NO_NEW_VERSION_DETECTED"]),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(jr));let n=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:n},n)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(jr));let n=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:n},n)}static{this.\u0275fac=function(r){return new(r||e)(I(Zn))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})();var ap=new w("");function fE(e,t,n,r){return()=>{if(!(ho(r)&&"serviceWorker"in navigator&&n.enabled!==!1))return;let i=e.get(U),o=e.get(Ge);i.runOutsideAngular(()=>{let a=navigator.serviceWorker,u=()=>a.controller?.postMessage({action:"INITIALIZE"});a.addEventListener("controllerchange",u),o.onDestroy(()=>{a.removeEventListener("controllerchange",u)})});let s;if(typeof n.registrationStrategy=="function")s=n.registrationStrategy();else{let[a,...u]=(n.registrationStrategy||"registerWhenStable:30000").split(":");switch(a){case"registerImmediately":s=D(null);break;case"registerWithDelay":s=up(+u[0]||0);break;case"registerWhenStable":let c=j(e.get(Ge).whenStable());s=u[0]?ai(c,up(+u[0])):c;break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${n.registrationStrategy}`)}}i.runOutsideAngular(()=>s.pipe(q(1)).subscribe(()=>navigator.serviceWorker.register(t,{scope:n.scope}).catch(a=>console.error("Service worker registration failed with:",a))))}}function up(e){return D(null).pipe(ss(e))}function hE(e,t){return new Zn(ho(t)&&e.enabled!==!1?navigator.serviceWorker:void 0)}var Vr=class{};function cp(e,t={}){return bn([lE,dE,{provide:ap,useValue:e},{provide:Vr,useValue:t},{provide:Zn,useFactory:hE,deps:[Vr,Te]},{provide:Nn,useFactory:fE,deps:[de,ap,Vr,Te],multi:!0}])}var lp={providers:[Lf({eventCoalescing:!0}),Jh(sp),cp("ngsw-worker.js",{enabled:!jf(),registrationStrategy:"registerWhenStable:30000"})]};ah(qn,lp).catch(e=>console.error(e)); diff --git a/ngsw.json b/ngsw.json index 9650a67..933e940 100644 --- a/ngsw.json +++ b/ngsw.json @@ -1,6 +1,6 @@ { "configVersion": 1, - "timestamp": 1731783161479, + "timestamp": 1731792563180, "index": "/index.html", "assetGroups": [ { @@ -12,7 +12,7 @@ }, "urls": [ "/index.html", - "/main-GQ2Y4EBA.js", + "/main-L6ZYKM2Y.js", "/manifest.webmanifest", "/polyfills-FFHMD2TL.js", "/styles-IH7QB2KV.css" @@ -53,8 +53,8 @@ "/icons/icon-512x512.png": "22aab1c2adcaec3d57b71438ab510cab8c2aa8be", "/icons/icon-72x72.png": "37ba72005c5066d5e7ebf1a34eda07f01038d6c3", "/icons/icon-96x96.png": "c54a9f8a8bc51994079b2926dead222631ef4478", - "/index.html": "8a89bb70e0ce348af9b1d5f71aec7e4bce03303e", - "/main-GQ2Y4EBA.js": "73bfd4891061274e37c77bf92065a36c0a806a3c", + "/index.html": "d256737ae930aee5a2487134af22e2ec5311bccb", + "/main-L6ZYKM2Y.js": "b11a2fe5c91180126e24430cdad964e753aa77f2", "/manifest.webmanifest": "6c2e5a015db86afd19982c24a59eae765c60e468", "/polyfills-FFHMD2TL.js": "f49b49a155bc7d192db62a4c15d0a612b460a667", "/styles-IH7QB2KV.css": "420e493224bf31e7de01bcdf9fd81bb33c95d60c"