diff --git a/404.html b/404.html index e709d9c..d40ebbe 100644 --- a/404.html +++ b/404.html @@ -13,5 +13,5 @@ - + diff --git a/index.html b/index.html index e709d9c..d40ebbe 100644 --- a/index.html +++ b/index.html @@ -13,5 +13,5 @@ - + diff --git a/main-A6IG4OCD.js b/main-A6IG4OCD.js new file mode 100644 index 0000000..175ca36 --- /dev/null +++ b/main-A6IG4OCD.js @@ -0,0 +1,7 @@ +var Vp=Object.defineProperty,jp=Object.defineProperties;var Bp=Object.getOwnPropertyDescriptors;var _c=Object.getOwnPropertySymbols;var Up=Object.prototype.hasOwnProperty,$p=Object.prototype.propertyIsEnumerable;var Mc=(e,t,n)=>t in e?Vp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,g=(e,t)=>{for(var n in t||={})Up.call(t,n)&&Mc(e,n,t[n]);if(_c)for(var n of _c(t))$p.call(t,n)&&Mc(e,n,t[n]);return e},P=(e,t)=>jp(e,Bp(t));var Qn=(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())});function Sc(e,t){return Object.is(e,t)}var W=null,Yr=!1,Qr=1,qe=Symbol("SIGNAL");function F(e){let t=W;return W=e,t}function Tc(){return W}var Jn={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 cs(e){if(Yr)throw new Error("");if(W===null)return;W.consumerOnSignalRead(e);let t=W.nextProducerIndex++;if(ei(W),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function ds(e){ei(e);for(let t=0;t0}function ei(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Oc(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Fc(e){return e.producerNode!==void 0}function Pc(e){let t=Object.create(Gp);t.computation=e;let n=()=>{if(xc(t),cs(t),t.value===Kr)throw t.error;return t.value};return n[qe]=t,n}var as=Symbol("UNSET"),us=Symbol("COMPUTING"),Kr=Symbol("ERRORED"),Gp=P(g({},Jn),{value:as,dirty:!0,error:null,equal:Sc,producerMustRecompute(e){return e.value===as||e.value===us},producerRecomputeValue(e){if(e.value===us)throw new Error("Detected cycle in computations.");let t=e.value;e.value=us;let n=Jr(e),r;try{r=e.computation()}catch(i){r=Kr,e.error=i}finally{ls(e,n)}if(t!==as&&t!==Kr&&r!==Kr&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++}});function Wp(){throw new Error}var kc=Wp;function Lc(){kc()}function Vc(e){kc=e}var qp=null;function jc(e){let t=Object.create(Uc);t.value=e;let n=()=>(cs(t),t.value);return n[qe]=t,n}function hs(e,t){Nc()||Lc(),e.equal(e.value,t)||(e.value=t,Zp(e))}function Bc(e,t){Nc()||Lc(),hs(e,t(e.value))}var Uc=P(g({},Jn),{equal:Sc,value:void 0});function Zp(e){e.version++,Hp(),Ac(e),qp?.()}function v(e){return typeof e=="function"}function qt(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 ti=qt(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 Et(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 ti?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{$c(o)}catch(s){t=t??[],s instanceof ti?t=[...t,...s.errors]:t.push(s)}}if(t)throw new ti(t)}}add(t){var n;if(t&&t!==this)if(this.closed)$c(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)&&Et(n,t)}remove(t){let{_finalizers:n}=this;n&&Et(n,t),t instanceof e&&t._removeParent(this)}};z.EMPTY=(()=>{let e=new z;return e.closed=!0,e})();var ps=z.EMPTY;function ni(e){return e instanceof z||e&&"closed"in e&&v(e.remove)&&v(e.add)&&v(e.unsubscribe)}function $c(e){v(e)?e():e.unsubscribe()}var be={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Zt={setTimeout(e,t,...n){let{delegate:r}=Zt;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Zt;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function ri(e){Zt.setTimeout(()=>{let{onUnhandledError:t}=be;if(t)t(e);else throw e})}function Ze(){}var Hc=gs("C",void 0,void 0);function zc(e){return gs("E",void 0,e)}function Gc(e){return gs("N",e,void 0)}function gs(e,t,n){return{kind:e,value:t,error:n}}var It=null;function Yt(e){if(be.useDeprecatedSynchronousErrorHandling){let t=!It;if(t&&(It={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=It;if(It=null,n)throw r}}else e()}function Wc(e){be.useDeprecatedSynchronousErrorHandling&&It&&(It.errorThrown=!0,It.error=e)}var bt=class extends z{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,ni(t)&&t.add(this)):this.destination=Kp}static create(t,n,r){return new Qt(t,n,r)}next(t){this.isStopped?vs(Gc(t),this):this._next(t)}error(t){this.isStopped?vs(zc(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?vs(Hc,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()}}},Yp=Function.prototype.bind;function ms(e,t){return Yp.call(e,t)}var ys=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){ii(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){ii(r)}else ii(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){ii(n)}}},Qt=class extends bt{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&&ms(t.next,o),error:t.error&&ms(t.error,o),complete:t.complete&&ms(t.complete,o)}):i=t}this.destination=new ys(i)}};function ii(e){be.useDeprecatedSynchronousErrorHandling?Wc(e):ri(e)}function Qp(e){throw e}function vs(e,t){let{onStoppedNotification:n}=be;n&&Zt.setTimeout(()=>n(e,t))}var Kp={closed:!0,next:Ze,error:Qp,complete:Ze};var Kt=typeof Symbol=="function"&&Symbol.observable||"@@observable";function le(e){return e}function Ds(...e){return Cs(e)}function Cs(e){return e.length===0?le:e.length===1?e[0]:function(n){return e.reduce((r,i)=>i(r),n)}}var S=(()=>{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=Xp(n)?n:new Qt(n,r,i);return Yt(()=>{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=qc(r),new r((i,o)=>{let s=new Qt({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)}[Kt](){return this}pipe(...n){return Cs(n)(this)}toPromise(n){return n=qc(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 qc(e){var t;return(t=e??be.Promise)!==null&&t!==void 0?t:Promise}function Jp(e){return e&&v(e.next)&&v(e.error)&&v(e.complete)}function Xp(e){return e&&e instanceof bt||Jp(e)&&ni(e)}function ws(e){return v(e?.lift)}function T(e){return t=>{if(ws(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 x(e,t,n,r,i){return new Es(e,t,n,r,i)}var Es=class extends bt{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 Jt(){return T((e,t)=>{let n=null;e._refCount++;let r=x(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 at=class extends S{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,ws(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(x(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 Jt()(this)}};var Zc=qt(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var U=(()=>{class e extends S{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new oi(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Zc}next(n){Yt(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Yt(()=>{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(){Yt(()=>{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?ps:(this.currentObservers=null,o.push(n),new z(()=>{this.currentObservers=null,Et(o,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){let n=new S;return n.source=this,n}}return e.create=(t,n)=>new oi(t,n),e})(),oi=class extends U{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:ps}};var J=class extends U{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 Is={now(){return(Is.delegate||Date).now()},delegate:void 0};var si=class extends z{constructor(t,n){super()}schedule(t,n=0){return this}};var Xn={setInterval(e,t,...n){let{delegate:r}=Xn;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=Xn;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var ai=class extends si{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 Xn.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&&Xn.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,Et(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var Xt=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)}};Xt.now=Is.now;var ui=class extends Xt{constructor(t,n=Xt.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 bs=new ui(ai),Yc=bs;var re=new S(e=>e.complete());function ci(e){return e&&v(e.schedule)}function _s(e){return e[e.length-1]}function li(e){return v(_s(e))?e.pop():void 0}function Oe(e){return ci(_s(e))?e.pop():void 0}function Qc(e,t){return typeof _s(e)=="number"?e.pop():t}function Jc(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 Kc(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 _t(e){return this instanceof _t?(this.v=e,this):new _t(e)}function Xc(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(p){return Promise.resolve(p).then(f,d)}}function a(f,p){r[f]&&(i[f]=function(_){return new Promise(function(O,k){o.push([f,_,O,k])>1||u(f,_)})},p&&(i[f]=p(i[f])))}function u(f,p){try{c(r[f](p))}catch(_){h(o[0][3],_)}}function c(f){f.value instanceof _t?Promise.resolve(f.value.v).then(l,d):h(o[0][2],f)}function l(f){u("next",f)}function d(f){u("throw",f)}function h(f,p){f(p),o.shift(),o.length&&u(o[0][0],o[0][1])}}function el(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 Kc=="function"?Kc(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 en=e=>e&&typeof e.length=="number"&&typeof e!="function";function di(e){return v(e?.then)}function fi(e){return v(e[Kt])}function hi(e){return Symbol.asyncIterator&&v(e?.[Symbol.asyncIterator])}function pi(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 eg(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var gi=eg();function mi(e){return v(e?.[gi])}function vi(e){return Xc(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:i}=yield _t(n.read());if(i)return yield _t(void 0);yield yield _t(r)}}finally{n.releaseLock()}})}function yi(e){return v(e?.getReader)}function V(e){if(e instanceof S)return e;if(e!=null){if(fi(e))return tg(e);if(en(e))return ng(e);if(di(e))return rg(e);if(hi(e))return tl(e);if(mi(e))return ig(e);if(yi(e))return og(e)}throw pi(e)}function tg(e){return new S(t=>{let n=e[Kt]();if(v(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function ng(e){return new S(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,ri)})}function ig(e){return new S(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function tl(e){return new S(t=>{sg(e,t).catch(n=>t.error(n))})}function og(e){return tl(vi(e))}function sg(e,t){var n,r,i,o;return Jc(this,void 0,void 0,function*(){try{for(n=el(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 ae(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 Di(e,t=0){return T((n,r)=>{n.subscribe(x(r,i=>ae(r,e,()=>r.next(i),t),()=>ae(r,e,()=>r.complete(),t),i=>ae(r,e,()=>r.error(i),t)))})}function Ci(e,t=0){return T((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function nl(e,t){return V(e).pipe(Ci(t),Di(t))}function rl(e,t){return V(e).pipe(Ci(t),Di(t))}function il(e,t){return new S(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function ol(e,t){return new S(n=>{let r;return ae(n,t,()=>{r=e[gi](),ae(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 wi(e,t){if(!e)throw new Error("Iterable cannot be null");return new S(n=>{ae(n,t,()=>{let r=e[Symbol.asyncIterator]();ae(n,t,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function sl(e,t){return wi(vi(e),t)}function al(e,t){if(e!=null){if(fi(e))return nl(e,t);if(en(e))return il(e,t);if(di(e))return rl(e,t);if(hi(e))return wi(e,t);if(mi(e))return ol(e,t);if(yi(e))return sl(e,t)}throw pi(e)}function B(e,t){return t?al(e,t):V(e)}function w(...e){let t=Oe(e);return B(e,t)}function ut(e,t){let n=v(e)?e:()=>e,r=i=>i.error(n());return new S(t?i=>t.schedule(r,0,i):r)}function Ms(e){return!!e&&(e instanceof S||v(e.lift)&&v(e.subscribe))}var Ye=qt(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function ul(e){return e instanceof Date&&!isNaN(e)}function I(e,t){return T((n,r)=>{let i=0;n.subscribe(x(r,o=>{r.next(e.call(t,o,i++))}))})}var{isArray:ag}=Array;function ug(e,t){return ag(t)?e(...t):e(t)}function tn(e){return I(t=>ug(e,t))}var{isArray:cg}=Array,{getPrototypeOf:lg,prototype:dg,keys:fg}=Object;function Ei(e){if(e.length===1){let t=e[0];if(cg(t))return{args:t,keys:null};if(hg(t)){let n=fg(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function hg(e){return e&&typeof e=="object"&&lg(e)===dg}function Ii(e,t){return e.reduce((n,r,i)=>(n[r]=t[i],n),{})}function bi(...e){let t=Oe(e),n=li(e),{args:r,keys:i}=Ei(e);if(r.length===0)return B([],t);let o=new S(pg(r,t,i?s=>Ii(i,s):le));return n?o.pipe(tn(n)):o}function pg(e,t,n=le){return r=>{cl(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(x(r,d=>{o[u]=d,l||(l=!0,a--),a||r.next(n(o.slice()))},()=>{--s||r.complete()}))},r)},r)}}function cl(e,t,n){e?ae(n,e,t):t()}function ll(e,t,n,r,i,o,s,a){let u=[],c=0,l=0,d=!1,h=()=>{d&&!u.length&&!c&&t.complete()},f=_=>c{o&&t.next(_),c++;let O=!1;V(n(_,l++)).subscribe(x(t,k=>{i?.(k),o?f(k):t.next(k)},()=>{O=!0},void 0,()=>{if(O)try{for(c--;u.length&&cp(k)):p(k)}h()}catch(k){t.error(k)}}))};return e.subscribe(x(t,f,()=>{d=!0,h()})),()=>{a?.()}}function $(e,t,n=1/0){return v(t)?$((r,i)=>I((o,s)=>t(r,o,i,s))(V(e(r,i))),n):(typeof t=="number"&&(n=t),T((r,i)=>ll(r,i,e,n)))}function er(e=1/0){return $(le,e)}function dl(){return er(1)}function Fe(...e){return dl()(B(e,Oe(e)))}function Mt(e){return new S(t=>{V(e()).subscribe(t)})}function Ss(...e){let t=li(e),{args:n,keys:r}=Ei(e),i=new S(o=>{let{length:s}=n;if(!s){o.complete();return}let a=new Array(s),u=s,c=s;for(let l=0;l{d||(d=!0,c--),a[l]=h},()=>u--,void 0,()=>{(!u||!d)&&(c||o.next(r?Ii(r,a):a),o.complete())}))}});return t?i.pipe(tn(t)):i}var gg=["addListener","removeListener"],mg=["addEventListener","removeEventListener"],vg=["on","off"];function nn(e,t,n,r){if(v(n)&&(r=n,n=void 0),r)return nn(e,t,n).pipe(tn(r));let[i,o]=Cg(e)?mg.map(s=>a=>e[s](t,a,n)):yg(e)?gg.map(fl(e,t)):Dg(e)?vg.map(fl(e,t)):[];if(!i&&en(e))return $(s=>nn(s,t,n))(V(e));if(!i)throw new TypeError("Invalid event target");return new S(s=>{let a=(...u)=>s.next(1o(a)})}function fl(e,t){return n=>r=>e[n](t,r)}function yg(e){return v(e.addListener)&&v(e.removeListener)}function Dg(e){return v(e.on)&&v(e.off)}function Cg(e){return v(e.addEventListener)&&v(e.removeEventListener)}function hl(e=0,t,n=Yc){let r=-1;return t!=null&&(ci(t)?n=t:r=t),new S(i=>{let o=ul(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 _i(...e){let t=Oe(e),n=Qc(e,1/0),r=e;return r.length?r.length===1?V(r[0]):er(n)(B(r,t)):re}var St=new S(Ze);function te(e,t){return T((n,r)=>{let i=0;n.subscribe(x(r,o=>e.call(t,o,i++)&&r.next(o)))})}function ct(e){return T((t,n)=>{let r=null,i=!1,o;r=t.subscribe(x(n,void 0,void 0,s=>{o=V(e(s,ct(e)(t))),r?(r.unsubscribe(),r=null,o.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(n))})}function pl(e,t,n,r,i){return(o,s)=>{let a=n,u=t,c=0;o.subscribe(x(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 rn(e,t){return v(t)?$(e,t,1):$(e,1)}function gl(e){return new S(t=>e.subscribe(t))}var wg={connector:()=>new U};function Mi(e,t=wg){let{connector:n}=t;return T((r,i)=>{let o=n();V(e(gl(o))).subscribe(i),i.add(r.subscribe(o))})}function lt(e){return T((t,n)=>{let r=!1;t.subscribe(x(n,i=>{r=!0,n.next(i)},()=>{r||n.next(e),n.complete()}))})}function q(e){return e<=0?()=>re:T((t,n)=>{let r=0;t.subscribe(x(n,i=>{++r<=e&&(n.next(i),e<=r&&n.complete())}))})}function ml(){return T((e,t)=>{e.subscribe(x(t,Ze))})}function tr(e){return I(()=>e)}function Ts(e,t){return t?n=>Fe(t.pipe(q(1),ml()),n.pipe(Ts(e))):$((n,r)=>V(e(n,r)).pipe(q(1),tr(n)))}function xs(e,t=bs){let n=hl(e,t);return Ts(()=>n)}function Si(e=Eg){return T((t,n)=>{let r=!1;t.subscribe(x(n,i=>{r=!0,n.next(i)},()=>r?n.complete():n.error(e())))})}function Eg(){return new Ye}function nr(e){return T((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Pe(e,t){let n=arguments.length>=2;return r=>r.pipe(e?te((i,o)=>e(i,o,r)):le,q(1),n?lt(t):Si(()=>new Ye))}function on(e){return e<=0?()=>re:T((t,n)=>{let r=[];t.subscribe(x(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?te((i,o)=>e(i,o,r)):le,on(1),n?lt(t):Si(()=>new Ye))}function vl(e,t){let n=v(e)?e:()=>e;return v(t)?Mi(t,{connector:n}):r=>new at(r,n)}function Ns(e){return e?t=>Mi(e)(t):t=>vl(new U)(t)}function Rs(e,t){return T(pl(e,t,arguments.length>=2,!0))}function Os(...e){let t=Oe(e);return T((n,r)=>{(t?Fe(e,n,t):Fe(e,n)).subscribe(r)})}function ne(e,t){return T((n,r)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&r.complete();n.subscribe(x(r,u=>{i?.unsubscribe();let c=0,l=o++;V(e(u,l)).subscribe(i=x(r,d=>r.next(t?t(u,d,l,c++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function Fs(e){return T((t,n)=>{V(e).subscribe(x(n,()=>n.complete(),Ze)),!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?T((i,o)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;i.subscribe(x(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)}))}):le}var ed="https://g.co/ng/security#xss",y=class extends Error{constructor(t,n){super(Ra(t,n)),this.code=t}};function Ra(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}function so(e){return{toString:e}.toString()}function j(e){for(let t in e)if(e[t]===j)return t;throw Error("Could not find renamed property on target object.")}function Ig(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function ue(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(ue).join(", ")+"]";if(e==null)return""+e;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 yl(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var bg=j({__forward_ref__:j});function bn(e){return e.__forward_ref__=bn,e.toString=function(){return ue(this())},e}function ie(e){return td(e)?e():e}function td(e){return typeof e=="function"&&e.hasOwnProperty(bg)&&e.__forward_ref__===bn}function C(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function vt(e){return{providers:e.providers||[],imports:e.imports||[]}}function ao(e){return Dl(e,rd)||Dl(e,id)}function nd(e){return ao(e)!==null}function Dl(e,t){return e.hasOwnProperty(t)?e[t]:null}function _g(e){let t=e&&(e[rd]||e[id]);return t||null}function Cl(e){return e&&(e.hasOwnProperty(wl)||e.hasOwnProperty(Mg))?e[wl]:null}var rd=j({\u0275prov:j}),wl=j({\u0275inj:j}),id=j({ngInjectableDef:j}),Mg=j({ngInjectorDef:j}),D=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=C({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function od(e){return e&&!!e.\u0275providers}var Sg=j({\u0275cmp:j}),Tg=j({\u0275dir:j}),xg=j({\u0275pipe:j}),Ag=j({\u0275mod:j}),ki=j({\u0275fac:j}),or=j({__NG_ELEMENT_ID__:j}),El=j({__NG_ENV_ID__:j});function sd(e){return typeof e=="string"?e:e==null?"":String(e)}function Ng(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():sd(e)}function Rg(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new y(-200,e)}function Oa(e,t){throw new y(-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||{}),Zs;function ad(){return Zs}function ge(e){let t=Zs;return Zs=e,t}function ud(e,t,n){let r=ao(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;Oa(e,"Injector")}var Og={},sr=Og,Fg="__NG_DI_FLAG__",Li="ngTempTokenPath",Pg="ngTokenPath",kg=/\n/gm,Lg="\u0275",Il="__source",cn;function Vg(){return cn}function dt(e){let t=cn;return cn=e,t}function jg(e,t=M.Default){if(cn===void 0)throw new y(-203,!1);return cn===null?ud(e,void 0,t):cn.get(e,t&M.Optional?null:void 0,t)}function N(e,t=M.Default){return(ad()||jg)(ie(e),t)}function m(e,t=M.Default){return N(e,uo(t))}function uo(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Ys(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):ue(a)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(kg,` + `)}`}function dn(e,t){let n=e.hasOwnProperty(ki);return n?e[ki]:null}function Fa(e,t){e.forEach(n=>Array.isArray(n)?Fa(n,t):t(n))}function cd(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Vi(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Hg(e,t,n,r){let i=e.length;if(i==t)e.push(n,r);else if(i===1)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;){let o=i-2;e[i]=e[o],i--}e[t]=n,e[t+1]=r}}function zg(e,t,n){let r=hr(e,t);return r>=0?e[r|1]=n:(r=~r,Hg(e,r,t,n)),r}function Ps(e,t){let n=hr(e,t);if(n>=0)return e[n|1]}function hr(e,t){return Gg(e,t,1)}function Gg(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){let o=r+(i-r>>1),s=e[o<t?i=o:r=o+1}return~(i<t){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 Jg(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+=_l(o,i),i=""),r=s,o=o||!_e(r);n++}return i!==""&&(t+=_l(o,i)),t}function rm(e){return e.map(nm).join(",")}function im(e){let t=[],n=[],r=1,i=2;for(;r{let t=yd(e),n=P(g({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===fd.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Ve.Emulated,styles:e.styles||me,_:null,schemas:e.schemas||null,tView:null,id:""});Dd(n);let r=e.dependencies;return n.directiveDefs=Sl(r,!1),n.pipeDefs=Sl(r,!0),n.id=am(n),n})}function om(e){return xt(e)||pd(e)}function sm(e){return e!==null}function yt(e){return so(()=>({type:e.type,bootstrap:e.bootstrap||me,declarations:e.declarations||me,imports:e.imports||me,exports:e.exports||me,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Ml(e,t){if(e==null)return fn;let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],o,s,a=pt.None;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o):(o=i,s=i),t?(n[o]=a!==pt.None?[r,a]:r,t[o]=s):n[o]=r}return n}function He(e){return so(()=>{let t=yd(e);return Dd(t),t})}function xt(e){return e[Sg]||null}function pd(e){return e[Tg]||null}function gd(e){return e[xg]||null}function md(e){let t=xt(e)||pd(e)||gd(e);return t!==null?t.standalone:!1}function vd(e,t){let n=e[Ag]||null;if(!n&&t===!0)throw new Error(`Type ${ue(e)} does not have '\u0275mod' property.`);return n}function yd(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||fn,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||me,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Ml(e.inputs,t),outputs:Ml(e.outputs),debugInfo:null}}function Dd(e){e.features?.forEach(t=>t(e))}function Sl(e,t){if(!e)return null;let n=t?gd:om;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(sm)}function am(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 _n(e){return{\u0275providers:e}}function um(...e){return{\u0275providers:Cd(!0,e),\u0275fromNgModule:!0}}function Cd(e,...t){let n=[],r=new Set,i,o=s=>{n.push(s)};return Fa(t,s=>{let a=s;Ks(a,o,[],r)&&(i||=[],i.push(a))}),i!==void 0&&wd(i,o),n}function wd(e,t){for(let n=0;n{t(o,r)})}}function Ks(e,t,n,r){if(e=ie(e),!e)return!1;let i=null,o=Cl(e),s=!o&&xt(e);if(!o&&!s){let u=e.ngModule;if(o=Cl(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)Ks(c,t,n,r)}}else if(o){if(o.imports!=null&&!a){r.add(i);let c;try{Fa(o.imports,l=>{Ks(l,t,n,r)&&(c||=[],c.push(l))})}finally{}c!==void 0&&wd(c,t)}if(!a){let c=dn(i)||(()=>new i);t({provide:i,useFactory:c,deps:me},i),t({provide:dd,useValue:i,multi:!0},i),t({provide:hn,useValue:()=>N(i),multi:!0},i)}let u=o.providers;if(u!=null&&!a){let c=e;ka(u,l=>{t(l,c)})}}else return!1;return i!==e&&e.providers!==void 0}function ka(e,t){for(let n of e)od(n)&&(n=n.\u0275providers),Array.isArray(n)?ka(n,t):t(n)}var cm=j({provide:String,useValue:j});function Ed(e){return e!==null&&typeof e=="object"&&cm in e}function lm(e){return!!(e&&e.useExisting)}function dm(e){return!!(e&&e.useFactory)}function pn(e){return typeof e=="function"}function fm(e){return!!e.useClass}var lo=new D(""),Ni={},hm={},ks;function La(){return ks===void 0&&(ks=new ji),ks}var ye=class{},ur=class extends ye{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(ld,sn(void 0,this)),i.has("environment")&&this.records.set(ye,sn(void 0,this));let o=this.records.get(lo);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(dd,me,M.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let t=F(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(),F(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let n=dt(this),r=ge(void 0),i;try{return t()}finally{dt(n),ge(r)}}get(t,n=sr,r=M.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(El))return t[El](this);r=uo(r);let i,o=dt(this),s=ge(void 0);try{if(!(r&M.SkipSelf)){let u=this.records.get(t);if(u===void 0){let c=ym(t)&&ao(t);c&&this.injectableDefInScope(c)?u=sn(Js(t),Ni):u=null,this.records.set(t,u)}if(u!=null)return this.hydrate(t,u)}let a=r&M.Self?La():this.parent;return n=r&M.Optional&&n===sr?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Li]=a[Li]||[]).unshift(ue(t)),o)throw a;return Ug(a,t,"R3InjectorError",this.source)}else throw a}finally{ge(s),dt(o)}}resolveInjectorInitializers(){let t=F(null),n=dt(this),r=ge(void 0),i;try{let o=this.get(hn,me,M.Self);for(let s of o)s()}finally{dt(n),ge(r),F(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(ue(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new y(205,!1)}processProvider(t){t=ie(t);let n=pn(t)?t:ie(t&&t.provide),r=gm(t);if(!pn(t)&&t.multi===!0){let i=this.records.get(n);i||(i=sn(void 0,Ni,!0),i.factory=()=>Ys(i.multi),this.records.set(n,i)),n=t,i.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=F(null);try{return n.value===Ni&&(n.value=hm,n.value=n.factory()),typeof n.value=="object"&&n.value&&vm(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{F(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=ie(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 Js(e){let t=ao(e),n=t!==null?t.factory:dn(e);if(n!==null)return n;if(e instanceof D)throw new y(204,!1);if(e instanceof Function)return pm(e);throw new y(204,!1)}function pm(e){if(e.length>0)throw new y(204,!1);let n=_g(e);return n!==null?()=>n.factory(e):()=>new e}function gm(e){if(Ed(e))return sn(void 0,e.useValue);{let t=Id(e);return sn(t,Ni)}}function Id(e,t,n){let r;if(pn(e)){let i=ie(e);return dn(i)||Js(i)}else if(Ed(e))r=()=>ie(e.useValue);else if(dm(e))r=()=>e.useFactory(...Ys(e.deps||[]));else if(lm(e))r=()=>N(ie(e.useExisting));else{let i=ie(e&&(e.useClass||e.provide));if(mm(e))r=()=>new i(...Ys(e.deps));else return dn(i)||Js(i)}return r}function sn(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function mm(e){return!!e.deps}function vm(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function ym(e){return typeof e=="function"||typeof e=="object"&&e instanceof D}function Xs(e,t){for(let n of e)Array.isArray(n)?Xs(n,t):n&&od(n)?Xs(n.\u0275providers,t):t(n)}function Je(e,t){e instanceof ur&&e.assertNotDestroyed();let n,r=dt(e),i=ge(void 0);try{return t()}finally{dt(r),ge(i)}}function Dm(){return ad()!==void 0||Vg()!=null}function Cm(e){return typeof e=="function"}var Xe=0,A=1,E=2,oe=3,Me=4,Te=5,Bi=6,Ui=7,De=8,gn=9,je=10,X=11,cr=12,Tl=13,Mn=14,Be=15,mn=16,an=17,vn=18,fo=19,bd=20,ft=21,Ls=22,ve=23,Se=25,_d=1;var At=7,$i=8,Hi=9,de=10,zi=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(zi||{});function ht(e){return Array.isArray(e)&&typeof e[_d]=="object"}function et(e){return Array.isArray(e)&&e[_d]===!0}function Md(e){return(e.flags&4)!==0}function ho(e){return e.componentOffset>-1}function Va(e){return(e.flags&1)===1}function gt(e){return!!e.template}function ea(e){return(e[E]&512)!==0}var ta=class{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Sd(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function Sn(){return Td}function Td(e){return e.type.prototype.ngOnChanges&&(e.setInput=Em),wm}Sn.ngInherit=!0;function wm(){let e=Ad(this),t=e?.current;if(t){let n=e.previous;if(n===fn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Em(e,t,n,r,i){let o=this.declaredInputs[r],s=Ad(e)||Im(e,{previous:fn,current:null}),a=s.current||(s.current={}),u=s.previous,c=u[o];a[o]=new ta(c&&c.currentValue,n,u===fn),Sd(e,t,i,n)}var xd="__ngSimpleChanges__";function Ad(e){return e[xd]||null}function Im(e,t){return e[xd]=t}var xl=null;var ke=function(e,t,n){xl?.(e,t,n)},bm="svg",_m="math";function Ue(e){for(;Array.isArray(e);)e=e[Xe];return e}function Mm(e,t){return Ue(t[e])}function xe(e,t){return Ue(t[e.index])}function ja(e,t){return e.data[t]}function Sm(e,t){return e[t]}function Dt(e,t){let n=t[e];return ht(n)?n:n[Xe]}function Ba(e){return(e[E]&128)===128}function Tm(e){return et(e[oe])}function Gi(e,t){return t==null?null:e[t]}function Nd(e){e[an]=0}function Rd(e){e[E]&1024||(e[E]|=1024,Ba(e)&&go(e))}function xm(e,t){for(;e>0;)t=t[Mn],e--;return t}function po(e){return!!(e[E]&9216||e[ve]?.dirty)}function na(e){e[je].changeDetectionScheduler?.notify(8),e[E]&64&&(e[E]|=1024),po(e)&&go(e)}function go(e){e[je].changeDetectionScheduler?.notify(0);let t=Nt(e);for(;t!==null&&!(t[E]&8192||(t[E]|=8192,!Ba(t)));)t=Nt(t)}function Od(e,t){if((e[E]&256)===256)throw new y(911,!1);e[ft]===null&&(e[ft]=[]),e[ft].push(t)}function Am(e,t){if(e[ft]===null)return;let n=e[ft].indexOf(t);n!==-1&&e[ft].splice(n,1)}function Nt(e){let t=e[oe];return et(t)?t[oe]:t}var R={lFrame:$d(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Fd=!1;function Nm(){return R.lFrame.elementDepthCount}function Rm(){R.lFrame.elementDepthCount++}function Om(){R.lFrame.elementDepthCount--}function Pd(){return R.bindingsEnabled}function Fm(){return R.skipHydrationRootTNode!==null}function Pm(e){return R.skipHydrationRootTNode===e}function km(){R.skipHydrationRootTNode=null}function H(){return R.lFrame.lView}function Ce(){return R.lFrame.tView}function tt(e){return R.lFrame.contextLView=e,e[De]}function nt(e){return R.lFrame.contextLView=null,e}function fe(){let e=kd();for(;e!==null&&e.type===64;)e=e.parent;return e}function kd(){return R.lFrame.currentTNode}function Lm(){let e=R.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function pr(e,t){let n=R.lFrame;n.currentTNode=e,n.isParent=t}function Ld(){return R.lFrame.isParent}function Vm(){R.lFrame.isParent=!1}function jm(){return R.lFrame.contextLView}function Vd(){return Fd}function Al(e){Fd=e}function Bm(e){return R.lFrame.bindingIndex=e}function Ua(){return R.lFrame.bindingIndex++}function Um(e){let t=R.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function $m(){return R.lFrame.inI18n}function Hm(e,t){let n=R.lFrame;n.bindingIndex=n.bindingRootIndex=e,ra(t)}function zm(){return R.lFrame.currentDirectiveIndex}function ra(e){R.lFrame.currentDirectiveIndex=e}function Gm(e){let t=R.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function jd(e){R.lFrame.currentQueryIndex=e}function Wm(e){let t=e[A];return t.type===2?t.declTNode:t.type===1?e[Te]:null}function Bd(e,t,n){if(n&M.SkipSelf){let i=t,o=e;for(;i=i.parent,i===null&&!(n&M.Host);)if(i=Wm(o),i===null||(o=o[Mn],i.type&10))break;if(i===null)return!1;t=i,e=o}let r=R.lFrame=Ud();return r.currentTNode=t,r.lView=e,!0}function $a(e){let t=Ud(),n=e[A];R.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Ud(){let e=R.lFrame,t=e===null?null:e.child;return t===null?$d(e):t}function $d(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 Hd(){let e=R.lFrame;return R.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var zd=Hd;function Ha(){let e=Hd();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 qm(e){return(R.lFrame.contextLView=xm(e,R.lFrame.contextLView))[De]}function gr(){return R.lFrame.selectedIndex}function Rt(e){R.lFrame.selectedIndex=e}function Gd(){let e=R.lFrame;return ja(e.tView,e.selectedIndex)}function Zm(){return R.lFrame.currentNamespace}var Wd=!0;function za(){return Wd}function Ga(e){Wd=e}function Ym(e,t,n){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){let s=Td(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 Wa(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,Nl(a,o)):Nl(a,o)}var ln=-1,Ot=class{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function Km(e){return e instanceof Ot}function Jm(e){return(e.flags&8)!==0}function Xm(e){return(e.flags&16)!==0}var js={},ia=class{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=uo(r);let i=this.injector.get(t,js,r);return i!==js||n===js?i:this.parentInjector.get(t,n,r)}};function Zd(e){return e!==ln}function Wi(e){return e&32767}function ev(e){return e>>16}function qi(e,t){let n=ev(e),r=t;for(;n>0;)r=r[Mn],n--;return r}var oa=!0;function Rl(e){let t=oa;return oa=e,t}var tv=256,Yd=tv-1,Qd=5,nv=0,Le={};function rv(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(or)&&(r=n[or]),r==null&&(r=n[or]=nv++);let i=r&Yd,o=1<>Qd)]|=o}function Zi(e,t){let n=Kd(e,t);if(n!==-1)return n;let r=t[A];r.firstCreatePass&&(e.injectorIndex=t.length,Bs(r.data,e),Bs(t,null),Bs(r.blueprint,null));let i=qa(e,t),o=e.injectorIndex;if(Zd(i)){let s=Wi(i),a=qi(i,t),u=a[A].data;for(let c=0;c<8;c++)t[o+c]=a[s+c]|u[s+c]}return t[o+8]=i,o}function Bs(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Kd(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function qa(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=nf(i),r===null)return ln;if(n++,i=i[Mn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return ln}function sa(e,t,n){rv(e,t,n)}function Jd(e,t,n){if(n&M.Optional||e!==void 0)return e;Oa(t,"NodeInjector")}function Xd(e,t,n,r){if(n&M.Optional&&r===void 0&&(r=null),!(n&(M.Self|M.Host))){let i=e[gn],o=ge(void 0);try{return i?i.get(t,r,n&M.Optional):ud(t,r,n&M.Optional)}finally{ge(o)}}return Jd(r,t,n)}function ef(e,t,n,r=M.Default,i){if(e!==null){if(t[E]&2048&&!(r&M.Self)){let s=uv(e,t,n,r,Le);if(s!==Le)return s}let o=tf(e,t,n,r,Le);if(o!==Le)return o}return Xd(t,n,r,i)}function tf(e,t,n,r,i){let o=sv(n);if(typeof o=="function"){if(!Bd(t,e,r))return r&M.Host?Jd(i,n,r):Xd(t,n,r,i);try{let s;if(s=o(r),s==null&&!(r&M.Optional))Oa(n);else return s}finally{zd()}}else if(typeof o=="number"){let s=null,a=Kd(e,t),u=ln,c=r&M.Host?t[Be][Te]:null;for((a===-1||r&M.SkipSelf)&&(u=a===-1?qa(e,t):t[a+8],u===ln||!Fl(r,!1)?a=-1:(s=t[A],a=Wi(u),t=qi(u,t)));a!==-1;){let l=t[A];if(Ol(o,a,l.data)){let d=iv(a,t,n,s,r,c);if(d!==Le)return d}u=t[a+8],u!==ln&&Fl(r,t[A].data[a+8]===c)&&Ol(o,a,t)?(s=l,a=Wi(u),t=qi(u,t)):a=-1}}return i}function iv(e,t,n,r,i,o){let s=t[A],a=s.data[e+8],u=r==null?ho(a)&&oa:r!=s&&(a.type&3)!==0,c=i&M.Host&&o===a,l=ov(a,s,n,u,c);return l!==null?yn(t,s,l,a):Le}function ov(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,h=i?a+l:c;for(let f=d;f=u&&p.type===n)return f}if(i){let f=s[u];if(f&>(f)&&f.type===n)return u}return null}function yn(e,t,n,r){let i=e[n],o=t.data;if(Km(i)){let s=i;s.resolving&&Rg(Ng(o[n]));let a=Rl(s.canSeeViewProviders);s.resolving=!0;let u,c=s.injectImpl?ge(s.injectImpl):null,l=Bd(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&&ge(c),Rl(a),s.resolving=!1,zd()}}return i}function sv(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(or)?e[or]:void 0;return typeof t=="number"?t>=0?t&Yd:av:t}function Ol(e,t,n){let r=1<>Qd)]&r)}function Fl(e,t){return!(e&M.Self)&&!(e&M.Host&&t)}var Tt=class{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return ef(this._tNode,this._lView,t,uo(r),n)}};function av(){return new Tt(fe(),H())}function Tn(e){return so(()=>{let t=e.prototype.constructor,n=t[ki]||aa(t),r=Object.prototype,i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){let o=i[ki]||aa(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function aa(e){return td(e)?()=>{let t=aa(ie(e));return t&&t()}:dn(e)}function uv(e,t,n,r,i){let o=e,s=t;for(;o!==null&&s!==null&&s[E]&2048&&!(s[E]&512);){let a=tf(o,s,n,r|M.Self,Le);if(a!==Le)return a;let u=o.parent;if(!u){let c=s[bd];if(c){let l=c.get(n,Le,r);if(l!==Le)return l}u=nf(s),s=s[Mn]}o=u}return i}function nf(e){let t=e[A],n=t.type;return n===2?t.declTNode:n===1?e[Te]:null}function Pl(e,t=null,n=null,r){let i=rf(e,t,n,r);return i.resolveInjectorInitializers(),i}function rf(e,t=null,n=null,r,i=new Set){let o=[n||me,um(e)];return r=r||(typeof e=="object"?void 0:ue(e)),new ur(o,t||La(),r||null,i)}var $e=class e{static{this.THROW_IF_NOT_FOUND=sr}static{this.NULL=new ji}static create(t,n){if(Array.isArray(t))return Pl({name:""},n,t,"");{let r=t.name??"";return Pl({name:r},t.parent,t.providers,r)}}static{this.\u0275prov=C({token:e,providedIn:"any",factory:()=>N(ld)})}static{this.__NG_ELEMENT_ID__=-1}};var cv=new D("");cv.__NG_ELEMENT_ID__=e=>{let t=fe();if(t===null)throw new y(204,!1);if(t.type&2)return t.value;if(e&M.Optional)return null;throw new y(204,!1)};var lv="ngOriginalError";function Us(e){return e[lv]}var of=!0,sf=(()=>{class e{static{this.__NG_ELEMENT_ID__=dv}static{this.__NG_ENV_ID__=n=>n}}return e})(),ua=class extends sf{constructor(t){super(),this._lView=t}onDestroy(t){return Od(this._lView,t),()=>Am(this._lView,t)}};function dv(){return new ua(H())}var xn=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new J(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let 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=C({token:e,providedIn:"root",factory:()=>new e})}}return e})();var ca=class extends U{constructor(t=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=t,Dm()&&(this.destroyRef=m(sf,{optional:!0})??void 0,this.pendingTasks=m(xn,{optional:!0})??void 0)}emit(t){let n=F(null);try{super.next(t)}finally{F(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)})}}},Y=ca;function Yi(...e){}function af(e){let t,n;function r(){e=Yi;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 kl(e){return queueMicrotask(()=>e()),()=>{e=Yi}}var Za="isAngularZone",Qi=Za+"_ID",fv=0,G=class e{constructor(t){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Y(!1),this.onMicrotaskEmpty=new Y(!1),this.onStable=new Y(!1),this.onError=new Y(!1);let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:o=of}=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,gv(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Za)===!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,hv,Yi,Yi);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)}},hv={};function Ya(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 pv(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){af(()=>{e.callbackScheduled=!1,la(e),e.isCheckStableRunning=!0,Ya(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),la(e)}function gv(e){let t=()=>{pv(e)},n=fv++;e._inner=e._inner.fork({name:"angular",properties:{[Za]:!0,[Qi]:n,[Qi+n]:!0},onInvokeTask:(r,i,o,s,a,u)=>{if(mv(u))return r.invokeTask(o,s,a,u);try{return Ll(e),r.invokeTask(o,s,a,u)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Vl(e)}},onInvoke:(r,i,o,s,a,u,c)=>{try{return Ll(e),r.invoke(o,s,a,u,c)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!vv(u)&&t(),Vl(e)}},onHasTask:(r,i,o,s)=>{r.hasTask(o,s),i===o&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,la(e),Ya(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 la(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Ll(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Vl(e){e._nesting--,Ya(e)}var da=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Y,this.onMicrotaskEmpty=new Y,this.onStable=new Y,this.onError=new Y}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 mv(e){return uf(e,"__ignore_ng_zone__")}function vv(e){return uf(e,"__scheduler_tick__")}function uf(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Qe=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&&Us(t);for(;n&&Us(n);)n=Us(n);return n||null}},yv=new D("",{providedIn:"root",factory:()=>{let e=m(G),t=m(Qe);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function Dv(){return Qa(fe(),H())}function Qa(e,t){return new kt(xe(e,t))}var kt=(()=>{class e{constructor(n){this.nativeElement=n}static{this.__NG_ELEMENT_ID__=Dv}}return e})();function cf(e){return(e.flags&128)===128}var lf=new Map,Cv=0;function wv(){return Cv++}function Ev(e){lf.set(e[fo],e)}function fa(e){lf.delete(e[fo])}var jl="__ngContext__";function Ft(e,t){ht(t)?(e[jl]=t[fo],Ev(t)):e[jl]=t}function df(e){return hf(e[cr])}function ff(e){return hf(e[Me])}function hf(e){for(;e!==null&&!et(e);)e=e[Me];return e}var ha;function pf(e){ha=e}function Iv(){if(ha!==void 0)return ha;if(typeof document<"u")return document;throw new y(210,!1)}var Ka=new D("",{providedIn:"root",factory:()=>bv}),bv="ng",Ja=new D(""),rt=new D("",{providedIn:"platform",factory:()=>"unknown"});var Xa=new D("",{providedIn:"root",factory:()=>Iv().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var _v="h",Mv="b";var Sv=()=>null;function eu(e,t,n=!1){return Sv(e,t,n)}var gf=!1,Tv=new D("",{providedIn:"root",factory:()=>gf});var Ki=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${ed})`}};function mo(e){return e instanceof Ki?e.changingThisBreaksApplicationSecurity:e}function mf(e,t){let n=xv(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${ed})`)}return n===t}function xv(e){return e instanceof Ki&&e.getTypeName()||null}var Av=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function vf(e){return e=String(e),e.match(Av)?e:"unsafe:"+e}var tu=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}(tu||{});function yf(e){let t=Nv();return t?t.sanitize(tu.URL,e)||"":mf(e,"URL")?mo(e):vf(sd(e))}function Nv(){let e=H();return e&&e[je].sanitizer}function Df(e){return e instanceof Function?e():e}var Ke=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Ke||{}),Rv;function nu(e,t){return Rv(e,t)}function un(e,t,n,r,i){if(r!=null){let o,s=!1;et(r)?o=r:ht(r)&&(s=!0,r=r[Xe]);let a=Ue(r);e===0&&n!==null?i==null?If(t,n,a):Xi(t,n,a,i||null,!0):e===1&&n!==null?Xi(t,n,a,i||null,!0):e===2?Wv(t,a,s):e===3&&t.destroyNode(a),o!=null&&Zv(t,e,o,n,i)}}function Ov(e,t){return e.createText(t)}function Cf(e,t,n){return e.createElement(t,n)}function Fv(e,t){wf(e,t),t[Xe]=null,t[Te]=null}function Pv(e,t,n,r,i,o){r[Xe]=i,r[Te]=t,vo(e,r,n,1,i,o)}function wf(e,t){t[je].changeDetectionScheduler?.notify(9),vo(e,t,t[X],2,null,null)}function kv(e){let t=e[cr];if(!t)return $s(e[A],e);for(;t;){let n=null;if(ht(t))n=t[cr];else{let r=t[de];r&&(n=r)}if(!n){for(;t&&!t[Me]&&t!==e;)ht(t)&&$s(t[A],t),t=t[oe];t===null&&(t=e),ht(t)&&$s(t[A],t),n=t&&t[Me]}t=n}}function Lv(e,t,n,r){let i=de+r,o=n.length;r>0&&(n[i-1][Me]=t),r0&&(e[n-1][Me]=r[Me]);let o=Vi(e,de+t);Fv(r[A],r);let s=o[vn];s!==null&&s.detachView(o[A]),r[oe]=null,r[Me]=null,r[E]&=-129}return r}function iu(e,t){if(!(t[E]&256)){let n=t[X];n.destroyNode&&vo(e,t,n,3,null,null),kv(t)}}function $s(e,t){if(t[E]&256)return;let n=F(null);try{t[E]&=-129,t[E]|=256,t[ve]&&fs(t[ve]),jv(e,t),Vv(e,t),t[A].type===1&&t[X].destroy();let r=t[mn];if(r!==null&&et(t[oe])){r!==t[oe]&&ru(r,t);let i=t[vn];i!==null&&i.detachView(e)}fa(t)}finally{F(n)}}function Vv(e,t){let n=e.cleanup,r=t[Ui];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[Ui]=null);let i=t[ft];if(i!==null){t[ft]=null;for(let o=0;o-1){let{encapsulation:o}=e.data[r.directiveStart+i];if(o===Ve.None||o===Ve.Emulated)return null}return xe(r,n)}}function Xi(e,t,n,r,i){e.insertBefore(t,n,r,i)}function If(e,t,n){e.appendChild(t,n)}function Bl(e,t,n,r,i){r!==null?Xi(e,t,n,r,i):If(e,t,n)}function bf(e,t){return e.parentNode(t)}function $v(e,t){return e.nextSibling(t)}function Hv(e,t,n){return Gv(e,t,n)}function zv(e,t,n){return e.type&40?xe(e,n):null}var Gv=zv,Ul;function ou(e,t,n,r){let i=Bv(e,r,t),o=t[X],s=r.parent||t[Te],a=Hv(s,r,t);if(i!=null)if(Array.isArray(n))for(let u=0;uSe&&Tf(e,t,Se,!1),ke(s?2:0,i),n(r,i)}finally{Rt(o),ke(s?3:1,i)}}function Rf(e,t,n){if(Md(t)){let r=F(null);try{let i=t.directiveStart,o=t.directiveEnd;for(let s=i;snull;function ry(e,t,n,r,i,o){let s=t?t.injectorIndex:-1,a=0;return Fm()&&(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 $l(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=pt.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?Hl(r,n,c,a,u):Hl(r,n,c,a)}return r}function Hl(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 iy(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 cy(e,t,n,r){let i=n.directiveStart,o=n.directiveEnd;ho(n)&&my(t,n,e.data[i+n.componentOffset]),e.firstCreatePass||Zi(n,t),Ft(r,t);let s=n.initialInputs;for(let a=i;a{go(e.lView)},consumerOnSignalRead(){this.lView[ve]=this}});function Ry(e){let t=e[ve]??Object.create(Oy);return t.lView=e,t}var Oy=P(g({},Jn),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=Nt(e.lView);for(;t&&!Gf(t[A]);)t=Nt(t);t&&Rd(t)},consumerOnSignalRead(){this.lView[ve]=this}});function Gf(e){return e.type!==2}var Fy=100;function Wf(e,t=!0,n=0){let r=e[je],i=r.rendererFactory,o=!1;o||i.begin?.();try{Py(e,n)}catch(s){throw t&&$f(e,s),s}finally{o||(i.end?.(),r.inlineEffectRunner?.flush())}}function Py(e,t){let n=Vd();try{Al(!0),ya(e,t);let r=0;for(;po(e);){if(r===Fy)throw new y(103,!1);r++,ya(e,1)}}finally{Al(n)}}function ky(e,t,n,r){let i=t[E];if((i&256)===256)return;let o=!1,s=!1;!o&&t[je].inlineEffectRunner?.flush(),$a(t);let a=!0,u=null,c=null;o||(Gf(e)?(c=Ty(t),u=Jr(c)):Tc()===null?(a=!1,c=Ry(t),u=Jr(c)):t[ve]&&(fs(t[ve]),t[ve]=null));try{Nd(t),Bm(e.bindingStartIndex),n!==null&&Nf(e,t,n,2,r);let l=(i&3)===3;if(!o)if(l){let f=e.preOrderCheckHooks;f!==null&&Ri(t,f,null)}else{let f=e.preOrderHooks;f!==null&&Oi(t,f,0,null),Vs(t,0)}if(s||Ly(t),qf(t,0),e.contentQueries!==null&&Uf(e,t),!o)if(l){let f=e.contentCheckHooks;f!==null&&Ri(t,f)}else{let f=e.contentHooks;f!==null&&Oi(t,f,1),Vs(t,1)}Kv(e,t);let d=e.components;d!==null&&Yf(t,d,0);let h=e.viewQuery;if(h!==null&&ma(2,h,r),!o)if(l){let f=e.viewCheckHooks;f!==null&&Ri(t,f)}else{let f=e.viewHooks;f!==null&&Oi(t,f,2),Vs(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Ls]){for(let f of t[Ls])f();t[Ls]=null}o||(t[E]&=-73)}catch(l){throw o||go(t),l}finally{c!==null&&(ls(c,u),a&&Ay(c)),Ha()}}function qf(e,t){for(let n=df(e);n!==null;n=ff(n))for(let r=de;r-1&&(Ji(t,r),Vi(n,r))}this._attachedToViewContainer=!1}iu(this._lView[A],this._lView)}onDestroy(t){Od(this._lView,t)}markForCheck(){lu(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[E]&=-129}reattach(){na(this._lView),this._lView[E]|=128}detectChanges(){this._lView[E]|=1024,Wf(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new y(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=ea(this._lView),n=this._lView[mn];n!==null&&!t&&ru(n,this._lView),wf(this._lView[A],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new y(902,!1);this._appRef=t;let n=ea(this._lView),r=this._lView[mn];r!==null&&!n&&Ef(r,this._lView),na(this._lView)}};var wx=new RegExp(`^(\\d+)*(${Mv}|${_v})*(.*)`);var jy=()=>null;function Da(e,t){return jy(e,t)}var Cn=class{},wo=new D("",{providedIn:"root",factory:()=>!1});var Qf=new D(""),Kf=new D(""),Ca=class{},to=class{};function By(e){let t=Error(`No component factory found for ${ue(e)}.`);return t[Uy]=e,t}var Uy="ngComponent";var wa=class{resolveComponentFactory(t){throw By(t)}},wn=class{static{this.NULL=new wa}},En=class{},Nn=(()=>{class e{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>$y()}}return e})();function $y(){let e=H(),t=fe(),n=Dt(t.index,e);return(ht(n)?n:e)[X]}var Hy=(()=>{class e{static{this.\u0275prov=C({token:e,providedIn:"root",factory:()=>null})}}return e})();function Ea(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,o=0;if(t!==null)for(let s=0;s0&&Mf(e,n,o.join(" "))}}function Qy(e,t,n){let r=e.projection=[];for(let i=0;i{class e{static{this.__NG_ELEMENT_ID__=Jy}}return e})();function Jy(){let e=fe();return eD(e,H())}var Xy=Eo,Jf=class extends Xy{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Qa(this._hostTNode,this._hostLView)}get injector(){return new Tt(this._hostTNode,this._hostLView)}get parentInjector(){let t=qa(this._hostTNode,this._hostLView);if(Zd(t)){let n=qi(t,this._hostLView),r=Wi(t),i=n[A].data[r+8];return new Tt(i,n)}else return new Tt(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-de}createEmbeddedView(t,n,r){let i,o;typeof r=="number"?i=r:r!=null&&(i=r.index,o=r.injector);let s=Da(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},o,s);return this.insertImpl(a,i,va(this._hostTNode,s)),a}createComponent(t,n,r,i,o){let s=t&&!Cm(t),a;if(s)a=n;else{let p=n||{};a=p.index,r=p.injector,i=p.projectableNodes,o=p.environmentInjector||p.ngModuleRef}let u=s?t:new lr(xt(t)),c=r||this.parentInjector;if(!o&&u.ngModule==null){let _=(s?c:this.parentInjector).get(ye,null);_&&(o=_)}let l=xt(u.componentType??{}),d=Da(this._lContainer,l?.id??null),h=d?.firstChild??null,f=u.create(c,i,h,o);return this.insertImpl(f.hostView,a,va(this._hostTNode,d)),f}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let i=t._lView;if(Tm(i)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let u=i[oe],c=new Jf(u,u[Te],u[oe]);c.detach(c.indexOf(t))}}let o=this._adjustIndex(n),s=this._lContainer;return Hf(s,i,o,r),t.attachToViewContainerRef(),cd(Hs(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=Ji(this._lContainer,n);r&&(Vi(Hs(this._lContainer),n),iu(r[A],r))}detach(t){let n=this._adjustIndex(t,-1),r=Ji(this._lContainer,n);return r&&Vi(Hs(this._lContainer),n)!=null?new Dn(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Gl(e){return e[$i]}function Hs(e){return e[$i]||(e[$i]=[])}function eD(e,t){let n,r=t[e.index];return et(r)?n=r:(n=Bf(r,t,null,e),t[e.index]=n,Co(t,n)),nD(n,t,e,r),new Jf(n,e,t)}function tD(e,t){let n=e[X],r=n.createComment(""),i=xe(t,e),o=bf(n,i);return Xi(n,o,r,$v(n,i),!1),r}var nD=oD,rD=()=>!1;function iD(e,t,n){return rD(e,t,n)}function oD(e,t,n,r){if(e[At])return;let i;n.type&8?i=Ue(r):i=tD(t,n),e[At]=i}var Wl=new Set;function Rn(e){Wl.has(e)||(Wl.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function sD(e){return typeof e=="function"&&e[qe]!==void 0}function Io(e,t){Rn("NgSignals");let n=jc(e),r=n[qe];return t?.equal&&(r.equal=t.equal),n.set=i=>hs(r,i),n.update=i=>Bc(r,i),n.asReadonly=aD.bind(n),n}function aD(){let e=this[qe];if(e.readonlyFn===void 0){let t=()=>this();t[qe]=e,e.readonlyFn=t}return e.readonlyFn}function Xf(e){return sD(e)&&typeof e.set=="function"}function uD(e){return Object.getPrototypeOf(e.prototype).constructor}function Lt(e){let t=uD(e.type),n=!0,r=[e];for(;t;){let i;if(gt(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new y(903,!1);i=t.\u0275dir}if(i){if(n){r.push(i);let s=e;s.inputs=Ti(e.inputs),s.inputTransforms=Ti(e.inputTransforms),s.declaredInputs=Ti(e.declaredInputs),s.outputs=Ti(e.outputs);let a=i.hostBindings;a&&hD(e,a);let u=i.viewQuery,c=i.contentQueries;if(u&&dD(e,u),c&&fD(e,c),cD(e,i),Ig(e.outputs,i.outputs),gt(i)&&i.data.animation){let l=e.data;l.animation=(l.animation||[]).concat(i.data.animation)}}let o=i.features;if(o)for(let s=0;s=0;r--){let i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=ar(i.hostAttrs,n=ar(n,i.hostAttrs))}}function Ti(e){return e===fn?{}:e===me?[]:e}function dD(e,t){let n=e.viewQuery;n?e.viewQuery=(r,i)=>{t(r,i),n(r,i)}:e.viewQuery=t}function fD(e,t){let n=e.contentQueries;n?e.contentQueries=(r,i,o)=>{t(r,i,o),n(r,i,o)}:e.contentQueries=t}function hD(e,t){let n=e.hostBindings;n?e.hostBindings=(r,i)=>{t(r,i),n(r,i)}:e.hostBindings=t}var mt=class{},dr=class{};var ba=class extends mt{constructor(t,n,r,i=!0){super(),this.ngModuleType=t,this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new no(this);let o=vd(t);this._bootstrapComponents=Df(o.bootstrap),this._r3Injector=rf(t,n,[{provide:mt,useValue:this},{provide:wn,useValue:this.componentFactoryResolver},...r],ue(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)}},_a=class extends dr{constructor(t){super(),this.moduleType=t}create(t){return new ba(this.moduleType,t,[])}};var ro=class extends mt{constructor(t){super(),this.componentFactoryResolver=new no(this),this.instance=null;let n=new ur([...t.providers,{provide:mt,useValue:this},{provide:wn,useValue:this.componentFactoryResolver}],t.parent||La(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function du(e,t,n=null){return new ro({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}function bo(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function pD(e){return(e.flags&32)===32}function gD(e,t,n,r,i,o,s,a,u){let c=t.consts,l=Do(t,e,4,s||null,a||null);Lf(t,n,l,Gi(c,u)),Wa(t,l);let d=l.tView=au(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 mD(e,t,n,r,i,o,s,a,u,c){let l=n+Se,d=t.firstCreatePass?gD(l,t,e,r,i,o,s,a,u):t.data[l];pr(d,!1);let h=vD(t,e,d,n);za()&&ou(t,e,h,d),Ft(h,e);let f=Bf(h,e,h,d);return e[l]=f,Co(e,f),iD(f,d,e),Va(d)&&Of(t,e,d),u!=null&&Ff(e,d,c),d}function fu(e,t,n,r,i,o,s,a){let u=H(),c=Ce(),l=Gi(c.consts,o);return mD(u,c,e,t,n,r,i,l,s,a),fu}var vD=yD;function yD(e,t,n,r){return Ga(!0),t[X].createComment("")}var ir=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(ir||{}),DD=(()=>{class e{constructor(){this.impl=null}execute(){this.impl?.execute()}static{this.\u0275prov=C({token:e,providedIn:"root",factory:()=>new e})}}return e})(),ql=class e{constructor(){this.ngZone=m(G),this.scheduler=m(Cn),this.errorHandler=m(Qe,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}static{this.PHASES=[ir.EarlyRead,ir.Write,ir.MixedReadWrite,ir.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=C({token:e,providedIn:"root",factory:()=>new e})}};function xi(e,t){return e<<17|t<<2}function Pt(e){return e>>17&32767}function CD(e){return(e&2)==2}function wD(e,t){return e&131071|t<<17}function Ma(e){return e|2}function In(e){return(e&131068)>>2}function zs(e,t){return e&-131069|t<<2}function ED(e){return(e&1)===1}function Sa(e){return e|1}function ID(e,t,n,r,i,o){let s=o?t.classBindings:t.styleBindings,a=Pt(s),u=In(s);e[r]=n;let c=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||hr(d,l)>0)&&(c=!0)}else l=n;if(i)if(u!==0){let h=Pt(e[a+1]);e[r+1]=xi(h,a),h!==0&&(e[h+1]=zs(e[h+1],r)),e[a+1]=wD(e[a+1],r)}else e[r+1]=xi(a,0),a!==0&&(e[a+1]=zs(e[a+1],r)),a=r;else e[r+1]=xi(u,0),a===0?a=r:e[u+1]=zs(e[u+1],r),u=r;c&&(e[r+1]=Ma(e[r+1])),Zl(e,l,r,!0),Zl(e,l,r,!1),bD(t,l,e,r,o),s=xi(a,u),o?t.classBindings=s:t.styleBindings=s}function bD(e,t,n,r,i){let o=i?e.residualClasses:e.residualStyles;o!=null&&typeof t=="string"&&hr(o,t)>=0&&(n[r+1]=Sa(n[r+1]))}function Zl(e,t,n,r){let i=e[n+1],o=t===null,s=r?Pt(i):In(i),a=!1;for(;s!==0&&(a===!1||o);){let u=e[s],c=e[s+1];_D(u,t)&&(a=!0,e[s+1]=r?Sa(c):Ma(c)),s=r?Pt(c):In(c)}a&&(e[n+1]=r?Ma(i):Sa(i))}function _D(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?hr(e,t)>=0:!1}function hu(e,t,n){let r=H(),i=Ua();if(bo(r,i,t)){let o=Ce(),s=Gd();kf(o,s,r,e,t,r[X],n,!1)}return hu}function Yl(e,t,n,r,i){let o=t.inputs,s=i?"class":"style";uu(e,n,o[s],s,r)}function vr(e,t){return MD(e,t,null,!0),vr}function MD(e,t,n,r){let i=H(),o=Ce(),s=Um(2);if(o.firstUpdatePass&&TD(o,e,s,r),t!==mr&&bo(i,s,t)){let a=o.data[gr()];OD(o,a,i,i[X],e,i[s+1]=FD(t,n),r,s)}}function SD(e,t){return t>=e.expandoStartIndex}function TD(e,t,n,r){let i=e.data;if(i[n+1]===null){let o=i[gr()],s=SD(e,n);PD(o,r)&&t===null&&!s&&(t=!1),t=xD(i,o,t,r),ID(i,o,t,n,s,r)}}function xD(e,t,n,r){let i=Gm(e),o=r?t.residualClasses:t.residualStyles;if(i===null)(r?t.classBindings:t.styleBindings)===0&&(n=Gs(null,e,t,n,r),n=fr(n,t.attrs,r),o=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==i)if(n=Gs(i,e,t,n,r),o===null){let u=AD(e,t,r);u!==void 0&&Array.isArray(u)&&(u=Gs(null,e,t,u[1],r),u=fr(u,t.attrs,r),ND(e,t,r,u))}else o=RD(e,t,r)}return o!==void 0&&(r?t.residualClasses=o:t.residualStyles=o),n}function AD(e,t,n){let r=n?t.classBindings:t.styleBindings;if(In(r)!==0)return e[Pt(r)]}function ND(e,t,n,r){let i=n?t.classBindings:t.styleBindings;e[Pt(i)]=r}function RD(e,t,n){let r,i=t.directiveEnd;for(let o=1+t.directiveStylingLast;o0;){let u=e[i],c=Array.isArray(u),l=c?u[1]:u,d=l===null,h=n[i+1];h===mr&&(h=d?me:void 0);let f=d?Ps(h,r):l===r?h:void 0;if(c&&!io(f)&&(f=Ps(u,r)),io(f)&&(a=f,s))return a;let p=e[i+1];i=s?Pt(p):In(p)}if(t!==null){let u=o?t.residualClasses:t.residualStyles;u!=null&&(a=Ps(u,r))}return a}function io(e){return e!==void 0}function FD(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=ue(mo(e)))),e}function PD(e,t){return(e.flags&(t?8:16))!==0}function _o(e,t){Rn("NgControlFlow");let n=H(),r=Ua(),i=n[r]!==mr?n[r]:-1,o=i!==-1?Kl(n,Se+i):void 0,s=0;if(bo(n,r,e)){let a=F(null);try{if(o!==void 0&&My(o,s),e!==-1){let u=Se+e,c=Kl(n,u),l=kD(n[A],u),d=Da(c,l.tView.ssrId),h=by(n,l,t,{dehydratedView:d});Hf(c,h,s,va(l,d))}}finally{F(a)}}else if(o!==void 0){let a=_y(o,s);a!==void 0&&(a[De]=t)}}function Kl(e,t){return e[t]}function kD(e,t){return ja(e,t)}function LD(e,t,n,r,i,o){let s=t.consts,a=Gi(s,i),u=Do(t,e,2,r,a);return Lf(t,n,u,Gi(s,o)),u.attrs!==null&&Ea(u,u.attrs,!1),u.mergedAttrs!==null&&Ea(u,u.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,u),u}function Ae(e,t,n,r){let i=H(),o=Ce(),s=Se+e,a=i[X],u=o.firstCreatePass?LD(s,o,i,t,n,r):o.data[s],c=VD(o,i,u,a,t,e);i[s]=c;let l=Va(u);return pr(u,!0),Sf(a,c,u),!pD(u)&&za()&&ou(o,i,c,u),Nm()===0&&Ft(c,i),Rm(),l&&(Of(o,i,u),Rf(o,u,i)),r!==null&&Ff(i,u),Ae}function ze(){let e=fe();Ld()?Vm():(e=e.parent,pr(e,!1));let t=e;Pm(t)&&km(),Om();let n=Ce();return n.firstCreatePass&&(Wa(n,e),Md(e)&&n.queries.elementEnd(e)),t.classesWithoutHost!=null&&Jm(t)&&Yl(n,t,H(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&Xm(t)&&Yl(n,t,H(),t.stylesWithoutHost,!1),ze}function On(e,t,n,r){return Ae(e,t,n,r),ze(),On}var VD=(e,t,n,r,i,o)=>(Ga(!0),Cf(r,i,Zm()));function pu(){return H()}var oo="en-US";var jD=oo;function BD(e){typeof e=="string"&&(jD=e.toLowerCase().replace(/_/g,"-"))}var UD=(e,t,n)=>{};function Ne(e,t,n,r){let i=H(),o=Ce(),s=fe();return eh(o,i,i[X],s,e,t,r),Ne}function $D(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 eh(e,t,n,r,i,o,s){let a=Va(r),c=e.firstCreatePass&&Cy(e),l=t[De],d=Dy(t),h=!0;if(r.type&3||s){let _=xe(r,t),O=s?s(_):_,k=d.length,K=s?Ie=>s(Ue(Ie[r.index])):r.index,se=null;if(!s&&a&&(se=$D(e,t,i,r.index)),se!==null){let Ie=se.__ngLastListenerFn__||se;Ie.__ngNextListenerFn__=o,se.__ngLastListenerFn__=o,h=!1}else{o=Xl(r,t,l,o),UD(_,i,o);let Ie=n.listen(O,i,o);d.push(o,Ie),c&&c.push(i,K,k,k+1)}}else o=Xl(r,t,l,o);let f=r.outputs,p;if(h&&f!==null&&(p=f[i])){let _=p.length;if(_)for(let O=0;O<_;O+=2){let k=p[O],K=p[O+1],Gt=t[k][K].subscribe(o),ce=d.length;d.push(o,Gt),c&&c.push(i,r.index,ce,-(ce+1))}}}function Jl(e,t,n,r){let i=F(null);try{return ke(6,t,n),n(r)!==!1}catch(o){return $f(e,o),!1}finally{ke(7,t,n),F(i)}}function Xl(e,t,n,r){return function i(o){if(o===Function)return r;let s=e.componentOffset>-1?Dt(e.index,t):t;lu(s,5);let a=Jl(t,n,r,o),u=i.__ngNextListenerFn__;for(;u;)a=Jl(t,n,u,o)&&a,u=u.__ngNextListenerFn__;return a}}function Fn(e=1){return qm(e)}function th(e){let t=jm();return Sm(t,Se+e)}function yr(e,t=""){let n=H(),r=Ce(),i=e+Se,o=r.firstCreatePass?Do(r,i,1,t,null):r.data[i],s=HD(r,n,o,t,e);n[i]=s,za()&&ou(r,n,s,o),pr(o,!1)}var HD=(e,t,n,r,i)=>(Ga(!0),Ov(t[X],r));function gu(e,t,n){Xf(t)&&(t=t());let r=H(),i=Ua();if(bo(r,i,t)){let o=Ce(),s=Gd();kf(o,s,r,e,t,r[X],n,!1)}return gu}function nh(e,t){let n=Xf(e);return n&&e.set(t),n}function mu(e,t){let n=H(),r=Ce(),i=fe();return eh(r,n,n[X],i,e,t),mu}function zD(e,t,n){let r=Ce();if(r.firstCreatePass){let i=gt(e);Ta(n,r.data,r.blueprint,i,!0),Ta(t,r.data,r.blueprint,i,!1)}}function Ta(e,t,n,r,i){if(e=ie(e),Array.isArray(e))for(let o=0;o>20;if(pn(e)||!e.multi){let f=new Ot(c,i,Q),p=qs(u,t,i?l:l+h,d);p===-1?(sa(Zi(a,s),o,u),Ws(o,e,t.length),t.push(u),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[p]=f,s[p]=f)}else{let f=qs(u,t,l+h,d),p=qs(u,t,l,l+h),_=f>=0&&n[f],O=p>=0&&n[p];if(i&&!O||!i&&!_){sa(Zi(a,s),o,u);let k=qD(i?WD:GD,n.length,i,r,c);!i&&O&&(n[p].providerFactory=k),Ws(o,e,t.length,0),t.push(u),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(k),s.push(k)}else{let k=rh(n[i?p:f],c,!i&&r);Ws(o,e,f>-1?f:p,k)}!i&&r&&O&&n[p].componentProviders++}}}function Ws(e,t,n,r){let i=pn(t),o=fm(t);if(i||o){let u=(o?ie(t.useClass):t).prototype.ngOnDestroy;if(u){let c=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){let l=c.indexOf(n);l===-1?c.push(n,[r,u]):c[l+1].push(r,u)}else c.push(n,u)}}}function rh(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function qs(e,t,n,r){for(let i=n;i{n.providersResolver=(r,i)=>zD(r,i?i(e):e,t)}}var ZD=(()=>{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=Cd(!1,n.type),i=r.length>0?du([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=C({token:e,providedIn:"environment",factory:()=>new e(N(ye))})}}return e})();function So(e){Rn("NgStandalone"),e.getStandaloneInjector=t=>t.get(ZD).getOrCreateStandaloneInjector(e)}var To=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();var ih=new D("");function Vt(e){return!!e&&typeof e.then=="function"}function oh(e){return!!e&&typeof e.subscribe=="function"}var xo=new D(""),sh=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=m(xo,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let i of this.appInits){let o=i();if(Vt(o))n.push(o);else if(oh(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=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),vu=new D("");function YD(){Vc(()=>{throw new y(600,!1)})}function QD(e){return e.isBoundToModule}var KD=10;function JD(e,t,n){try{let r=n();return Vt(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=m(yv),this.afterRenderManager=m(DD),this.zonelessEnabled=m(wo),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new U,this.afterTick=new U,this.componentTypes=[],this.components=[],this.isStable=m(xn).hasPendingTasks.pipe(I(n=>!n)),this._injector=m(ye)}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 to;if(!this._injector.get(sh).done){let h=!i&&md(n),f=!1;throw new y(405,f)}let s;i?s=n:s=this._injector.get(wn).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=QD(s)?void 0:this._injector.get(mt),u=r||s.selector,c=s.create($e.NULL,[],u,a),l=c.location.nativeElement,d=c.injector.get(ih,null);return d?.registerApplication(l),c.onDestroy(()=>{this.detachView(c.hostView),Fi(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=F(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,F(n),this.afterTick.next()}}synchronize(){let n=null;this._injector.destroyed||(n=this._injector.get(En,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;this.dirtyFlags!==0&&r++po(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;Fi(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let r=this._injector.get(vu,[]);[...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),()=>Fi(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=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Fi(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function XD(e,t,n,r){if(!n&&!po(e))return;Wf(e,t,n&&!r?0:1)}var Aa=class{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},yu=(()=>{class e{compileModuleSync(n){return new _a(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),i=vd(n),o=Df(i.declarations).reduce((s,a)=>{let u=xt(a);return u&&s.push(new lr(u)),s},[]);return new Aa(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=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var eC=(()=>{class e{constructor(){this.zone=m(G),this.changeDetectionScheduler=m(Cn),this.applicationRef=m(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=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),tC=new D("",{factory:()=>!1});function ah({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new G(P(g({},ch()),{scheduleInRootZone:n})),[{provide:G,useFactory:e},{provide:hn,multi:!0,useFactory:()=>{let r=m(eC,{optional:!0});return()=>r.initialize()}},{provide:hn,multi:!0,useFactory:()=>{let r=m(nC);return()=>{r.initialize()}}},t===!0?{provide:Qf,useValue:!0}:[],{provide:Kf,useValue:n??of}]}function uh(e){let t=e?.ignoreChangesOutsideZone,n=e?.scheduleInRootZone,r=ah({ngZoneFactory:()=>{let i=ch(e);return i.scheduleInRootZone=n,i.shouldCoalesceEventChangeDetection&&Rn("NgZone_CoalesceEvent"),new G(i)},ignoreChangesOutsideZone:t,scheduleInRootZone:n});return _n([{provide:tC,useValue:!0},{provide:wo,useValue:!1},r])}function ch(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var nC=(()=>{class e{constructor(){this.subscription=new z,this.initialized=!1,this.zone=m(G),this.pendingTasks=m(xn)}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(()=>{G.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{G.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var rC=(()=>{class e{constructor(){this.appRef=m(Ge),this.taskService=m(xn),this.ngZone=m(G),this.zonelessEnabled=m(wo),this.disableScheduling=m(Qf,{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(Qi):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(m(Kf,{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 da||!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?kl:af;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(Qi+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,kl(()=>{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=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function iC(){return typeof $localize<"u"&&$localize.locale||oo}var Du=new D("",{providedIn:"root",factory:()=>m(Du,M.Optional|M.SkipSelf)||iC()});var Na=new D("");function Ai(e){return!e.moduleRef}function oC(e){let t=Ai(e)?e.r3Injector:e.moduleRef.injector,n=t.get(G);return n.run(()=>{Ai(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Qe,null),i;if(n.runOutsideAngular(()=>{i=n.onError.subscribe({next:o=>{r.handleError(o)}})}),Ai(e)){let o=()=>t.destroy(),s=e.platformInjector.get(Na);s.add(o),t.onDestroy(()=>{i.unsubscribe(),s.delete(o)})}else{let o=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Na);s.add(o),e.moduleRef.onDestroy(()=>{Fi(e.allPlatformModules,e.moduleRef),i.unsubscribe(),s.delete(o)})}return JD(r,n,()=>{let o=t.get(sh);return o.runInitializers(),o.donePromise.then(()=>{let s=t.get(Du,oo);if(BD(s||oo),Ai(e)){let a=t.get(Ge);return e.rootComponent!==void 0&&a.bootstrap(e.rootComponent),a}else return sC(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function sC(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 y(-403,!1);t.push(e)}var Pi=null;function aC(e=[],t){return $e.create({name:t,providers:[{provide:lo,useValue:"platform"},{provide:Na,useValue:new Set([()=>Pi=null])},...e]})}function uC(e=[]){if(Pi)return Pi;let t=aC(e);return Pi=t,YD(),cC(t),t}function cC(e){e.get(Ja,null)?.forEach(n=>n())}function lh(){return!1}var jt=(()=>{class e{static{this.__NG_ELEMENT_ID__=lC}}return e})();function lC(e){return dC(fe(),H(),(e&16)===16)}function dC(e,t,n){if(ho(e)&&!n){let r=Dt(e.index,t);return new Dn(r,r)}else if(e.type&175){let r=t[Be];return new Dn(r,t)}return null}function dh(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,i=uC(r),o=[ah({}),{provide:Cn,useExisting:rC},...n||[]],s=new ro({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1});return oC({r3Injector:s.injector,platformInjector:i,rootComponent:t})}catch(t){return Promise.reject(t)}}function Ao(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function No(e,t){Rn("NgSignals");let n=Pc(e);return t?.equal&&(n[qe].equal=t.equal),n}function Ct(e){let t=F(null);try{return e()}finally{F(t)}}var ph=null;function it(){return ph}function gh(e){ph??=e}var Ro=class{};var we=new D(""),mh=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:()=>m(pC),providedIn:"platform"})}}return e})();var pC=(()=>{class e extends mh{constructor(){super(),this._doc=m(we),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return it().getBaseHref(this._doc)}onPopState(n){let r=it().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=it().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=C({token:e,factory:()=>new e,providedIn:"platform"})}}return e})();function vh(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 fh(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 Bt(e){return e&&e[0]!=="?"?"?"+e:e}var Fo=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:()=>m(yh),providedIn:"root"})}}return e})(),gC=new D(""),yh=(()=>{class e extends Fo{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??m(we).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return vh(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+Bt(this._platformLocation.search),i=this._platformLocation.hash;return i&&n?`${r}${i}`:r}pushState(n,r,i,o){let s=this.prepareExternalUrl(i+Bt(o));this._platformLocation.pushState(n,r,s)}replaceState(n,r,i,o){let s=this.prepareExternalUrl(i+Bt(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)(N(mh),N(gC,8))}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Dr=(()=>{class e{constructor(n){this._subject=new Y,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=yC(fh(hh(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+Bt(r))}normalize(n){return e.stripTrailingSlash(vC(this._basePath,hh(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+Bt(r)),i)}replaceState(n,r="",i=null){this._locationStrategy.replaceState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Bt(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=Bt}static{this.joinWithSlash=vh}static{this.stripTrailingSlash=fh}static{this.\u0275fac=function(r){return new(r||e)(N(Fo))}}static{this.\u0275prov=C({token:e,factory:()=>mC(),providedIn:"root"})}}return e})();function mC(){return new Dr(N(Fo))}function vC(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function hh(e){return e.replace(/\/index.html$/,"")}function yC(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}function Dh(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 wu=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=yt({type:e})}static{this.\u0275inj=vt({})}}return e})(),Eu="browser",DC="server";function Iu(e){return e===Eu}function bu(e){return e===DC}var Oo=class{};var Su=class extends Ro{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Tu=class e extends Su{static makeCurrent(){gh(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=wC();return n==null?null:EC(n)}resetBaseElement(){Cr=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Dh(document.cookie,t)}},Cr=null;function wC(){return Cr=Cr||document.querySelector("base"),Cr?Cr.getAttribute("href"):null}function EC(e){return new URL(e,document.baseURI).pathname}var IC=(()=>{class e{build(){return new XMLHttpRequest}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac})}}return e})(),xu=new D(""),Ih=(()=>{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)(N(xu),N(G))}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac})}}return e})(),Po=class{constructor(t){this._doc=t}},_u="ng-app-id",bh=(()=>{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=bu(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[${_u}="${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(_u),o;{let s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(_u,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)(N(we),N(Ka),N(Xa,8),N(rt))}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac})}}return e})(),Mu={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"},Nu=/%COMP%/g,_h="%COMP%",bC=`_nghost-${_h}`,_C=`_ngcontent-${_h}`,MC=!0,SC=new D("",{providedIn:"root",factory:()=>MC});function TC(e){return _C.replace(Nu,e)}function xC(e){return bC.replace(Nu,e)}function Mh(e,t){return t.map(n=>n.replace(Nu,e))}var Ch=(()=>{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=bu(a),this.defaultRenderer=new wr(n,s,u,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Ve.ShadowDom&&(r=P(g({},r),{encapsulation:Ve.Emulated}));let i=this.getOrCreateRenderer(n,r);return i instanceof ko?i.applyToHost(n):i instanceof Er&&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 Ve.Emulated:o=new ko(u,c,r,this.appId,l,s,a,d);break;case Ve.ShadowDom:return new Au(u,c,n,r,s,a,this.nonce,d);default:o=new Er(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)(N(Ih),N(bh),N(Ka),N(SC),N(we),N(rt),N(G),N(Xa))}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac})}}return e})(),wr=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(Mu[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(wh(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(wh(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=Mu[i];o?t.setAttributeNS(o,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let i=Mu[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&(Ke.DashCase|Ke.Important)?t.style.setProperty(n,r,i&Ke.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&Ke.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=it().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 wh(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Au=class extends wr{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=Mh(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)}},Er=class extends wr{constructor(t,n,r,i,o,s,a,u){super(t,o,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=i,this.styles=u?Mh(u,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},ko=class extends Er{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=TC(c),this.hostAttr=xC(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}},AC=(()=>{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)(N(we))}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac})}}return e})(),Eh=["alt","control","meta","shift"],NC={"\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"},RC={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},OC=(()=>{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(()=>it().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."),Eh.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=NC[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"),Eh.forEach(s=>{if(s!==i){let a=RC[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)(N(we))}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac})}}return e})();function Sh(e,t){return dh(g({rootComponent:e},FC(t)))}function FC(e){return{appProviders:[...jC,...e?.providers??[]],platformProviders:VC}}function PC(){Tu.makeCurrent()}function kC(){return new Qe}function LC(){return pf(document),document}var VC=[{provide:rt,useValue:Eu},{provide:Ja,useValue:PC,multi:!0},{provide:we,useFactory:LC,deps:[]}];var jC=[{provide:lo,useValue:"root"},{provide:Qe,useFactory:kC,deps:[]},{provide:xu,useClass:AC,multi:!0,deps:[we,G,rt]},{provide:xu,useClass:OC,multi:!0,deps:[we]},Ch,bh,Ih,{provide:En,useExisting:Ch},{provide:Oo,useClass:IC,deps:[]},[]];var Th=(()=>{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)(N(we))}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var b="primary",jr=Symbol("RouteTitle"),ku=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 Un(e){return new ku(e)}function $C(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 Lh(e){return e.length>0?e[e.length-1]:null}function wt(e){return Ms(e)?e:Vt(e)?B(Promise.resolve(e)):w(e)}var zC={exact:jh,subset:Bh},Vh={exact:GC,subset:WC,ignored:()=>!0};function xh(e,t,n){return zC[n.paths](e.root,t.root,n.matrixParams)&&Vh[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function GC(e,t){return We(e,t)}function jh(e,t,n){if(!$t(e.segments,t.segments)||!jo(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!jh(e.children[r],t.children[r],n))return!1;return!0}function WC(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>kh(e[n],t[n]))}function Bh(e,t,n){return Uh(e,t,t.segments,n)}function Uh(e,t,n,r){if(e.segments.length>n.length){let i=e.segments.slice(0,n.length);return!(!$t(i,n)||t.hasChildren()||!jo(i,n,r))}else if(e.segments.length===n.length){if(!$t(e.segments,n)||!jo(e.segments,n,r))return!1;for(let i in t.children)if(!e.children[i]||!Bh(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)||!jo(e.segments,i,r)||!e.children[b]?!1:Uh(e.children[b],t,o,r)}}function jo(e,t,n){return t.every((r,i)=>Vh[n](e[i].parameters,r.parameters))}var st=class{constructor(t=new L([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=Un(this.queryParams),this._queryParamMap}toString(){return YC.serialize(this)}},L=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 Bo(this)}},Ut=class{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap??=Un(this.parameters),this._parameterMap}toString(){return Hh(this)}};function qC(e,t){return $t(e,t)&&e.every((n,r)=>We(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 ZC(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 cc=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:()=>new xr,providedIn:"root"})}}return e})(),xr=class{parse(t){let n=new ju(t);return new st(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n=`/${Ir(t.root,!0)}`,r=JC(t.queryParams),i=typeof t.fragment=="string"?`#${QC(t.fragment)}`:"";return`${n}${r}${i}`}},YC=new xr;function Bo(e){return e.segments.map(t=>Hh(t)).join("/")}function Ir(e,t){if(!e.hasChildren())return Bo(e);if(t){let n=e.children[b]?Ir(e.children[b],!1):"",r=[];return Object.entries(e.children).forEach(([i,o])=>{i!==b&&r.push(`${i}:${Ir(o,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=ZC(e,(r,i)=>i===b?[Ir(e.children[b],!1)]:[`${i}:${Ir(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[b]!=null?`${Bo(e)}/${n[0]}`:`${Bo(e)}/(${n.join("//")})`}}function $h(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Lo(e){return $h(e).replace(/%3B/gi,";")}function QC(e){return encodeURI(e)}function Vu(e){return $h(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Uo(e){return decodeURIComponent(e)}function Ah(e){return Uo(e.replace(/\+/g,"%20"))}function Hh(e){return`${Vu(e.path)}${KC(e.parameters)}`}function KC(e){return Object.entries(e).map(([t,n])=>`;${Vu(t)}=${Vu(n)}`).join("")}function JC(e){let t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(i=>`${Lo(n)}=${Lo(i)}`).join("&"):`${Lo(n)}=${Lo(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}var XC=/^[^\/()?;#]+/;function Ru(e){let t=e.match(XC);return t?t[0]:""}var ew=/^[^\/()?;=#]+/;function tw(e){let t=e.match(ew);return t?t[0]:""}var nw=/^[^=?&#]+/;function rw(e){let t=e.match(nw);return t?t[0]:""}var iw=/^[^&#]+/;function ow(e){let t=e.match(iw);return t?t[0]:""}var ju=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new L([],{}):new L([],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 L(t,n)),r}parseSegment(){let t=Ru(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new y(4009,!1);return this.capture(t),new Ut(Uo(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=tw(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let i=Ru(this.remaining);i&&(r=i,this.capture(r))}t[Uo(n)]=Uo(r)}parseQueryParam(t){let n=rw(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=ow(this.remaining);s&&(r=s,this.capture(r))}let i=Ah(n),o=Ah(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=Ru(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 L([],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 zh(e){return e.segments.length>0?new L([],{[b]:e}):e}function Gh(e){let t={};for(let[r,i]of Object.entries(e.children)){let o=Gh(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 L(e.segments,t);return sw(n)}function sw(e){if(e.numberOfChildren===1&&e.children[b]){let t=e.children[b];return new L(e.segments.concat(t.segments),t.children)}return e}function Ar(e){return e instanceof st}function aw(e,t,n=null,r=null){let i=Wh(e);return qh(i,t,n,r)}function Wh(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 L(o.url,s);return o===e&&(t=a),a}let r=n(e.root),i=zh(r);return t??i}function qh(e,t,n,r){let i=e;for(;i.parent;)i=i.parent;if(t.length===0)return Ou(i,i,i,n,r);let o=uw(t);if(o.toRoot())return Ou(i,i,new L([],{}),n,r);let s=cw(o,i,e),a=s.processChildren?Mr(s.segmentGroup,s.index,o.commands):Yh(s.segmentGroup,s.index,o.commands);return Ou(i,s.segmentGroup,a,n,r)}function $o(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function Nr(e){return typeof e=="object"&&e!=null&&e.outlets}function Ou(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=Zh(e,t,n);let a=zh(Gh(s));return new st(a,o,i)}function Zh(e,t,n){let r={};return Object.entries(e.children).forEach(([i,o])=>{o===t?r[i]=n:r[i]=Zh(o,t,n)}),new L(e.segments,r)}var Ho=class{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&$o(r[0]))throw new y(4003,!1);let i=r.find(Nr);if(i&&i!==Lh(r))throw new y(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function uw(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new Ho(!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 Ho(n,t,r)}var Vn=class{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}};function cw(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=$o(e.commands[0])?0:1,i=n.segments.length-1+r;return lw(n,i,e.numberOfDoubleDots)}function lw(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 Vn(r,!1,i-o)}function dw(e){return Nr(e[0])?e[0].outlets:{[b]:e}}function Yh(e,t,n){if(e??=new L([],{}),e.segments.length===0&&e.hasChildren())return Mr(e,t,n);let r=fw(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=Mr(e.children[b],t,n);return new L(e.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=Yh(e.children[o],t,s))}),Object.entries(e.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new L(e.segments,i)}}function fw(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(Nr(a))break;let u=`${a}`,c=r0&&u===void 0)break;if(u&&c&&typeof c=="object"&&c.outlets===void 0){if(!Rh(u,c,s))return o;r+=2}else{if(!Rh(u,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function Bu(e,t,n){let r=e.segments.slice(0,t),i=0;for(;i{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=Bu(new L([],{}),0,r))}),t}function Nh(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function Rh(e,t,n){return e==n.path&&We(t,n.parameters)}var Sr="imperative",ee=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}(ee||{}),Ee=class{constructor(t,n){this.id=t,this.url=n}},Rr=class extends Ee{constructor(t,n,r="imperative",i=null){super(t,n),this.type=ee.NavigationStart,this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Ht=class extends Ee{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r,this.type=ee.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},pe=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(pe||{}),Uu=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(Uu||{}),ot=class extends Ee{constructor(t,n,r,i){super(t,n),this.reason=r,this.code=i,this.type=ee.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},zt=class extends Ee{constructor(t,n,r,i){super(t,n),this.reason=r,this.code=i,this.type=ee.NavigationSkipped}},Or=class extends Ee{constructor(t,n,r,i){super(t,n),this.error=r,this.target=i,this.type=ee.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},zo=class extends Ee{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=ee.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},$u=class extends Ee{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=ee.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Hu=class extends Ee{constructor(t,n,r,i,o){super(t,n),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o,this.type=ee.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},zu=class extends Ee{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=ee.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Gu=class extends Ee{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=ee.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Wu=class{constructor(t){this.route=t,this.type=ee.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},qu=class{constructor(t){this.route=t,this.type=ee.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Zu=class{constructor(t){this.snapshot=t,this.type=ee.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Yu=class{constructor(t){this.snapshot=t,this.type=ee.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Qu=class{constructor(t){this.snapshot=t,this.type=ee.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ku=class{constructor(t){this.snapshot=t,this.type=ee.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var Fr=class{},$n=class{constructor(t,n){this.url=t,this.navigationBehaviorOptions=n}};function pw(e,t){return e.providers&&!e._injector&&(e._injector=du(e.providers,t,`Route: ${e.path}`)),e._injector??t}function Re(e){return e.outlet||b}function gw(e,t){let n=e.filter(r=>Re(r)===t);return n.push(...e.filter(r=>Re(r)!==t)),n}function Br(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 Ju=class{get injector(){return Br(this.route?.snapshot)??this.rootInjector}set injector(t){}constructor(t){this.rootInjector=t,this.outlet=null,this.route=null,this.children=new Ko(this.rootInjector),this.attachRef=null}},Ko=(()=>{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 Ju(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)(N(ye))}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Go=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=Xu(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=Xu(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=ec(t,this._root);return n.length<2?[]:n[n.length-2].children.map(i=>i.value).filter(i=>i!==t)}pathFromRoot(t){return ec(t,this._root).map(n=>n.value)}};function Xu(e,t){if(e===t.value)return t;for(let n of t.children){let r=Xu(e,n);if(r)return r}return null}function ec(e,t){if(e===t.value)return[t];for(let n of t.children){let r=ec(e,n);if(r.length)return r.unshift(t),r}return[]}var he=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 Wo=class extends Go{constructor(t,n){super(t),this.snapshot=n,lc(this,t)}toString(){return this.snapshot.toString()}};function Qh(e){let t=mw(e),n=new J([new Ut("",{})]),r=new J({}),i=new J({}),o=new J({}),s=new J(""),a=new Hn(n,r,o,s,i,b,e,t.root);return a.snapshot=t.root,new Wo(new he(a,[]),t)}function mw(e){let t={},n={},r={},i="",o=new jn([],t,r,i,n,b,e,null,{});return new Zo("",new he(o,[]))}var Hn=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[jr]))??w(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=>Un(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(I(t=>Un(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function qo(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&&Jh(i)&&(r.resolve[jr]=i.title),r}var jn=class{get title(){return this.data?.[jr]}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??=Un(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Un(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}')`}},Zo=class extends Go{constructor(t,n){super(n),this.url=t,lc(this,n)}toString(){return Kh(this._root)}};function lc(e,t){t.value._routerState=e,t.children.forEach(n=>lc(e,n))}function Kh(e){let t=e.children.length>0?` { ${e.children.map(Kh).join(", ")} } `:"";return`${e.value}${t}`}function Fu(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),HC(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 tc(e,t){let n=We(e.params,t.params)&&qC(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||tc(e.parent,t.parent))}function Jh(e){return typeof e.title=="string"||e.title===null}var dc=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=b,this.activateEvents=new Y,this.deactivateEvents=new Y,this.attachEvents=new Y,this.detachEvents=new Y,this.parentContexts=m(Ko),this.location=m(Eo),this.changeDetector=m(jt),this.inputBinder=m(fc,{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 nc(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=He({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Sn]})}}return e})(),nc=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===Hn?this.route:t===Ko?this.childContexts:this.parent.get(t,n)}},fc=new D("");function vw(e,t,n){let r=Pr(e,t._root,n?n._root:void 0);return new Wo(r,t)}function Pr(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=t.value;let i=yw(e,t,n);return new he(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=>Pr(e,a)),s}}let r=Dw(t.value),i=t.children.map(o=>Pr(e,o));return new he(r,i)}}function yw(e,t,n){return t.children.map(r=>{for(let i of n.children)if(e.shouldReuseRoute(r.value,i.value.snapshot))return Pr(e,r,i);return Pr(e,r)})}function Dw(e){return new Hn(new J(e.url),new J(e.params),new J(e.queryParams),new J(e.fragment),new J(e.data),e.outlet,e.component,e)}var kr=class{constructor(t,n){this.redirectTo=t,this.navigationBehaviorOptions=n}},Xh="ngNavigationCancelingError";function Yo(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=Ar(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,i=ep(!1,pe.Redirect);return i.url=n,i.navigationBehaviorOptions=r,i}function ep(e,t){let n=new Error(`NavigationCancelingError: ${e||""}`);return n[Xh]=!0,n.cancellationCode=t,n}function Cw(e){return tp(e)&&Ar(e.url)}function tp(e){return!!e&&e[Xh]}var ww=(e,t,n,r)=>I(i=>(new rc(t,i.targetRouterState,i.currentRouterState,n,r).activate(e),i)),rc=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),Fu(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 Ku(o.value.snapshot))}),t.children.length&&this.forwardEvent(new Yu(t.value.snapshot))}activateRoutes(t,n,r){let i=t.value,o=n?n.value:null;if(Fu(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),Fu(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)}},Qo=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 Ew(e,t,n){let r=e._root,i=t?t._root:null;return br(r,i,n,[r.value])}function Iw(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function Gn(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e=="function"&&!nd(e)?e:t.get(e):r}function br(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=Ln(t);return e.children.forEach(s=>{bw(s,o[s.value.outlet],n,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Tr(a,n.getContext(s),i)),i}function bw(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=_w(s,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new Qo(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?br(e,t,a?a.children:null,r,i):br(e,t,n,r,i),u&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Bn(a.outlet.component,s))}else s&&Tr(t,a,i),i.canActivateChecks.push(new Qo(r)),o.component?br(e,null,a?a.children:null,r,i):br(e,null,n,r,i);return i}function _w(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)||!We(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!tc(e,t)||!We(e.queryParams,t.queryParams);case"paramsChange":default:return!tc(e,t)}}function Tr(e,t,n){let r=Ln(e),i=e.value;Object.entries(r).forEach(([o,s])=>{i.component?t?Tr(s,t.children.getContext(o),n):Tr(s,null,n):Tr(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 Ur(e){return typeof e=="function"}function Mw(e){return typeof e=="boolean"}function Sw(e){return e&&Ur(e.canLoad)}function Tw(e){return e&&Ur(e.canActivate)}function xw(e){return e&&Ur(e.canActivateChild)}function Aw(e){return e&&Ur(e.canDeactivate)}function Nw(e){return e&&Ur(e.canMatch)}function np(e){return e instanceof Ye||e?.name==="EmptyError"}var Vo=Symbol("INITIAL_VALUE");function zn(){return ne(e=>bi(e.map(t=>t.pipe(q(1),Os(Vo)))).pipe(I(t=>{for(let n of t)if(n!==!0){if(n===Vo)return Vo;if(n===!1||Rw(n))return n}return!0}),te(t=>t!==Vo),q(1)))}function Rw(e){return Ar(e)||e instanceof kr}function Ow(e,t){return $(n=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=n;return s.length===0&&o.length===0?w(P(g({},n),{guardsResult:!0})):Fw(s,r,i,e).pipe($(a=>a&&Mw(a)?Pw(r,o,e,t):w(a)),I(a=>P(g({},n),{guardsResult:a})))})}function Fw(e,t,n,r){return B(e).pipe($(i=>Bw(i.component,i.route,n,t,r)),Pe(i=>i!==!0,!0))}function Pw(e,t,n,r){return B(t).pipe(rn(i=>Fe(Lw(i.route.parent,r),kw(i.route,r),jw(e,i.path,n),Vw(e,i.route,n))),Pe(i=>i!==!0,!0))}function kw(e,t){return e!==null&&t&&t(new Qu(e)),w(!0)}function Lw(e,t){return e!==null&&t&&t(new Zu(e)),w(!0)}function Vw(e,t,n){let r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||r.length===0)return w(!0);let i=r.map(o=>Mt(()=>{let s=Br(t)??n,a=Gn(o,s),u=Tw(a)?a.canActivate(t,e):Je(s,()=>a(t,e));return wt(u).pipe(Pe())}));return w(i).pipe(zn())}function jw(e,t,n){let r=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>Iw(s)).filter(s=>s!==null).map(s=>Mt(()=>{let a=s.guards.map(u=>{let c=Br(s.node)??n,l=Gn(u,c),d=xw(l)?l.canActivateChild(r,e):Je(c,()=>l(r,e));return wt(d).pipe(Pe())});return w(a).pipe(zn())}));return w(o).pipe(zn())}function Bw(e,t,n,r,i){let o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||o.length===0)return w(!0);let s=o.map(a=>{let u=Br(t)??i,c=Gn(a,u),l=Aw(c)?c.canDeactivate(e,t,n,r):Je(u,()=>c(e,t,n,r));return wt(l).pipe(Pe())});return w(s).pipe(zn())}function Uw(e,t,n,r){let i=t.canLoad;if(i===void 0||i.length===0)return w(!0);let o=i.map(s=>{let a=Gn(s,e),u=Sw(a)?a.canLoad(t,n):Je(e,()=>a(t,n));return wt(u)});return w(o).pipe(zn(),rp(r))}function rp(e){return Ds(Z(t=>{if(typeof t!="boolean")throw Yo(e,t)}),I(t=>t===!0))}function $w(e,t,n,r){let i=t.canMatch;if(!i||i.length===0)return w(!0);let o=i.map(s=>{let a=Gn(s,e),u=Nw(a)?a.canMatch(t,n):Je(e,()=>a(t,n));return wt(u)});return w(o).pipe(zn(),rp(r))}var Lr=class{constructor(t){this.segmentGroup=t||null}},Vr=class extends Error{constructor(t){super(),this.urlTree=t}};function kn(e){return ut(new Lr(e))}function Hw(e){return ut(new y(4e3,!1))}function zw(e){return ut(ep(!1,pe.GuardRejected))}var ic=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 w(r);if(i.numberOfChildren>1||!i.children[b])return Hw(`${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:h,params:f,data:p,title:_}=i,O=Je(o,()=>a({params:f,data:p,queryParams:u,fragment:c,routeConfig:l,url:d,outlet:h,title:_}));if(O instanceof st)throw new Vr(O);n=O}let s=this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r);if(n[0]==="/")throw new Vr(s);return s}applyRedirectCreateUrlTree(t,n,r,i){let o=this.createSegmentGroup(t,n.root,r,i);return new st(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 L(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}},oc={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Gw(e,t,n,r,i){let o=ip(e,t,n);return o.matched?(r=pw(t,r),$w(r,t,n,i).pipe(I(s=>s===!0?o:g({},oc)))):w(o)}function ip(e,t,n){if(t.path==="**")return Ww(n);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?g({},oc):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let i=(t.matcher||$C)(n,e,t);if(!i)return g({},oc);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 Ww(e){return{matched:!0,parameters:e.length>0?Lh(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function Oh(e,t,n,r){return n.length>0&&Yw(e,n,r)?{segmentGroup:new L(t,Zw(r,new L(n,e.children))),slicedSegments:[]}:n.length===0&&Qw(e,n,r)?{segmentGroup:new L(e.segments,qw(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new L(e.segments,e.children),slicedSegments:n}}function qw(e,t,n,r){let i={};for(let o of n)if(Jo(e,t,o)&&!r[Re(o)]){let s=new L([],{});i[Re(o)]=s}return g(g({},r),i)}function Zw(e,t){let n={};n[b]=t;for(let r of e)if(r.path===""&&Re(r)!==b){let i=new L([],{});n[Re(r)]=i}return n}function Yw(e,t,n){return n.some(r=>Jo(e,t,r)&&Re(r)!==b)}function Qw(e,t,n){return n.some(r=>Jo(e,t,r))}function Jo(e,t,n){return(e.hasChildren()||t.length>0)&&n.pathMatch==="full"?!1:n.path===""}function Kw(e,t,n){return t.length===0&&!e.children[n]}var sc=class{};function Jw(e,t,n,r,i,o,s="emptyOnly"){return new ac(e,t,n,r,i,s,o).recognize()}var Xw=31,ac=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 ic(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new y(4002,`'${t.segmentGroup}'`)}recognize(){let t=Oh(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(I(({children:n,rootSnapshot:r})=>{let i=new he(r,n),o=new Zo("",i),s=aw(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({}),b,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,t,b,n).pipe(I(r=>({children:r,rootSnapshot:n})),ct(r=>{if(r instanceof Vr)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Lr?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 he?[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(rn(s=>{let a=r.children[s],u=gw(n,s);return this.processSegmentGroup(t,u,a,s,i)}),Rs((s,a)=>(s.push(...a),s)),lt(null),As(),$(s=>{if(s===null)return kn(r);let a=op(s);return eE(a),w(a)}))}processSegment(t,n,r,i,o,s,a){return B(n).pipe(rn(u=>this.processSegmentAgainstRoute(u._injector??t,n,u,r,i,o,s,a).pipe(ct(c=>{if(c instanceof Lr)return w(null);throw c}))),Pe(u=>!!u),ct(u=>{if(np(u))return Kw(r,i,o)?w(new sc):kn(r);throw u}))}processSegmentAgainstRoute(t,n,r,i,o,s,a,u){return Re(r)!==s&&(s===b||!Jo(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:h}=ip(n,i,o);if(!u)return kn(n);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Xw&&(this.allowRedirects=!1));let f=new jn(o,c,Object.freeze(g({},this.urlTree.queryParams)),this.urlTree.fragment,Fh(i),Re(i),i.component??i._loadedComponent??null,i,Ph(i)),p=qo(f,a,this.paramsInheritanceStrategy);f.params=Object.freeze(p.params),f.data=Object.freeze(p.data);let _=this.applyRedirects.applyRedirectCommands(l,i.redirectTo,d,f,t);return this.applyRedirects.lineralizeSegments(i,_).pipe($(O=>this.processSegment(t,r,n,O.concat(h),s,!1,a)))}matchSegmentAgainstRoute(t,n,r,i,o,s){let a=Gw(n,r,i,t,this.urlSerializer);return r.path==="**"&&(n.children={}),a.pipe(ne(u=>u.matched?(t=r._injector??t,this.getChildConfig(t,r,i).pipe(ne(({routes:c})=>{let l=r._loadedInjector??t,{parameters:d,consumedSegments:h,remainingSegments:f}=u,p=new jn(h,d,Object.freeze(g({},this.urlTree.queryParams)),this.urlTree.fragment,Fh(r),Re(r),r.component??r._loadedComponent??null,r,Ph(r)),_=qo(p,s,this.paramsInheritanceStrategy);p.params=Object.freeze(_.params),p.data=Object.freeze(_.data);let{segmentGroup:O,slicedSegments:k}=Oh(n,h,f,c);if(k.length===0&&O.hasChildren())return this.processChildren(l,c,O,p).pipe(I(se=>new he(p,se)));if(c.length===0&&k.length===0)return w(new he(p,[]));let K=Re(r)===o;return this.processSegment(l,c,O,k,K?b:o,!0,p).pipe(I(se=>new he(p,se instanceof he?[se]:[])))}))):kn(n)))}getChildConfig(t,n,r){return n.children?w({routes:n.children,injector:t}):n.loadChildren?n._loadedRoutes!==void 0?w({routes:n._loadedRoutes,injector:n._loadedInjector}):Uw(t,n,r,this.urlSerializer).pipe($(i=>i?this.configLoader.loadChildren(t,n).pipe(Z(o=>{n._loadedRoutes=o.routes,n._loadedInjector=o.injector})):zw(n))):w({routes:[],injector:t})}};function eE(e){e.sort((t,n)=>t.value.outlet===b?-1:n.value.outlet===b?1:t.value.outlet.localeCompare(n.value.outlet))}function tE(e){let t=e.value.routeConfig;return t&&t.path===""}function op(e){let t=[],n=new Set;for(let r of e){if(!tE(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=op(r.children);t.push(new he(r.value,i))}return t.filter(r=>!n.has(r))}function Fh(e){return e.data||{}}function Ph(e){return e.resolve||{}}function nE(e,t,n,r,i,o){return $(s=>Jw(e,t,n,r,s.extractedUrl,i,o).pipe(I(({state:a,tree:u})=>P(g({},s),{targetSnapshot:a,urlAfterRedirects:u}))))}function rE(e,t){return $(n=>{let{targetSnapshot:r,guards:{canActivateChecks:i}}=n;if(!i.length)return w(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 sp(u))s.add(c);let a=0;return B(s).pipe(rn(u=>o.has(u)?iE(u,r,e,t):(u.data=qo(u,u.parent,e).resolve,w(void 0))),Z(()=>a++),on(1),$(u=>a===s.size?w(n):re))})}function sp(e){let t=e.children.map(n=>sp(n)).flat();return[e,...t]}function iE(e,t,n,r){let i=e.routeConfig,o=e._resolve;return i?.title!==void 0&&!Jh(i)&&(o[jr]=i.title),oE(o,e,t,r).pipe(I(s=>(e._resolvedData=s,e.data=qo(e,e.parent,n).resolve,null)))}function oE(e,t,n,r){let i=Lu(e);if(i.length===0)return w({});let o={};return B(i).pipe($(s=>sE(e[s],t,n,r).pipe(Pe(),Z(a=>{if(a instanceof kr)throw Yo(new xr,a);o[s]=a}))),on(1),tr(o),ct(s=>np(s)?re:ut(s)))}function sE(e,t,n,r){let i=Br(t)??r,o=Gn(e,i),s=o.resolve?o.resolve(t,n):Je(i,()=>o(t,n));return wt(s)}function Pu(e){return ne(t=>{let n=e(t);return n?B(n).pipe(I(()=>t)):w(t)})}var ap=(()=>{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[jr]}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:()=>m(aE),providedIn:"root"})}}return e})(),aE=(()=>{class e extends ap{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)(N(Th))}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),hc=new D("",{providedIn:"root",factory:()=>({})}),uE=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=co({type:e,selectors:[["ng-component"]],standalone:!0,features:[So],decls:1,vars:0,template:function(r,i){r&1&&On(0,"router-outlet")},dependencies:[dc],encapsulation:2})}}return e})();function pc(e){let t=e.children&&e.children.map(pc),n=t?P(g({},e),{children:t}):g({},e);return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==b&&(n.component=uE),n}var gc=new D(""),cE=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=m(yu)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return w(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let r=wt(n.loadComponent()).pipe(I(up),Z(o=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=o}),nr(()=>{this.componentLoaders.delete(n)})),i=new at(r,()=>new U).pipe(Jt());return this.componentLoaders.set(n,i),i}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return w({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=lE(r,this.compiler,n,this.onLoadEndListener).pipe(nr(()=>{this.childrenLoaders.delete(r)})),s=new at(o,()=>new U).pipe(Jt());return this.childrenLoaders.set(r,s),s}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function lE(e,t,n,r){return wt(e.loadChildren()).pipe(I(up),$(i=>i instanceof dr||Array.isArray(i)?w(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(gc,[],{optional:!0,self:!0}).flat()),{routes:s.map(pc),injector:o}}))}function dE(e){return e&&typeof e=="object"&&"default"in e}function up(e){return dE(e)?e.default:e}var mc=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:()=>m(fE),providedIn:"root"})}}return e})(),fE=(()=>{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=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),hE=new D("");var pE=new D(""),gE=(()=>{class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new U,this.transitionAbortSubject=new U,this.configLoader=m(cE),this.environmentInjector=m(ye),this.urlSerializer=m(cc),this.rootContexts=m(Ko),this.location=m(Dr),this.inputBindingEnabled=m(fc,{optional:!0})!==null,this.titleStrategy=m(ap),this.options=m(hc,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=m(mc),this.createViewTransition=m(hE,{optional:!0}),this.navigationErrorHandler=m(pE,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>w(void 0),this.rootComponentType=null;let n=i=>this.events.next(new Wu(i)),r=i=>this.events.next(new qu(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;this.transitions?.next(P(g(g({},this.transitions.value),n),{id:r}))}setupNavigations(n,r,i){return this.transitions=new J({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:Sr,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(te(o=>o.id!==0),I(o=>P(g({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),ne(o=>{let s=!1,a=!1;return w(o).pipe(ne(u=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",pe.SupersededByNewNavigation),re;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?P(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 zt(u.id,this.urlSerializer.serialize(u.rawUrl),d,Uu.IgnoredSameUrlNavigation)),u.resolve(!1),re}if(this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return w(u).pipe(ne(d=>{let h=this.transitions?.getValue();return this.events.next(new Rr(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions?.getValue()?re:Promise.resolve(d)}),nE(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),Z(d=>{o.targetSnapshot=d.targetSnapshot,o.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation=P(g({},this.currentNavigation),{finalUrl:d.urlAfterRedirects});let h=new zo(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(h)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){let{id:d,extractedUrl:h,source:f,restoredState:p,extras:_}=u,O=new Rr(d,this.urlSerializer.serialize(h),f,p);this.events.next(O);let k=Qh(this.rootComponentType).snapshot;return this.currentTransition=o=P(g({},u),{targetSnapshot:k,urlAfterRedirects:h,extras:P(g({},_),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=h,w(o)}else{let d="";return this.events.next(new zt(u.id,this.urlSerializer.serialize(u.extractedUrl),d,Uu.IgnoredByUrlHandlingStrategy)),u.resolve(!1),re}}),Z(u=>{let c=new $u(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(c)}),I(u=>(this.currentTransition=o=P(g({},u),{guards:Ew(u.targetSnapshot,u.currentSnapshot,this.rootContexts)}),o)),Ow(this.environmentInjector,u=>this.events.next(u)),Z(u=>{if(o.guardsResult=u.guardsResult,u.guardsResult&&typeof u.guardsResult!="boolean")throw Yo(this.urlSerializer,u.guardsResult);let c=new Hu(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(c)}),te(u=>u.guardsResult?!0:(this.cancelNavigationTransition(u,"",pe.GuardRejected),!1)),Pu(u=>{if(u.guards.canActivateChecks.length)return w(u).pipe(Z(c=>{let l=new zu(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),ne(c=>{let l=!1;return w(c).pipe(rE(this.paramsInheritanceStrategy,this.environmentInjector),Z({next:()=>l=!0,complete:()=>{l||this.cancelNavigationTransition(c,"",pe.NoDataFromResolver)}}))}),Z(c=>{let l=new Gu(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}))}),Pu(u=>{let c=l=>{let d=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(l.routeConfig).pipe(Z(h=>{l.component=h}),I(()=>{})));for(let h of l.children)d.push(...c(h));return d};return bi(c(u.targetSnapshot.root)).pipe(lt(null),q(1))}),Pu(()=>this.afterPreactivation()),ne(()=>{let{currentSnapshot:u,targetSnapshot:c}=o,l=this.createViewTransition?.(this.environmentInjector,u.root,c.root);return l?B(l).pipe(I(()=>o)):w(o)}),I(u=>{let c=vw(n.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=o=P(g({},u),{targetRouterState:c}),this.currentNavigation.targetRouterState=c,o}),Z(()=>{this.events.next(new Fr)}),ww(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 Ht(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),this.titleStrategy?.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{s=!0}}),Fs(this.transitionAbortSubject.pipe(Z(u=>{throw u}))),nr(()=>{!s&&!a&&this.cancelNavigationTransition(o,"",pe.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),ct(u=>{if(a=!0,tp(u))this.events.next(new ot(o.id,this.urlSerializer.serialize(o.extractedUrl),u.message,u.cancellationCode)),Cw(u)?this.events.next(new $n(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=Je(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(l instanceof kr){let{message:d,cancellationCode:h}=Yo(this.urlSerializer,l);this.events.next(new ot(o.id,this.urlSerializer.serialize(o.extractedUrl),d,h)),this.events.next(new $n(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 re}))}))}cancelNavigationTransition(n,r,i){let o=new ot(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=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function mE(e){return e!==Sr}var vE=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:()=>m(yE),providedIn:"root"})}}return e})(),uc=class{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}},yE=(()=>{class e extends uc{static{this.\u0275fac=(()=>{let n;return function(i){return(n||(n=Tn(e)))(i||e)}})()}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),cp=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:()=>m(DE),providedIn:"root"})}}return e})(),DE=(()=>{class e extends cp{constructor(){super(...arguments),this.location=m(Dr),this.urlSerializer=m(cc),this.options=m(hc,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=m(mc),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new st,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Qh(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 Rr)this.stateMemento=this.createStateMemento();else if(n instanceof zt)this.rawUrlTree=r.initialUrl;else if(n instanceof zo){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 Fr?(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 ot&&(n.code===pe.GuardRejected||n.code===pe.NoDataFromResolver)?this.restoreHistory(r):n instanceof Or?this.restoreHistory(r,!0):n instanceof Ht&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){let i=n instanceof st?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=Tn(e)))(i||e)}})()}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),_r=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(_r||{});function CE(e,t){e.events.pipe(te(n=>n instanceof Ht||n instanceof ot||n instanceof Or||n instanceof zt),I(n=>n instanceof Ht||n instanceof zt?_r.COMPLETE:(n instanceof ot?n.code===pe.Redirect||n.code===pe.SupersededByNewNavigation:!1)?_r.REDIRECTING:_r.FAILED),te(n=>n!==_r.REDIRECTING),q(1)).subscribe(()=>{t()})}function wE(e){throw e}var EE={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},IE={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},lp=(()=>{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=m(To),this.stateManager=m(cp),this.options=m(hc,{optional:!0})||{},this.pendingTasks=m(xn),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=m(gE),this.urlSerializer=m(cc),this.location=m(Dr),this.urlHandlingStrategy=m(mc),this._events=new U,this.errorHandler=this.options.errorHandler||wE,this.navigated=!1,this.routeReuseStrategy=m(vE),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=m(gc,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!m(fc,{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 ot&&r.code!==pe.Redirect&&r.code!==pe.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Ht)this.navigated=!0;else if(r instanceof $n){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"||mE(i.source)},s);this.scheduleNavigation(a,Sr,null,u,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}_E(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),Sr,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(pc),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 h=i?i.snapshot:this.routerState.snapshot.root;d=Wh(h)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),d=this.currentUrlTree.root}return qh(d,n,l,c??null)}navigateByUrl(n,r={skipLocationChange:!1}){let i=Ar(n)?n:this.parseUrl(n),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Sr,null,r)}navigate(n,r={skipLocationChange:!1}){return bE(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({},EE):r===!1?i=g({},IE):i=r,Ar(n))return xh(this.currentUrlTree,n,i);let o=this.parseUrl(n);return xh(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,h)=>{a=d,u=h});let l=this.pendingTasks.add();return CE(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=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function bE(e){for(let t=0;tn.\u0275providers)])}function SE(e){return e.routerState.root}function TE(){let e=m($e);return t=>{let n=e.get(Ge);if(t!==n.components[0])return;let r=e.get(lp),i=e.get(xE);e.get(AE)===1&&r.initialNavigation(),e.get(NE,null,M.Optional)?.setUpPreloading(),e.get(ME,null,M.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var xE=new D("",{factory:()=>new U}),AE=new D("",{providedIn:"root",factory:()=>1});var NE=new D("");var fp=[];var Hr="Service workers are disabled or not supported by this browser";function RE(e){return Mt(()=>ut(new Error(e)))}var Wn=class{constructor(t){if(this.serviceWorker=t,!t)this.worker=this.events=this.registration=RE(Hr);else{let r=nn(t,"controllerchange").pipe(I(()=>t.controller)),i=Mt(()=>w(t.controller)),o=Fe(i,r);this.worker=o.pipe(te(l=>!!l)),this.registration=this.worker.pipe(ne(()=>t.getRegistration()));let c=nn(t,"message").pipe(I(l=>l.data)).pipe(te(l=>l&&l.type)).pipe(Ns());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(te(n))}nextEventOfType(t){return this.eventsOfType(t).pipe(q(1))}waitForOperationCompleted(t){return this.eventsOfType("OPERATION_COMPLETED").pipe(te(n=>n.nonce===t),q(1),I(n=>{if(n.result!==void 0)return n.result;throw new Error(n.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}},OE=(()=>{class e{get isEnabled(){return this.sw.isEnabled}constructor(n){if(this.sw=n,this.pushManager=null,this.subscriptionChanges=new U,!n.isEnabled){this.messages=St,this.notificationClicks=St,this.subscription=St;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(ne(i=>i.getSubscription()));this.subscription=_i(r,this.subscriptionChanges)}requestSubscription(n){if(!this.sw.isEnabled||this.pushManager===null)return Promise.reject(new Error(Hr));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(Hr));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),ne(n)).toPromise()}decodeBase64(n){return atob(n)}static{this.\u0275fac=function(r){return new(r||e)(N(Wn))}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac})}}return e})(),FE=(()=>{class e{get isEnabled(){return this.sw.isEnabled}constructor(n){if(this.sw=n,!n.isEnabled){this.versionUpdates=St,this.unrecoverable=St;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(Hr));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(Hr));let n=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:n},n)}static{this.\u0275fac=function(r){return new(r||e)(N(Wn))}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac})}}return e})();var hp=new D("");function PE(e,t,n,r){return()=>{if(!(Iu(r)&&"serviceWorker"in navigator&&n.enabled!==!1))return;let i=e.get(G),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=w(null);break;case"registerWithDelay":s=pp(+u[0]||0);break;case"registerWhenStable":let c=B(e.get(Ge).whenStable());s=u[0]?_i(c,pp(+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 pp(e){return w(null).pipe(xs(e))}function kE(e,t){return new Wn(Iu(t)&&e.enabled!==!1?navigator.serviceWorker:void 0)}var $r=class{};function gp(e,t={}){return _n([OE,FE,{provide:hp,useValue:e},{provide:$r,useValue:t},{provide:Wn,useFactory:kE,deps:[$r,rt]},{provide:xo,useFactory:PE,deps:[$e,hp,$r,rt],multi:!0}])}var mp={providers:[uh({eventCoalescing:!0}),dp(fp),gp("ngsw-worker.js",{enabled:!lh(),registrationStrategy:"registerWhenStable:30000"})]};var bp=(()=>{class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=i=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}static{this.\u0275fac=function(r){return new(r||e)(Q(Nn),Q(kt))}}static{this.\u0275dir=He({type:e})}}return e})(),_p=(()=>{class e extends bp{static{this.\u0275fac=(()=>{let n;return function(i){return(n||(n=Tn(e)))(i||e)}})()}static{this.\u0275dir=He({type:e,features:[Lt]})}}return e})(),wc=new D("");var LE={provide:wc,useExisting:bn(()=>rs),multi:!0};function VE(){let e=it()?it().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var jE=new D(""),rs=(()=>{class e extends bp{constructor(n,r,i){super(n,r),this._compositionMode=i,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!VE())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}static{this.\u0275fac=function(r){return new(r||e)(Q(Nn),Q(kt),Q(jE,8))}}static{this.\u0275dir=He({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,i){r&1&&Ne("input",function(s){return i._handleInput(s.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(s){return i._compositionEnd(s.target.value)})},features:[Mo([LE]),Lt]})}}return e})();var BE=new D(""),UE=new D("");function Mp(e){return e!=null}function Sp(e){return Vt(e)?B(e):e}function Tp(e){let t={};return e.forEach(n=>{t=n!=null?g(g({},t),n):t}),Object.keys(t).length===0?null:t}function xp(e,t){return t.map(n=>n(e))}function $E(e){return!e.validate}function Ap(e){return e.map(t=>$E(t)?t:n=>t.validate(n))}function HE(e){if(!e)return null;let t=e.filter(Mp);return t.length==0?null:function(n){return Tp(xp(n,t))}}function Np(e){return e!=null?HE(Ap(e)):null}function zE(e){if(!e)return null;let t=e.filter(Mp);return t.length==0?null:function(n){let r=xp(n,t).map(Sp);return Ss(r).pipe(I(Tp))}}function Rp(e){return e!=null?zE(Ap(e)):null}function vp(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function GE(e){return e._rawValidators}function WE(e){return e._rawAsyncValidators}function vc(e){return e?Array.isArray(e)?e:[e]:[]}function es(e,t){return Array.isArray(e)?e.includes(t):e===t}function yp(e,t){let n=vc(t);return vc(e).forEach(i=>{es(n,i)||n.push(i)}),n}function Dp(e,t){return vc(t).filter(n=>!es(e,n))}var ts=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=Np(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Rp(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return this.control?this.control.hasError(t,n):!1}getError(t,n){return this.control?this.control.getError(t,n):null}},yc=class extends ts{get formDirective(){return null}get path(){return null}},Zr=class extends ts{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Dc=class{constructor(t){this._cd=t}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},qE={"[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"},xN=P(g({},qE),{"[class.ng-submitted]":"isSubmitted"}),Op=(()=>{class e extends Dc{constructor(n){super(n)}static{this.\u0275fac=function(r){return new(r||e)(Q(Zr,2))}}static{this.\u0275dir=He({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,i){r&2&&vr("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[Lt]})}}return e})();var zr="VALID",Xo="INVALID",qn="PENDING",Gr="DISABLED",Yn=class{},ns=class extends Yn{constructor(t,n){super(),this.value=t,this.source=n}},Wr=class extends Yn{constructor(t,n){super(),this.pristine=t,this.source=n}},qr=class extends Yn{constructor(t,n){super(),this.touched=t,this.source=n}},Zn=class extends Yn{constructor(t,n){super(),this.status=t,this.source=n}};function ZE(e){return(is(e)?e.validators:e)||null}function YE(e){return Array.isArray(e)?Np(e):e||null}function QE(e,t){return(is(t)?t.asyncValidators:e)||null}function KE(e){return Array.isArray(e)?Rp(e):e||null}function is(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}var Cc=class{constructor(t,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=No(()=>this.statusReactive()),this.statusReactive=Io(void 0),this._pristine=No(()=>this.pristineReactive()),this.pristineReactive=Io(!0),this._touched=No(()=>this.touchedReactive()),this.touchedReactive=Io(!1),this._events=new U,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return Ct(this.statusReactive)}set status(t){Ct(()=>this.statusReactive.set(t))}get valid(){return this.status===zr}get invalid(){return this.status===Xo}get pending(){return this.status==qn}get disabled(){return this.status===Gr}get enabled(){return this.status!==Gr}get pristine(){return Ct(this.pristineReactive)}set pristine(t){Ct(()=>this.pristineReactive.set(t))}get dirty(){return!this.pristine}get touched(){return Ct(this.touchedReactive)}set touched(t){Ct(()=>this.touchedReactive.set(t))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(yp(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(yp(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(Dp(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(Dp(t,this._rawAsyncValidators))}hasValidator(t){return es(this._rawValidators,t)}hasAsyncValidator(t){return es(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let n=this.touched===!1;this.touched=!0;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(P(g({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new qr(!0,r))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(t))}markAsUntouched(t={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=t.sourceControl??this;this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:r})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,r),n&&t.emitEvent!==!1&&this._events.next(new qr(!1,r))}markAsDirty(t={}){let n=this.pristine===!0;this.pristine=!1;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(P(g({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new Wr(!1,r))}markAsPristine(t={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=t.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,r),n&&t.emitEvent!==!1&&this._events.next(new Wr(!0,r))}markAsPending(t={}){this.status=qn;let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Zn(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(P(g({},t),{sourceControl:n}))}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=Gr,this.errors=null,this._forEachChild(i=>{i.disable(P(g({},t),{onlySelf:!0}))}),this._updateValue();let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new ns(this.value,r)),this._events.next(new Zn(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(P(g({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(i=>i(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=zr,this._forEachChild(r=>{r.enable(P(g({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(P(g({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t,n){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===zr||this.status===qn)&&this._runAsyncValidator(r,t.emitEvent)}let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new ns(this.value,n)),this._events.next(new Zn(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(P(g({},t),{sourceControl:n}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Gr:zr}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=qn,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1};let r=Sp(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{emitEvent:n,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(t){let n=t;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,i)=>r&&r._find(i),this)}getError(t,n){let r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,n,r){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||r)&&this._events.next(new Zn(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new Y,this.statusChanges=new Y}_calculateStatus(){return this._allControlsDisabled()?Gr:this.errors?Xo:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(qn)?qn:this._anyControlsHaveStatus(Xo)?Xo:zr}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,n){let r=!this._anyControlsDirty(),i=this.pristine!==r;this.pristine=r,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,n),i&&this._events.next(new Wr(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new qr(this.touched,n)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,n)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){is(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let n=this._parent&&this._parent.dirty;return!t&&!!n&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=YE(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=KE(this._rawAsyncValidators)}};var Fp=new D("CallSetDisabledState",{providedIn:"root",factory:()=>Ec}),Ec="always";function JE(e,t){return[...t.path,e]}function XE(e,t,n=Ec){tI(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),nI(e,t),iI(e,t),rI(e,t),eI(e,t)}function Cp(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function eI(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function tI(e,t){let n=GE(e);t.validator!==null?e.setValidators(vp(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=WE(e);t.asyncValidator!==null?e.setAsyncValidators(vp(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let i=()=>e.updateValueAndValidity();Cp(t._rawValidators,i),Cp(t._rawAsyncValidators,i)}function nI(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&Pp(e,t)})}function rI(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&Pp(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function Pp(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function iI(e,t){let n=(r,i)=>{t.valueAccessor.writeValue(r),i&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function oI(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function sI(e){return Object.getPrototypeOf(e.constructor)===_p}function aI(e,t){if(!t)return null;Array.isArray(t);let n,r,i;return t.forEach(o=>{o.constructor===rs?n=o:sI(o)?r=o:i=o}),i||r||n||null}function wp(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Ep(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var uI=class extends Cc{constructor(t=null,n,r){super(ZE(n),QE(r,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),is(n)&&(n.nonNullable||n.initialValueIsDefault)&&(Ep(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){wp(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){wp(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){Ep(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var cI={provide:Zr,useExisting:bn(()=>Ic)},Ip=Promise.resolve(),Ic=(()=>{class e extends Zr{constructor(n,r,i,o,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new uI,this._registered=!1,this.name="",this.update=new Y,this._parent=n,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=aI(this,o)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),oI(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){XE(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){Ip.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,i=r!==0&&Ao(r);Ip.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?JE(n,this._parent):[n]}static{this.\u0275fac=function(r){return new(r||e)(Q(yc,9),Q(BE,10),Q(UE,10),Q(wc,10),Q(jt,8),Q(Fp,8))}}static{this.\u0275dir=He({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Mo([cI]),Lt,Sn]})}}return e})();var lI={provide:wc,useExisting:bn(()=>bc),multi:!0},bc=(()=>{class e extends _p{writeValue(n){this.setProperty("value",parseFloat(n))}registerOnChange(n){this.onChange=r=>{n(r==""?null:parseFloat(r))}}static{this.\u0275fac=(()=>{let n;return function(i){return(n||(n=Tn(e)))(i||e)}})()}static{this.\u0275dir=He({type:e,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(r,i){r&1&&Ne("change",function(s){return i.onChange(s.target.value)})("input",function(s){return i.onChange(s.target.value)})("blur",function(){return i.onTouched()})},features:[Mo([lI]),Lt]})}}return e})();var dI=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=yt({type:e})}static{this.\u0275inj=vt({})}}return e})();var kp=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:Fp,useValue:n.callSetDisabledState??Ec}]}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=yt({type:e})}static{this.\u0275inj=vt({imports:[dI]})}}return e})();function hI(e,t){e&1&&(Ae(0,"p"),yr(1,"Drag any photo to this window or click to select."),ze())}function pI(e,t){e&1&&(Ae(0,"p"),yr(1,"Processing image..."),ze())}function gI(e,t){if(e&1){let n=pu();Ae(0,"div",3),On(1,"img",4),Ae(2,"div",5)(3,"div",6)(4,"label")(5,"input",7),mu("ngModelChange",function(i){tt(n);let o=Fn();return nh(o.blurAmount,i)||(o.blurAmount=i),nt(i)}),Ne("ngModelChange",function(){tt(n);let i=Fn();return nt(i.processImage())}),ze()()(),Ae(6,"div",8)(7,"button",9),Ne("click",function(){tt(n);let i=Fn();return nt(i.downloadImage())}),yr(8,"Download Blurred Image"),ze(),Ae(9,"button",10),Ne("click",function(i){return tt(n),Fn().reset(),nt(i.stopPropagation())}),yr(10,"Reset"),ze()()()()}if(e&2){let n=Fn();An(),hu("src",n.blurredImageUrl,yf),An(4),gu("ngModel",n.blurAmount)}}var os=class e{imageUrl=null;blurredImageUrl=null;isProcessing=!1;blurAmount=100;onDragOver(t){t.preventDefault(),t.stopPropagation()}onDrop(t){return Qn(this,null,function*(){t.preventDefault(),t.stopPropagation();let n=t.dataTransfer?.files[0];n&&n.type.startsWith("image/")&&(this.isProcessing=!0,this.imageUrl=yield this.readFile(n),yield this.processImage(),this.isProcessing=!1)})}onFileSelected(t){return Qn(this,null,function*(){let n=t.target,r=n.files?.[0];r&&r.type.startsWith("image/")&&(this.isProcessing=!0,this.imageUrl=yield this.readFile(r),yield this.processImage(),this.isProcessing=!1),n.value=""})}processImage(){return Qn(this,null,function*(){this.imageUrl&&(this.blurredImageUrl=yield this.applyBlur(this.imageUrl))})}readFile(t){return new Promise(n=>{let r=new FileReader;r.onload=()=>n(r.result),r.readAsDataURL(t)})}isSafari(){let t=navigator.userAgent.toLowerCase();return t.includes("safari")&&!t.includes("chrome")}applyBlur(t){return new Promise(n=>{let r=new Image;r.onload=()=>{let i=document.createElement("canvas"),o=i.getContext("2d"),s=r.width/r.height,a=1920,u=Math.round(a/s);if(i.width=a,i.height=u,this.isSafari()){let c=this.blurAmount/100,l=.4,d=_=>{let O=document.createElement("canvas"),k=O.getContext("2d"),K=_*(1-c*.48);return O.width=i.width*K,O.height=i.height*K,{canvas:O,ctx:k}},h=d(l),f=d(l*.5),p=d(l*.25);h.ctx.drawImage(r,0,0,h.canvas.width,h.canvas.height),f.ctx.drawImage(r,0,0,f.canvas.width,f.canvas.height),p.ctx.drawImage(r,0,0,p.canvas.width,p.canvas.height),o.fillStyle="#000000",o.fillRect(0,0,i.width,i.height),o.globalCompositeOperation="source-over",o.globalAlpha=.7*c,o.drawImage(p.canvas,0,0,i.width,i.height),o.globalAlpha=.6*c,o.drawImage(f.canvas,0,0,i.width,i.height),o.globalAlpha=Math.max(.2,.5*(1-c)),o.drawImage(h.canvas,0,0,i.width,i.height),o.globalCompositeOperation="overlay",o.globalAlpha=.2*(1-c*.5),o.drawImage(h.canvas,0,0,i.width,i.height),o.globalCompositeOperation="soft-light",o.globalAlpha=Math.max(.1,.3*(1-c)),o.drawImage(r,0,0,i.width,i.height)}else o.filter=`blur(${this.blurAmount}px)`,o.drawImage(r,0,0,i.width,i.height),o.globalCompositeOperation="source-over",o.filter=`blur(${this.blurAmount*.8}px) brightness(1.2) contrast(1.3)`,o.globalAlpha=.4,o.drawImage(r,0,0,i.width,i.height),o.globalCompositeOperation="overlay",o.globalAlpha=.1,o.drawImage(r,0,0,i.width,i.height);n(i.toDataURL("image/jpeg",.95))},r.src=t})}downloadImage(){if(this.blurredImageUrl){let t=document.createElement("a");t.href=this.blurredImageUrl,t.download="blurred.jpg",t.click()}}reset(){this.imageUrl=null,this.blurredImageUrl=null,this.blurAmount=100}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=co({type:e,selectors:[["app-root"]],standalone:!0,features:[So],decls:7,vars:5,consts:[["fileInput",""],[1,"container",3,"dragover","drop","click"],["type","file","accept","image/*",2,"display","none",3,"change"],[1,"result"],["alt","Blurred image",3,"src"],[1,"overlay"],[1,"controls"],["type","range","min","20","max","200",3,"ngModelChange","ngModel"],[1,"button-group"],[3,"click"],[1,"reset",3,"click"]],template:function(n,r){if(n&1){let i=pu();Ae(0,"div",1),Ne("dragover",function(s){return tt(i),nt(r.onDragOver(s))})("drop",function(s){return tt(i),nt(r.onDrop(s))})("click",function(){tt(i);let s=th(2);return nt(!r.imageUrl&&s.click())}),Ae(1,"input",2,0),Ne("change",function(s){return tt(i),nt(r.onFileSelected(s))}),ze(),fu(3,hI,2,0,"p")(4,pI,2,0,"p")(5,gI,11,2,"div",3),ze(),On(6,"router-outlet")}n&2&&(vr("has-image",r.imageUrl),An(3),_o(r.imageUrl?-1:3),An(),_o(r.isProcessing?4:-1),An(),_o(r.blurredImageUrl?5:-1))},dependencies:[dc,wu,kp,rs,bc,Op,Ic],styles:["*[_ngcontent-%COMP%]{box-sizing:border-box}.container[_ngcontent-%COMP%]{height:100vh;padding:0;margin:0;overflow:hidden;display:flex;flex-direction:column;box-sizing:border-box;justify-content:center;align-items:center}.container[_ngcontent-%COMP%]:not(.has-image){border:4px dashed #ccc;border-radius:4px;padding:20px;cursor:pointer}.result[_ngcontent-%COMP%]{margin:0;position:relative;width:100%;height:100%;display:flex}.result[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover;border-radius:0;box-shadow:none}.overlay[_ngcontent-%COMP%]{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;gap:20px;background:#0003;opacity:.1;transition:opacity .3s ease;border-radius:8px;padding-top:20px}.overlay[_ngcontent-%COMP%]:hover{opacity:1}.controls[_ngcontent-%COMP%]{background:#000000b3;padding:8px 15px;border-radius:4px}.controls[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px;align-items:center;color:#fff}.controls[_ngcontent-%COMP%] input[type=range][_ngcontent-%COMP%]{width:200px}button[_ngcontent-%COMP%]:hover{background-color:#0056b3}.button-group[_ngcontent-%COMP%]{display:flex;gap:10px}.reset[_ngcontent-%COMP%]{background-color:#dc3545}.reset[_ngcontent-%COMP%]:hover{background-color:#c82333}.container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:1.2rem;color:#666}"]})};Sh(os,mp).catch(e=>console.error(e)); diff --git a/main-N4WP2TJL.js b/main-N4WP2TJL.js deleted file mode 100644 index 87f1eea..0000000 --- a/main-N4WP2TJL.js +++ /dev/null @@ -1,7 +0,0 @@ -var Vp=Object.defineProperty,jp=Object.defineProperties;var Up=Object.getOwnPropertyDescriptors;var _c=Object.getOwnPropertySymbols;var Bp=Object.prototype.hasOwnProperty,$p=Object.prototype.propertyIsEnumerable;var Mc=(e,t,n)=>t in e?Vp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,p=(e,t)=>{for(var n in t||={})Bp.call(t,n)&&Mc(e,n,t[n]);if(_c)for(var n of _c(t))$p.call(t,n)&&Mc(e,n,t[n]);return e},F=(e,t)=>jp(e,Up(t));var Qn=(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())});function Sc(e,t){return Object.is(e,t)}var W=null,Yr=!1,Qr=1,qe=Symbol("SIGNAL");function O(e){let t=W;return W=e,t}function Tc(){return W}var Jn={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 cs(e){if(Yr)throw new Error("");if(W===null)return;W.consumerOnSignalRead(e);let t=W.nextProducerIndex++;if(ei(W),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function ds(e){ei(e);for(let t=0;t0}function ei(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Oc(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Fc(e){return e.producerNode!==void 0}function Pc(e){let t=Object.create(Gp);t.computation=e;let n=()=>{if(xc(t),cs(t),t.value===Kr)throw t.error;return t.value};return n[qe]=t,n}var as=Symbol("UNSET"),us=Symbol("COMPUTING"),Kr=Symbol("ERRORED"),Gp=F(p({},Jn),{value:as,dirty:!0,error:null,equal:Sc,producerMustRecompute(e){return e.value===as||e.value===us},producerRecomputeValue(e){if(e.value===us)throw new Error("Detected cycle in computations.");let t=e.value;e.value=us;let n=Jr(e),r;try{r=e.computation()}catch(i){r=Kr,e.error=i}finally{ls(e,n)}if(t!==as&&t!==Kr&&r!==Kr&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++}});function Wp(){throw new Error}var kc=Wp;function Lc(){kc()}function Vc(e){kc=e}var qp=null;function jc(e){let t=Object.create(Bc);t.value=e;let n=()=>(cs(t),t.value);return n[qe]=t,n}function hs(e,t){Nc()||Lc(),e.equal(e.value,t)||(e.value=t,Zp(e))}function Uc(e,t){Nc()||Lc(),hs(e,t(e.value))}var Bc=F(p({},Jn),{equal:Sc,value:void 0});function Zp(e){e.version++,Hp(),Ac(e),qp?.()}function v(e){return typeof e=="function"}function qt(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 ti=qt(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 Et(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 ti?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{$c(o)}catch(s){t=t??[],s instanceof ti?t=[...t,...s.errors]:t.push(s)}}if(t)throw new ti(t)}}add(t){var n;if(t&&t!==this)if(this.closed)$c(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)&&Et(n,t)}remove(t){let{_finalizers:n}=this;n&&Et(n,t),t instanceof e&&t._removeParent(this)}};z.EMPTY=(()=>{let e=new z;return e.closed=!0,e})();var ps=z.EMPTY;function ni(e){return e instanceof z||e&&"closed"in e&&v(e.remove)&&v(e.add)&&v(e.unsubscribe)}function $c(e){v(e)?e():e.unsubscribe()}var be={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Zt={setTimeout(e,t,...n){let{delegate:r}=Zt;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Zt;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function ri(e){Zt.setTimeout(()=>{let{onUnhandledError:t}=be;if(t)t(e);else throw e})}function Ze(){}var Hc=gs("C",void 0,void 0);function zc(e){return gs("E",void 0,e)}function Gc(e){return gs("N",e,void 0)}function gs(e,t,n){return{kind:e,value:t,error:n}}var It=null;function Yt(e){if(be.useDeprecatedSynchronousErrorHandling){let t=!It;if(t&&(It={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=It;if(It=null,n)throw r}}else e()}function Wc(e){be.useDeprecatedSynchronousErrorHandling&&It&&(It.errorThrown=!0,It.error=e)}var bt=class extends z{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,ni(t)&&t.add(this)):this.destination=Kp}static create(t,n,r){return new Qt(t,n,r)}next(t){this.isStopped?vs(Gc(t),this):this._next(t)}error(t){this.isStopped?vs(zc(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?vs(Hc,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()}}},Yp=Function.prototype.bind;function ms(e,t){return Yp.call(e,t)}var ys=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){ii(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){ii(r)}else ii(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){ii(n)}}},Qt=class extends bt{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&&ms(t.next,o),error:t.error&&ms(t.error,o),complete:t.complete&&ms(t.complete,o)}):i=t}this.destination=new ys(i)}};function ii(e){be.useDeprecatedSynchronousErrorHandling?Wc(e):ri(e)}function Qp(e){throw e}function vs(e,t){let{onStoppedNotification:n}=be;n&&Zt.setTimeout(()=>n(e,t))}var Kp={closed:!0,next:Ze,error:Qp,complete:Ze};var Kt=typeof Symbol=="function"&&Symbol.observable||"@@observable";function le(e){return e}function Ds(...e){return Cs(e)}function Cs(e){return e.length===0?le:e.length===1?e[0]:function(n){return e.reduce((r,i)=>i(r),n)}}var S=(()=>{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=Xp(n)?n:new Qt(n,r,i);return Yt(()=>{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=qc(r),new r((i,o)=>{let s=new Qt({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)}[Kt](){return this}pipe(...n){return Cs(n)(this)}toPromise(n){return n=qc(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 qc(e){var t;return(t=e??be.Promise)!==null&&t!==void 0?t:Promise}function Jp(e){return e&&v(e.next)&&v(e.error)&&v(e.complete)}function Xp(e){return e&&e instanceof bt||Jp(e)&&ni(e)}function ws(e){return v(e?.lift)}function T(e){return t=>{if(ws(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 x(e,t,n,r,i){return new Es(e,t,n,r,i)}var Es=class extends bt{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 Jt(){return T((e,t)=>{let n=null;e._refCount++;let r=x(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 at=class extends S{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,ws(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(x(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 Jt()(this)}};var Zc=qt(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var B=(()=>{class e extends S{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new oi(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Zc}next(n){Yt(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Yt(()=>{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(){Yt(()=>{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?ps:(this.currentObservers=null,o.push(n),new z(()=>{this.currentObservers=null,Et(o,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){let n=new S;return n.source=this,n}}return e.create=(t,n)=>new oi(t,n),e})(),oi=class extends B{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:ps}};var K=class extends B{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 Is={now(){return(Is.delegate||Date).now()},delegate:void 0};var si=class extends z{constructor(t,n){super()}schedule(t,n=0){return this}};var Xn={setInterval(e,t,...n){let{delegate:r}=Xn;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=Xn;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var ai=class extends si{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 Xn.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&&Xn.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,Et(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var Xt=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)}};Xt.now=Is.now;var ui=class extends Xt{constructor(t,n=Xt.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 bs=new ui(ai),Yc=bs;var ne=new S(e=>e.complete());function ci(e){return e&&v(e.schedule)}function _s(e){return e[e.length-1]}function li(e){return v(_s(e))?e.pop():void 0}function Oe(e){return ci(_s(e))?e.pop():void 0}function Qc(e,t){return typeof _s(e)=="number"?e.pop():t}function Jc(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 Kc(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 _t(e){return this instanceof _t?(this.v=e,this):new _t(e)}function Xc(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(M){return new Promise(function(k,P){o.push([f,M,k,P])>1||u(f,M)})},m&&(i[f]=m(i[f])))}function u(f,m){try{c(r[f](m))}catch(M){h(o[0][3],M)}}function c(f){f.value instanceof _t?Promise.resolve(f.value.v).then(l,d):h(o[0][2],f)}function l(f){u("next",f)}function d(f){u("throw",f)}function h(f,m){f(m),o.shift(),o.length&&u(o[0][0],o[0][1])}}function el(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 Kc=="function"?Kc(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 en=e=>e&&typeof e.length=="number"&&typeof e!="function";function di(e){return v(e?.then)}function fi(e){return v(e[Kt])}function hi(e){return Symbol.asyncIterator&&v(e?.[Symbol.asyncIterator])}function pi(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 eg(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var gi=eg();function mi(e){return v(e?.[gi])}function vi(e){return Xc(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:i}=yield _t(n.read());if(i)return yield _t(void 0);yield yield _t(r)}}finally{n.releaseLock()}})}function yi(e){return v(e?.getReader)}function V(e){if(e instanceof S)return e;if(e!=null){if(fi(e))return tg(e);if(en(e))return ng(e);if(di(e))return rg(e);if(hi(e))return tl(e);if(mi(e))return ig(e);if(yi(e))return og(e)}throw pi(e)}function tg(e){return new S(t=>{let n=e[Kt]();if(v(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function ng(e){return new S(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,ri)})}function ig(e){return new S(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function tl(e){return new S(t=>{sg(e,t).catch(n=>t.error(n))})}function og(e){return tl(vi(e))}function sg(e,t){var n,r,i,o;return Jc(this,void 0,void 0,function*(){try{for(n=el(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 ae(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 Di(e,t=0){return T((n,r)=>{n.subscribe(x(r,i=>ae(r,e,()=>r.next(i),t),()=>ae(r,e,()=>r.complete(),t),i=>ae(r,e,()=>r.error(i),t)))})}function Ci(e,t=0){return T((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function nl(e,t){return V(e).pipe(Ci(t),Di(t))}function rl(e,t){return V(e).pipe(Ci(t),Di(t))}function il(e,t){return new S(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function ol(e,t){return new S(n=>{let r;return ae(n,t,()=>{r=e[gi](),ae(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 wi(e,t){if(!e)throw new Error("Iterable cannot be null");return new S(n=>{ae(n,t,()=>{let r=e[Symbol.asyncIterator]();ae(n,t,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function sl(e,t){return wi(vi(e),t)}function al(e,t){if(e!=null){if(fi(e))return nl(e,t);if(en(e))return il(e,t);if(di(e))return rl(e,t);if(hi(e))return wi(e,t);if(mi(e))return ol(e,t);if(yi(e))return sl(e,t)}throw pi(e)}function U(e,t){return t?al(e,t):V(e)}function w(...e){let t=Oe(e);return U(e,t)}function ut(e,t){let n=v(e)?e:()=>e,r=i=>i.error(n());return new S(t?i=>t.schedule(r,0,i):r)}function Ms(e){return!!e&&(e instanceof S||v(e.lift)&&v(e.subscribe))}var Ye=qt(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function ul(e){return e instanceof Date&&!isNaN(e)}function I(e,t){return T((n,r)=>{let i=0;n.subscribe(x(r,o=>{r.next(e.call(t,o,i++))}))})}var{isArray:ag}=Array;function ug(e,t){return ag(t)?e(...t):e(t)}function tn(e){return I(t=>ug(e,t))}var{isArray:cg}=Array,{getPrototypeOf:lg,prototype:dg,keys:fg}=Object;function Ei(e){if(e.length===1){let t=e[0];if(cg(t))return{args:t,keys:null};if(hg(t)){let n=fg(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function hg(e){return e&&typeof e=="object"&&lg(e)===dg}function Ii(e,t){return e.reduce((n,r,i)=>(n[r]=t[i],n),{})}function bi(...e){let t=Oe(e),n=li(e),{args:r,keys:i}=Ei(e);if(r.length===0)return U([],t);let o=new S(pg(r,t,i?s=>Ii(i,s):le));return n?o.pipe(tn(n)):o}function pg(e,t,n=le){return r=>{cl(t,()=>{let{length:i}=e,o=new Array(i),s=i,a=i;for(let u=0;u{let c=U(e[u],t),l=!1;c.subscribe(x(r,d=>{o[u]=d,l||(l=!0,a--),a||r.next(n(o.slice()))},()=>{--s||r.complete()}))},r)},r)}}function cl(e,t,n){e?ae(n,e,t):t()}function ll(e,t,n,r,i,o,s,a){let u=[],c=0,l=0,d=!1,h=()=>{d&&!u.length&&!c&&t.complete()},f=M=>c{o&&t.next(M),c++;let k=!1;V(n(M,l++)).subscribe(x(t,P=>{i?.(P),o?f(P):t.next(P)},()=>{k=!0},void 0,()=>{if(k)try{for(c--;u.length&&cm(P)):m(P)}h()}catch(P){t.error(P)}}))};return e.subscribe(x(t,f,()=>{d=!0,h()})),()=>{a?.()}}function $(e,t,n=1/0){return v(t)?$((r,i)=>I((o,s)=>t(r,o,i,s))(V(e(r,i))),n):(typeof t=="number"&&(n=t),T((r,i)=>ll(r,i,e,n)))}function er(e=1/0){return $(le,e)}function dl(){return er(1)}function Fe(...e){return dl()(U(e,Oe(e)))}function Mt(e){return new S(t=>{V(e()).subscribe(t)})}function Ss(...e){let t=li(e),{args:n,keys:r}=Ei(e),i=new S(o=>{let{length:s}=n;if(!s){o.complete();return}let a=new Array(s),u=s,c=s;for(let l=0;l{d||(d=!0,c--),a[l]=h},()=>u--,void 0,()=>{(!u||!d)&&(c||o.next(r?Ii(r,a):a),o.complete())}))}});return t?i.pipe(tn(t)):i}var gg=["addListener","removeListener"],mg=["addEventListener","removeEventListener"],vg=["on","off"];function nn(e,t,n,r){if(v(n)&&(r=n,n=void 0),r)return nn(e,t,n).pipe(tn(r));let[i,o]=Cg(e)?mg.map(s=>a=>e[s](t,a,n)):yg(e)?gg.map(fl(e,t)):Dg(e)?vg.map(fl(e,t)):[];if(!i&&en(e))return $(s=>nn(s,t,n))(V(e));if(!i)throw new TypeError("Invalid event target");return new S(s=>{let a=(...u)=>s.next(1o(a)})}function fl(e,t){return n=>r=>e[n](t,r)}function yg(e){return v(e.addListener)&&v(e.removeListener)}function Dg(e){return v(e.on)&&v(e.off)}function Cg(e){return v(e.addEventListener)&&v(e.removeEventListener)}function hl(e=0,t,n=Yc){let r=-1;return t!=null&&(ci(t)?n=t:r=t),new S(i=>{let o=ul(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 _i(...e){let t=Oe(e),n=Qc(e,1/0),r=e;return r.length?r.length===1?V(r[0]):er(n)(U(r,t)):ne}var St=new S(Ze);function ee(e,t){return T((n,r)=>{let i=0;n.subscribe(x(r,o=>e.call(t,o,i++)&&r.next(o)))})}function ct(e){return T((t,n)=>{let r=null,i=!1,o;r=t.subscribe(x(n,void 0,void 0,s=>{o=V(e(s,ct(e)(t))),r?(r.unsubscribe(),r=null,o.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(n))})}function pl(e,t,n,r,i){return(o,s)=>{let a=n,u=t,c=0;o.subscribe(x(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 rn(e,t){return v(t)?$(e,t,1):$(e,1)}function gl(e){return new S(t=>e.subscribe(t))}var wg={connector:()=>new B};function Mi(e,t=wg){let{connector:n}=t;return T((r,i)=>{let o=n();V(e(gl(o))).subscribe(i),i.add(r.subscribe(o))})}function lt(e){return T((t,n)=>{let r=!1;t.subscribe(x(n,i=>{r=!0,n.next(i)},()=>{r||n.next(e),n.complete()}))})}function q(e){return e<=0?()=>ne:T((t,n)=>{let r=0;t.subscribe(x(n,i=>{++r<=e&&(n.next(i),e<=r&&n.complete())}))})}function ml(){return T((e,t)=>{e.subscribe(x(t,Ze))})}function tr(e){return I(()=>e)}function Ts(e,t){return t?n=>Fe(t.pipe(q(1),ml()),n.pipe(Ts(e))):$((n,r)=>V(e(n,r)).pipe(q(1),tr(n)))}function xs(e,t=bs){let n=hl(e,t);return Ts(()=>n)}function Si(e=Eg){return T((t,n)=>{let r=!1;t.subscribe(x(n,i=>{r=!0,n.next(i)},()=>r?n.complete():n.error(e())))})}function Eg(){return new Ye}function nr(e){return T((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Pe(e,t){let n=arguments.length>=2;return r=>r.pipe(e?ee((i,o)=>e(i,o,r)):le,q(1),n?lt(t):Si(()=>new Ye))}function on(e){return e<=0?()=>ne:T((t,n)=>{let r=[];t.subscribe(x(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?ee((i,o)=>e(i,o,r)):le,on(1),n?lt(t):Si(()=>new Ye))}function vl(e,t){let n=v(e)?e:()=>e;return v(t)?Mi(t,{connector:n}):r=>new at(r,n)}function Ns(e){return e?t=>Mi(e)(t):t=>vl(new B)(t)}function Rs(e,t){return T(pl(e,t,arguments.length>=2,!0))}function Os(...e){let t=Oe(e);return T((n,r)=>{(t?Fe(e,n,t):Fe(e,n)).subscribe(r)})}function te(e,t){return T((n,r)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&r.complete();n.subscribe(x(r,u=>{i?.unsubscribe();let c=0,l=o++;V(e(u,l)).subscribe(i=x(r,d=>r.next(t?t(u,d,l,c++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function Fs(e){return T((t,n)=>{V(e).subscribe(x(n,()=>n.complete(),Ze)),!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?T((i,o)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;i.subscribe(x(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)}))}):le}var ed="https://g.co/ng/security#xss",y=class extends Error{constructor(t,n){super(Ra(t,n)),this.code=t}};function Ra(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}function so(e){return{toString:e}.toString()}function j(e){for(let t in e)if(e[t]===j)return t;throw Error("Could not find renamed property on target object.")}function Ig(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function ue(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(ue).join(", ")+"]";if(e==null)return""+e;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 yl(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var bg=j({__forward_ref__:j});function bn(e){return e.__forward_ref__=bn,e.toString=function(){return ue(this())},e}function re(e){return td(e)?e():e}function td(e){return typeof e=="function"&&e.hasOwnProperty(bg)&&e.__forward_ref__===bn}function C(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function vt(e){return{providers:e.providers||[],imports:e.imports||[]}}function ao(e){return Dl(e,rd)||Dl(e,id)}function nd(e){return ao(e)!==null}function Dl(e,t){return e.hasOwnProperty(t)?e[t]:null}function _g(e){let t=e&&(e[rd]||e[id]);return t||null}function Cl(e){return e&&(e.hasOwnProperty(wl)||e.hasOwnProperty(Mg))?e[wl]:null}var rd=j({\u0275prov:j}),wl=j({\u0275inj:j}),id=j({ngInjectableDef:j}),Mg=j({ngInjectorDef:j}),D=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=C({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function od(e){return e&&!!e.\u0275providers}var Sg=j({\u0275cmp:j}),Tg=j({\u0275dir:j}),xg=j({\u0275pipe:j}),Ag=j({\u0275mod:j}),ki=j({\u0275fac:j}),or=j({__NG_ELEMENT_ID__:j}),El=j({__NG_ENV_ID__:j});function sd(e){return typeof e=="string"?e:e==null?"":String(e)}function Ng(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():sd(e)}function Rg(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new y(-200,e)}function Oa(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}(_||{}),Zs;function ad(){return Zs}function ge(e){let t=Zs;return Zs=e,t}function ud(e,t,n){let r=ao(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;Oa(e,"Injector")}var Og={},sr=Og,Fg="__NG_DI_FLAG__",Li="ngTempTokenPath",Pg="ngTokenPath",kg=/\n/gm,Lg="\u0275",Il="__source",cn;function Vg(){return cn}function dt(e){let t=cn;return cn=e,t}function jg(e,t=_.Default){if(cn===void 0)throw new y(-203,!1);return cn===null?ud(e,void 0,t):cn.get(e,t&_.Optional?null:void 0,t)}function N(e,t=_.Default){return(ad()||jg)(re(e),t)}function g(e,t=_.Default){return N(e,uo(t))}function uo(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Ys(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):ue(a)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(kg,` - `)}`}function dn(e,t){let n=e.hasOwnProperty(ki);return n?e[ki]:null}function Fa(e,t){e.forEach(n=>Array.isArray(n)?Fa(n,t):t(n))}function cd(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Vi(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Hg(e,t,n,r){let i=e.length;if(i==t)e.push(n,r);else if(i===1)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;){let o=i-2;e[i]=e[o],i--}e[t]=n,e[t+1]=r}}function zg(e,t,n){let r=hr(e,t);return r>=0?e[r|1]=n:(r=~r,Hg(e,r,t,n)),r}function Ps(e,t){let n=hr(e,t);if(n>=0)return e[n|1]}function hr(e,t){return Gg(e,t,1)}function Gg(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){let o=r+(i-r>>1),s=e[o<t?i=o:r=o+1}return~(i<t){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 Jg(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+=_l(o,i),i=""),r=s,o=o||!_e(r);n++}return i!==""&&(t+=_l(o,i)),t}function rm(e){return e.map(nm).join(",")}function im(e){let t=[],n=[],r=1,i=2;for(;r{let t=yd(e),n=F(p({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===fd.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Ve.Emulated,styles:e.styles||me,_:null,schemas:e.schemas||null,tView:null,id:""});Dd(n);let r=e.dependencies;return n.directiveDefs=Sl(r,!1),n.pipeDefs=Sl(r,!0),n.id=am(n),n})}function om(e){return xt(e)||pd(e)}function sm(e){return e!==null}function yt(e){return so(()=>({type:e.type,bootstrap:e.bootstrap||me,declarations:e.declarations||me,imports:e.imports||me,exports:e.exports||me,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Ml(e,t){if(e==null)return fn;let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],o,s,a=pt.None;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o):(o=i,s=i),t?(n[o]=a!==pt.None?[r,a]:r,t[o]=s):n[o]=r}return n}function He(e){return so(()=>{let t=yd(e);return Dd(t),t})}function xt(e){return e[Sg]||null}function pd(e){return e[Tg]||null}function gd(e){return e[xg]||null}function md(e){let t=xt(e)||pd(e)||gd(e);return t!==null?t.standalone:!1}function vd(e,t){let n=e[Ag]||null;if(!n&&t===!0)throw new Error(`Type ${ue(e)} does not have '\u0275mod' property.`);return n}function yd(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||fn,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||me,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Ml(e.inputs,t),outputs:Ml(e.outputs),debugInfo:null}}function Dd(e){e.features?.forEach(t=>t(e))}function Sl(e,t){if(!e)return null;let n=t?gd:om;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(sm)}function am(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 _n(e){return{\u0275providers:e}}function um(...e){return{\u0275providers:Cd(!0,e),\u0275fromNgModule:!0}}function Cd(e,...t){let n=[],r=new Set,i,o=s=>{n.push(s)};return Fa(t,s=>{let a=s;Ks(a,o,[],r)&&(i||=[],i.push(a))}),i!==void 0&&wd(i,o),n}function wd(e,t){for(let n=0;n{t(o,r)})}}function Ks(e,t,n,r){if(e=re(e),!e)return!1;let i=null,o=Cl(e),s=!o&&xt(e);if(!o&&!s){let u=e.ngModule;if(o=Cl(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)Ks(c,t,n,r)}}else if(o){if(o.imports!=null&&!a){r.add(i);let c;try{Fa(o.imports,l=>{Ks(l,t,n,r)&&(c||=[],c.push(l))})}finally{}c!==void 0&&wd(c,t)}if(!a){let c=dn(i)||(()=>new i);t({provide:i,useFactory:c,deps:me},i),t({provide:dd,useValue:i,multi:!0},i),t({provide:hn,useValue:()=>N(i),multi:!0},i)}let u=o.providers;if(u!=null&&!a){let c=e;ka(u,l=>{t(l,c)})}}else return!1;return i!==e&&e.providers!==void 0}function ka(e,t){for(let n of e)od(n)&&(n=n.\u0275providers),Array.isArray(n)?ka(n,t):t(n)}var cm=j({provide:String,useValue:j});function Ed(e){return e!==null&&typeof e=="object"&&cm in e}function lm(e){return!!(e&&e.useExisting)}function dm(e){return!!(e&&e.useFactory)}function pn(e){return typeof e=="function"}function fm(e){return!!e.useClass}var lo=new D(""),Ni={},hm={},ks;function La(){return ks===void 0&&(ks=new ji),ks}var ye=class{},ur=class extends ye{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(ld,sn(void 0,this)),i.has("environment")&&this.records.set(ye,sn(void 0,this));let o=this.records.get(lo);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(dd,me,_.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=dt(this),r=ge(void 0),i;try{return t()}finally{dt(n),ge(r)}}get(t,n=sr,r=_.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(El))return t[El](this);r=uo(r);let i,o=dt(this),s=ge(void 0);try{if(!(r&_.SkipSelf)){let u=this.records.get(t);if(u===void 0){let c=ym(t)&&ao(t);c&&this.injectableDefInScope(c)?u=sn(Js(t),Ni):u=null,this.records.set(t,u)}if(u!=null)return this.hydrate(t,u)}let a=r&_.Self?La():this.parent;return n=r&_.Optional&&n===sr?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Li]=a[Li]||[]).unshift(ue(t)),o)throw a;return Bg(a,t,"R3InjectorError",this.source)}else throw a}finally{ge(s),dt(o)}}resolveInjectorInitializers(){let t=O(null),n=dt(this),r=ge(void 0),i;try{let o=this.get(hn,me,_.Self);for(let s of o)s()}finally{dt(n),ge(r),O(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(ue(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new y(205,!1)}processProvider(t){t=re(t);let n=pn(t)?t:re(t&&t.provide),r=gm(t);if(!pn(t)&&t.multi===!0){let i=this.records.get(n);i||(i=sn(void 0,Ni,!0),i.factory=()=>Ys(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===Ni&&(n.value=hm,n.value=n.factory()),typeof n.value=="object"&&n.value&&vm(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{O(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=re(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 Js(e){let t=ao(e),n=t!==null?t.factory:dn(e);if(n!==null)return n;if(e instanceof D)throw new y(204,!1);if(e instanceof Function)return pm(e);throw new y(204,!1)}function pm(e){if(e.length>0)throw new y(204,!1);let n=_g(e);return n!==null?()=>n.factory(e):()=>new e}function gm(e){if(Ed(e))return sn(void 0,e.useValue);{let t=Id(e);return sn(t,Ni)}}function Id(e,t,n){let r;if(pn(e)){let i=re(e);return dn(i)||Js(i)}else if(Ed(e))r=()=>re(e.useValue);else if(dm(e))r=()=>e.useFactory(...Ys(e.deps||[]));else if(lm(e))r=()=>N(re(e.useExisting));else{let i=re(e&&(e.useClass||e.provide));if(mm(e))r=()=>new i(...Ys(e.deps));else return dn(i)||Js(i)}return r}function sn(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function mm(e){return!!e.deps}function vm(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function ym(e){return typeof e=="function"||typeof e=="object"&&e instanceof D}function Xs(e,t){for(let n of e)Array.isArray(n)?Xs(n,t):n&&od(n)?Xs(n.\u0275providers,t):t(n)}function Je(e,t){e instanceof ur&&e.assertNotDestroyed();let n,r=dt(e),i=ge(void 0);try{return t()}finally{dt(r),ge(i)}}function Dm(){return ad()!==void 0||Vg()!=null}function Cm(e){return typeof e=="function"}var Xe=0,A=1,E=2,ie=3,Me=4,Te=5,Ui=6,Bi=7,De=8,gn=9,je=10,J=11,cr=12,Tl=13,Mn=14,Ue=15,mn=16,an=17,vn=18,fo=19,bd=20,ft=21,Ls=22,ve=23,Se=25,_d=1;var At=7,$i=8,Hi=9,de=10,zi=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(zi||{});function ht(e){return Array.isArray(e)&&typeof e[_d]=="object"}function et(e){return Array.isArray(e)&&e[_d]===!0}function Md(e){return(e.flags&4)!==0}function ho(e){return e.componentOffset>-1}function Va(e){return(e.flags&1)===1}function gt(e){return!!e.template}function ea(e){return(e[E]&512)!==0}var ta=class{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Sd(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function Sn(){return Td}function Td(e){return e.type.prototype.ngOnChanges&&(e.setInput=Em),wm}Sn.ngInherit=!0;function wm(){let e=Ad(this),t=e?.current;if(t){let n=e.previous;if(n===fn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Em(e,t,n,r,i){let o=this.declaredInputs[r],s=Ad(e)||Im(e,{previous:fn,current:null}),a=s.current||(s.current={}),u=s.previous,c=u[o];a[o]=new ta(c&&c.currentValue,n,u===fn),Sd(e,t,i,n)}var xd="__ngSimpleChanges__";function Ad(e){return e[xd]||null}function Im(e,t){return e[xd]=t}var xl=null;var ke=function(e,t,n){xl?.(e,t,n)},bm="svg",_m="math";function Be(e){for(;Array.isArray(e);)e=e[Xe];return e}function Mm(e,t){return Be(t[e])}function xe(e,t){return Be(t[e.index])}function ja(e,t){return e.data[t]}function Sm(e,t){return e[t]}function Dt(e,t){let n=t[e];return ht(n)?n:n[Xe]}function Ua(e){return(e[E]&128)===128}function Tm(e){return et(e[ie])}function Gi(e,t){return t==null?null:e[t]}function Nd(e){e[an]=0}function Rd(e){e[E]&1024||(e[E]|=1024,Ua(e)&&go(e))}function xm(e,t){for(;e>0;)t=t[Mn],e--;return t}function po(e){return!!(e[E]&9216||e[ve]?.dirty)}function na(e){e[je].changeDetectionScheduler?.notify(8),e[E]&64&&(e[E]|=1024),po(e)&&go(e)}function go(e){e[je].changeDetectionScheduler?.notify(0);let t=Nt(e);for(;t!==null&&!(t[E]&8192||(t[E]|=8192,!Ua(t)));)t=Nt(t)}function Od(e,t){if((e[E]&256)===256)throw new y(911,!1);e[ft]===null&&(e[ft]=[]),e[ft].push(t)}function Am(e,t){if(e[ft]===null)return;let n=e[ft].indexOf(t);n!==-1&&e[ft].splice(n,1)}function Nt(e){let t=e[ie];return et(t)?t[ie]:t}var R={lFrame:$d(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Fd=!1;function Nm(){return R.lFrame.elementDepthCount}function Rm(){R.lFrame.elementDepthCount++}function Om(){R.lFrame.elementDepthCount--}function Pd(){return R.bindingsEnabled}function Fm(){return R.skipHydrationRootTNode!==null}function Pm(e){return R.skipHydrationRootTNode===e}function km(){R.skipHydrationRootTNode=null}function H(){return R.lFrame.lView}function Ce(){return R.lFrame.tView}function tt(e){return R.lFrame.contextLView=e,e[De]}function nt(e){return R.lFrame.contextLView=null,e}function fe(){let e=kd();for(;e!==null&&e.type===64;)e=e.parent;return e}function kd(){return R.lFrame.currentTNode}function Lm(){let e=R.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function pr(e,t){let n=R.lFrame;n.currentTNode=e,n.isParent=t}function Ld(){return R.lFrame.isParent}function Vm(){R.lFrame.isParent=!1}function jm(){return R.lFrame.contextLView}function Vd(){return Fd}function Al(e){Fd=e}function Um(e){return R.lFrame.bindingIndex=e}function Ba(){return R.lFrame.bindingIndex++}function Bm(e){let t=R.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function $m(){return R.lFrame.inI18n}function Hm(e,t){let n=R.lFrame;n.bindingIndex=n.bindingRootIndex=e,ra(t)}function zm(){return R.lFrame.currentDirectiveIndex}function ra(e){R.lFrame.currentDirectiveIndex=e}function Gm(e){let t=R.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function jd(e){R.lFrame.currentQueryIndex=e}function Wm(e){let t=e[A];return t.type===2?t.declTNode:t.type===1?e[Te]:null}function Ud(e,t,n){if(n&_.SkipSelf){let i=t,o=e;for(;i=i.parent,i===null&&!(n&_.Host);)if(i=Wm(o),i===null||(o=o[Mn],i.type&10))break;if(i===null)return!1;t=i,e=o}let r=R.lFrame=Bd();return r.currentTNode=t,r.lView=e,!0}function $a(e){let t=Bd(),n=e[A];R.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Bd(){let e=R.lFrame,t=e===null?null:e.child;return t===null?$d(e):t}function $d(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 Hd(){let e=R.lFrame;return R.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var zd=Hd;function Ha(){let e=Hd();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 qm(e){return(R.lFrame.contextLView=xm(e,R.lFrame.contextLView))[De]}function gr(){return R.lFrame.selectedIndex}function Rt(e){R.lFrame.selectedIndex=e}function Gd(){let e=R.lFrame;return ja(e.tView,e.selectedIndex)}function Zm(){return R.lFrame.currentNamespace}var Wd=!0;function za(){return Wd}function Ga(e){Wd=e}function Ym(e,t,n){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){let s=Td(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 Wa(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,Nl(a,o)):Nl(a,o)}var ln=-1,Ot=class{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function Km(e){return e instanceof Ot}function Jm(e){return(e.flags&8)!==0}function Xm(e){return(e.flags&16)!==0}var js={},ia=class{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=uo(r);let i=this.injector.get(t,js,r);return i!==js||n===js?i:this.parentInjector.get(t,n,r)}};function Zd(e){return e!==ln}function Wi(e){return e&32767}function ev(e){return e>>16}function qi(e,t){let n=ev(e),r=t;for(;n>0;)r=r[Mn],n--;return r}var oa=!0;function Rl(e){let t=oa;return oa=e,t}var tv=256,Yd=tv-1,Qd=5,nv=0,Le={};function rv(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(or)&&(r=n[or]),r==null&&(r=n[or]=nv++);let i=r&Yd,o=1<>Qd)]|=o}function Zi(e,t){let n=Kd(e,t);if(n!==-1)return n;let r=t[A];r.firstCreatePass&&(e.injectorIndex=t.length,Us(r.data,e),Us(t,null),Us(r.blueprint,null));let i=qa(e,t),o=e.injectorIndex;if(Zd(i)){let s=Wi(i),a=qi(i,t),u=a[A].data;for(let c=0;c<8;c++)t[o+c]=a[s+c]|u[s+c]}return t[o+8]=i,o}function Us(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Kd(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function qa(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=nf(i),r===null)return ln;if(n++,i=i[Mn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return ln}function sa(e,t,n){rv(e,t,n)}function Jd(e,t,n){if(n&_.Optional||e!==void 0)return e;Oa(t,"NodeInjector")}function Xd(e,t,n,r){if(n&_.Optional&&r===void 0&&(r=null),!(n&(_.Self|_.Host))){let i=e[gn],o=ge(void 0);try{return i?i.get(t,r,n&_.Optional):ud(t,r,n&_.Optional)}finally{ge(o)}}return Jd(r,t,n)}function ef(e,t,n,r=_.Default,i){if(e!==null){if(t[E]&2048&&!(r&_.Self)){let s=uv(e,t,n,r,Le);if(s!==Le)return s}let o=tf(e,t,n,r,Le);if(o!==Le)return o}return Xd(t,n,r,i)}function tf(e,t,n,r,i){let o=sv(n);if(typeof o=="function"){if(!Ud(t,e,r))return r&_.Host?Jd(i,n,r):Xd(t,n,r,i);try{let s;if(s=o(r),s==null&&!(r&_.Optional))Oa(n);else return s}finally{zd()}}else if(typeof o=="number"){let s=null,a=Kd(e,t),u=ln,c=r&_.Host?t[Ue][Te]:null;for((a===-1||r&_.SkipSelf)&&(u=a===-1?qa(e,t):t[a+8],u===ln||!Fl(r,!1)?a=-1:(s=t[A],a=Wi(u),t=qi(u,t)));a!==-1;){let l=t[A];if(Ol(o,a,l.data)){let d=iv(a,t,n,s,r,c);if(d!==Le)return d}u=t[a+8],u!==ln&&Fl(r,t[A].data[a+8]===c)&&Ol(o,a,t)?(s=l,a=Wi(u),t=qi(u,t)):a=-1}}return i}function iv(e,t,n,r,i,o){let s=t[A],a=s.data[e+8],u=r==null?ho(a)&&oa:r!=s&&(a.type&3)!==0,c=i&_.Host&&o===a,l=ov(a,s,n,u,c);return l!==null?yn(t,s,l,a):Le}function ov(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,h=i?a+l:c;for(let f=d;f=u&&m.type===n)return f}if(i){let f=s[u];if(f&>(f)&&f.type===n)return u}return null}function yn(e,t,n,r){let i=e[n],o=t.data;if(Km(i)){let s=i;s.resolving&&Rg(Ng(o[n]));let a=Rl(s.canSeeViewProviders);s.resolving=!0;let u,c=s.injectImpl?ge(s.injectImpl):null,l=Ud(e,r,_.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&&ge(c),Rl(a),s.resolving=!1,zd()}}return i}function sv(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(or)?e[or]:void 0;return typeof t=="number"?t>=0?t&Yd:av:t}function Ol(e,t,n){let r=1<>Qd)]&r)}function Fl(e,t){return!(e&_.Self)&&!(e&_.Host&&t)}var Tt=class{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return ef(this._tNode,this._lView,t,uo(r),n)}};function av(){return new Tt(fe(),H())}function Tn(e){return so(()=>{let t=e.prototype.constructor,n=t[ki]||aa(t),r=Object.prototype,i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){let o=i[ki]||aa(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function aa(e){return td(e)?()=>{let t=aa(re(e));return t&&t()}:dn(e)}function uv(e,t,n,r,i){let o=e,s=t;for(;o!==null&&s!==null&&s[E]&2048&&!(s[E]&512);){let a=tf(o,s,n,r|_.Self,Le);if(a!==Le)return a;let u=o.parent;if(!u){let c=s[bd];if(c){let l=c.get(n,Le,r);if(l!==Le)return l}u=nf(s),s=s[Mn]}o=u}return i}function nf(e){let t=e[A],n=t.type;return n===2?t.declTNode:n===1?e[Te]:null}function Pl(e,t=null,n=null,r){let i=rf(e,t,n,r);return i.resolveInjectorInitializers(),i}function rf(e,t=null,n=null,r,i=new Set){let o=[n||me,um(e)];return r=r||(typeof e=="object"?void 0:ue(e)),new ur(o,t||La(),r||null,i)}var $e=class e{static{this.THROW_IF_NOT_FOUND=sr}static{this.NULL=new ji}static create(t,n){if(Array.isArray(t))return Pl({name:""},n,t,"");{let r=t.name??"";return Pl({name:r},t.parent,t.providers,r)}}static{this.\u0275prov=C({token:e,providedIn:"any",factory:()=>N(ld)})}static{this.__NG_ELEMENT_ID__=-1}};var cv=new D("");cv.__NG_ELEMENT_ID__=e=>{let t=fe();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 lv="ngOriginalError";function Bs(e){return e[lv]}var of=!0,sf=(()=>{class e{static{this.__NG_ELEMENT_ID__=dv}static{this.__NG_ENV_ID__=n=>n}}return e})(),ua=class extends sf{constructor(t){super(),this._lView=t}onDestroy(t){return Od(this._lView,t),()=>Am(this._lView,t)}};function dv(){return new ua(H())}var xn=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new K(!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=C({token:e,providedIn:"root",factory:()=>new e})}}return e})();var ca=class extends B{constructor(t=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=t,Dm()&&(this.destroyRef=g(sf,{optional:!0})??void 0,this.pendingTasks=g(xn,{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)})}}},Y=ca;function Yi(...e){}function af(e){let t,n;function r(){e=Yi;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 kl(e){return queueMicrotask(()=>e()),()=>{e=Yi}}var Za="isAngularZone",Qi=Za+"_ID",fv=0,G=class e{constructor(t){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Y(!1),this.onMicrotaskEmpty=new Y(!1),this.onStable=new Y(!1),this.onError=new Y(!1);let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:o=of}=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,gv(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Za)===!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,hv,Yi,Yi);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)}},hv={};function Ya(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 pv(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){af(()=>{e.callbackScheduled=!1,la(e),e.isCheckStableRunning=!0,Ya(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),la(e)}function gv(e){let t=()=>{pv(e)},n=fv++;e._inner=e._inner.fork({name:"angular",properties:{[Za]:!0,[Qi]:n,[Qi+n]:!0},onInvokeTask:(r,i,o,s,a,u)=>{if(mv(u))return r.invokeTask(o,s,a,u);try{return Ll(e),r.invokeTask(o,s,a,u)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Vl(e)}},onInvoke:(r,i,o,s,a,u,c)=>{try{return Ll(e),r.invoke(o,s,a,u,c)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!vv(u)&&t(),Vl(e)}},onHasTask:(r,i,o,s)=>{r.hasTask(o,s),i===o&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,la(e),Ya(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 la(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Ll(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Vl(e){e._nesting--,Ya(e)}var da=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Y,this.onMicrotaskEmpty=new Y,this.onStable=new Y,this.onError=new Y}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 mv(e){return uf(e,"__ignore_ng_zone__")}function vv(e){return uf(e,"__scheduler_tick__")}function uf(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Qe=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&&Bs(t);for(;n&&Bs(n);)n=Bs(n);return n||null}},yv=new D("",{providedIn:"root",factory:()=>{let e=g(G),t=g(Qe);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function Dv(){return Qa(fe(),H())}function Qa(e,t){return new kt(xe(e,t))}var kt=(()=>{class e{constructor(n){this.nativeElement=n}static{this.__NG_ELEMENT_ID__=Dv}}return e})();function cf(e){return(e.flags&128)===128}var lf=new Map,Cv=0;function wv(){return Cv++}function Ev(e){lf.set(e[fo],e)}function fa(e){lf.delete(e[fo])}var jl="__ngContext__";function Ft(e,t){ht(t)?(e[jl]=t[fo],Ev(t)):e[jl]=t}function df(e){return hf(e[cr])}function ff(e){return hf(e[Me])}function hf(e){for(;e!==null&&!et(e);)e=e[Me];return e}var ha;function pf(e){ha=e}function Iv(){if(ha!==void 0)return ha;if(typeof document<"u")return document;throw new y(210,!1)}var Ka=new D("",{providedIn:"root",factory:()=>bv}),bv="ng",Ja=new D(""),rt=new D("",{providedIn:"platform",factory:()=>"unknown"});var Xa=new D("",{providedIn:"root",factory:()=>Iv().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var _v="h",Mv="b";var Sv=()=>null;function eu(e,t,n=!1){return Sv(e,t,n)}var gf=!1,Tv=new D("",{providedIn:"root",factory:()=>gf});var Ki=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${ed})`}};function mo(e){return e instanceof Ki?e.changingThisBreaksApplicationSecurity:e}function mf(e,t){let n=xv(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${ed})`)}return n===t}function xv(e){return e instanceof Ki&&e.getTypeName()||null}var Av=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function vf(e){return e=String(e),e.match(Av)?e:"unsafe:"+e}var tu=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}(tu||{});function yf(e){let t=Nv();return t?t.sanitize(tu.URL,e)||"":mf(e,"URL")?mo(e):vf(sd(e))}function Nv(){let e=H();return e&&e[je].sanitizer}function Df(e){return e instanceof Function?e():e}var Ke=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Ke||{}),Rv;function nu(e,t){return Rv(e,t)}function un(e,t,n,r,i){if(r!=null){let o,s=!1;et(r)?o=r:ht(r)&&(s=!0,r=r[Xe]);let a=Be(r);e===0&&n!==null?i==null?If(t,n,a):Xi(t,n,a,i||null,!0):e===1&&n!==null?Xi(t,n,a,i||null,!0):e===2?Wv(t,a,s):e===3&&t.destroyNode(a),o!=null&&Zv(t,e,o,n,i)}}function Ov(e,t){return e.createText(t)}function Cf(e,t,n){return e.createElement(t,n)}function Fv(e,t){wf(e,t),t[Xe]=null,t[Te]=null}function Pv(e,t,n,r,i,o){r[Xe]=i,r[Te]=t,vo(e,r,n,1,i,o)}function wf(e,t){t[je].changeDetectionScheduler?.notify(9),vo(e,t,t[J],2,null,null)}function kv(e){let t=e[cr];if(!t)return $s(e[A],e);for(;t;){let n=null;if(ht(t))n=t[cr];else{let r=t[de];r&&(n=r)}if(!n){for(;t&&!t[Me]&&t!==e;)ht(t)&&$s(t[A],t),t=t[ie];t===null&&(t=e),ht(t)&&$s(t[A],t),n=t&&t[Me]}t=n}}function Lv(e,t,n,r){let i=de+r,o=n.length;r>0&&(n[i-1][Me]=t),r0&&(e[n-1][Me]=r[Me]);let o=Vi(e,de+t);Fv(r[A],r);let s=o[vn];s!==null&&s.detachView(o[A]),r[ie]=null,r[Me]=null,r[E]&=-129}return r}function iu(e,t){if(!(t[E]&256)){let n=t[J];n.destroyNode&&vo(e,t,n,3,null,null),kv(t)}}function $s(e,t){if(t[E]&256)return;let n=O(null);try{t[E]&=-129,t[E]|=256,t[ve]&&fs(t[ve]),jv(e,t),Vv(e,t),t[A].type===1&&t[J].destroy();let r=t[mn];if(r!==null&&et(t[ie])){r!==t[ie]&&ru(r,t);let i=t[vn];i!==null&&i.detachView(e)}fa(t)}finally{O(n)}}function Vv(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[ft];if(i!==null){t[ft]=null;for(let o=0;o-1){let{encapsulation:o}=e.data[r.directiveStart+i];if(o===Ve.None||o===Ve.Emulated)return null}return xe(r,n)}}function Xi(e,t,n,r,i){e.insertBefore(t,n,r,i)}function If(e,t,n){e.appendChild(t,n)}function Ul(e,t,n,r,i){r!==null?Xi(e,t,n,r,i):If(e,t,n)}function bf(e,t){return e.parentNode(t)}function $v(e,t){return e.nextSibling(t)}function Hv(e,t,n){return Gv(e,t,n)}function zv(e,t,n){return e.type&40?xe(e,n):null}var Gv=zv,Bl;function ou(e,t,n,r){let i=Uv(e,r,t),o=t[J],s=r.parent||t[Te],a=Hv(s,r,t);if(i!=null)if(Array.isArray(n))for(let u=0;uSe&&Tf(e,t,Se,!1),ke(s?2:0,i),n(r,i)}finally{Rt(o),ke(s?3:1,i)}}function Rf(e,t,n){if(Md(t)){let r=O(null);try{let i=t.directiveStart,o=t.directiveEnd;for(let s=i;snull;function ry(e,t,n,r,i,o){let s=t?t.injectorIndex:-1,a=0;return Fm()&&(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 $l(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=pt.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?Hl(r,n,c,a,u):Hl(r,n,c,a)}return r}function Hl(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 iy(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 cy(e,t,n,r){let i=n.directiveStart,o=n.directiveEnd;ho(n)&&my(t,n,e.data[i+n.componentOffset]),e.firstCreatePass||Zi(n,t),Ft(r,t);let s=n.initialInputs;for(let a=i;a{go(e.lView)},consumerOnSignalRead(){this.lView[ve]=this}});function Ry(e){let t=e[ve]??Object.create(Oy);return t.lView=e,t}var Oy=F(p({},Jn),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=Nt(e.lView);for(;t&&!Gf(t[A]);)t=Nt(t);t&&Rd(t)},consumerOnSignalRead(){this.lView[ve]=this}});function Gf(e){return e.type!==2}var Fy=100;function Wf(e,t=!0,n=0){let r=e[je],i=r.rendererFactory,o=!1;o||i.begin?.();try{Py(e,n)}catch(s){throw t&&$f(e,s),s}finally{o||(i.end?.(),r.inlineEffectRunner?.flush())}}function Py(e,t){let n=Vd();try{Al(!0),ya(e,t);let r=0;for(;po(e);){if(r===Fy)throw new y(103,!1);r++,ya(e,1)}}finally{Al(n)}}function ky(e,t,n,r){let i=t[E];if((i&256)===256)return;let o=!1,s=!1;!o&&t[je].inlineEffectRunner?.flush(),$a(t);let a=!0,u=null,c=null;o||(Gf(e)?(c=Ty(t),u=Jr(c)):Tc()===null?(a=!1,c=Ry(t),u=Jr(c)):t[ve]&&(fs(t[ve]),t[ve]=null));try{Nd(t),Um(e.bindingStartIndex),n!==null&&Nf(e,t,n,2,r);let l=(i&3)===3;if(!o)if(l){let f=e.preOrderCheckHooks;f!==null&&Ri(t,f,null)}else{let f=e.preOrderHooks;f!==null&&Oi(t,f,0,null),Vs(t,0)}if(s||Ly(t),qf(t,0),e.contentQueries!==null&&Bf(e,t),!o)if(l){let f=e.contentCheckHooks;f!==null&&Ri(t,f)}else{let f=e.contentHooks;f!==null&&Oi(t,f,1),Vs(t,1)}Kv(e,t);let d=e.components;d!==null&&Yf(t,d,0);let h=e.viewQuery;if(h!==null&&ma(2,h,r),!o)if(l){let f=e.viewCheckHooks;f!==null&&Ri(t,f)}else{let f=e.viewHooks;f!==null&&Oi(t,f,2),Vs(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Ls]){for(let f of t[Ls])f();t[Ls]=null}o||(t[E]&=-73)}catch(l){throw o||go(t),l}finally{c!==null&&(ls(c,u),a&&Ay(c)),Ha()}}function qf(e,t){for(let n=df(e);n!==null;n=ff(n))for(let r=de;r-1&&(Ji(t,r),Vi(n,r))}this._attachedToViewContainer=!1}iu(this._lView[A],this._lView)}onDestroy(t){Od(this._lView,t)}markForCheck(){lu(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[E]&=-129}reattach(){na(this._lView),this._lView[E]|=128}detectChanges(){this._lView[E]|=1024,Wf(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new y(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=ea(this._lView),n=this._lView[mn];n!==null&&!t&&ru(n,this._lView),wf(this._lView[A],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new y(902,!1);this._appRef=t;let n=ea(this._lView),r=this._lView[mn];r!==null&&!n&&Ef(r,this._lView),na(this._lView)}};var wx=new RegExp(`^(\\d+)*(${Mv}|${_v})*(.*)`);var jy=()=>null;function Da(e,t){return jy(e,t)}var Cn=class{},wo=new D("",{providedIn:"root",factory:()=>!1});var Qf=new D(""),Kf=new D(""),Ca=class{},to=class{};function Uy(e){let t=Error(`No component factory found for ${ue(e)}.`);return t[By]=e,t}var By="ngComponent";var wa=class{resolveComponentFactory(t){throw Uy(t)}},wn=class{static{this.NULL=new wa}},En=class{},Nn=(()=>{class e{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>$y()}}return e})();function $y(){let e=H(),t=fe(),n=Dt(t.index,e);return(ht(n)?n:e)[J]}var Hy=(()=>{class e{static{this.\u0275prov=C({token:e,providedIn:"root",factory:()=>null})}}return e})();function Ea(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,o=0;if(t!==null)for(let s=0;s0&&Mf(e,n,o.join(" "))}}function Qy(e,t,n){let r=e.projection=[];for(let i=0;i{class e{static{this.__NG_ELEMENT_ID__=Jy}}return e})();function Jy(){let e=fe();return eD(e,H())}var Xy=Eo,Jf=class extends Xy{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Qa(this._hostTNode,this._hostLView)}get injector(){return new Tt(this._hostTNode,this._hostLView)}get parentInjector(){let t=qa(this._hostTNode,this._hostLView);if(Zd(t)){let n=qi(t,this._hostLView),r=Wi(t),i=n[A].data[r+8];return new Tt(i,n)}else return new Tt(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-de}createEmbeddedView(t,n,r){let i,o;typeof r=="number"?i=r:r!=null&&(i=r.index,o=r.injector);let s=Da(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},o,s);return this.insertImpl(a,i,va(this._hostTNode,s)),a}createComponent(t,n,r,i,o){let s=t&&!Cm(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 lr(xt(t)),c=r||this.parentInjector;if(!o&&u.ngModule==null){let M=(s?c:this.parentInjector).get(ye,null);M&&(o=M)}let l=xt(u.componentType??{}),d=Da(this._lContainer,l?.id??null),h=d?.firstChild??null,f=u.create(c,i,h,o);return this.insertImpl(f.hostView,a,va(this._hostTNode,d)),f}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let i=t._lView;if(Tm(i)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let u=i[ie],c=new Jf(u,u[Te],u[ie]);c.detach(c.indexOf(t))}}let o=this._adjustIndex(n),s=this._lContainer;return Hf(s,i,o,r),t.attachToViewContainerRef(),cd(Hs(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=Ji(this._lContainer,n);r&&(Vi(Hs(this._lContainer),n),iu(r[A],r))}detach(t){let n=this._adjustIndex(t,-1),r=Ji(this._lContainer,n);return r&&Vi(Hs(this._lContainer),n)!=null?new Dn(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Gl(e){return e[$i]}function Hs(e){return e[$i]||(e[$i]=[])}function eD(e,t){let n,r=t[e.index];return et(r)?n=r:(n=Uf(r,t,null,e),t[e.index]=n,Co(t,n)),nD(n,t,e,r),new Jf(n,e,t)}function tD(e,t){let n=e[J],r=n.createComment(""),i=xe(t,e),o=bf(n,i);return Xi(n,o,r,$v(n,i),!1),r}var nD=oD,rD=()=>!1;function iD(e,t,n){return rD(e,t,n)}function oD(e,t,n,r){if(e[At])return;let i;n.type&8?i=Be(r):i=tD(t,n),e[At]=i}var Wl=new Set;function Rn(e){Wl.has(e)||(Wl.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function sD(e){return typeof e=="function"&&e[qe]!==void 0}function Io(e,t){Rn("NgSignals");let n=jc(e),r=n[qe];return t?.equal&&(r.equal=t.equal),n.set=i=>hs(r,i),n.update=i=>Uc(r,i),n.asReadonly=aD.bind(n),n}function aD(){let e=this[qe];if(e.readonlyFn===void 0){let t=()=>this();t[qe]=e,e.readonlyFn=t}return e.readonlyFn}function Xf(e){return sD(e)&&typeof e.set=="function"}function uD(e){return Object.getPrototypeOf(e.prototype).constructor}function Lt(e){let t=uD(e.type),n=!0,r=[e];for(;t;){let i;if(gt(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new y(903,!1);i=t.\u0275dir}if(i){if(n){r.push(i);let s=e;s.inputs=Ti(e.inputs),s.inputTransforms=Ti(e.inputTransforms),s.declaredInputs=Ti(e.declaredInputs),s.outputs=Ti(e.outputs);let a=i.hostBindings;a&&hD(e,a);let u=i.viewQuery,c=i.contentQueries;if(u&&dD(e,u),c&&fD(e,c),cD(e,i),Ig(e.outputs,i.outputs),gt(i)&&i.data.animation){let l=e.data;l.animation=(l.animation||[]).concat(i.data.animation)}}let o=i.features;if(o)for(let s=0;s=0;r--){let i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=ar(i.hostAttrs,n=ar(n,i.hostAttrs))}}function Ti(e){return e===fn?{}:e===me?[]:e}function dD(e,t){let n=e.viewQuery;n?e.viewQuery=(r,i)=>{t(r,i),n(r,i)}:e.viewQuery=t}function fD(e,t){let n=e.contentQueries;n?e.contentQueries=(r,i,o)=>{t(r,i,o),n(r,i,o)}:e.contentQueries=t}function hD(e,t){let n=e.hostBindings;n?e.hostBindings=(r,i)=>{t(r,i),n(r,i)}:e.hostBindings=t}var mt=class{},dr=class{};var ba=class extends mt{constructor(t,n,r,i=!0){super(),this.ngModuleType=t,this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new no(this);let o=vd(t);this._bootstrapComponents=Df(o.bootstrap),this._r3Injector=rf(t,n,[{provide:mt,useValue:this},{provide:wn,useValue:this.componentFactoryResolver},...r],ue(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)}},_a=class extends dr{constructor(t){super(),this.moduleType=t}create(t){return new ba(this.moduleType,t,[])}};var ro=class extends mt{constructor(t){super(),this.componentFactoryResolver=new no(this),this.instance=null;let n=new ur([...t.providers,{provide:mt,useValue:this},{provide:wn,useValue:this.componentFactoryResolver}],t.parent||La(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function du(e,t,n=null){return new ro({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}function bo(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function pD(e){return(e.flags&32)===32}function gD(e,t,n,r,i,o,s,a,u){let c=t.consts,l=Do(t,e,4,s||null,a||null);Lf(t,n,l,Gi(c,u)),Wa(t,l);let d=l.tView=au(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 mD(e,t,n,r,i,o,s,a,u,c){let l=n+Se,d=t.firstCreatePass?gD(l,t,e,r,i,o,s,a,u):t.data[l];pr(d,!1);let h=vD(t,e,d,n);za()&&ou(t,e,h,d),Ft(h,e);let f=Uf(h,e,h,d);return e[l]=f,Co(e,f),iD(f,d,e),Va(d)&&Of(t,e,d),u!=null&&Ff(e,d,c),d}function fu(e,t,n,r,i,o,s,a){let u=H(),c=Ce(),l=Gi(c.consts,o);return mD(u,c,e,t,n,r,i,l,s,a),fu}var vD=yD;function yD(e,t,n,r){return Ga(!0),t[J].createComment("")}var ir=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(ir||{}),DD=(()=>{class e{constructor(){this.impl=null}execute(){this.impl?.execute()}static{this.\u0275prov=C({token:e,providedIn:"root",factory:()=>new e})}}return e})(),ql=class e{constructor(){this.ngZone=g(G),this.scheduler=g(Cn),this.errorHandler=g(Qe,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}static{this.PHASES=[ir.EarlyRead,ir.Write,ir.MixedReadWrite,ir.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=C({token:e,providedIn:"root",factory:()=>new e})}};function xi(e,t){return e<<17|t<<2}function Pt(e){return e>>17&32767}function CD(e){return(e&2)==2}function wD(e,t){return e&131071|t<<17}function Ma(e){return e|2}function In(e){return(e&131068)>>2}function zs(e,t){return e&-131069|t<<2}function ED(e){return(e&1)===1}function Sa(e){return e|1}function ID(e,t,n,r,i,o){let s=o?t.classBindings:t.styleBindings,a=Pt(s),u=In(s);e[r]=n;let c=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||hr(d,l)>0)&&(c=!0)}else l=n;if(i)if(u!==0){let h=Pt(e[a+1]);e[r+1]=xi(h,a),h!==0&&(e[h+1]=zs(e[h+1],r)),e[a+1]=wD(e[a+1],r)}else e[r+1]=xi(a,0),a!==0&&(e[a+1]=zs(e[a+1],r)),a=r;else e[r+1]=xi(u,0),a===0?a=r:e[u+1]=zs(e[u+1],r),u=r;c&&(e[r+1]=Ma(e[r+1])),Zl(e,l,r,!0),Zl(e,l,r,!1),bD(t,l,e,r,o),s=xi(a,u),o?t.classBindings=s:t.styleBindings=s}function bD(e,t,n,r,i){let o=i?e.residualClasses:e.residualStyles;o!=null&&typeof t=="string"&&hr(o,t)>=0&&(n[r+1]=Sa(n[r+1]))}function Zl(e,t,n,r){let i=e[n+1],o=t===null,s=r?Pt(i):In(i),a=!1;for(;s!==0&&(a===!1||o);){let u=e[s],c=e[s+1];_D(u,t)&&(a=!0,e[s+1]=r?Sa(c):Ma(c)),s=r?Pt(c):In(c)}a&&(e[n+1]=r?Ma(i):Sa(i))}function _D(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?hr(e,t)>=0:!1}function hu(e,t,n){let r=H(),i=Ba();if(bo(r,i,t)){let o=Ce(),s=Gd();kf(o,s,r,e,t,r[J],n,!1)}return hu}function Yl(e,t,n,r,i){let o=t.inputs,s=i?"class":"style";uu(e,n,o[s],s,r)}function vr(e,t){return MD(e,t,null,!0),vr}function MD(e,t,n,r){let i=H(),o=Ce(),s=Bm(2);if(o.firstUpdatePass&&TD(o,e,s,r),t!==mr&&bo(i,s,t)){let a=o.data[gr()];OD(o,a,i,i[J],e,i[s+1]=FD(t,n),r,s)}}function SD(e,t){return t>=e.expandoStartIndex}function TD(e,t,n,r){let i=e.data;if(i[n+1]===null){let o=i[gr()],s=SD(e,n);PD(o,r)&&t===null&&!s&&(t=!1),t=xD(i,o,t,r),ID(i,o,t,n,s,r)}}function xD(e,t,n,r){let i=Gm(e),o=r?t.residualClasses:t.residualStyles;if(i===null)(r?t.classBindings:t.styleBindings)===0&&(n=Gs(null,e,t,n,r),n=fr(n,t.attrs,r),o=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==i)if(n=Gs(i,e,t,n,r),o===null){let u=AD(e,t,r);u!==void 0&&Array.isArray(u)&&(u=Gs(null,e,t,u[1],r),u=fr(u,t.attrs,r),ND(e,t,r,u))}else o=RD(e,t,r)}return o!==void 0&&(r?t.residualClasses=o:t.residualStyles=o),n}function AD(e,t,n){let r=n?t.classBindings:t.styleBindings;if(In(r)!==0)return e[Pt(r)]}function ND(e,t,n,r){let i=n?t.classBindings:t.styleBindings;e[Pt(i)]=r}function RD(e,t,n){let r,i=t.directiveEnd;for(let o=1+t.directiveStylingLast;o0;){let u=e[i],c=Array.isArray(u),l=c?u[1]:u,d=l===null,h=n[i+1];h===mr&&(h=d?me:void 0);let f=d?Ps(h,r):l===r?h:void 0;if(c&&!io(f)&&(f=Ps(u,r)),io(f)&&(a=f,s))return a;let m=e[i+1];i=s?Pt(m):In(m)}if(t!==null){let u=o?t.residualClasses:t.residualStyles;u!=null&&(a=Ps(u,r))}return a}function io(e){return e!==void 0}function FD(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=ue(mo(e)))),e}function PD(e,t){return(e.flags&(t?8:16))!==0}function _o(e,t){Rn("NgControlFlow");let n=H(),r=Ba(),i=n[r]!==mr?n[r]:-1,o=i!==-1?Kl(n,Se+i):void 0,s=0;if(bo(n,r,e)){let a=O(null);try{if(o!==void 0&&My(o,s),e!==-1){let u=Se+e,c=Kl(n,u),l=kD(n[A],u),d=Da(c,l.tView.ssrId),h=by(n,l,t,{dehydratedView:d});Hf(c,h,s,va(l,d))}}finally{O(a)}}else if(o!==void 0){let a=_y(o,s);a!==void 0&&(a[De]=t)}}function Kl(e,t){return e[t]}function kD(e,t){return ja(e,t)}function LD(e,t,n,r,i,o){let s=t.consts,a=Gi(s,i),u=Do(t,e,2,r,a);return Lf(t,n,u,Gi(s,o)),u.attrs!==null&&Ea(u,u.attrs,!1),u.mergedAttrs!==null&&Ea(u,u.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,u),u}function Ae(e,t,n,r){let i=H(),o=Ce(),s=Se+e,a=i[J],u=o.firstCreatePass?LD(s,o,i,t,n,r):o.data[s],c=VD(o,i,u,a,t,e);i[s]=c;let l=Va(u);return pr(u,!0),Sf(a,c,u),!pD(u)&&za()&&ou(o,i,c,u),Nm()===0&&Ft(c,i),Rm(),l&&(Of(o,i,u),Rf(o,u,i)),r!==null&&Ff(i,u),Ae}function ze(){let e=fe();Ld()?Vm():(e=e.parent,pr(e,!1));let t=e;Pm(t)&&km(),Om();let n=Ce();return n.firstCreatePass&&(Wa(n,e),Md(e)&&n.queries.elementEnd(e)),t.classesWithoutHost!=null&&Jm(t)&&Yl(n,t,H(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&Xm(t)&&Yl(n,t,H(),t.stylesWithoutHost,!1),ze}function On(e,t,n,r){return Ae(e,t,n,r),ze(),On}var VD=(e,t,n,r,i,o)=>(Ga(!0),Cf(r,i,Zm()));function pu(){return H()}var oo="en-US";var jD=oo;function UD(e){typeof e=="string"&&(jD=e.toLowerCase().replace(/_/g,"-"))}var BD=(e,t,n)=>{};function Ne(e,t,n,r){let i=H(),o=Ce(),s=fe();return eh(o,i,i[J],s,e,t,r),Ne}function $D(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 eh(e,t,n,r,i,o,s){let a=Va(r),c=e.firstCreatePass&&Cy(e),l=t[De],d=Dy(t),h=!0;if(r.type&3||s){let M=xe(r,t),k=s?s(M):M,P=d.length,oe=s?Ie=>s(Be(Ie[r.index])):r.index,se=null;if(!s&&a&&(se=$D(e,t,i,r.index)),se!==null){let Ie=se.__ngLastListenerFn__||se;Ie.__ngNextListenerFn__=o,se.__ngLastListenerFn__=o,h=!1}else{o=Xl(r,t,l,o),BD(M,i,o);let Ie=n.listen(k,i,o);d.push(o,Ie),c&&c.push(i,oe,P,P+1)}}else o=Xl(r,t,l,o);let f=r.outputs,m;if(h&&f!==null&&(m=f[i])){let M=m.length;if(M)for(let k=0;k-1?Dt(e.index,t):t;lu(s,5);let a=Jl(t,n,r,o),u=i.__ngNextListenerFn__;for(;u;)a=Jl(t,n,u,o)&&a,u=u.__ngNextListenerFn__;return a}}function Fn(e=1){return qm(e)}function th(e){let t=jm();return Sm(t,Se+e)}function yr(e,t=""){let n=H(),r=Ce(),i=e+Se,o=r.firstCreatePass?Do(r,i,1,t,null):r.data[i],s=HD(r,n,o,t,e);n[i]=s,za()&&ou(r,n,s,o),pr(o,!1)}var HD=(e,t,n,r,i)=>(Ga(!0),Ov(t[J],r));function gu(e,t,n){Xf(t)&&(t=t());let r=H(),i=Ba();if(bo(r,i,t)){let o=Ce(),s=Gd();kf(o,s,r,e,t,r[J],n,!1)}return gu}function nh(e,t){let n=Xf(e);return n&&e.set(t),n}function mu(e,t){let n=H(),r=Ce(),i=fe();return eh(r,n,n[J],i,e,t),mu}function zD(e,t,n){let r=Ce();if(r.firstCreatePass){let i=gt(e);Ta(n,r.data,r.blueprint,i,!0),Ta(t,r.data,r.blueprint,i,!1)}}function Ta(e,t,n,r,i){if(e=re(e),Array.isArray(e))for(let o=0;o>20;if(pn(e)||!e.multi){let f=new Ot(c,i,Q),m=qs(u,t,i?l:l+h,d);m===-1?(sa(Zi(a,s),o,u),Ws(o,e,t.length),t.push(u),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[m]=f,s[m]=f)}else{let f=qs(u,t,l+h,d),m=qs(u,t,l,l+h),M=f>=0&&n[f],k=m>=0&&n[m];if(i&&!k||!i&&!M){sa(Zi(a,s),o,u);let P=qD(i?WD:GD,n.length,i,r,c);!i&&k&&(n[m].providerFactory=P),Ws(o,e,t.length,0),t.push(u),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(P),s.push(P)}else{let P=rh(n[i?m:f],c,!i&&r);Ws(o,e,f>-1?f:m,P)}!i&&r&&k&&n[m].componentProviders++}}}function Ws(e,t,n,r){let i=pn(t),o=fm(t);if(i||o){let u=(o?re(t.useClass):t).prototype.ngOnDestroy;if(u){let c=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){let l=c.indexOf(n);l===-1?c.push(n,[r,u]):c[l+1].push(r,u)}else c.push(n,u)}}}function rh(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function qs(e,t,n,r){for(let i=n;i{n.providersResolver=(r,i)=>zD(r,i?i(e):e,t)}}var ZD=(()=>{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=Cd(!1,n.type),i=r.length>0?du([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=C({token:e,providedIn:"environment",factory:()=>new e(N(ye))})}}return e})();function So(e){Rn("NgStandalone"),e.getStandaloneInjector=t=>t.get(ZD).getOrCreateStandaloneInjector(e)}var To=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();var ih=new D("");function Vt(e){return!!e&&typeof e.then=="function"}function oh(e){return!!e&&typeof e.subscribe=="function"}var xo=new D(""),sh=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=g(xo,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let i of this.appInits){let o=i();if(Vt(o))n.push(o);else if(oh(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=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),vu=new D("");function YD(){Vc(()=>{throw new y(600,!1)})}function QD(e){return e.isBoundToModule}var KD=10;function JD(e,t,n){try{let r=n();return Vt(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=g(yv),this.afterRenderManager=g(DD),this.zonelessEnabled=g(wo),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new B,this.afterTick=new B,this.componentTypes=[],this.components=[],this.isStable=g(xn).hasPendingTasks.pipe(I(n=>!n)),this._injector=g(ye)}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 to;if(!this._injector.get(sh).done){let h=!i&&md(n),f=!1;throw new y(405,f)}let s;i?s=n:s=this._injector.get(wn).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=QD(s)?void 0:this._injector.get(mt),u=r||s.selector,c=s.create($e.NULL,[],u,a),l=c.location.nativeElement,d=c.injector.get(ih,null);return d?.registerApplication(l),c.onDestroy(()=>{this.detachView(c.hostView),Fi(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(En,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;this.dirtyFlags!==0&&r++po(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;Fi(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let r=this._injector.get(vu,[]);[...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),()=>Fi(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=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Fi(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function XD(e,t,n,r){if(!n&&!po(e))return;Wf(e,t,n&&!r?0:1)}var Aa=class{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},yu=(()=>{class e{compileModuleSync(n){return new _a(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),i=vd(n),o=Df(i.declarations).reduce((s,a)=>{let u=xt(a);return u&&s.push(new lr(u)),s},[]);return new Aa(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=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var eC=(()=>{class e{constructor(){this.zone=g(G),this.changeDetectionScheduler=g(Cn),this.applicationRef=g(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=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),tC=new D("",{factory:()=>!1});function ah({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new G(F(p({},ch()),{scheduleInRootZone:n})),[{provide:G,useFactory:e},{provide:hn,multi:!0,useFactory:()=>{let r=g(eC,{optional:!0});return()=>r.initialize()}},{provide:hn,multi:!0,useFactory:()=>{let r=g(nC);return()=>{r.initialize()}}},t===!0?{provide:Qf,useValue:!0}:[],{provide:Kf,useValue:n??of}]}function uh(e){let t=e?.ignoreChangesOutsideZone,n=e?.scheduleInRootZone,r=ah({ngZoneFactory:()=>{let i=ch(e);return i.scheduleInRootZone=n,i.shouldCoalesceEventChangeDetection&&Rn("NgZone_CoalesceEvent"),new G(i)},ignoreChangesOutsideZone:t,scheduleInRootZone:n});return _n([{provide:tC,useValue:!0},{provide:wo,useValue:!1},r])}function ch(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var nC=(()=>{class e{constructor(){this.subscription=new z,this.initialized=!1,this.zone=g(G),this.pendingTasks=g(xn)}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(()=>{G.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{G.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var rC=(()=>{class e{constructor(){this.appRef=g(Ge),this.taskService=g(xn),this.ngZone=g(G),this.zonelessEnabled=g(wo),this.disableScheduling=g(Qf,{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(Qi):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(g(Kf,{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 da||!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?kl:af;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(Qi+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,kl(()=>{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=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function iC(){return typeof $localize<"u"&&$localize.locale||oo}var Du=new D("",{providedIn:"root",factory:()=>g(Du,_.Optional|_.SkipSelf)||iC()});var Na=new D("");function Ai(e){return!e.moduleRef}function oC(e){let t=Ai(e)?e.r3Injector:e.moduleRef.injector,n=t.get(G);return n.run(()=>{Ai(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Qe,null),i;if(n.runOutsideAngular(()=>{i=n.onError.subscribe({next:o=>{r.handleError(o)}})}),Ai(e)){let o=()=>t.destroy(),s=e.platformInjector.get(Na);s.add(o),t.onDestroy(()=>{i.unsubscribe(),s.delete(o)})}else{let o=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Na);s.add(o),e.moduleRef.onDestroy(()=>{Fi(e.allPlatformModules,e.moduleRef),i.unsubscribe(),s.delete(o)})}return JD(r,n,()=>{let o=t.get(sh);return o.runInitializers(),o.donePromise.then(()=>{let s=t.get(Du,oo);if(UD(s||oo),Ai(e)){let a=t.get(Ge);return e.rootComponent!==void 0&&a.bootstrap(e.rootComponent),a}else return sC(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function sC(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 y(-403,!1);t.push(e)}var Pi=null;function aC(e=[],t){return $e.create({name:t,providers:[{provide:lo,useValue:"platform"},{provide:Na,useValue:new Set([()=>Pi=null])},...e]})}function uC(e=[]){if(Pi)return Pi;let t=aC(e);return Pi=t,YD(),cC(t),t}function cC(e){e.get(Ja,null)?.forEach(n=>n())}function lh(){return!1}var jt=(()=>{class e{static{this.__NG_ELEMENT_ID__=lC}}return e})();function lC(e){return dC(fe(),H(),(e&16)===16)}function dC(e,t,n){if(ho(e)&&!n){let r=Dt(e.index,t);return new Dn(r,r)}else if(e.type&175){let r=t[Ue];return new Dn(r,t)}return null}function dh(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,i=uC(r),o=[ah({}),{provide:Cn,useExisting:rC},...n||[]],s=new ro({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1});return oC({r3Injector:s.injector,platformInjector:i,rootComponent:t})}catch(t){return Promise.reject(t)}}function Ao(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function No(e,t){Rn("NgSignals");let n=Pc(e);return t?.equal&&(n[qe].equal=t.equal),n}function Ct(e){let t=O(null);try{return e()}finally{O(t)}}var ph=null;function it(){return ph}function gh(e){ph??=e}var Ro=class{};var we=new D(""),mh=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:()=>g(pC),providedIn:"platform"})}}return e})();var pC=(()=>{class e extends mh{constructor(){super(),this._doc=g(we),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return it().getBaseHref(this._doc)}onPopState(n){let r=it().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=it().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=C({token:e,factory:()=>new e,providedIn:"platform"})}}return e})();function vh(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 fh(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 Ut(e){return e&&e[0]!=="?"?"?"+e:e}var Fo=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:()=>g(yh),providedIn:"root"})}}return e})(),gC=new D(""),yh=(()=>{class e extends Fo{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??g(we).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return vh(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+Ut(this._platformLocation.search),i=this._platformLocation.hash;return i&&n?`${r}${i}`:r}pushState(n,r,i,o){let s=this.prepareExternalUrl(i+Ut(o));this._platformLocation.pushState(n,r,s)}replaceState(n,r,i,o){let s=this.prepareExternalUrl(i+Ut(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)(N(mh),N(gC,8))}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Dr=(()=>{class e{constructor(n){this._subject=new Y,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=yC(fh(hh(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+Ut(r))}normalize(n){return e.stripTrailingSlash(vC(this._basePath,hh(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+Ut(r)),i)}replaceState(n,r="",i=null){this._locationStrategy.replaceState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Ut(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=Ut}static{this.joinWithSlash=vh}static{this.stripTrailingSlash=fh}static{this.\u0275fac=function(r){return new(r||e)(N(Fo))}}static{this.\u0275prov=C({token:e,factory:()=>mC(),providedIn:"root"})}}return e})();function mC(){return new Dr(N(Fo))}function vC(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function hh(e){return e.replace(/\/index.html$/,"")}function yC(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}function Dh(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 wu=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=yt({type:e})}static{this.\u0275inj=vt({})}}return e})(),Eu="browser",DC="server";function Iu(e){return e===Eu}function bu(e){return e===DC}var Oo=class{};var Su=class extends Ro{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Tu=class e extends Su{static makeCurrent(){gh(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=wC();return n==null?null:EC(n)}resetBaseElement(){Cr=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Dh(document.cookie,t)}},Cr=null;function wC(){return Cr=Cr||document.querySelector("base"),Cr?Cr.getAttribute("href"):null}function EC(e){return new URL(e,document.baseURI).pathname}var IC=(()=>{class e{build(){return new XMLHttpRequest}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac})}}return e})(),xu=new D(""),Ih=(()=>{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)(N(xu),N(G))}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac})}}return e})(),Po=class{constructor(t){this._doc=t}},_u="ng-app-id",bh=(()=>{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=bu(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[${_u}="${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(_u),o;{let s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(_u,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)(N(we),N(Ka),N(Xa,8),N(rt))}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac})}}return e})(),Mu={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"},Nu=/%COMP%/g,_h="%COMP%",bC=`_nghost-${_h}`,_C=`_ngcontent-${_h}`,MC=!0,SC=new D("",{providedIn:"root",factory:()=>MC});function TC(e){return _C.replace(Nu,e)}function xC(e){return bC.replace(Nu,e)}function Mh(e,t){return t.map(n=>n.replace(Nu,e))}var Ch=(()=>{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=bu(a),this.defaultRenderer=new wr(n,s,u,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Ve.ShadowDom&&(r=F(p({},r),{encapsulation:Ve.Emulated}));let i=this.getOrCreateRenderer(n,r);return i instanceof ko?i.applyToHost(n):i instanceof Er&&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 Ve.Emulated:o=new ko(u,c,r,this.appId,l,s,a,d);break;case Ve.ShadowDom:return new Au(u,c,n,r,s,a,this.nonce,d);default:o=new Er(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)(N(Ih),N(bh),N(Ka),N(SC),N(we),N(rt),N(G),N(Xa))}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac})}}return e})(),wr=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(Mu[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(wh(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(wh(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=Mu[i];o?t.setAttributeNS(o,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let i=Mu[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&(Ke.DashCase|Ke.Important)?t.style.setProperty(n,r,i&Ke.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&Ke.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=it().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 wh(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Au=class extends wr{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=Mh(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)}},Er=class extends wr{constructor(t,n,r,i,o,s,a,u){super(t,o,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=i,this.styles=u?Mh(u,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},ko=class extends Er{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=TC(c),this.hostAttr=xC(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}},AC=(()=>{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)(N(we))}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac})}}return e})(),Eh=["alt","control","meta","shift"],NC={"\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"},RC={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},OC=(()=>{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(()=>it().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."),Eh.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=NC[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"),Eh.forEach(s=>{if(s!==i){let a=RC[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)(N(we))}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac})}}return e})();function Sh(e,t){return dh(p({rootComponent:e},FC(t)))}function FC(e){return{appProviders:[...jC,...e?.providers??[]],platformProviders:VC}}function PC(){Tu.makeCurrent()}function kC(){return new Qe}function LC(){return pf(document),document}var VC=[{provide:rt,useValue:Eu},{provide:Ja,useValue:PC,multi:!0},{provide:we,useFactory:LC,deps:[]}];var jC=[{provide:lo,useValue:"root"},{provide:Qe,useFactory:kC,deps:[]},{provide:xu,useClass:AC,multi:!0,deps:[we,G,rt]},{provide:xu,useClass:OC,multi:!0,deps:[we]},Ch,bh,Ih,{provide:En,useExisting:Ch},{provide:Oo,useClass:IC,deps:[]},[]];var Th=(()=>{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)(N(we))}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var b="primary",jr=Symbol("RouteTitle"),ku=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 Bn(e){return new ku(e)}function $C(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 Lh(e){return e.length>0?e[e.length-1]:null}function wt(e){return Ms(e)?e:Vt(e)?U(Promise.resolve(e)):w(e)}var zC={exact:jh,subset:Uh},Vh={exact:GC,subset:WC,ignored:()=>!0};function xh(e,t,n){return zC[n.paths](e.root,t.root,n.matrixParams)&&Vh[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function GC(e,t){return We(e,t)}function jh(e,t,n){if(!$t(e.segments,t.segments)||!jo(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!jh(e.children[r],t.children[r],n))return!1;return!0}function WC(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>kh(e[n],t[n]))}function Uh(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!(!$t(i,n)||t.hasChildren()||!jo(i,n,r))}else if(e.segments.length===n.length){if(!$t(e.segments,n)||!jo(e.segments,n,r))return!1;for(let i in t.children)if(!e.children[i]||!Uh(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)||!jo(e.segments,i,r)||!e.children[b]?!1:Bh(e.children[b],t,o,r)}}function jo(e,t,n){return t.every((r,i)=>Vh[n](e[i].parameters,r.parameters))}var st=class{constructor(t=new L([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=Bn(this.queryParams),this._queryParamMap}toString(){return YC.serialize(this)}},L=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 Uo(this)}},Bt=class{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap??=Bn(this.parameters),this._parameterMap}toString(){return Hh(this)}};function qC(e,t){return $t(e,t)&&e.every((n,r)=>We(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 ZC(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 cc=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:()=>new xr,providedIn:"root"})}}return e})(),xr=class{parse(t){let n=new ju(t);return new st(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n=`/${Ir(t.root,!0)}`,r=JC(t.queryParams),i=typeof t.fragment=="string"?`#${QC(t.fragment)}`:"";return`${n}${r}${i}`}},YC=new xr;function Uo(e){return e.segments.map(t=>Hh(t)).join("/")}function Ir(e,t){if(!e.hasChildren())return Uo(e);if(t){let n=e.children[b]?Ir(e.children[b],!1):"",r=[];return Object.entries(e.children).forEach(([i,o])=>{i!==b&&r.push(`${i}:${Ir(o,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=ZC(e,(r,i)=>i===b?[Ir(e.children[b],!1)]:[`${i}:${Ir(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[b]!=null?`${Uo(e)}/${n[0]}`:`${Uo(e)}/(${n.join("//")})`}}function $h(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Lo(e){return $h(e).replace(/%3B/gi,";")}function QC(e){return encodeURI(e)}function Vu(e){return $h(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Bo(e){return decodeURIComponent(e)}function Ah(e){return Bo(e.replace(/\+/g,"%20"))}function Hh(e){return`${Vu(e.path)}${KC(e.parameters)}`}function KC(e){return Object.entries(e).map(([t,n])=>`;${Vu(t)}=${Vu(n)}`).join("")}function JC(e){let t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(i=>`${Lo(n)}=${Lo(i)}`).join("&"):`${Lo(n)}=${Lo(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}var XC=/^[^\/()?;#]+/;function Ru(e){let t=e.match(XC);return t?t[0]:""}var ew=/^[^\/()?;=#]+/;function tw(e){let t=e.match(ew);return t?t[0]:""}var nw=/^[^=?&#]+/;function rw(e){let t=e.match(nw);return t?t[0]:""}var iw=/^[^&#]+/;function ow(e){let t=e.match(iw);return t?t[0]:""}var ju=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new L([],{}):new L([],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 L(t,n)),r}parseSegment(){let t=Ru(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new y(4009,!1);return this.capture(t),new Bt(Bo(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=tw(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let i=Ru(this.remaining);i&&(r=i,this.capture(r))}t[Bo(n)]=Bo(r)}parseQueryParam(t){let n=rw(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=ow(this.remaining);s&&(r=s,this.capture(r))}let i=Ah(n),o=Ah(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=Ru(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 L([],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 zh(e){return e.segments.length>0?new L([],{[b]:e}):e}function Gh(e){let t={};for(let[r,i]of Object.entries(e.children)){let o=Gh(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 L(e.segments,t);return sw(n)}function sw(e){if(e.numberOfChildren===1&&e.children[b]){let t=e.children[b];return new L(e.segments.concat(t.segments),t.children)}return e}function Ar(e){return e instanceof st}function aw(e,t,n=null,r=null){let i=Wh(e);return qh(i,t,n,r)}function Wh(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 L(o.url,s);return o===e&&(t=a),a}let r=n(e.root),i=zh(r);return t??i}function qh(e,t,n,r){let i=e;for(;i.parent;)i=i.parent;if(t.length===0)return Ou(i,i,i,n,r);let o=uw(t);if(o.toRoot())return Ou(i,i,new L([],{}),n,r);let s=cw(o,i,e),a=s.processChildren?Mr(s.segmentGroup,s.index,o.commands):Yh(s.segmentGroup,s.index,o.commands);return Ou(i,s.segmentGroup,a,n,r)}function $o(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function Nr(e){return typeof e=="object"&&e!=null&&e.outlets}function Ou(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=Zh(e,t,n);let a=zh(Gh(s));return new st(a,o,i)}function Zh(e,t,n){let r={};return Object.entries(e.children).forEach(([i,o])=>{o===t?r[i]=n:r[i]=Zh(o,t,n)}),new L(e.segments,r)}var Ho=class{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&$o(r[0]))throw new y(4003,!1);let i=r.find(Nr);if(i&&i!==Lh(r))throw new y(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function uw(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new Ho(!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 Ho(n,t,r)}var Vn=class{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}};function cw(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=$o(e.commands[0])?0:1,i=n.segments.length-1+r;return lw(n,i,e.numberOfDoubleDots)}function lw(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 Vn(r,!1,i-o)}function dw(e){return Nr(e[0])?e[0].outlets:{[b]:e}}function Yh(e,t,n){if(e??=new L([],{}),e.segments.length===0&&e.hasChildren())return Mr(e,t,n);let r=fw(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=Mr(e.children[b],t,n);return new L(e.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=Yh(e.children[o],t,s))}),Object.entries(e.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new L(e.segments,i)}}function fw(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(Nr(a))break;let u=`${a}`,c=r0&&u===void 0)break;if(u&&c&&typeof c=="object"&&c.outlets===void 0){if(!Rh(u,c,s))return o;r+=2}else{if(!Rh(u,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function Uu(e,t,n){let r=e.segments.slice(0,t),i=0;for(;i{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=Uu(new L([],{}),0,r))}),t}function Nh(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function Rh(e,t,n){return e==n.path&&We(t,n.parameters)}var Sr="imperative",X=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(X||{}),Ee=class{constructor(t,n){this.id=t,this.url=n}},Rr=class extends Ee{constructor(t,n,r="imperative",i=null){super(t,n),this.type=X.NavigationStart,this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Ht=class extends Ee{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r,this.type=X.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},pe=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(pe||{}),Bu=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(Bu||{}),ot=class extends Ee{constructor(t,n,r,i){super(t,n),this.reason=r,this.code=i,this.type=X.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},zt=class extends Ee{constructor(t,n,r,i){super(t,n),this.reason=r,this.code=i,this.type=X.NavigationSkipped}},Or=class extends Ee{constructor(t,n,r,i){super(t,n),this.error=r,this.target=i,this.type=X.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},zo=class extends Ee{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=X.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},$u=class extends Ee{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=X.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Hu=class extends Ee{constructor(t,n,r,i,o){super(t,n),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o,this.type=X.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},zu=class extends Ee{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=X.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Gu=class extends Ee{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=X.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Wu=class{constructor(t){this.route=t,this.type=X.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},qu=class{constructor(t){this.route=t,this.type=X.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Zu=class{constructor(t){this.snapshot=t,this.type=X.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Yu=class{constructor(t){this.snapshot=t,this.type=X.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Qu=class{constructor(t){this.snapshot=t,this.type=X.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ku=class{constructor(t){this.snapshot=t,this.type=X.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var Fr=class{},$n=class{constructor(t,n){this.url=t,this.navigationBehaviorOptions=n}};function pw(e,t){return e.providers&&!e._injector&&(e._injector=du(e.providers,t,`Route: ${e.path}`)),e._injector??t}function Re(e){return e.outlet||b}function gw(e,t){let n=e.filter(r=>Re(r)===t);return n.push(...e.filter(r=>Re(r)!==t)),n}function Ur(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 Ju=class{get injector(){return Ur(this.route?.snapshot)??this.rootInjector}set injector(t){}constructor(t){this.rootInjector=t,this.outlet=null,this.route=null,this.children=new Ko(this.rootInjector),this.attachRef=null}},Ko=(()=>{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 Ju(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)(N(ye))}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Go=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=Xu(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=Xu(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=ec(t,this._root);return n.length<2?[]:n[n.length-2].children.map(i=>i.value).filter(i=>i!==t)}pathFromRoot(t){return ec(t,this._root).map(n=>n.value)}};function Xu(e,t){if(e===t.value)return t;for(let n of t.children){let r=Xu(e,n);if(r)return r}return null}function ec(e,t){if(e===t.value)return[t];for(let n of t.children){let r=ec(e,n);if(r.length)return r.unshift(t),r}return[]}var he=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 Wo=class extends Go{constructor(t,n){super(t),this.snapshot=n,lc(this,t)}toString(){return this.snapshot.toString()}};function Qh(e){let t=mw(e),n=new K([new Bt("",{})]),r=new K({}),i=new K({}),o=new K({}),s=new K(""),a=new Hn(n,r,o,s,i,b,e,t.root);return a.snapshot=t.root,new Wo(new he(a,[]),t)}function mw(e){let t={},n={},r={},i="",o=new jn([],t,r,i,n,b,e,null,{});return new Zo("",new he(o,[]))}var Hn=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[jr]))??w(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=>Bn(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(I(t=>Bn(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function qo(e,t,n="emptyOnly"){let r,{routeConfig:i}=e;return t!==null&&(n==="always"||i?.path===""||!t.component&&!t.routeConfig?.loadComponent)?r={params:p(p({},t.params),e.params),data:p(p({},t.data),e.data),resolve:p(p(p(p({},e.data),t.data),i?.data),e._resolvedData)}:r={params:p({},e.params),data:p({},e.data),resolve:p(p({},e.data),e._resolvedData??{})},i&&Jh(i)&&(r.resolve[jr]=i.title),r}var jn=class{get title(){return this.data?.[jr]}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??=Bn(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Bn(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}')`}},Zo=class extends Go{constructor(t,n){super(n),this.url=t,lc(this,n)}toString(){return Kh(this._root)}};function lc(e,t){t.value._routerState=e,t.children.forEach(n=>lc(e,n))}function Kh(e){let t=e.children.length>0?` { ${e.children.map(Kh).join(", ")} } `:"";return`${e.value}${t}`}function Fu(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),HC(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 tc(e,t){let n=We(e.params,t.params)&&qC(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||tc(e.parent,t.parent))}function Jh(e){return typeof e.title=="string"||e.title===null}var dc=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=b,this.activateEvents=new Y,this.deactivateEvents=new Y,this.attachEvents=new Y,this.detachEvents=new Y,this.parentContexts=g(Ko),this.location=g(Eo),this.changeDetector=g(jt),this.inputBinder=g(fc,{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 nc(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=He({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Sn]})}}return e})(),nc=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===Hn?this.route:t===Ko?this.childContexts:this.parent.get(t,n)}},fc=new D("");function vw(e,t,n){let r=Pr(e,t._root,n?n._root:void 0);return new Wo(r,t)}function Pr(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=t.value;let i=yw(e,t,n);return new he(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=>Pr(e,a)),s}}let r=Dw(t.value),i=t.children.map(o=>Pr(e,o));return new he(r,i)}}function yw(e,t,n){return t.children.map(r=>{for(let i of n.children)if(e.shouldReuseRoute(r.value,i.value.snapshot))return Pr(e,r,i);return Pr(e,r)})}function Dw(e){return new Hn(new K(e.url),new K(e.params),new K(e.queryParams),new K(e.fragment),new K(e.data),e.outlet,e.component,e)}var kr=class{constructor(t,n){this.redirectTo=t,this.navigationBehaviorOptions=n}},Xh="ngNavigationCancelingError";function Yo(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=Ar(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,i=ep(!1,pe.Redirect);return i.url=n,i.navigationBehaviorOptions=r,i}function ep(e,t){let n=new Error(`NavigationCancelingError: ${e||""}`);return n[Xh]=!0,n.cancellationCode=t,n}function Cw(e){return tp(e)&&Ar(e.url)}function tp(e){return!!e&&e[Xh]}var ww=(e,t,n,r)=>I(i=>(new rc(t,i.targetRouterState,i.currentRouterState,n,r).activate(e),i)),rc=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),Fu(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 Ku(o.value.snapshot))}),t.children.length&&this.forwardEvent(new Yu(t.value.snapshot))}activateRoutes(t,n,r){let i=t.value,o=n?n.value:null;if(Fu(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),Fu(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)}},Qo=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},Un=class{constructor(t,n){this.component=t,this.route=n}};function Ew(e,t,n){let r=e._root,i=t?t._root:null;return br(r,i,n,[r.value])}function Iw(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function Gn(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e=="function"&&!nd(e)?e:t.get(e):r}function br(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=Ln(t);return e.children.forEach(s=>{bw(s,o[s.value.outlet],n,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Tr(a,n.getContext(s),i)),i}function bw(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=_w(s,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new Qo(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?br(e,t,a?a.children:null,r,i):br(e,t,n,r,i),u&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Un(a.outlet.component,s))}else s&&Tr(t,a,i),i.canActivateChecks.push(new Qo(r)),o.component?br(e,null,a?a.children:null,r,i):br(e,null,n,r,i);return i}function _w(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)||!We(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!tc(e,t)||!We(e.queryParams,t.queryParams);case"paramsChange":default:return!tc(e,t)}}function Tr(e,t,n){let r=Ln(e),i=e.value;Object.entries(r).forEach(([o,s])=>{i.component?t?Tr(s,t.children.getContext(o),n):Tr(s,null,n):Tr(s,t,n)}),i.component?t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new Un(t.outlet.component,i)):n.canDeactivateChecks.push(new Un(null,i)):n.canDeactivateChecks.push(new Un(null,i))}function Br(e){return typeof e=="function"}function Mw(e){return typeof e=="boolean"}function Sw(e){return e&&Br(e.canLoad)}function Tw(e){return e&&Br(e.canActivate)}function xw(e){return e&&Br(e.canActivateChild)}function Aw(e){return e&&Br(e.canDeactivate)}function Nw(e){return e&&Br(e.canMatch)}function np(e){return e instanceof Ye||e?.name==="EmptyError"}var Vo=Symbol("INITIAL_VALUE");function zn(){return te(e=>bi(e.map(t=>t.pipe(q(1),Os(Vo)))).pipe(I(t=>{for(let n of t)if(n!==!0){if(n===Vo)return Vo;if(n===!1||Rw(n))return n}return!0}),ee(t=>t!==Vo),q(1)))}function Rw(e){return Ar(e)||e instanceof kr}function Ow(e,t){return $(n=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=n;return s.length===0&&o.length===0?w(F(p({},n),{guardsResult:!0})):Fw(s,r,i,e).pipe($(a=>a&&Mw(a)?Pw(r,o,e,t):w(a)),I(a=>F(p({},n),{guardsResult:a})))})}function Fw(e,t,n,r){return U(e).pipe($(i=>Uw(i.component,i.route,n,t,r)),Pe(i=>i!==!0,!0))}function Pw(e,t,n,r){return U(t).pipe(rn(i=>Fe(Lw(i.route.parent,r),kw(i.route,r),jw(e,i.path,n),Vw(e,i.route,n))),Pe(i=>i!==!0,!0))}function kw(e,t){return e!==null&&t&&t(new Qu(e)),w(!0)}function Lw(e,t){return e!==null&&t&&t(new Zu(e)),w(!0)}function Vw(e,t,n){let r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||r.length===0)return w(!0);let i=r.map(o=>Mt(()=>{let s=Ur(t)??n,a=Gn(o,s),u=Tw(a)?a.canActivate(t,e):Je(s,()=>a(t,e));return wt(u).pipe(Pe())}));return w(i).pipe(zn())}function jw(e,t,n){let r=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>Iw(s)).filter(s=>s!==null).map(s=>Mt(()=>{let a=s.guards.map(u=>{let c=Ur(s.node)??n,l=Gn(u,c),d=xw(l)?l.canActivateChild(r,e):Je(c,()=>l(r,e));return wt(d).pipe(Pe())});return w(a).pipe(zn())}));return w(o).pipe(zn())}function Uw(e,t,n,r,i){let o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||o.length===0)return w(!0);let s=o.map(a=>{let u=Ur(t)??i,c=Gn(a,u),l=Aw(c)?c.canDeactivate(e,t,n,r):Je(u,()=>c(e,t,n,r));return wt(l).pipe(Pe())});return w(s).pipe(zn())}function Bw(e,t,n,r){let i=t.canLoad;if(i===void 0||i.length===0)return w(!0);let o=i.map(s=>{let a=Gn(s,e),u=Sw(a)?a.canLoad(t,n):Je(e,()=>a(t,n));return wt(u)});return w(o).pipe(zn(),rp(r))}function rp(e){return Ds(Z(t=>{if(typeof t!="boolean")throw Yo(e,t)}),I(t=>t===!0))}function $w(e,t,n,r){let i=t.canMatch;if(!i||i.length===0)return w(!0);let o=i.map(s=>{let a=Gn(s,e),u=Nw(a)?a.canMatch(t,n):Je(e,()=>a(t,n));return wt(u)});return w(o).pipe(zn(),rp(r))}var Lr=class{constructor(t){this.segmentGroup=t||null}},Vr=class extends Error{constructor(t){super(),this.urlTree=t}};function kn(e){return ut(new Lr(e))}function Hw(e){return ut(new y(4e3,!1))}function zw(e){return ut(ep(!1,pe.GuardRejected))}var ic=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 w(r);if(i.numberOfChildren>1||!i.children[b])return Hw(`${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:h,params:f,data:m,title:M}=i,k=Je(o,()=>a({params:f,data:m,queryParams:u,fragment:c,routeConfig:l,url:d,outlet:h,title:M}));if(k instanceof st)throw new Vr(k);n=k}let s=this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r);if(n[0]==="/")throw new Vr(s);return s}applyRedirectCreateUrlTree(t,n,r,i){let o=this.createSegmentGroup(t,n.root,r,i);return new st(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 L(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}},oc={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Gw(e,t,n,r,i){let o=ip(e,t,n);return o.matched?(r=pw(t,r),$w(r,t,n,i).pipe(I(s=>s===!0?o:p({},oc)))):w(o)}function ip(e,t,n){if(t.path==="**")return Ww(n);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?p({},oc):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let i=(t.matcher||$C)(n,e,t);if(!i)return p({},oc);let o={};Object.entries(i.posParams??{}).forEach(([a,u])=>{o[a]=u.path});let s=i.consumed.length>0?p(p({},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 Ww(e){return{matched:!0,parameters:e.length>0?Lh(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function Oh(e,t,n,r){return n.length>0&&Yw(e,n,r)?{segmentGroup:new L(t,Zw(r,new L(n,e.children))),slicedSegments:[]}:n.length===0&&Qw(e,n,r)?{segmentGroup:new L(e.segments,qw(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new L(e.segments,e.children),slicedSegments:n}}function qw(e,t,n,r){let i={};for(let o of n)if(Jo(e,t,o)&&!r[Re(o)]){let s=new L([],{});i[Re(o)]=s}return p(p({},r),i)}function Zw(e,t){let n={};n[b]=t;for(let r of e)if(r.path===""&&Re(r)!==b){let i=new L([],{});n[Re(r)]=i}return n}function Yw(e,t,n){return n.some(r=>Jo(e,t,r)&&Re(r)!==b)}function Qw(e,t,n){return n.some(r=>Jo(e,t,r))}function Jo(e,t,n){return(e.hasChildren()||t.length>0)&&n.pathMatch==="full"?!1:n.path===""}function Kw(e,t,n){return t.length===0&&!e.children[n]}var sc=class{};function Jw(e,t,n,r,i,o,s="emptyOnly"){return new ac(e,t,n,r,i,s,o).recognize()}var Xw=31,ac=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 ic(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new y(4002,`'${t.segmentGroup}'`)}recognize(){let t=Oh(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(I(({children:n,rootSnapshot:r})=>{let i=new he(r,n),o=new Zo("",i),s=aw(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(p({},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})),ct(r=>{if(r instanceof Vr)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Lr?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 he?[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 U(o).pipe(rn(s=>{let a=r.children[s],u=gw(n,s);return this.processSegmentGroup(t,u,a,s,i)}),Rs((s,a)=>(s.push(...a),s)),lt(null),As(),$(s=>{if(s===null)return kn(r);let a=op(s);return eE(a),w(a)}))}processSegment(t,n,r,i,o,s,a){return U(n).pipe(rn(u=>this.processSegmentAgainstRoute(u._injector??t,n,u,r,i,o,s,a).pipe(ct(c=>{if(c instanceof Lr)return w(null);throw c}))),Pe(u=>!!u),ct(u=>{if(np(u))return Kw(r,i,o)?w(new sc):kn(r);throw u}))}processSegmentAgainstRoute(t,n,r,i,o,s,a,u){return Re(r)!==s&&(s===b||!Jo(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:h}=ip(n,i,o);if(!u)return kn(n);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Xw&&(this.allowRedirects=!1));let f=new jn(o,c,Object.freeze(p({},this.urlTree.queryParams)),this.urlTree.fragment,Fh(i),Re(i),i.component??i._loadedComponent??null,i,Ph(i)),m=qo(f,a,this.paramsInheritanceStrategy);f.params=Object.freeze(m.params),f.data=Object.freeze(m.data);let M=this.applyRedirects.applyRedirectCommands(l,i.redirectTo,d,f,t);return this.applyRedirects.lineralizeSegments(i,M).pipe($(k=>this.processSegment(t,r,n,k.concat(h),s,!1,a)))}matchSegmentAgainstRoute(t,n,r,i,o,s){let a=Gw(n,r,i,t,this.urlSerializer);return r.path==="**"&&(n.children={}),a.pipe(te(u=>u.matched?(t=r._injector??t,this.getChildConfig(t,r,i).pipe(te(({routes:c})=>{let l=r._loadedInjector??t,{parameters:d,consumedSegments:h,remainingSegments:f}=u,m=new jn(h,d,Object.freeze(p({},this.urlTree.queryParams)),this.urlTree.fragment,Fh(r),Re(r),r.component??r._loadedComponent??null,r,Ph(r)),M=qo(m,s,this.paramsInheritanceStrategy);m.params=Object.freeze(M.params),m.data=Object.freeze(M.data);let{segmentGroup:k,slicedSegments:P}=Oh(n,h,f,c);if(P.length===0&&k.hasChildren())return this.processChildren(l,c,k,m).pipe(I(se=>new he(m,se)));if(c.length===0&&P.length===0)return w(new he(m,[]));let oe=Re(r)===o;return this.processSegment(l,c,k,P,oe?b:o,!0,m).pipe(I(se=>new he(m,se instanceof he?[se]:[])))}))):kn(n)))}getChildConfig(t,n,r){return n.children?w({routes:n.children,injector:t}):n.loadChildren?n._loadedRoutes!==void 0?w({routes:n._loadedRoutes,injector:n._loadedInjector}):Bw(t,n,r,this.urlSerializer).pipe($(i=>i?this.configLoader.loadChildren(t,n).pipe(Z(o=>{n._loadedRoutes=o.routes,n._loadedInjector=o.injector})):zw(n))):w({routes:[],injector:t})}};function eE(e){e.sort((t,n)=>t.value.outlet===b?-1:n.value.outlet===b?1:t.value.outlet.localeCompare(n.value.outlet))}function tE(e){let t=e.value.routeConfig;return t&&t.path===""}function op(e){let t=[],n=new Set;for(let r of e){if(!tE(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=op(r.children);t.push(new he(r.value,i))}return t.filter(r=>!n.has(r))}function Fh(e){return e.data||{}}function Ph(e){return e.resolve||{}}function nE(e,t,n,r,i,o){return $(s=>Jw(e,t,n,r,s.extractedUrl,i,o).pipe(I(({state:a,tree:u})=>F(p({},s),{targetSnapshot:a,urlAfterRedirects:u}))))}function rE(e,t){return $(n=>{let{targetSnapshot:r,guards:{canActivateChecks:i}}=n;if(!i.length)return w(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 sp(u))s.add(c);let a=0;return U(s).pipe(rn(u=>o.has(u)?iE(u,r,e,t):(u.data=qo(u,u.parent,e).resolve,w(void 0))),Z(()=>a++),on(1),$(u=>a===s.size?w(n):ne))})}function sp(e){let t=e.children.map(n=>sp(n)).flat();return[e,...t]}function iE(e,t,n,r){let i=e.routeConfig,o=e._resolve;return i?.title!==void 0&&!Jh(i)&&(o[jr]=i.title),oE(o,e,t,r).pipe(I(s=>(e._resolvedData=s,e.data=qo(e,e.parent,n).resolve,null)))}function oE(e,t,n,r){let i=Lu(e);if(i.length===0)return w({});let o={};return U(i).pipe($(s=>sE(e[s],t,n,r).pipe(Pe(),Z(a=>{if(a instanceof kr)throw Yo(new xr,a);o[s]=a}))),on(1),tr(o),ct(s=>np(s)?ne:ut(s)))}function sE(e,t,n,r){let i=Ur(t)??r,o=Gn(e,i),s=o.resolve?o.resolve(t,n):Je(i,()=>o(t,n));return wt(s)}function Pu(e){return te(t=>{let n=e(t);return n?U(n).pipe(I(()=>t)):w(t)})}var ap=(()=>{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[jr]}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:()=>g(aE),providedIn:"root"})}}return e})(),aE=(()=>{class e extends ap{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)(N(Th))}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),hc=new D("",{providedIn:"root",factory:()=>({})}),uE=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=co({type:e,selectors:[["ng-component"]],standalone:!0,features:[So],decls:1,vars:0,template:function(r,i){r&1&&On(0,"router-outlet")},dependencies:[dc],encapsulation:2})}}return e})();function pc(e){let t=e.children&&e.children.map(pc),n=t?F(p({},e),{children:t}):p({},e);return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==b&&(n.component=uE),n}var gc=new D(""),cE=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=g(yu)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return w(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let r=wt(n.loadComponent()).pipe(I(up),Z(o=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=o}),nr(()=>{this.componentLoaders.delete(n)})),i=new at(r,()=>new B).pipe(Jt());return this.componentLoaders.set(n,i),i}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return w({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=lE(r,this.compiler,n,this.onLoadEndListener).pipe(nr(()=>{this.childrenLoaders.delete(r)})),s=new at(o,()=>new B).pipe(Jt());return this.childrenLoaders.set(r,s),s}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function lE(e,t,n,r){return wt(e.loadChildren()).pipe(I(up),$(i=>i instanceof dr||Array.isArray(i)?w(i):U(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(gc,[],{optional:!0,self:!0}).flat()),{routes:s.map(pc),injector:o}}))}function dE(e){return e&&typeof e=="object"&&"default"in e}function up(e){return dE(e)?e.default:e}var mc=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:()=>g(fE),providedIn:"root"})}}return e})(),fE=(()=>{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=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),hE=new D("");var pE=new D(""),gE=(()=>{class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new B,this.transitionAbortSubject=new B,this.configLoader=g(cE),this.environmentInjector=g(ye),this.urlSerializer=g(cc),this.rootContexts=g(Ko),this.location=g(Dr),this.inputBindingEnabled=g(fc,{optional:!0})!==null,this.titleStrategy=g(ap),this.options=g(hc,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=g(mc),this.createViewTransition=g(hE,{optional:!0}),this.navigationErrorHandler=g(pE,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>w(void 0),this.rootComponentType=null;let n=i=>this.events.next(new Wu(i)),r=i=>this.events.next(new qu(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;this.transitions?.next(F(p(p({},this.transitions.value),n),{id:r}))}setupNavigations(n,r,i){return this.transitions=new K({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:Sr,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ee(o=>o.id!==0),I(o=>F(p({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),te(o=>{let s=!1,a=!1;return w(o).pipe(te(u=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",pe.SupersededByNewNavigation),ne;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?F(p({},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 zt(u.id,this.urlSerializer.serialize(u.rawUrl),d,Bu.IgnoredSameUrlNavigation)),u.resolve(!1),ne}if(this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return w(u).pipe(te(d=>{let h=this.transitions?.getValue();return this.events.next(new Rr(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions?.getValue()?ne:Promise.resolve(d)}),nE(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),Z(d=>{o.targetSnapshot=d.targetSnapshot,o.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation=F(p({},this.currentNavigation),{finalUrl:d.urlAfterRedirects});let h=new zo(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(h)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){let{id:d,extractedUrl:h,source:f,restoredState:m,extras:M}=u,k=new Rr(d,this.urlSerializer.serialize(h),f,m);this.events.next(k);let P=Qh(this.rootComponentType).snapshot;return this.currentTransition=o=F(p({},u),{targetSnapshot:P,urlAfterRedirects:h,extras:F(p({},M),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=h,w(o)}else{let d="";return this.events.next(new zt(u.id,this.urlSerializer.serialize(u.extractedUrl),d,Bu.IgnoredByUrlHandlingStrategy)),u.resolve(!1),ne}}),Z(u=>{let c=new $u(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(c)}),I(u=>(this.currentTransition=o=F(p({},u),{guards:Ew(u.targetSnapshot,u.currentSnapshot,this.rootContexts)}),o)),Ow(this.environmentInjector,u=>this.events.next(u)),Z(u=>{if(o.guardsResult=u.guardsResult,u.guardsResult&&typeof u.guardsResult!="boolean")throw Yo(this.urlSerializer,u.guardsResult);let c=new Hu(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(c)}),ee(u=>u.guardsResult?!0:(this.cancelNavigationTransition(u,"",pe.GuardRejected),!1)),Pu(u=>{if(u.guards.canActivateChecks.length)return w(u).pipe(Z(c=>{let l=new zu(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),te(c=>{let l=!1;return w(c).pipe(rE(this.paramsInheritanceStrategy,this.environmentInjector),Z({next:()=>l=!0,complete:()=>{l||this.cancelNavigationTransition(c,"",pe.NoDataFromResolver)}}))}),Z(c=>{let l=new Gu(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}))}),Pu(u=>{let c=l=>{let d=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(l.routeConfig).pipe(Z(h=>{l.component=h}),I(()=>{})));for(let h of l.children)d.push(...c(h));return d};return bi(c(u.targetSnapshot.root)).pipe(lt(null),q(1))}),Pu(()=>this.afterPreactivation()),te(()=>{let{currentSnapshot:u,targetSnapshot:c}=o,l=this.createViewTransition?.(this.environmentInjector,u.root,c.root);return l?U(l).pipe(I(()=>o)):w(o)}),I(u=>{let c=vw(n.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=o=F(p({},u),{targetRouterState:c}),this.currentNavigation.targetRouterState=c,o}),Z(()=>{this.events.next(new Fr)}),ww(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 Ht(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),this.titleStrategy?.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{s=!0}}),Fs(this.transitionAbortSubject.pipe(Z(u=>{throw u}))),nr(()=>{!s&&!a&&this.cancelNavigationTransition(o,"",pe.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),ct(u=>{if(a=!0,tp(u))this.events.next(new ot(o.id,this.urlSerializer.serialize(o.extractedUrl),u.message,u.cancellationCode)),Cw(u)?this.events.next(new $n(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=Je(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(l instanceof kr){let{message:d,cancellationCode:h}=Yo(this.urlSerializer,l);this.events.next(new ot(o.id,this.urlSerializer.serialize(o.extractedUrl),d,h)),this.events.next(new $n(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 ne}))}))}cancelNavigationTransition(n,r,i){let o=new ot(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=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function mE(e){return e!==Sr}var vE=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:()=>g(yE),providedIn:"root"})}}return e})(),uc=class{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}},yE=(()=>{class e extends uc{static{this.\u0275fac=(()=>{let n;return function(i){return(n||(n=Tn(e)))(i||e)}})()}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),cp=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:()=>g(DE),providedIn:"root"})}}return e})(),DE=(()=>{class e extends cp{constructor(){super(...arguments),this.location=g(Dr),this.urlSerializer=g(cc),this.options=g(hc,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=g(mc),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new st,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Qh(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 Rr)this.stateMemento=this.createStateMemento();else if(n instanceof zt)this.rawUrlTree=r.initialUrl;else if(n instanceof zo){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 Fr?(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 ot&&(n.code===pe.GuardRejected||n.code===pe.NoDataFromResolver)?this.restoreHistory(r):n instanceof Or?this.restoreHistory(r,!0):n instanceof Ht&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){let i=n instanceof st?this.urlSerializer.serialize(n):n;if(this.location.isCurrentPathEqualTo(i)||r.extras.replaceUrl){let o=this.browserPageId,s=p(p({},r.extras.state),this.generateNgRouterState(r.id,o));this.location.replaceState(i,"",s)}else{let o=p(p({},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=Tn(e)))(i||e)}})()}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),_r=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(_r||{});function CE(e,t){e.events.pipe(ee(n=>n instanceof Ht||n instanceof ot||n instanceof Or||n instanceof zt),I(n=>n instanceof Ht||n instanceof zt?_r.COMPLETE:(n instanceof ot?n.code===pe.Redirect||n.code===pe.SupersededByNewNavigation:!1)?_r.REDIRECTING:_r.FAILED),ee(n=>n!==_r.REDIRECTING),q(1)).subscribe(()=>{t()})}function wE(e){throw e}var EE={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},IE={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},lp=(()=>{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=g(To),this.stateManager=g(cp),this.options=g(hc,{optional:!0})||{},this.pendingTasks=g(xn),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=g(gE),this.urlSerializer=g(cc),this.location=g(Dr),this.urlHandlingStrategy=g(mc),this._events=new B,this.errorHandler=this.options.errorHandler||wE,this.navigated=!1,this.routeReuseStrategy=g(vE),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=g(gc,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!g(fc,{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 ot&&r.code!==pe.Redirect&&r.code!==pe.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Ht)this.navigated=!0;else if(r instanceof $n){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),u=p({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||mE(i.source)},s);this.scheduleNavigation(a,Sr,null,u,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}_E(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),Sr,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=p({},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(pc),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=p(p({},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 h=i?i.snapshot:this.routerState.snapshot.root;d=Wh(h)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),d=this.currentUrlTree.root}return qh(d,n,l,c??null)}navigateByUrl(n,r={skipLocationChange:!1}){let i=Ar(n)?n:this.parseUrl(n),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Sr,null,r)}navigate(n,r={skipLocationChange:!1}){return bE(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=p({},EE):r===!1?i=p({},IE):i=r,Ar(n))return xh(this.currentUrlTree,n,i);let o=this.parseUrl(n);return xh(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,h)=>{a=d,u=h});let l=this.pendingTasks.add();return CE(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=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function bE(e){for(let t=0;tn.\u0275providers)])}function SE(e){return e.routerState.root}function TE(){let e=g($e);return t=>{let n=e.get(Ge);if(t!==n.components[0])return;let r=e.get(lp),i=e.get(xE);e.get(AE)===1&&r.initialNavigation(),e.get(NE,null,_.Optional)?.setUpPreloading(),e.get(ME,null,_.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var xE=new D("",{factory:()=>new B}),AE=new D("",{providedIn:"root",factory:()=>1});var NE=new D("");var fp=[];var Hr="Service workers are disabled or not supported by this browser";function RE(e){return Mt(()=>ut(new Error(e)))}var Wn=class{constructor(t){if(this.serviceWorker=t,!t)this.worker=this.events=this.registration=RE(Hr);else{let r=nn(t,"controllerchange").pipe(I(()=>t.controller)),i=Mt(()=>w(t.controller)),o=Fe(i,r);this.worker=o.pipe(ee(l=>!!l)),this.registration=this.worker.pipe(te(()=>t.getRegistration()));let c=nn(t,"message").pipe(I(l=>l.data)).pipe(ee(l=>l&&l.type)).pipe(Ns());c.connect(),this.events=c}}postMessage(t,n){return this.worker.pipe(q(1),Z(r=>{r.postMessage(p({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(ee(n))}nextEventOfType(t){return this.eventsOfType(t).pipe(q(1))}waitForOperationCompleted(t){return this.eventsOfType("OPERATION_COMPLETED").pipe(ee(n=>n.nonce===t),q(1),I(n=>{if(n.result!==void 0)return n.result;throw new Error(n.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}},OE=(()=>{class e{get isEnabled(){return this.sw.isEnabled}constructor(n){if(this.sw=n,this.pushManager=null,this.subscriptionChanges=new B,!n.isEnabled){this.messages=St,this.notificationClicks=St,this.subscription=St;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(te(i=>i.getSubscription()));this.subscription=_i(r,this.subscriptionChanges)}requestSubscription(n){if(!this.sw.isEnabled||this.pushManager===null)return Promise.reject(new Error(Hr));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(Hr));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),te(n)).toPromise()}decodeBase64(n){return atob(n)}static{this.\u0275fac=function(r){return new(r||e)(N(Wn))}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac})}}return e})(),FE=(()=>{class e{get isEnabled(){return this.sw.isEnabled}constructor(n){if(this.sw=n,!n.isEnabled){this.versionUpdates=St,this.unrecoverable=St;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(Hr));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(Hr));let n=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:n},n)}static{this.\u0275fac=function(r){return new(r||e)(N(Wn))}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac})}}return e})();var hp=new D("");function PE(e,t,n,r){return()=>{if(!(Iu(r)&&"serviceWorker"in navigator&&n.enabled!==!1))return;let i=e.get(G),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=w(null);break;case"registerWithDelay":s=pp(+u[0]||0);break;case"registerWhenStable":let c=U(e.get(Ge).whenStable());s=u[0]?_i(c,pp(+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 pp(e){return w(null).pipe(xs(e))}function kE(e,t){return new Wn(Iu(t)&&e.enabled!==!1?navigator.serviceWorker:void 0)}var $r=class{};function gp(e,t={}){return _n([OE,FE,{provide:hp,useValue:e},{provide:$r,useValue:t},{provide:Wn,useFactory:kE,deps:[$r,rt]},{provide:xo,useFactory:PE,deps:[$e,hp,$r,rt],multi:!0}])}var mp={providers:[uh({eventCoalescing:!0}),dp(fp),gp("ngsw-worker.js",{enabled:!lh(),registrationStrategy:"registerWhenStable:30000"})]};var bp=(()=>{class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=i=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}static{this.\u0275fac=function(r){return new(r||e)(Q(Nn),Q(kt))}}static{this.\u0275dir=He({type:e})}}return e})(),_p=(()=>{class e extends bp{static{this.\u0275fac=(()=>{let n;return function(i){return(n||(n=Tn(e)))(i||e)}})()}static{this.\u0275dir=He({type:e,features:[Lt]})}}return e})(),wc=new D("");var LE={provide:wc,useExisting:bn(()=>rs),multi:!0};function VE(){let e=it()?it().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var jE=new D(""),rs=(()=>{class e extends bp{constructor(n,r,i){super(n,r),this._compositionMode=i,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!VE())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}static{this.\u0275fac=function(r){return new(r||e)(Q(Nn),Q(kt),Q(jE,8))}}static{this.\u0275dir=He({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,i){r&1&&Ne("input",function(s){return i._handleInput(s.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(s){return i._compositionEnd(s.target.value)})},features:[Mo([LE]),Lt]})}}return e})();var UE=new D(""),BE=new D("");function Mp(e){return e!=null}function Sp(e){return Vt(e)?U(e):e}function Tp(e){let t={};return e.forEach(n=>{t=n!=null?p(p({},t),n):t}),Object.keys(t).length===0?null:t}function xp(e,t){return t.map(n=>n(e))}function $E(e){return!e.validate}function Ap(e){return e.map(t=>$E(t)?t:n=>t.validate(n))}function HE(e){if(!e)return null;let t=e.filter(Mp);return t.length==0?null:function(n){return Tp(xp(n,t))}}function Np(e){return e!=null?HE(Ap(e)):null}function zE(e){if(!e)return null;let t=e.filter(Mp);return t.length==0?null:function(n){let r=xp(n,t).map(Sp);return Ss(r).pipe(I(Tp))}}function Rp(e){return e!=null?zE(Ap(e)):null}function vp(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function GE(e){return e._rawValidators}function WE(e){return e._rawAsyncValidators}function vc(e){return e?Array.isArray(e)?e:[e]:[]}function es(e,t){return Array.isArray(e)?e.includes(t):e===t}function yp(e,t){let n=vc(t);return vc(e).forEach(i=>{es(n,i)||n.push(i)}),n}function Dp(e,t){return vc(t).filter(n=>!es(e,n))}var ts=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=Np(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Rp(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return this.control?this.control.hasError(t,n):!1}getError(t,n){return this.control?this.control.getError(t,n):null}},yc=class extends ts{get formDirective(){return null}get path(){return null}},Zr=class extends ts{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Dc=class{constructor(t){this._cd=t}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},qE={"[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"},xN=F(p({},qE),{"[class.ng-submitted]":"isSubmitted"}),Op=(()=>{class e extends Dc{constructor(n){super(n)}static{this.\u0275fac=function(r){return new(r||e)(Q(Zr,2))}}static{this.\u0275dir=He({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,i){r&2&&vr("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[Lt]})}}return e})();var zr="VALID",Xo="INVALID",qn="PENDING",Gr="DISABLED",Yn=class{},ns=class extends Yn{constructor(t,n){super(),this.value=t,this.source=n}},Wr=class extends Yn{constructor(t,n){super(),this.pristine=t,this.source=n}},qr=class extends Yn{constructor(t,n){super(),this.touched=t,this.source=n}},Zn=class extends Yn{constructor(t,n){super(),this.status=t,this.source=n}};function ZE(e){return(is(e)?e.validators:e)||null}function YE(e){return Array.isArray(e)?Np(e):e||null}function QE(e,t){return(is(t)?t.asyncValidators:e)||null}function KE(e){return Array.isArray(e)?Rp(e):e||null}function is(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}var Cc=class{constructor(t,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=No(()=>this.statusReactive()),this.statusReactive=Io(void 0),this._pristine=No(()=>this.pristineReactive()),this.pristineReactive=Io(!0),this._touched=No(()=>this.touchedReactive()),this.touchedReactive=Io(!1),this._events=new B,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return Ct(this.statusReactive)}set status(t){Ct(()=>this.statusReactive.set(t))}get valid(){return this.status===zr}get invalid(){return this.status===Xo}get pending(){return this.status==qn}get disabled(){return this.status===Gr}get enabled(){return this.status!==Gr}get pristine(){return Ct(this.pristineReactive)}set pristine(t){Ct(()=>this.pristineReactive.set(t))}get dirty(){return!this.pristine}get touched(){return Ct(this.touchedReactive)}set touched(t){Ct(()=>this.touchedReactive.set(t))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(yp(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(yp(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(Dp(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(Dp(t,this._rawAsyncValidators))}hasValidator(t){return es(this._rawValidators,t)}hasAsyncValidator(t){return es(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let n=this.touched===!1;this.touched=!0;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(F(p({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new qr(!0,r))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(t))}markAsUntouched(t={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=t.sourceControl??this;this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:r})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,r),n&&t.emitEvent!==!1&&this._events.next(new qr(!1,r))}markAsDirty(t={}){let n=this.pristine===!0;this.pristine=!1;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(F(p({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new Wr(!1,r))}markAsPristine(t={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=t.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,r),n&&t.emitEvent!==!1&&this._events.next(new Wr(!0,r))}markAsPending(t={}){this.status=qn;let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Zn(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(F(p({},t),{sourceControl:n}))}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=Gr,this.errors=null,this._forEachChild(i=>{i.disable(F(p({},t),{onlySelf:!0}))}),this._updateValue();let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new ns(this.value,r)),this._events.next(new Zn(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(F(p({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(i=>i(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=zr,this._forEachChild(r=>{r.enable(F(p({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(F(p({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t,n){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===zr||this.status===qn)&&this._runAsyncValidator(r,t.emitEvent)}let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new ns(this.value,n)),this._events.next(new Zn(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(F(p({},t),{sourceControl:n}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Gr:zr}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=qn,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1};let r=Sp(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{emitEvent:n,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(t){let n=t;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,i)=>r&&r._find(i),this)}getError(t,n){let r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,n,r){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||r)&&this._events.next(new Zn(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new Y,this.statusChanges=new Y}_calculateStatus(){return this._allControlsDisabled()?Gr:this.errors?Xo:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(qn)?qn:this._anyControlsHaveStatus(Xo)?Xo:zr}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,n){let r=!this._anyControlsDirty(),i=this.pristine!==r;this.pristine=r,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,n),i&&this._events.next(new Wr(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new qr(this.touched,n)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,n)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){is(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let n=this._parent&&this._parent.dirty;return!t&&!!n&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=YE(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=KE(this._rawAsyncValidators)}};var Fp=new D("CallSetDisabledState",{providedIn:"root",factory:()=>Ec}),Ec="always";function JE(e,t){return[...t.path,e]}function XE(e,t,n=Ec){tI(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),nI(e,t),iI(e,t),rI(e,t),eI(e,t)}function Cp(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function eI(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function tI(e,t){let n=GE(e);t.validator!==null?e.setValidators(vp(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=WE(e);t.asyncValidator!==null?e.setAsyncValidators(vp(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let i=()=>e.updateValueAndValidity();Cp(t._rawValidators,i),Cp(t._rawAsyncValidators,i)}function nI(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&Pp(e,t)})}function rI(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&Pp(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function Pp(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function iI(e,t){let n=(r,i)=>{t.valueAccessor.writeValue(r),i&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function oI(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function sI(e){return Object.getPrototypeOf(e.constructor)===_p}function aI(e,t){if(!t)return null;Array.isArray(t);let n,r,i;return t.forEach(o=>{o.constructor===rs?n=o:sI(o)?r=o:i=o}),i||r||n||null}function wp(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Ep(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var uI=class extends Cc{constructor(t=null,n,r){super(ZE(n),QE(r,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),is(n)&&(n.nonNullable||n.initialValueIsDefault)&&(Ep(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){wp(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){wp(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){Ep(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var cI={provide:Zr,useExisting:bn(()=>Ic)},Ip=Promise.resolve(),Ic=(()=>{class e extends Zr{constructor(n,r,i,o,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new uI,this._registered=!1,this.name="",this.update=new Y,this._parent=n,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=aI(this,o)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),oI(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){XE(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){Ip.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,i=r!==0&&Ao(r);Ip.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?JE(n,this._parent):[n]}static{this.\u0275fac=function(r){return new(r||e)(Q(yc,9),Q(UE,10),Q(BE,10),Q(wc,10),Q(jt,8),Q(Fp,8))}}static{this.\u0275dir=He({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Mo([cI]),Lt,Sn]})}}return e})();var lI={provide:wc,useExisting:bn(()=>bc),multi:!0},bc=(()=>{class e extends _p{writeValue(n){this.setProperty("value",parseFloat(n))}registerOnChange(n){this.onChange=r=>{n(r==""?null:parseFloat(r))}}static{this.\u0275fac=(()=>{let n;return function(i){return(n||(n=Tn(e)))(i||e)}})()}static{this.\u0275dir=He({type:e,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(r,i){r&1&&Ne("change",function(s){return i.onChange(s.target.value)})("input",function(s){return i.onChange(s.target.value)})("blur",function(){return i.onTouched()})},features:[Mo([lI]),Lt]})}}return e})();var dI=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=yt({type:e})}static{this.\u0275inj=vt({})}}return e})();var kp=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:Fp,useValue:n.callSetDisabledState??Ec}]}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=yt({type:e})}static{this.\u0275inj=vt({imports:[dI]})}}return e})();function hI(e,t){e&1&&(Ae(0,"p"),yr(1,"Drag any photo to this window or click to select."),ze())}function pI(e,t){e&1&&(Ae(0,"p"),yr(1,"Processing image..."),ze())}function gI(e,t){if(e&1){let n=pu();Ae(0,"div",3),On(1,"img",4),Ae(2,"div",5)(3,"div",6)(4,"label")(5,"input",7),mu("ngModelChange",function(i){tt(n);let o=Fn();return nh(o.blurAmount,i)||(o.blurAmount=i),nt(i)}),Ne("ngModelChange",function(){tt(n);let i=Fn();return nt(i.processImage())}),ze()()(),Ae(6,"div",8)(7,"button",9),Ne("click",function(){tt(n);let i=Fn();return nt(i.downloadImage())}),yr(8,"Download Blurred Image"),ze(),Ae(9,"button",10),Ne("click",function(i){return tt(n),Fn().reset(),nt(i.stopPropagation())}),yr(10,"Reset"),ze()()()()}if(e&2){let n=Fn();An(),hu("src",n.blurredImageUrl,yf),An(4),gu("ngModel",n.blurAmount)}}var os=class e{imageUrl=null;blurredImageUrl=null;isProcessing=!1;blurAmount=100;onDragOver(t){t.preventDefault(),t.stopPropagation()}onDrop(t){return Qn(this,null,function*(){t.preventDefault(),t.stopPropagation();let n=t.dataTransfer?.files[0];n&&n.type.startsWith("image/")&&(this.isProcessing=!0,this.imageUrl=yield this.readFile(n),yield this.processImage(),this.isProcessing=!1)})}onFileSelected(t){return Qn(this,null,function*(){let n=t.target,r=n.files?.[0];r&&r.type.startsWith("image/")&&(this.isProcessing=!0,this.imageUrl=yield this.readFile(r),yield this.processImage(),this.isProcessing=!1),n.value=""})}processImage(){return Qn(this,null,function*(){this.imageUrl&&(this.blurredImageUrl=yield this.applyBlur(this.imageUrl))})}readFile(t){return new Promise(n=>{let r=new FileReader;r.onload=()=>n(r.result),r.readAsDataURL(t)})}applyBlur(t){return new Promise(n=>{let r=new Image;r.onload=()=>{let i=document.createElement("canvas"),o=i.getContext("2d"),s=r.width/r.height,a=1920,u=Math.round(a/s);i.width=a,i.height=u,o.filter=`blur(${this.blurAmount}px)`,o.drawImage(r,0,0,i.width,i.height),o.globalCompositeOperation="source-over",o.filter=`blur(${this.blurAmount*.8}px) brightness(1.2) contrast(1.3)`,o.globalAlpha=.4,o.drawImage(r,0,0,i.width,i.height),o.globalCompositeOperation="overlay",o.globalAlpha=.1,o.drawImage(r,0,0,i.width,i.height),n(i.toDataURL("image/jpeg",.95))},r.src=t})}downloadImage(){if(this.blurredImageUrl){let t=document.createElement("a");t.href=this.blurredImageUrl,t.download="blurred.jpg",t.click()}}reset(){this.imageUrl=null,this.blurredImageUrl=null,this.blurAmount=100}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=co({type:e,selectors:[["app-root"]],standalone:!0,features:[So],decls:7,vars:5,consts:[["fileInput",""],[1,"container",3,"dragover","drop","click"],["type","file","accept","image/*",2,"display","none",3,"change"],[1,"result"],["alt","Blurred image",3,"src"],[1,"overlay"],[1,"controls"],["type","range","min","20","max","200",3,"ngModelChange","ngModel"],[1,"button-group"],[3,"click"],[1,"reset",3,"click"]],template:function(n,r){if(n&1){let i=pu();Ae(0,"div",1),Ne("dragover",function(s){return tt(i),nt(r.onDragOver(s))})("drop",function(s){return tt(i),nt(r.onDrop(s))})("click",function(){tt(i);let s=th(2);return nt(!r.imageUrl&&s.click())}),Ae(1,"input",2,0),Ne("change",function(s){return tt(i),nt(r.onFileSelected(s))}),ze(),fu(3,hI,2,0,"p")(4,pI,2,0,"p")(5,gI,11,2,"div",3),ze(),On(6,"router-outlet")}n&2&&(vr("has-image",r.imageUrl),An(3),_o(r.imageUrl?-1:3),An(),_o(r.isProcessing?4:-1),An(),_o(r.blurredImageUrl?5:-1))},dependencies:[dc,wu,kp,rs,bc,Op,Ic],styles:["*[_ngcontent-%COMP%]{box-sizing:border-box}.container[_ngcontent-%COMP%]{height:100vh;padding:0;margin:0;overflow:hidden;display:flex;flex-direction:column;box-sizing:border-box;justify-content:center;align-items:center}.container[_ngcontent-%COMP%]:not(.has-image){border:4px dashed #ccc;border-radius:4px;padding:20px;cursor:pointer}.result[_ngcontent-%COMP%]{margin:0;position:relative;width:100%;height:100%;display:flex}.result[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover;border-radius:0;box-shadow:none}.overlay[_ngcontent-%COMP%]{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;gap:20px;background:#0003;opacity:.1;transition:opacity .3s ease;border-radius:8px;padding-top:20px}.overlay[_ngcontent-%COMP%]:hover{opacity:1}.controls[_ngcontent-%COMP%]{background:#000000b3;padding:8px 15px;border-radius:4px}.controls[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px;align-items:center;color:#fff}.controls[_ngcontent-%COMP%] input[type=range][_ngcontent-%COMP%]{width:200px}button[_ngcontent-%COMP%]:hover{background-color:#0056b3}.button-group[_ngcontent-%COMP%]{display:flex;gap:10px}.reset[_ngcontent-%COMP%]{background-color:#dc3545}.reset[_ngcontent-%COMP%]:hover{background-color:#c82333}.container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:1.2rem;color:#666}"]})};Sh(os,mp).catch(e=>console.error(e)); diff --git a/ngsw.json b/ngsw.json index 557d896..ce4d48f 100644 --- a/ngsw.json +++ b/ngsw.json @@ -1,6 +1,6 @@ { "configVersion": 1, - "timestamp": 1731627280404, + "timestamp": 1731663702035, "index": "/index.html", "assetGroups": [ { @@ -12,7 +12,7 @@ }, "urls": [ "/index.html", - "/main-N4WP2TJL.js", + "/main-A6IG4OCD.js", "/manifest.webmanifest", "/polyfills-FFHMD2TL.js", "/styles-IH7QB2KV.css" @@ -51,8 +51,8 @@ "/icons/icon-512x512.png": "cd40b87e4f512eb3a2b58683ef0ae2b0d7c8c0fe", "/icons/icon-72x72.png": "07871cf6100dcda9b3fa6405f7eda8d3ca222ace", "/icons/icon-96x96.png": "8062df6a91de14cae02b34ba5cba37f1af03d383", - "/index.html": "964837572cb6530b719565263e3c60b61da32ad4", - "/main-N4WP2TJL.js": "e9f47ec5289954c82604ce9dbabb3c7c0a2e84ed", + "/index.html": "090b6661acbce0d48feaec887d8588761d183c23", + "/main-A6IG4OCD.js": "3da38c4382962ce34238d51a763eb4d29c4a44d1", "/manifest.webmanifest": "9a84f24cd1efc6aeffe787653ae8590a795f3a2d", "/polyfills-FFHMD2TL.js": "f49b49a155bc7d192db62a4c15d0a612b460a667", "/styles-IH7QB2KV.css": "420e493224bf31e7de01bcdf9fd81bb33c95d60c"