angular-translator / main-QK56Y7UN.js
charlycop's picture
Upload 6 files
17c7ab2 verified
raw
history blame contribute delete
No virus
230 kB
var ip=Object.defineProperty,op=Object.defineProperties;var sp=Object.getOwnPropertyDescriptors;var nc=Object.getOwnPropertySymbols;var ap=Object.prototype.hasOwnProperty,up=Object.prototype.propertyIsEnumerable;var rc=(t,e,r)=>e in t?ip(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,g=(t,e)=>{for(var r in e||={})ap.call(e,r)&&rc(t,r,e[r]);if(nc)for(var r of nc(e))up.call(e,r)&&rc(t,r,e[r]);return t},O=(t,e)=>op(t,sp(e));var ko=null;var Po=1,Lo=Symbol("SIGNAL");function F(t){let e=ko;return ko=t,e}function ic(){return ko}var Vo={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 cp(t){if(!(Ho(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===Po)){if(!t.producerMustRecompute(t)&&!$o(t)){t.dirty=!1,t.lastCleanEpoch=Po;return}t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=Po}}function jo(t){return t&&(t.nextProducerIndex=0),F(t)}function oc(t,e){if(F(e),!(!t||t.producerNode===void 0||t.producerIndexOfThis===void 0||t.producerLastReadVersion===void 0)){if(Ho(t))for(let r=t.nextProducerIndex;r<t.producerNode.length;r++)Uo(t.producerNode[r],t.producerIndexOfThis[r]);for(;t.producerNode.length>t.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function $o(t){zo(t);for(let e=0;e<t.producerNode.length;e++){let r=t.producerNode[e],n=t.producerLastReadVersion[e];if(n!==r.version||(cp(r),n!==r.version))return!0}return!1}function Bo(t){if(zo(t),Ho(t))for(let e=0;e<t.producerNode.length;e++)Uo(t.producerNode[e],t.producerIndexOfThis[e]);t.producerNode.length=t.producerLastReadVersion.length=t.producerIndexOfThis.length=0,t.liveConsumerNode&&(t.liveConsumerNode.length=t.liveConsumerIndexOfThis.length=0)}function Uo(t,e){if(lp(t),t.liveConsumerNode.length===1&&dp(t))for(let n=0;n<t.producerNode.length;n++)Uo(t.producerNode[n],t.producerIndexOfThis[n]);let r=t.liveConsumerNode.length-1;if(t.liveConsumerNode[e]=t.liveConsumerNode[r],t.liveConsumerIndexOfThis[e]=t.liveConsumerIndexOfThis[r],t.liveConsumerNode.length--,t.liveConsumerIndexOfThis.length--,e<t.liveConsumerNode.length){let n=t.liveConsumerIndexOfThis[e],i=t.liveConsumerNode[e];zo(i),i.producerIndexOfThis[n]=e}}function Ho(t){return t.consumerIsAlwaysLive||(t?.liveConsumerNode?.length??0)>0}function zo(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function lp(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function dp(t){return t.producerNode!==void 0}function fp(){throw new Error}var hp=fp;function sc(t){hp=t}function E(t){return typeof t=="function"}function Wt(t){let r=t(n=>{Error.call(n),n.stack=new Error().stack});return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var jr=Wt(t=>function(r){t(this),this.message=r?`${r.length} errors occurred during unsubscription:
${r.map((n,i)=>`${i+1}) ${n.toString()}`).join(`
`)}`:"",this.name="UnsubscriptionError",this.errors=r});function Hn(t,e){if(t){let r=t.indexOf(e);0<=r&&t.splice(r,1)}}var H=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:r}=this;if(r)if(this._parentage=null,Array.isArray(r))for(let o of r)o.remove(this);else r.remove(this);let{initialTeardown:n}=this;if(E(n))try{n()}catch(o){e=o instanceof jr?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{ac(o)}catch(s){e=e??[],s instanceof jr?e=[...e,...s.errors]:e.push(s)}}if(e)throw new jr(e)}}add(e){var r;if(e&&e!==this)if(this.closed)ac(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}}_hasParent(e){let{_parentage:r}=this;return r===e||Array.isArray(r)&&r.includes(e)}_addParent(e){let{_parentage:r}=this;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e}_removeParent(e){let{_parentage:r}=this;r===e?this._parentage=null:Array.isArray(r)&&Hn(r,e)}remove(e){let{_finalizers:r}=this;r&&Hn(r,e),e instanceof t&&e._removeParent(this)}};H.EMPTY=(()=>{let t=new H;return t.closed=!0,t})();var Go=H.EMPTY;function $r(t){return t instanceof H||t&&"closed"in t&&E(t.remove)&&E(t.add)&&E(t.unsubscribe)}function ac(t){E(t)?t():t.unsubscribe()}var Ie={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var qt={setTimeout(t,e,...r){let{delegate:n}=qt;return n?.setTimeout?n.setTimeout(t,e,...r):setTimeout(t,e,...r)},clearTimeout(t){let{delegate:e}=qt;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Br(t){qt.setTimeout(()=>{let{onUnhandledError:e}=Ie;if(e)e(t);else throw t})}function zn(){}var uc=Wo("C",void 0,void 0);function cc(t){return Wo("E",void 0,t)}function lc(t){return Wo("N",t,void 0)}function Wo(t,e,r){return{kind:t,value:e,error:r}}var Dt=null;function Zt(t){if(Ie.useDeprecatedSynchronousErrorHandling){let e=!Dt;if(e&&(Dt={errorThrown:!1,error:null}),t(),e){let{errorThrown:r,error:n}=Dt;if(Dt=null,r)throw n}}else t()}function dc(t){Ie.useDeprecatedSynchronousErrorHandling&&Dt&&(Dt.errorThrown=!0,Dt.error=t)}var Ct=class extends H{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,$r(e)&&e.add(this)):this.destination=mp}static create(e,r,n){return new Yt(e,r,n)}next(e){this.isStopped?Zo(lc(e),this):this._next(e)}error(e){this.isStopped?Zo(cc(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Zo(uc,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},pp=Function.prototype.bind;function qo(t,e){return pp.call(t,e)}var Yo=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:r}=this;if(r.next)try{r.next(e)}catch(n){Ur(n)}}error(e){let{partialObserver:r}=this;if(r.error)try{r.error(e)}catch(n){Ur(n)}else Ur(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(r){Ur(r)}}},Yt=class extends Ct{constructor(e,r,n){super();let i;if(E(e)||!e)i={next:e??void 0,error:r??void 0,complete:n??void 0};else{let o;this&&Ie.useDeprecatedNextContext?(o=Object.create(e),o.unsubscribe=()=>this.unsubscribe(),i={next:e.next&&qo(e.next,o),error:e.error&&qo(e.error,o),complete:e.complete&&qo(e.complete,o)}):i=e}this.destination=new Yo(i)}};function Ur(t){Ie.useDeprecatedSynchronousErrorHandling?dc(t):Br(t)}function gp(t){throw t}function Zo(t,e){let{onStoppedNotification:r}=Ie;r&&qt.setTimeout(()=>r(t,e))}var mp={closed:!0,next:zn,error:gp,complete:zn};var Qt=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ue(t){return t}function Qo(...t){return Ko(t)}function Ko(t){return t.length===0?ue:t.length===1?t[0]:function(r){return t.reduce((n,i)=>i(n),r)}}var L=(()=>{class t{constructor(r){r&&(this._subscribe=r)}lift(r){let n=new t;return n.source=this,n.operator=r,n}subscribe(r,n,i){let o=yp(r)?r:new Yt(r,n,i);return Zt(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(r){try{return this._subscribe(r)}catch(n){r.error(n)}}forEach(r,n){return n=fc(n),new n((i,o)=>{let s=new Yt({next:a=>{try{r(a)}catch(u){o(u),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(r){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(r)}[Qt](){return this}pipe(...r){return Ko(r)(this)}toPromise(r){return r=fc(r),new r((n,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>n(o))})}}return t.create=e=>new t(e),t})();function fc(t){var e;return(e=t??Ie.Promise)!==null&&e!==void 0?e:Promise}function vp(t){return t&&E(t.next)&&E(t.error)&&E(t.complete)}function yp(t){return t&&t instanceof Ct||vp(t)&&$r(t)}function Jo(t){return E(t?.lift)}function A(t){return e=>{if(Jo(e))return e.lift(function(r){try{return t(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function S(t,e,r,n,i){return new Xo(t,e,r,n,i)}var Xo=class extends Ct{constructor(e,r,n,i,o,s){super(e),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=r?function(a){try{r(a)}catch(u){e.error(u)}}:super._next,this._error=i?function(a){try{i(a)}catch(u){e.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:r}=this;super.unsubscribe(),!r&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};function Kt(){return A((t,e)=>{let r=null;t._refCount++;let n=S(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){r=null;return}let i=t._connection,o=r;r=null,i&&(!o||i===o)&&i.unsubscribe(),e.unsubscribe()});t.subscribe(n),n.closed||(r=t.connect())})}var Jt=class extends L{constructor(e,r){super(),this.source=e,this.subjectFactory=r,this._subject=null,this._refCount=0,this._connection=null,Jo(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){let e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new H;let r=this.getSubject();e.add(this.source.subscribe(S(r,void 0,()=>{this._teardown(),r.complete()},n=>{this._teardown(),r.error(n)},()=>this._teardown()))),e.closed&&(this._connection=null,e=H.EMPTY)}return e}refCount(){return Kt()(this)}};var hc=Wt(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var z=(()=>{class t extends L{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(r){let n=new Hr(this,this);return n.operator=r,n}_throwIfClosed(){if(this.closed)throw new hc}next(r){Zt(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(r)}})}error(r){Zt(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=r;let{observers:n}=this;for(;n.length;)n.shift().error(r)}})}complete(){Zt(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:r}=this;for(;r.length;)r.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0}_trySubscribe(r){return this._throwIfClosed(),super._trySubscribe(r)}_subscribe(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)}_innerSubscribe(r){let{hasError:n,isStopped:i,observers:o}=this;return n||i?Go:(this.currentObservers=null,o.push(r),new H(()=>{this.currentObservers=null,Hn(o,r)}))}_checkFinalizedStatuses(r){let{hasError:n,thrownError:i,isStopped:o}=this;n?r.error(i):o&&r.complete()}asObservable(){let r=new L;return r.source=this,r}}return t.create=(e,r)=>new Hr(e,r),t})(),Hr=class extends z{constructor(e,r){super(),this.destination=e,this.source=r}next(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.next)===null||n===void 0||n.call(r,e)}error(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.error)===null||n===void 0||n.call(r,e)}complete(){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||r===void 0||r.call(e)}_subscribe(e){var r,n;return(n=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&n!==void 0?n:Go}};var J=class extends z{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let r=super._subscribe(e);return!r.closed&&e.next(this._value),r}getValue(){let{hasError:e,thrownError:r,_value:n}=this;if(e)throw r;return this._throwIfClosed(),n}next(e){super.next(this._value=e)}};var ce=new L(t=>t.complete());function pc(t){return t&&E(t.schedule)}function gc(t){return t[t.length-1]}function zr(t){return E(gc(t))?t.pop():void 0}function et(t){return pc(gc(t))?t.pop():void 0}function vc(t,e,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function a(l){try{c(n.next(l))}catch(d){s(d)}}function u(l){try{c(n.throw(l))}catch(d){s(d)}}function c(l){l.done?o(l.value):i(l.value).then(a,u)}c((n=n.apply(t,e||[])).next())})}function mc(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function wt(t){return this instanceof wt?(this.v=t,this):new wt(t)}function yc(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),i,o=[];return i={},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){n[f]&&(i[f]=function(C){return new Promise(function(R,k){o.push([f,C,R,k])>1||u(f,C)})},p&&(i[f]=p(i[f])))}function u(f,p){try{c(n[f](p))}catch(C){h(o[0][3],C)}}function c(f){f.value instanceof wt?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 Dc(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof mc=="function"?mc(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=t[o]&&function(s){return new Promise(function(a,u){s=t[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 Gr=t=>t&&typeof t.length=="number"&&typeof t!="function";function Wr(t){return E(t?.then)}function qr(t){return E(t[Qt])}function Zr(t){return Symbol.asyncIterator&&E(t?.[Symbol.asyncIterator])}function Yr(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Dp(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Qr=Dp();function Kr(t){return E(t?.[Qr])}function Jr(t){return yc(this,arguments,function*(){let r=t.getReader();try{for(;;){let{value:n,done:i}=yield wt(r.read());if(i)return yield wt(void 0);yield yield wt(n)}}finally{r.releaseLock()}})}function Xr(t){return E(t?.getReader)}function G(t){if(t instanceof L)return t;if(t!=null){if(qr(t))return Cp(t);if(Gr(t))return wp(t);if(Wr(t))return Ep(t);if(Zr(t))return Cc(t);if(Kr(t))return Ip(t);if(Xr(t))return bp(t)}throw Yr(t)}function Cp(t){return new L(e=>{let r=t[Qt]();if(E(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function wp(t){return new L(e=>{for(let r=0;r<t.length&&!e.closed;r++)e.next(t[r]);e.complete()})}function Ep(t){return new L(e=>{t.then(r=>{e.closed||(e.next(r),e.complete())},r=>e.error(r)).then(null,Br)})}function Ip(t){return new L(e=>{for(let r of t)if(e.next(r),e.closed)return;e.complete()})}function Cc(t){return new L(e=>{Mp(t,e).catch(r=>e.error(r))})}function bp(t){return Cc(Jr(t))}function Mp(t,e){var r,n,i,o;return vc(this,void 0,void 0,function*(){try{for(r=Dc(t);n=yield r.next(),!n.done;){let s=n.value;if(e.next(s),e.closed)return}}catch(s){i={error:s}}finally{try{n&&!n.done&&(o=r.return)&&(yield o.call(r))}finally{if(i)throw i.error}}e.complete()})}function se(t,e,r,n=0,i=!1){let o=e.schedule(function(){r(),i?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(o),!i)return o}function ei(t,e=0){return A((r,n)=>{r.subscribe(S(n,i=>se(n,t,()=>n.next(i),e),()=>se(n,t,()=>n.complete(),e),i=>se(n,t,()=>n.error(i),e)))})}function ti(t,e=0){return A((r,n)=>{n.add(t.schedule(()=>r.subscribe(n),e))})}function wc(t,e){return G(t).pipe(ti(e),ei(e))}function Ec(t,e){return G(t).pipe(ti(e),ei(e))}function Ic(t,e){return new L(r=>{let n=0;return e.schedule(function(){n===t.length?r.complete():(r.next(t[n++]),r.closed||this.schedule())})})}function bc(t,e){return new L(r=>{let n;return se(r,e,()=>{n=t[Qr](),se(r,e,()=>{let i,o;try{({value:i,done:o}=n.next())}catch(s){r.error(s);return}o?r.complete():r.next(i)},0,!0)}),()=>E(n?.return)&&n.return()})}function ni(t,e){if(!t)throw new Error("Iterable cannot be null");return new L(r=>{se(r,e,()=>{let n=t[Symbol.asyncIterator]();se(r,e,()=>{n.next().then(i=>{i.done?r.complete():r.next(i.value)})},0,!0)})})}function Mc(t,e){return ni(Jr(t),e)}function _c(t,e){if(t!=null){if(qr(t))return wc(t,e);if(Gr(t))return Ic(t,e);if(Wr(t))return Ec(t,e);if(Zr(t))return ni(t,e);if(Kr(t))return bc(t,e);if(Xr(t))return Mc(t,e)}throw Yr(t)}function B(t,e){return e?_c(t,e):G(t)}function I(...t){let e=et(t);return B(t,e)}function Xt(t,e){let r=E(t)?t:()=>t,n=i=>i.error(r());return new L(e?i=>e.schedule(n,0,i):n)}function es(t){return!!t&&(t instanceof L||E(t.lift)&&E(t.subscribe))}var Be=Wt(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function _(t,e){return A((r,n)=>{let i=0;r.subscribe(S(n,o=>{n.next(t.call(e,o,i++))}))})}var{isArray:_p}=Array;function Sp(t,e){return _p(e)?t(...e):t(e)}function ri(t){return _(e=>Sp(t,e))}var{isArray:Tp}=Array,{getPrototypeOf:xp,prototype:Ap,keys:Np}=Object;function ii(t){if(t.length===1){let e=t[0];if(Tp(e))return{args:e,keys:null};if(Rp(e)){let r=Np(e);return{args:r.map(n=>e[n]),keys:r}}}return{args:t,keys:null}}function Rp(t){return t&&typeof t=="object"&&xp(t)===Ap}function oi(t,e){return t.reduce((r,n,i)=>(r[n]=e[i],r),{})}function si(...t){let e=et(t),r=zr(t),{args:n,keys:i}=ii(t);if(n.length===0)return B([],e);let o=new L(Op(n,e,i?s=>oi(i,s):ue));return r?o.pipe(ri(r)):o}function Op(t,e,r=ue){return n=>{Sc(e,()=>{let{length:i}=t,o=new Array(i),s=i,a=i;for(let u=0;u<i;u++)Sc(e,()=>{let c=B(t[u],e),l=!1;c.subscribe(S(n,d=>{o[u]=d,l||(l=!0,a--),a||n.next(r(o.slice()))},()=>{--s||n.complete()}))},n)},n)}}function Sc(t,e,r){t?se(r,t,e):e()}function Tc(t,e,r,n,i,o,s,a){let u=[],c=0,l=0,d=!1,h=()=>{d&&!u.length&&!c&&e.complete()},f=C=>c<n?p(C):u.push(C),p=C=>{o&&e.next(C),c++;let R=!1;G(r(C,l++)).subscribe(S(e,k=>{i?.(k),o?f(k):e.next(k)},()=>{R=!0},void 0,()=>{if(R)try{for(c--;u.length&&c<n;){let k=u.shift();s?se(e,s,()=>p(k)):p(k)}h()}catch(k){e.error(k)}}))};return t.subscribe(S(e,f,()=>{d=!0,h()})),()=>{a?.()}}function q(t,e,r=1/0){return E(e)?q((n,i)=>_((o,s)=>e(n,o,i,s))(G(t(n,i))),r):(typeof e=="number"&&(r=e),A((n,i)=>Tc(n,i,t,r)))}function ts(t=1/0){return q(ue,t)}function xc(){return ts(1)}function en(...t){return xc()(B(t,et(t)))}function ai(t){return new L(e=>{G(t()).subscribe(e)})}function ns(...t){let e=zr(t),{args:r,keys:n}=ii(t),i=new L(o=>{let{length:s}=r;if(!s){o.complete();return}let a=new Array(s),u=s,c=s;for(let l=0;l<s;l++){let d=!1;G(r[l]).subscribe(S(o,h=>{d||(d=!0,c--),a[l]=h},()=>u--,void 0,()=>{(!u||!d)&&(c||o.next(n?oi(n,a):a),o.complete())}))}});return e?i.pipe(ri(e)):i}function be(t,e){return A((r,n)=>{let i=0;r.subscribe(S(n,o=>t.call(e,o,i++)&&n.next(o)))})}function tt(t){return A((e,r)=>{let n=null,i=!1,o;n=e.subscribe(S(r,void 0,void 0,s=>{o=G(t(s,tt(t)(e))),n?(n.unsubscribe(),n=null,o.subscribe(r)):i=!0})),i&&(n.unsubscribe(),n=null,o.subscribe(r))})}function Ac(t,e,r,n,i){return(o,s)=>{let a=r,u=e,c=0;o.subscribe(S(s,l=>{let d=c++;u=a?t(u,l,d):(a=!0,l),n&&s.next(u)},i&&(()=>{a&&s.next(u),s.complete()})))}}function tn(t,e){return E(e)?q(t,e,1):q(t,1)}function nt(t){return A((e,r)=>{let n=!1;e.subscribe(S(r,i=>{n=!0,r.next(i)},()=>{n||r.next(t),r.complete()}))})}function Ue(t){return t<=0?()=>ce:A((e,r)=>{let n=0;e.subscribe(S(r,i=>{++n<=t&&(r.next(i),t<=n&&r.complete())}))})}function rs(t){return _(()=>t)}function ui(t=Fp){return A((e,r)=>{let n=!1;e.subscribe(S(r,i=>{n=!0,r.next(i)},()=>n?r.complete():r.error(t())))})}function Fp(){return new Be}function Gn(t){return A((e,r)=>{try{e.subscribe(r)}finally{r.add(t)}})}function Re(t,e){let r=arguments.length>=2;return n=>n.pipe(t?be((i,o)=>t(i,o,n)):ue,Ue(1),r?nt(e):ui(()=>new Be))}function nn(t){return t<=0?()=>ce:A((e,r)=>{let n=[];e.subscribe(S(r,i=>{n.push(i),t<n.length&&n.shift()},()=>{for(let i of n)r.next(i);r.complete()},void 0,()=>{n=null}))})}function is(t,e){let r=arguments.length>=2;return n=>n.pipe(t?be((i,o)=>t(i,o,n)):ue,nn(1),r?nt(e):ui(()=>new Be))}function os(t,e){return A(Ac(t,e,arguments.length>=2,!0))}function ss(...t){let e=et(t);return A((r,n)=>{(e?en(t,r,e):en(t,r)).subscribe(n)})}function Me(t,e){return A((r,n)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&n.complete();r.subscribe(S(n,u=>{i?.unsubscribe();let c=0,l=o++;G(t(u,l)).subscribe(i=S(n,d=>n.next(e?e(u,d,l,c++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function as(t){return A((e,r)=>{G(t).subscribe(S(r,()=>r.complete(),zn)),!r.closed&&e.subscribe(r)})}function X(t,e,r){let n=E(t)||e||r?{next:t,error:e,complete:r}:t;return n?A((i,o)=>{var s;(s=n.subscribe)===null||s===void 0||s.call(n);let a=!0;i.subscribe(S(o,u=>{var c;(c=n.next)===null||c===void 0||c.call(n,u),o.next(u)},()=>{var u;a=!1,(u=n.complete)===null||u===void 0||u.call(n),o.complete()},u=>{var c;a=!1,(c=n.error)===null||c===void 0||c.call(n,u),o.error(u)},()=>{var u,c;a&&((u=n.unsubscribe)===null||u===void 0||u.call(n)),(c=n.finalize)===null||c===void 0||c.call(n)}))}):ue}var Pp="https://g.co/ng/security#xss",v=class extends Error{constructor(e,r){super(la(e,r)),this.code=e}};function la(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}function rr(t){return{toString:t}.toString()}var ci="__parameters__";function kp(t){return function(...r){if(t){let n=t(...r);for(let i in n)this[i]=n[i]}}}function ml(t,e,r){return rr(()=>{let n=kp(e);function i(...o){if(this instanceof i)return n.apply(this,o),this;let s=new i(...o);return a.annotation=s,a;function a(u,c,l){let d=u.hasOwnProperty(ci)?u[ci]:Object.defineProperty(u,ci,{value:[]})[ci];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),u}}return r&&(i.prototype=Object.create(r.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i})}var Es=globalThis;function j(t){for(let e in t)if(t[e]===j)return e;throw Error("Could not find renamed property on target object.")}function Lp(t,e){for(let r in e)e.hasOwnProperty(r)&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function ne(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(ne).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let e=t.toString();if(e==null)return""+e;let r=e.indexOf(`
`);return r===-1?e:e.substring(0,r)}function Nc(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var Vp=j({__forward_ref__:j});function Nt(t){return t.__forward_ref__=Nt,t.toString=function(){return ne(this())},t}function te(t){return vl(t)?t():t}function vl(t){return typeof t=="function"&&t.hasOwnProperty(Vp)&&t.__forward_ref__===Nt}function y(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Rt(t){return{providers:t.providers||[],imports:t.imports||[]}}function Vi(t){return Rc(t,Dl)||Rc(t,Cl)}function yl(t){return Vi(t)!==null}function Rc(t,e){return t.hasOwnProperty(e)?t[e]:null}function jp(t){let e=t&&(t[Dl]||t[Cl]);return e||null}function Oc(t){return t&&(t.hasOwnProperty(Fc)||t.hasOwnProperty($p))?t[Fc]:null}var Dl=j({\u0275prov:j}),Fc=j({\u0275inj:j}),Cl=j({ngInjectableDef:j}),$p=j({ngInjectorDef:j}),w=class{constructor(e,r){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof r=="number"?this.__NG_ELEMENT_ID__=r:r!==void 0&&(this.\u0275prov=y({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function wl(t){return t&&!!t.\u0275providers}var Bp=j({\u0275cmp:j}),Up=j({\u0275dir:j}),Hp=j({\u0275pipe:j}),zp=j({\u0275mod:j}),vi=j({\u0275fac:j}),Wn=j({__NG_ELEMENT_ID__:j}),Pc=j({__NG_ENV_ID__:j});function Is(t){return typeof t=="string"?t:t==null?"":String(t)}function Gp(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():Is(t)}function Wp(t,e){let r=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new v(-200,t)}function da(t,e){throw new v(-201,!1)}var M=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(M||{}),bs;function El(){return bs}function fe(t){let e=bs;return bs=t,e}function Il(t,e,r){let n=Vi(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(r&M.Optional)return null;if(e!==void 0)return e;da(t,"Injector")}var qp={},qn=qp,Ms="__NG_DI_FLAG__",yi="ngTempTokenPath",Zp="ngTokenPath",Yp=/\n/gm,Qp="\u0275",kc="__source",an;function Kp(){return an}function rt(t){let e=an;return an=t,e}function Jp(t,e=M.Default){if(an===void 0)throw new v(-203,!1);return an===null?Il(t,void 0,e):an.get(t,e&M.Optional?null:void 0,e)}function x(t,e=M.Default){return(El()||Jp)(te(t),e)}function m(t,e=M.Default){return x(t,ji(e))}function ji(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function _s(t){let e=[];for(let r=0;r<t.length;r++){let n=te(t[r]);if(Array.isArray(n)){if(n.length===0)throw new v(900,!1);let i,o=M.Default;for(let s=0;s<n.length;s++){let a=n[s],u=Xp(a);typeof u=="number"?u===-1?i=a.token:o|=u:i=a}e.push(x(i,o))}else e.push(x(n))}return e}function bl(t,e){return t[Ms]=e,t.prototype[Ms]=e,t}function Xp(t){return t[Ms]}function eg(t,e,r,n){let i=t[yi];throw e[kc]&&i.unshift(e[kc]),t.message=tg(`
`+t.message,i,r,n),t[Zp]=i,t[yi]=null,t}function tg(t,e,r,n=null){t=t&&t.charAt(0)===`
`&&t.charAt(1)==Qp?t.slice(2):t;let i=ne(e);if(Array.isArray(e))i=e.map(ne).join(" -> ");else if(typeof e=="object"){let o=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):ne(a)))}i=`{${o.join(", ")}}`}return`${r}${n?"("+n+")":""}[${i}]: ${t.replace(Yp,`
`)}`}var fa=bl(ml("Optional"),8);var Ml=bl(ml("SkipSelf"),4);function cn(t,e){let r=t.hasOwnProperty(vi);return r?t[vi]:null}function ha(t,e){t.forEach(r=>Array.isArray(r)?ha(r,e):e(r))}function _l(t,e,r){e>=t.length?t.push(r):t.splice(e,0,r)}function Di(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function ng(t,e,r,n){let i=t.length;if(i==e)t.push(r,n);else if(i===1)t.push(n,t[0]),t[0]=r;else{for(i--,t.push(t[i-1],t[i]);i>e;){let o=i-2;t[i]=t[o],i--}t[e]=r,t[e+1]=n}}function rg(t,e,r){let n=ir(t,e);return n>=0?t[n|1]=r:(n=~n,ng(t,n,e,r)),n}function us(t,e){let r=ir(t,e);if(r>=0)return t[r|1]}function ir(t,e){return ig(t,e,1)}function ig(t,e,r){let n=0,i=t.length>>r;for(;i!==n;){let o=n+(i-n>>1),s=t[o<<r];if(e===s)return o<<r;s>e?i=o:n=o+1}return~(i<<r)}var ln={},he=[],dn=new w(""),Sl=new w("",-1),Tl=new w(""),Ci=class{get(e,r=qn){if(r===qn){let n=new Error(`NullInjectorError: No provider for ${ne(e)}!`);throw n.name="NullInjectorError",n}return r}},xl=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(xl||{}),Pe=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(Pe||{}),fn=function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t}(fn||{});function og(t,e,r){let n=t.length;for(;;){let i=t.indexOf(e,r);if(i===-1)return i;if(i===0||t.charCodeAt(i-1)<=32){let o=e.length;if(i+o===n||t.charCodeAt(i+o)<=32)return i}r=i+1}}function Ss(t,e,r){let n=0;for(;n<r.length;){let i=r[n];if(typeof i=="number"){if(i!==0)break;n++;let o=r[n++],s=r[n++],a=r[n++];t.setAttribute(e,s,a,o)}else{let o=i,s=r[++n];ag(o)?t.setProperty(e,o,s):t.setAttribute(e,o,s),n++}}return n}function sg(t){return t===3||t===4||t===6}function ag(t){return t.charCodeAt(0)===64}function Zn(t,e){if(!(e===null||e.length===0))if(t===null||t.length===0)t=e.slice();else{let r=-1;for(let n=0;n<e.length;n++){let i=e[n];typeof i=="number"?r=i:r===0||(r===-1||r===2?Lc(t,r,i,null,e[++n]):Lc(t,r,i,null,null))}}return t}function Lc(t,e,r,n,i){let o=0,s=t.length;if(e===-1)s=-1;else for(;o<t.length;){let a=t[o++];if(typeof a=="number"){if(a===e){s=-1;break}else if(a>e){s=o-1;break}}}for(;o<t.length;){let a=t[o];if(typeof a=="number")break;if(a===r){if(n===null){i!==null&&(t[o+1]=i);return}else if(n===t[o+1]){t[o+2]=i;return}}o++,n!==null&&o++,i!==null&&o++}s!==-1&&(t.splice(s,0,e),o=s+1),t.splice(o++,0,r),n!==null&&t.splice(o++,0,n),i!==null&&t.splice(o++,0,i)}var Al="ng-template";function ug(t,e,r,n){let i=0;if(n){for(;i<e.length&&typeof e[i]=="string";i+=2)if(e[i]==="class"&&og(e[i+1].toLowerCase(),r,0)!==-1)return!0}else if(pa(t))return!1;if(i=e.indexOf(1,i),i>-1){let o;for(;++i<e.length&&typeof(o=e[i])=="string";)if(o.toLowerCase()===r)return!0}return!1}function pa(t){return t.type===4&&t.value!==Al}function cg(t,e,r){let n=t.type===4&&!r?Al:t.value;return e===n}function lg(t,e,r){let n=4,i=t.attrs,o=i!==null?hg(i):0,s=!1;for(let a=0;a<e.length;a++){let u=e[a];if(typeof u=="number"){if(!s&&!_e(n)&&!_e(u))return!1;if(s&&_e(u))continue;s=!1,n=u|n&1;continue}if(!s)if(n&4){if(n=2|n&1,u!==""&&!cg(t,u,r)||u===""&&e.length===1){if(_e(n))return!1;s=!0}}else if(n&8){if(i===null||!ug(t,i,u,r)){if(_e(n))return!1;s=!0}}else{let c=e[++a],l=dg(u,i,pa(t),r);if(l===-1){if(_e(n))return!1;s=!0;continue}if(c!==""){let d;if(l>o?d="":d=i[l+1].toLowerCase(),n&2&&c!==d){if(_e(n))return!1;s=!0}}}}return _e(n)||s}function _e(t){return(t&1)===0}function dg(t,e,r,n){if(e===null)return-1;let i=0;if(n||!r){let o=!1;for(;i<e.length;){let s=e[i];if(s===t)return i;if(s===3||s===6)o=!0;else if(s===1||s===2){let a=e[++i];for(;typeof a=="string";)a=e[++i];continue}else{if(s===4)break;if(s===0){i+=4;continue}}i+=o?1:2}return-1}else return pg(e,t)}function fg(t,e,r=!1){for(let n=0;n<e.length;n++)if(lg(t,e[n],r))return!0;return!1}function hg(t){for(let e=0;e<t.length;e++){let r=t[e];if(sg(r))return e}return t.length}function pg(t,e){let r=t.indexOf(4);if(r>-1)for(r++;r<t.length;){let n=t[r];if(typeof n=="number")return-1;if(n===e)return r;r++}return-1}function Vc(t,e){return t?":not("+e.trim()+")":e}function gg(t){let e=t[0],r=1,n=2,i="",o=!1;for(;r<t.length;){let s=t[r];if(typeof s=="string")if(n&2){let a=t[++r];i+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else n&8?i+="."+s:n&4&&(i+=" "+s);else i!==""&&!_e(s)&&(e+=Vc(o,i),i=""),n=s,o=o||!_e(n);r++}return i!==""&&(e+=Vc(o,i)),e}function mg(t){return t.map(gg).join(",")}function vg(t){let e=[],r=[],n=1,i=2;for(;n<t.length;){let o=t[n];if(typeof o=="string")i===2?o!==""&&e.push(o,t[++n]):i===8&&r.push(o);else{if(!_e(i))break;i=o}n++}return{attrs:e,classes:r}}function lt(t){return rr(()=>{let e=Pl(t),r=O(g({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===xl.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Pe.Emulated,styles:t.styles||he,_:null,schemas:t.schemas||null,tView:null,id:""});kl(r);let n=t.dependencies;return r.directiveDefs=$c(n,!1),r.pipeDefs=$c(n,!0),r.id=Cg(r),r})}function yg(t){return bt(t)||Nl(t)}function Dg(t){return t!==null}function Ot(t){return rr(()=>({type:t.type,bootstrap:t.bootstrap||he,declarations:t.declarations||he,imports:t.imports||he,exports:t.exports||he,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function jc(t,e){if(t==null)return ln;let r={};for(let n in t)if(t.hasOwnProperty(n)){let i=t[n],o,s,a=fn.None;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o):(o=i,s=i),e?(r[o]=a!==fn.None?[n,a]:n,e[o]=s):r[o]=n}return r}function ie(t){return rr(()=>{let e=Pl(t);return kl(e),e})}function bt(t){return t[Bp]||null}function Nl(t){return t[Up]||null}function Rl(t){return t[Hp]||null}function Ol(t){let e=bt(t)||Nl(t)||Rl(t);return e!==null?e.standalone:!1}function Fl(t,e){let r=t[zp]||null;if(!r&&e===!0)throw new Error(`Type ${ne(t)} does not have '\u0275mod' property.`);return r}function Pl(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||ln,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||he,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:jc(t.inputs,e),outputs:jc(t.outputs),debugInfo:null}}function kl(t){t.features?.forEach(e=>e(t))}function $c(t,e){if(!t)return null;let r=e?Rl:yg;return()=>(typeof t=="function"?t():t).map(n=>r(n)).filter(Dg)}function Cg(t){let e=0,r=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let i of r)e=Math.imul(31,e)+i.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function ga(t){return{\u0275providers:t}}function ma(...t){return{\u0275providers:Ll(!0,t),\u0275fromNgModule:!0}}function Ll(t,...e){let r=[],n=new Set,i,o=s=>{r.push(s)};return ha(e,s=>{let a=s;Ts(a,o,[],n)&&(i||=[],i.push(a))}),i!==void 0&&Vl(i,o),r}function Vl(t,e){for(let r=0;r<t.length;r++){let{ngModule:n,providers:i}=t[r];va(i,o=>{e(o,n)})}}function Ts(t,e,r,n){if(t=te(t),!t)return!1;let i=null,o=Oc(t),s=!o&&bt(t);if(!o&&!s){let u=t.ngModule;if(o=Oc(u),o)i=u;else return!1}else{if(s&&!s.standalone)return!1;i=t}let a=n.has(i);if(s){if(a)return!1;if(n.add(i),s.dependencies){let u=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of u)Ts(c,e,r,n)}}else if(o){if(o.imports!=null&&!a){n.add(i);let c;try{ha(o.imports,l=>{Ts(l,e,r,n)&&(c||=[],c.push(l))})}finally{}c!==void 0&&Vl(c,e)}if(!a){let c=cn(i)||(()=>new i);e({provide:i,useFactory:c,deps:he},i),e({provide:Tl,useValue:i,multi:!0},i),e({provide:dn,useValue:()=>x(i),multi:!0},i)}let u=o.providers;if(u!=null&&!a){let c=t;va(u,l=>{e(l,c)})}}else return!1;return i!==t&&t.providers!==void 0}function va(t,e){for(let r of t)wl(r)&&(r=r.\u0275providers),Array.isArray(r)?va(r,e):e(r)}var wg=j({provide:String,useValue:j});function jl(t){return t!==null&&typeof t=="object"&&wg in t}function Eg(t){return!!(t&&t.useExisting)}function Ig(t){return!!(t&&t.useFactory)}function hn(t){return typeof t=="function"}function bg(t){return!!t.useClass}var $i=new w(""),fi={},Mg={},cs;function ya(){return cs===void 0&&(cs=new Ci),cs}var me=class{},Yn=class extends me{get destroyed(){return this._destroyed}constructor(e,r,n,i){super(),this.parent=r,this.source=n,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,As(e,s=>this.processProvider(s)),this.records.set(Sl,rn(void 0,this)),i.has("environment")&&this.records.set(me,rn(void 0,this));let o=this.records.get($i);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Tl,he,M.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=F(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let r=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of r)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),F(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let r=rt(this),n=fe(void 0),i;try{return e()}finally{rt(r),fe(n)}}get(e,r=qn,n=M.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(Pc))return e[Pc](this);n=ji(n);let i,o=rt(this),s=fe(void 0);try{if(!(n&M.SkipSelf)){let u=this.records.get(e);if(u===void 0){let c=Ag(e)&&Vi(e);c&&this.injectableDefInScope(c)?u=rn(xs(e),fi):u=null,this.records.set(e,u)}if(u!=null)return this.hydrate(e,u)}let a=n&M.Self?ya():this.parent;return r=n&M.Optional&&r===qn?null:r,a.get(e,r)}catch(a){if(a.name==="NullInjectorError"){if((a[yi]=a[yi]||[]).unshift(ne(e)),o)throw a;return eg(a,e,"R3InjectorError",this.source)}else throw a}finally{fe(s),rt(o)}}resolveInjectorInitializers(){let e=F(null),r=rt(this),n=fe(void 0),i;try{let o=this.get(dn,he,M.Self);for(let s of o)s()}finally{rt(r),fe(n),F(e)}}toString(){let e=[],r=this.records;for(let n of r.keys())e.push(ne(n));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new v(205,!1)}processProvider(e){e=te(e);let r=hn(e)?e:te(e&&e.provide),n=Sg(e);if(!hn(e)&&e.multi===!0){let i=this.records.get(r);i||(i=rn(void 0,fi,!0),i.factory=()=>_s(i.multi),this.records.set(r,i)),r=e,i.multi.push(e)}this.records.set(r,n)}hydrate(e,r){let n=F(null);try{return r.value===fi&&(r.value=Mg,r.value=r.factory()),typeof r.value=="object"&&r.value&&xg(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{F(n)}}injectableDefInScope(e){if(!e.providedIn)return!1;let r=te(e.providedIn);return typeof r=="string"?r==="any"||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(e){let r=this._onDestroyHooks.indexOf(e);r!==-1&&this._onDestroyHooks.splice(r,1)}};function xs(t){let e=Vi(t),r=e!==null?e.factory:cn(t);if(r!==null)return r;if(t instanceof w)throw new v(204,!1);if(t instanceof Function)return _g(t);throw new v(204,!1)}function _g(t){if(t.length>0)throw new v(204,!1);let r=jp(t);return r!==null?()=>r.factory(t):()=>new t}function Sg(t){if(jl(t))return rn(void 0,t.useValue);{let e=$l(t);return rn(e,fi)}}function $l(t,e,r){let n;if(hn(t)){let i=te(t);return cn(i)||xs(i)}else if(jl(t))n=()=>te(t.useValue);else if(Ig(t))n=()=>t.useFactory(..._s(t.deps||[]));else if(Eg(t))n=()=>x(te(t.useExisting));else{let i=te(t&&(t.useClass||t.provide));if(Tg(t))n=()=>new i(..._s(t.deps));else return cn(i)||xs(i)}return n}function rn(t,e,r=!1){return{factory:t,value:e,multi:r?[]:void 0}}function Tg(t){return!!t.deps}function xg(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function Ag(t){return typeof t=="function"||typeof t=="object"&&t instanceof w}function As(t,e){for(let r of t)Array.isArray(r)?As(r,e):r&&wl(r)?As(r.\u0275providers,e):e(r)}function Ze(t,e){t instanceof Yn&&t.assertNotDestroyed();let r,n=rt(t),i=fe(void 0);try{return e()}finally{rt(n),fe(i)}}function Ng(){return El()!==void 0||Kp()!=null}function Rg(t){return typeof t=="function"}var Ye=0,T=1,D=2,re=3,Se=4,Te=5,wi=6,Ei=7,He=8,pn=9,ze=10,Y=11,Qn=12,Bc=13,or=14,ke=15,gn=16,on=17,mn=18,Bi=19,Bl=20,it=21,ls=22,pe=23,Ge=25,Ul=1;var Mt=7,Ii=8,bi=9,ge=10,Mi=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(Mi||{});function ot(t){return Array.isArray(t)&&typeof t[Ul]=="object"}function Qe(t){return Array.isArray(t)&&t[Ul]===!0}function Da(t){return(t.flags&4)!==0}function Ui(t){return t.componentOffset>-1}function Hi(t){return(t.flags&1)===1}function st(t){return!!t.template}function Ns(t){return(t[D]&512)!==0}var Rs=class{constructor(e,r,n){this.previousValue=e,this.currentValue=r,this.firstChange=n}isFirstChange(){return this.firstChange}};function Hl(t,e,r,n){e!==null?e.applyValueToInputSignal(e,n):t[r]=n}function En(){return zl}function zl(t){return t.type.prototype.ngOnChanges&&(t.setInput=Fg),Og}En.ngInherit=!0;function Og(){let t=Wl(this),e=t?.current;if(e){let r=t.previous;if(r===ln)t.previous=e;else for(let n in e)r[n]=e[n];t.current=null,this.ngOnChanges(e)}}function Fg(t,e,r,n,i){let o=this.declaredInputs[n],s=Wl(t)||Pg(t,{previous:ln,current:null}),a=s.current||(s.current={}),u=s.previous,c=u[o];a[o]=new Rs(c&&c.currentValue,r,u===ln),Hl(t,e,i,r)}var Gl="__ngSimpleChanges__";function Wl(t){return t[Gl]||null}function Pg(t,e){return t[Gl]=e}var Uc=null;var Oe=function(t,e,r){Uc?.(t,e,r)},kg="svg",Lg="math";function Le(t){for(;Array.isArray(t);)t=t[Ye];return t}function ql(t,e){return Le(e[t])}function xe(t,e){return Le(e[t.index])}function Zl(t,e){return t.data[e]}function dt(t,e){let r=e[t];return ot(r)?r:r[Ye]}function Ca(t){return(t[D]&128)===128}function Vg(t){return Qe(t[re])}function vn(t,e){return e==null?null:t[e]}function Yl(t){t[on]=0}function Ql(t){t[D]&1024||(t[D]|=1024,Ca(t)&&zi(t))}function Kn(t){return!!(t[D]&9216||t[pe]?.dirty)}function Os(t){t[ze].changeDetectionScheduler?.notify(7),t[D]&64&&(t[D]|=1024),Kn(t)&&zi(t)}function zi(t){t[ze].changeDetectionScheduler?.notify(0);let e=_t(t);for(;e!==null&&!(e[D]&8192||(e[D]|=8192,!Ca(e)));)e=_t(e)}function Kl(t,e){if((t[D]&256)===256)throw new v(911,!1);t[it]===null&&(t[it]=[]),t[it].push(e)}function jg(t,e){if(t[it]===null)return;let r=t[it].indexOf(e);r!==-1&&t[it].splice(r,1)}function _t(t){let e=t[re];return Qe(e)?e[re]:e}var N={lFrame:ud(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Jl=!1;function $g(){return N.lFrame.elementDepthCount}function Bg(){N.lFrame.elementDepthCount++}function Ug(){N.lFrame.elementDepthCount--}function Xl(){return N.bindingsEnabled}function Hg(){return N.skipHydrationRootTNode!==null}function zg(t){return N.skipHydrationRootTNode===t}function Gg(){N.skipHydrationRootTNode=null}function $(){return N.lFrame.lView}function ae(){return N.lFrame.tView}function oe(){let t=ed();for(;t!==null&&t.type===64;)t=t.parent;return t}function ed(){return N.lFrame.currentTNode}function Wg(){let t=N.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function Ft(t,e){let r=N.lFrame;r.currentTNode=t,r.isParent=e}function wa(){return N.lFrame.isParent}function td(){N.lFrame.isParent=!1}function nd(){return Jl}function Hc(t){Jl=t}function qg(){return N.lFrame.bindingIndex}function Zg(t){return N.lFrame.bindingIndex=t}function rd(){return N.lFrame.bindingIndex++}function id(t){let e=N.lFrame,r=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,r}function Yg(){return N.lFrame.inI18n}function Qg(t,e){let r=N.lFrame;r.bindingIndex=r.bindingRootIndex=t,Fs(e)}function Kg(){return N.lFrame.currentDirectiveIndex}function Fs(t){N.lFrame.currentDirectiveIndex=t}function Jg(t){let e=N.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function od(t){N.lFrame.currentQueryIndex=t}function Xg(t){let e=t[T];return e.type===2?e.declTNode:e.type===1?t[Te]:null}function sd(t,e,r){if(r&M.SkipSelf){let i=e,o=t;for(;i=i.parent,i===null&&!(r&M.Host);)if(i=Xg(o),i===null||(o=o[or],i.type&10))break;if(i===null)return!1;e=i,t=o}let n=N.lFrame=ad();return n.currentTNode=e,n.lView=t,!0}function Ea(t){let e=ad(),r=t[T];N.lFrame=e,e.currentTNode=r.firstChild,e.lView=t,e.tView=r,e.contextLView=t,e.bindingIndex=r.bindingStartIndex,e.inI18n=!1}function ad(){let t=N.lFrame,e=t===null?null:t.child;return e===null?ud(t):e}function ud(t){let e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function cd(){let t=N.lFrame;return N.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var ld=cd;function Ia(){let t=cd();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function In(){return N.lFrame.selectedIndex}function St(t){N.lFrame.selectedIndex=t}function dd(){let t=N.lFrame;return Zl(t.tView,t.selectedIndex)}function em(){return N.lFrame.currentNamespace}var fd=!0;function Gi(){return fd}function Wi(t){fd=t}function tm(t,e,r){let{ngOnChanges:n,ngOnInit:i,ngDoCheck:o}=e.type.prototype;if(n){let s=zl(e);(r.preOrderHooks??=[]).push(t,s),(r.preOrderCheckHooks??=[]).push(t,s)}i&&(r.preOrderHooks??=[]).push(0-t,i),o&&((r.preOrderHooks??=[]).push(t,o),(r.preOrderCheckHooks??=[]).push(t,o))}function qi(t,e){for(let r=e.directiveStart,n=e.directiveEnd;r<n;r++){let o=t.data[r].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:u,ngAfterViewChecked:c,ngOnDestroy:l}=o;s&&(t.contentHooks??=[]).push(-r,s),a&&((t.contentHooks??=[]).push(r,a),(t.contentCheckHooks??=[]).push(r,a)),u&&(t.viewHooks??=[]).push(-r,u),c&&((t.viewHooks??=[]).push(r,c),(t.viewCheckHooks??=[]).push(r,c)),l!=null&&(t.destroyHooks??=[]).push(r,l)}}function hi(t,e,r){hd(t,e,3,r)}function pi(t,e,r,n){(t[D]&3)===r&&hd(t,e,r,n)}function ds(t,e){let r=t[D];(r&3)===e&&(r&=16383,r+=1,t[D]=r)}function hd(t,e,r,n){let i=n!==void 0?t[on]&65535:0,o=n??-1,s=e.length-1,a=0;for(let u=i;u<s;u++)if(typeof e[u+1]=="number"){if(a=e[u],n!=null&&a>=n)break}else e[u]<0&&(t[on]+=65536),(a<o||o==-1)&&(nm(t,r,e,u),t[on]=(t[on]&4294901760)+u+2),u++}function zc(t,e){Oe(4,t,e);let r=F(null);try{e.call(t)}finally{F(r),Oe(5,t,e)}}function nm(t,e,r,n){let i=r[n]<0,o=r[n+1],s=i?-r[n]:r[n],a=t[s];i?t[D]>>14<t[on]>>16&&(t[D]&3)===e&&(t[D]+=16384,zc(a,o)):zc(a,o)}var un=-1,Tt=class{constructor(e,r,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=n}};function rm(t){return t instanceof Tt}function im(t){return(t.flags&8)!==0}function om(t){return(t.flags&16)!==0}var fs={},Ps=class{constructor(e,r){this.injector=e,this.parentInjector=r}get(e,r,n){n=ji(n);let i=this.injector.get(e,fs,n);return i!==fs||r===fs?i:this.parentInjector.get(e,r,n)}};function pd(t){return t!==un}function _i(t){return t&32767}function sm(t){return t>>16}function Si(t,e){let r=sm(t),n=e;for(;r>0;)n=n[or],r--;return n}var ks=!0;function Gc(t){let e=ks;return ks=t,e}var am=256,gd=am-1,md=5,um=0,Fe={};function cm(t,e,r){let n;typeof r=="string"?n=r.charCodeAt(0)||0:r.hasOwnProperty(Wn)&&(n=r[Wn]),n==null&&(n=r[Wn]=um++);let i=n&gd,o=1<<i;e.data[t+(i>>md)]|=o}function Ti(t,e){let r=vd(t,e);if(r!==-1)return r;let n=e[T];n.firstCreatePass&&(t.injectorIndex=e.length,hs(n.data,t),hs(e,null),hs(n.blueprint,null));let i=ba(t,e),o=t.injectorIndex;if(pd(i)){let s=_i(i),a=Si(i,e),u=a[T].data;for(let c=0;c<8;c++)e[o+c]=a[s+c]|u[s+c]}return e[o+8]=i,o}function hs(t,e){t.push(0,0,0,0,0,0,0,0,e)}function vd(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function ba(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let r=0,n=null,i=e;for(;i!==null;){if(n=Ed(i),n===null)return un;if(r++,i=i[or],n.injectorIndex!==-1)return n.injectorIndex|r<<16}return un}function Ls(t,e,r){cm(t,e,r)}function yd(t,e,r){if(r&M.Optional||t!==void 0)return t;da(e,"NodeInjector")}function Dd(t,e,r,n){if(r&M.Optional&&n===void 0&&(n=null),!(r&(M.Self|M.Host))){let i=t[pn],o=fe(void 0);try{return i?i.get(e,n,r&M.Optional):Il(e,n,r&M.Optional)}finally{fe(o)}}return yd(n,e,r)}function Cd(t,e,r,n=M.Default,i){if(t!==null){if(e[D]&2048&&!(n&M.Self)){let s=pm(t,e,r,n,Fe);if(s!==Fe)return s}let o=wd(t,e,r,n,Fe);if(o!==Fe)return o}return Dd(e,r,n,i)}function wd(t,e,r,n,i){let o=fm(r);if(typeof o=="function"){if(!sd(e,t,n))return n&M.Host?yd(i,r,n):Dd(e,r,n,i);try{let s;if(s=o(n),s==null&&!(n&M.Optional))da(r);else return s}finally{ld()}}else if(typeof o=="number"){let s=null,a=vd(t,e),u=un,c=n&M.Host?e[ke][Te]:null;for((a===-1||n&M.SkipSelf)&&(u=a===-1?ba(t,e):e[a+8],u===un||!qc(n,!1)?a=-1:(s=e[T],a=_i(u),e=Si(u,e)));a!==-1;){let l=e[T];if(Wc(o,a,l.data)){let d=lm(a,e,r,s,n,c);if(d!==Fe)return d}u=e[a+8],u!==un&&qc(n,e[T].data[a+8]===c)&&Wc(o,a,e)?(s=l,a=_i(u),e=Si(u,e)):a=-1}}return i}function lm(t,e,r,n,i,o){let s=e[T],a=s.data[t+8],u=n==null?Ui(a)&&ks:n!=s&&(a.type&3)!==0,c=i&M.Host&&o===a,l=dm(a,s,r,u,c);return l!==null?yn(e,s,l,a):Fe}function dm(t,e,r,n,i){let o=t.providerIndexes,s=e.data,a=o&1048575,u=t.directiveStart,c=t.directiveEnd,l=o>>20,d=n?a:a+l,h=i?a+l:c;for(let f=d;f<h;f++){let p=s[f];if(f<u&&r===p||f>=u&&p.type===r)return f}if(i){let f=s[u];if(f&&st(f)&&f.type===r)return u}return null}function yn(t,e,r,n){let i=t[r],o=e.data;if(rm(i)){let s=i;s.resolving&&Wp(Gp(o[r]));let a=Gc(s.canSeeViewProviders);s.resolving=!0;let u,c=s.injectImpl?fe(s.injectImpl):null,l=sd(t,n,M.Default);try{i=t[r]=s.factory(void 0,o,t,n),e.firstCreatePass&&r>=n.directiveStart&&tm(r,o[r],e)}finally{c!==null&&fe(c),Gc(a),s.resolving=!1,ld()}}return i}function fm(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(Wn)?t[Wn]:void 0;return typeof e=="number"?e>=0?e&gd:hm:e}function Wc(t,e,r){let n=1<<t;return!!(r[e+(t>>md)]&n)}function qc(t,e){return!(t&M.Self)&&!(t&M.Host&&e)}var It=class{constructor(e,r){this._tNode=e,this._lView=r}get(e,r,n){return Cd(this._tNode,this._lView,e,ji(n),r)}};function hm(){return new It(oe(),$())}function Pt(t){return rr(()=>{let e=t.prototype.constructor,r=e[vi]||Vs(e),n=Object.prototype,i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==n;){let o=i[vi]||Vs(i);if(o&&o!==r)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function Vs(t){return vl(t)?()=>{let e=Vs(te(t));return e&&e()}:cn(t)}function pm(t,e,r,n,i){let o=t,s=e;for(;o!==null&&s!==null&&s[D]&2048&&!(s[D]&512);){let a=wd(o,s,r,n|M.Self,Fe);if(a!==Fe)return a;let u=o.parent;if(!u){let c=s[Bl];if(c){let l=c.get(r,Fe,n);if(l!==Fe)return l}u=Ed(s),s=s[or]}o=u}return i}function Ed(t){let e=t[T],r=e.type;return r===2?e.declTNode:r===1?t[Te]:null}function Zc(t,e=null,r=null,n){let i=Id(t,e,r,n);return i.resolveInjectorInitializers(),i}function Id(t,e=null,r=null,n,i=new Set){let o=[r||he,ma(t)];return n=n||(typeof t=="object"?void 0:ne(t)),new Yn(o,e||ya(),n||null,i)}var Et=class Et{static create(e,r){if(Array.isArray(e))return Zc({name:""},r,e,"");{let n=e.name??"";return Zc({name:n},e.parent,e.providers,n)}}};Et.THROW_IF_NOT_FOUND=qn,Et.NULL=new Ci,Et.\u0275prov=y({token:Et,providedIn:"any",factory:()=>x(Sl)}),Et.__NG_ELEMENT_ID__=-1;var at=Et;var gm=new w("");gm.__NG_ELEMENT_ID__=t=>{let e=oe();if(e===null)throw new v(204,!1);if(e.type&2)return e.value;if(t&M.Optional)return null;throw new v(204,!1)};var mm="ngOriginalError";function ps(t){return t[mm]}var We=class{constructor(){this._console=console}handleError(e){let r=this._findOriginalError(e);this._console.error("ERROR",e),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(e){let r=e&&ps(e);for(;r&&ps(r);)r=ps(r);return r||null}},bd=new w("",{providedIn:"root",factory:()=>m(We).handleError.bind(void 0)}),Md=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=vm,e.__NG_ENV_ID__=n=>n;let t=e;return t})(),js=class extends Md{constructor(e){super(),this._lView=e}onDestroy(e){return Kl(this._lView,e),()=>jg(this._lView,e)}};function vm(){return new js($())}function ym(){return Zi(oe(),$())}function Zi(t,e){return new Ke(xe(t,e))}var Ke=(()=>{let e=class e{constructor(n){this.nativeElement=n}};e.__NG_ELEMENT_ID__=ym;let t=e;return t})();var bn=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new J(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let 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)}};e.\u0275prov=y({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();var $s=class extends z{constructor(e=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=e,Ng()&&(this.destroyRef=m(Md,{optional:!0})??void 0,this.pendingTasks=m(bn,{optional:!0})??void 0)}emit(e){let r=F(null);try{super.next(e)}finally{F(r)}}subscribe(e,r,n){let i=e,o=r||(()=>null),s=n;if(e&&typeof e=="object"){let u=e;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 e instanceof H&&e.add(a),a}wrapInTimeout(e){return r=>{let n=this.pendingTasks?.add();setTimeout(()=>{e(r),n!==void 0&&this.pendingTasks?.remove(n)})}}},U=$s;function _d(t){return(t.flags&128)===128}var Sd=new Map,Dm=0;function Cm(){return Dm++}function wm(t){Sd.set(t[Bi],t)}function Em(t){Sd.delete(t[Bi])}var Yc="__ngContext__";function ut(t,e){ot(e)?(t[Yc]=e[Bi],wm(e)):t[Yc]=e}function Td(t){return Ad(t[Qn])}function xd(t){return Ad(t[Se])}function Ad(t){for(;t!==null&&!Qe(t);)t=t[Se];return t}var Bs;function Nd(t){Bs=t}function Im(){if(Bs!==void 0)return Bs;if(typeof document<"u")return document;throw new v(210,!1)}var Ma=new w("",{providedIn:"root",factory:()=>bm}),bm="ng",_a=new w(""),Mn=new w("",{providedIn:"platform",factory:()=>"unknown"});var Sa=new w("",{providedIn:"root",factory:()=>Im().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Mm="h",_m="b";var Sm=()=>null;function Ta(t,e,r=!1){return Sm(t,e,r)}var Rd=!1,Tm=new w("",{providedIn:"root",factory:()=>Rd});var Us=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Pp})`}};function xa(t){return t instanceof Us?t.changingThisBreaksApplicationSecurity:t}var xm=/^>|^->|<!--|-->|--!>|<!-$/g,Am=/(<|>)/g,Nm="\u200B$1\u200B";function Rm(t){return t.replace(xm,e=>e.replace(Am,Nm))}function Od(t){return t instanceof Function?t():t}var qe=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(qe||{}),Om;function Aa(t,e){return Om(t,e)}function sn(t,e,r,n,i){if(n!=null){let o,s=!1;Qe(n)?o=n:ot(n)&&(s=!0,n=n[Ye]);let a=Le(n);t===0&&r!==null?i==null?Vd(e,r,a):xi(e,r,a,i||null,!0):t===1&&r!==null?xi(e,r,a,i||null,!0):t===2?Qm(e,a,s):t===3&&e.destroyNode(a),o!=null&&Jm(e,t,o,r,i)}}function Fm(t,e){return t.createText(e)}function Pm(t,e,r){t.setValue(e,r)}function km(t,e){return t.createComment(Rm(e))}function Fd(t,e,r){return t.createElement(e,r)}function Lm(t,e){Pd(t,e),e[Ye]=null,e[Te]=null}function Vm(t,e,r,n,i,o){n[Ye]=i,n[Te]=e,Qi(t,n,r,1,i,o)}function Pd(t,e){e[ze].changeDetectionScheduler?.notify(8),Qi(t,e,e[Y],2,null,null)}function jm(t){let e=t[Qn];if(!e)return gs(t[T],t);for(;e;){let r=null;if(ot(e))r=e[Qn];else{let n=e[ge];n&&(r=n)}if(!r){for(;e&&!e[Se]&&e!==t;)ot(e)&&gs(e[T],e),e=e[re];e===null&&(e=t),ot(e)&&gs(e[T],e),r=e&&e[Se]}e=r}}function $m(t,e,r,n){let i=ge+n,o=r.length;n>0&&(r[i-1][Se]=e),n<o-ge?(e[Se]=r[i],_l(r,ge+n,e)):(r.push(e),e[Se]=null),e[re]=r;let s=e[gn];s!==null&&r!==s&&kd(s,e);let a=e[mn];a!==null&&a.insertView(t),Os(e),e[D]|=128}function kd(t,e){let r=t[bi],n=e[re];if(ot(n))t[D]|=Mi.HasTransplantedViews;else{let i=n[re][ke];e[ke]!==i&&(t[D]|=Mi.HasTransplantedViews)}r===null?t[bi]=[e]:r.push(e)}function Na(t,e){let r=t[bi],n=r.indexOf(e);r.splice(n,1)}function Hs(t,e){if(t.length<=ge)return;let r=ge+e,n=t[r];if(n){let i=n[gn];i!==null&&i!==t&&Na(i,n),e>0&&(t[r-1][Se]=n[Se]);let o=Di(t,ge+e);Lm(n[T],n);let s=o[mn];s!==null&&s.detachView(o[T]),n[re]=null,n[Se]=null,n[D]&=-129}return n}function Ld(t,e){if(!(e[D]&256)){let r=e[Y];r.destroyNode&&Qi(t,e,r,3,null,null),jm(e)}}function gs(t,e){if(e[D]&256)return;let r=F(null);try{e[D]&=-129,e[D]|=256,e[pe]&&Bo(e[pe]),Um(t,e),Bm(t,e),e[T].type===1&&e[Y].destroy();let n=e[gn];if(n!==null&&Qe(e[re])){n!==e[re]&&Na(n,e);let i=e[mn];i!==null&&i.detachView(t)}Em(e)}finally{F(r)}}function Bm(t,e){let r=t.cleanup,n=e[Ei];if(r!==null)for(let o=0;o<r.length-1;o+=2)if(typeof r[o]=="string"){let s=r[o+3];s>=0?n[s]():n[-s].unsubscribe(),o+=2}else{let s=n[r[o+1]];r[o].call(s)}n!==null&&(e[Ei]=null);let i=e[it];if(i!==null){e[it]=null;for(let o=0;o<i.length;o++){let s=i[o];s()}}}function Um(t,e){let r;if(t!=null&&(r=t.destroyHooks)!=null)for(let n=0;n<r.length;n+=2){let i=e[r[n]];if(!(i instanceof Tt)){let o=r[n+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){let a=i[o[s]],u=o[s+1];Oe(4,a,u);try{u.call(a)}finally{Oe(5,a,u)}}else{Oe(4,i,o);try{o.call(i)}finally{Oe(5,i,o)}}}}}function Hm(t,e,r){return zm(t,e.parent,r)}function zm(t,e,r){let n=e;for(;n!==null&&n.type&40;)e=n,n=e.parent;if(n===null)return r[Ye];{let{componentOffset:i}=n;if(i>-1){let{encapsulation:o}=t.data[n.directiveStart+i];if(o===Pe.None||o===Pe.Emulated)return null}return xe(n,r)}}function xi(t,e,r,n,i){t.insertBefore(e,r,n,i)}function Vd(t,e,r){t.appendChild(e,r)}function Qc(t,e,r,n,i){n!==null?xi(t,e,r,n,i):Vd(t,e,r)}function Gm(t,e,r,n){t.removeChild(e,r,n)}function Ra(t,e){return t.parentNode(e)}function Wm(t,e){return t.nextSibling(e)}function qm(t,e,r){return Ym(t,e,r)}function Zm(t,e,r){return t.type&40?xe(t,r):null}var Ym=Zm,Kc;function Yi(t,e,r,n){let i=Hm(t,n,e),o=e[Y],s=n.parent||e[Te],a=qm(s,n,e);if(i!=null)if(Array.isArray(r))for(let u=0;u<r.length;u++)Qc(o,i,r[u],a,!1);else Qc(o,i,r,a,!1);Kc!==void 0&&Kc(o,n,e,r,i)}function gi(t,e){if(e!==null){let r=e.type;if(r&3)return xe(e,t);if(r&4)return zs(-1,t[e.index]);if(r&8){let n=e.child;if(n!==null)return gi(t,n);{let i=t[e.index];return Qe(i)?zs(-1,i):Le(i)}}else{if(r&32)return Aa(e,t)()||Le(t[e.index]);{let n=jd(t,e);if(n!==null){if(Array.isArray(n))return n[0];let i=_t(t[ke]);return gi(i,n)}else return gi(t,e.next)}}}return null}function jd(t,e){if(e!==null){let n=t[ke][Te],i=e.projection;return n.projection[i]}return null}function zs(t,e){let r=ge+t+1;if(r<e.length){let n=e[r],i=n[T].firstChild;if(i!==null)return gi(n,i)}return e[Mt]}function Qm(t,e,r){let n=Ra(t,e);n&&Gm(t,n,e,r)}function Oa(t,e,r,n,i,o,s){for(;r!=null;){let a=n[r.index],u=r.type;if(s&&e===0&&(a&&ut(Le(a),n),r.flags|=2),(r.flags&32)!==32)if(u&8)Oa(t,e,r.child,n,i,o,!1),sn(e,t,i,a,o);else if(u&32){let c=Aa(r,n),l;for(;l=c();)sn(e,t,i,l,o);sn(e,t,i,a,o)}else u&16?Km(t,e,n,r,i,o):sn(e,t,i,a,o);r=s?r.projectionNext:r.next}}function Qi(t,e,r,n,i,o){Oa(r,n,t.firstChild,e,i,o,!1)}function Km(t,e,r,n,i,o){let s=r[ke],u=s[Te].projection[n.projection];if(Array.isArray(u))for(let c=0;c<u.length;c++){let l=u[c];sn(e,t,i,l,o)}else{let c=u,l=s[re];_d(n)&&(c.flags|=128),Oa(t,e,c,l,i,o,!0)}}function Jm(t,e,r,n,i){let o=r[Mt],s=Le(r);o!==s&&sn(e,t,n,o,i);for(let a=ge;a<r.length;a++){let u=r[a];Qi(u[T],u,t,e,n,o)}}function Xm(t,e,r,n,i){if(e)i?t.addClass(r,n):t.removeClass(r,n);else{let o=n.indexOf("-")===-1?void 0:qe.DashCase;i==null?t.removeStyle(r,n,o):(typeof i=="string"&&i.endsWith("!important")&&(i=i.slice(0,-10),o|=qe.Important),t.setStyle(r,n,i,o))}}function ev(t,e,r){t.setAttribute(e,"style",r)}function $d(t,e,r){r===""?t.removeAttribute(e,"class"):t.setAttribute(e,"class",r)}function Bd(t,e,r){let{mergedAttrs:n,classes:i,styles:o}=r;n!==null&&Ss(t,e,n),i!==null&&$d(t,e,i),o!==null&&ev(t,e,o)}var _n={};function ve(t=1){Ud(ae(),$(),In()+t,!1)}function Ud(t,e,r,n){if(!n)if((e[D]&3)===3){let o=t.preOrderCheckHooks;o!==null&&hi(e,o,r)}else{let o=t.preOrderHooks;o!==null&&pi(e,o,0,r)}St(r)}function P(t,e=M.Default){let r=$();if(r===null)return x(t,e);let n=oe();return Cd(n,r,te(t),e)}function Hd(t,e,r,n,i,o){let s=F(null);try{let a=null;i&fn.SignalBased&&(a=e[n][Lo]),a!==null&&a.transformFn!==void 0&&(o=a.transformFn(o)),i&fn.HasDecoratorInputTransform&&(o=t.inputTransforms[n].call(e,o)),t.setInput!==null?t.setInput(e,a,o,r,n):Hl(e,a,n,o)}finally{F(s)}}function tv(t,e){let r=t.hostBindingOpCodes;if(r!==null)try{for(let n=0;n<r.length;n++){let i=r[n];if(i<0)St(~i);else{let o=i,s=r[++n],a=r[++n];Qg(s,o);let u=e[o];a(2,u)}}}finally{St(-1)}}function Ki(t,e,r,n,i,o,s,a,u,c,l){let d=e.blueprint.slice();return d[Ye]=i,d[D]=n|4|128|8|64,(c!==null||t&&t[D]&2048)&&(d[D]|=2048),Yl(d),d[re]=d[or]=t,d[He]=r,d[ze]=s||t&&t[ze],d[Y]=a||t&&t[Y],d[pn]=u||t&&t[pn]||null,d[Te]=o,d[Bi]=Cm(),d[wi]=l,d[Bl]=c,d[ke]=e.type==2?t[ke]:d,d}function sr(t,e,r,n,i){let o=t.data[e];if(o===null)o=nv(t,e,r,n,i),Yg()&&(o.flags|=32);else if(o.type&64){o.type=r,o.value=n,o.attrs=i;let s=Wg();o.injectorIndex=s===null?-1:s.injectorIndex}return Ft(o,!0),o}function nv(t,e,r,n,i){let o=ed(),s=wa(),a=s?o:o&&o.parent,u=t.data[e]=av(t,a,r,e,n,i);return t.firstChild===null&&(t.firstChild=u),o!==null&&(s?o.child==null&&u.parent!==null&&(o.child=u):o.next===null&&(o.next=u,u.prev=o)),u}function zd(t,e,r,n){if(r===0)return-1;let i=e.length;for(let o=0;o<r;o++)e.push(n),t.blueprint.push(n),t.data.push(null);return i}function Gd(t,e,r,n,i){let o=In(),s=n&2;try{St(-1),s&&e.length>Ge&&Ud(t,e,Ge,!1),Oe(s?2:0,i),r(n,i)}finally{St(o),Oe(s?3:1,i)}}function Fa(t,e,r){if(Da(e)){let n=F(null);try{let i=e.directiveStart,o=e.directiveEnd;for(let s=i;s<o;s++){let a=t.data[s];if(a.contentQueries){let u=r[s];a.contentQueries(1,u,s)}}}finally{F(n)}}}function Pa(t,e,r){Xl()&&(hv(t,e,r,xe(r,e)),(r.flags&64)===64&&Yd(t,e,r))}function ka(t,e,r=xe){let n=e.localNames;if(n!==null){let i=e.index+1;for(let o=0;o<n.length;o+=2){let s=n[o+1],a=s===-1?r(e,t):t[s];t[i++]=a}}}function Wd(t){let e=t.tView;return e===null||e.incompleteFirstPass?t.tView=La(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):e}function La(t,e,r,n,i,o,s,a,u,c,l){let d=Ge+n,h=d+i,f=rv(d,h),p=typeof c=="function"?c():c;return f[T]={type:t,blueprint:f,template:r,queries:null,viewQuery:a,declTNode:e,data:f.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:h,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof o=="function"?o():o,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:u,consts:p,incompleteFirstPass:!1,ssrId:l}}function rv(t,e){let r=[];for(let n=0;n<e;n++)r.push(n<t?null:_n);return r}function iv(t,e,r,n){let o=n.get(Tm,Rd)||r===Pe.ShadowDom,s=t.selectRootElement(e,o);return ov(s),s}function ov(t){sv(t)}var sv=()=>null;function av(t,e,r,n,i,o){let s=e?e.injectorIndex:-1,a=0;return Hg()&&(a|=128),{type:r,index:n,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:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Jc(t,e,r,n,i){for(let o in e){if(!e.hasOwnProperty(o))continue;let s=e[o];if(s===void 0)continue;n??={};let a,u=fn.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]}t===0?Xc(n,r,c,a,u):Xc(n,r,c,a)}return n}function Xc(t,e,r,n,i){let o;t.hasOwnProperty(r)?(o=t[r]).push(e,n):o=t[r]=[e,n],i!==void 0&&o.push(i)}function uv(t,e,r){let n=e.directiveStart,i=e.directiveEnd,o=t.data,s=e.attrs,a=[],u=null,c=null;for(let l=n;l<i;l++){let d=o[l],h=r?r.get(d):null,f=h?h.inputs:null,p=h?h.outputs:null;u=Jc(0,d.inputs,l,u,f),c=Jc(1,d.outputs,l,c,p);let C=u!==null&&s!==null&&!pa(e)?Ev(u,l,s):null;a.push(C)}u!==null&&(u.hasOwnProperty("class")&&(e.flags|=8),u.hasOwnProperty("style")&&(e.flags|=16)),e.initialInputs=a,e.inputs=u,e.outputs=c}function cv(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function qd(t,e,r,n,i,o,s,a){let u=xe(e,r),c=e.inputs,l;!a&&c!=null&&(l=c[n])?(ja(t,r,l,n,i),Ui(e)&&lv(r,e.index)):e.type&3?(n=cv(n),i=s!=null?s(i,e.value||"",n):i,o.setProperty(u,n,i)):e.type&12}function lv(t,e){let r=dt(e,t);r[D]&16||(r[D]|=64)}function Va(t,e,r,n){if(Xl()){let i=n===null?null:{"":-1},o=gv(t,r),s,a;o===null?s=a=null:[s,a]=o,s!==null&&Zd(t,e,r,s,i,a),i&&mv(r,n,i)}r.mergedAttrs=Zn(r.mergedAttrs,r.attrs)}function Zd(t,e,r,n,i,o){for(let c=0;c<n.length;c++)Ls(Ti(r,e),t,n[c].type);yv(r,t.data.length,n.length);for(let c=0;c<n.length;c++){let l=n[c];l.providersResolver&&l.providersResolver(l)}let s=!1,a=!1,u=zd(t,e,n.length,null);for(let c=0;c<n.length;c++){let l=n[c];r.mergedAttrs=Zn(r.mergedAttrs,l.hostAttrs),Dv(t,r,e,u,l),vv(u,l,i),l.contentQueries!==null&&(r.flags|=4),(l.hostBindings!==null||l.hostAttrs!==null||l.hostVars!==0)&&(r.flags|=64);let d=l.type.prototype;!s&&(d.ngOnChanges||d.ngOnInit||d.ngDoCheck)&&((t.preOrderHooks??=[]).push(r.index),s=!0),!a&&(d.ngOnChanges||d.ngDoCheck)&&((t.preOrderCheckHooks??=[]).push(r.index),a=!0),u++}uv(t,r,o)}function dv(t,e,r,n,i){let o=i.hostBindings;if(o){let s=t.hostBindingOpCodes;s===null&&(s=t.hostBindingOpCodes=[]);let a=~e.index;fv(s)!=a&&s.push(a),s.push(r,n,o)}}function fv(t){let e=t.length;for(;e>0;){let r=t[--e];if(typeof r=="number"&&r<0)return r}return 0}function hv(t,e,r,n){let i=r.directiveStart,o=r.directiveEnd;Ui(r)&&Cv(e,r,t.data[i+r.componentOffset]),t.firstCreatePass||Ti(r,e),ut(n,e);let s=r.initialInputs;for(let a=i;a<o;a++){let u=t.data[a],c=yn(e,t,a,r);if(ut(c,e),s!==null&&wv(e,a-i,c,u,r,s),st(u)){let l=dt(r.index,e);l[He]=yn(e,t,a,r)}}}function Yd(t,e,r){let n=r.directiveStart,i=r.directiveEnd,o=r.index,s=Kg();try{St(o);for(let a=n;a<i;a++){let u=t.data[a],c=e[a];Fs(a),(u.hostBindings!==null||u.hostVars!==0||u.hostAttrs!==null)&&pv(u,c)}}finally{St(-1),Fs(s)}}function pv(t,e){t.hostBindings!==null&&t.hostBindings(1,e)}function gv(t,e){let r=t.directiveRegistry,n=null,i=null;if(r)for(let o=0;o<r.length;o++){let s=r[o];if(fg(e,s.selectors,!1))if(n||(n=[]),st(s))if(s.findHostDirectiveDefs!==null){let a=[];i=i||new Map,s.findHostDirectiveDefs(s,a,i),n.unshift(...a,s);let u=a.length;Gs(t,e,u)}else n.unshift(s),Gs(t,e,0);else i=i||new Map,s.findHostDirectiveDefs?.(s,n,i),n.push(s)}return n===null?null:[n,i]}function Gs(t,e,r){e.componentOffset=r,(t.components??=[]).push(e.index)}function mv(t,e,r){if(e){let n=t.localNames=[];for(let i=0;i<e.length;i+=2){let o=r[e[i+1]];if(o==null)throw new v(-301,!1);n.push(e[i],o)}}}function vv(t,e,r){if(r){if(e.exportAs)for(let n=0;n<e.exportAs.length;n++)r[e.exportAs[n]]=t;st(e)&&(r[""]=t)}}function yv(t,e,r){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+r,t.providerIndexes=e}function Dv(t,e,r,n,i){t.data[n]=i;let o=i.factory||(i.factory=cn(i.type,!0)),s=new Tt(o,st(i),P);t.blueprint[n]=s,r[n]=s,dv(t,e,n,zd(t,r,i.hostVars,_n),i)}function Cv(t,e,r){let n=xe(e,t),i=Wd(r),o=t[ze].rendererFactory,s=16;r.signals?s=4096:r.onPush&&(s=64);let a=Ji(t,Ki(t,i,null,s,n,e,null,o.createRenderer(n,r),null,null,null));t[e.index]=a}function wv(t,e,r,n,i,o){let s=o[e];if(s!==null)for(let a=0;a<s.length;){let u=s[a++],c=s[a++],l=s[a++],d=s[a++];Hd(n,r,u,c,l,d)}}function Ev(t,e,r){let n=null,i=0;for(;i<r.length;){let o=r[i];if(o===0){i+=4;continue}else if(o===5){i+=2;continue}if(typeof o=="number")break;if(t.hasOwnProperty(o)){n===null&&(n=[]);let s=t[o];for(let a=0;a<s.length;a+=3)if(s[a]===e){n.push(o,s[a+1],s[a+2],r[i+1]);break}}i+=2}return n}function Qd(t,e,r,n){return[t,!0,0,e,null,n,null,r,null,null]}function Kd(t,e){let r=t.contentQueries;if(r!==null){let n=F(null);try{for(let i=0;i<r.length;i+=2){let o=r[i],s=r[i+1];if(s!==-1){let a=t.data[s];od(o),a.contentQueries(2,e[s],s)}}}finally{F(n)}}}function Ji(t,e){return t[Qn]?t[Bc][Se]=e:t[Qn]=e,t[Bc]=e,e}function Ws(t,e,r){od(0);let n=F(null);try{e(t,r)}finally{F(n)}}function Iv(t){return t[Ei]??=[]}function bv(t){return t.cleanup??=[]}function Jd(t,e){let r=t[pn],n=r?r.get(We,null):null;n&&n.handleError(e)}function ja(t,e,r,n,i){for(let o=0;o<r.length;){let s=r[o++],a=r[o++],u=r[o++],c=e[s],l=t.data[s];Hd(l,c,n,a,u,i)}}function Mv(t,e,r){let n=ql(e,t);Pm(t[Y],n,r)}function _v(t,e){let r=dt(e,t),n=r[T];Sv(n,r);let i=r[Ye];i!==null&&r[wi]===null&&(r[wi]=Ta(i,r[pn])),$a(n,r,r[He])}function Sv(t,e){for(let r=e.length;r<t.blueprint.length;r++)e.push(t.blueprint[r])}function $a(t,e,r){Ea(e);try{let n=t.viewQuery;n!==null&&Ws(1,n,r);let i=t.template;i!==null&&Gd(t,e,i,1,r),t.firstCreatePass&&(t.firstCreatePass=!1),e[mn]?.finishViewCreation(t),t.staticContentQueries&&Kd(t,e),t.staticViewQueries&&Ws(2,t.viewQuery,r);let o=t.components;o!==null&&Tv(e,o)}catch(n){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),n}finally{e[D]&=-5,Ia()}}function Tv(t,e){for(let r=0;r<e.length;r++)_v(t,e[r])}function xv(t,e,r,n){let i=F(null);try{let o=e.tView,a=t[D]&4096?4096:16,u=Ki(t,o,r,a,null,e,null,null,n?.injector??null,n?.embeddedViewInjector??null,n?.dehydratedView??null),c=t[e.index];u[gn]=c;let l=t[mn];return l!==null&&(u[mn]=l.createEmbeddedView(o)),$a(o,u,r),u}finally{F(i)}}function el(t,e){return!e||e.firstChild===null||_d(t)}function Av(t,e,r,n=!0){let i=e[T];if($m(i,e,t,r),n){let s=zs(r,t),a=e[Y],u=Ra(a,t[Mt]);u!==null&&Vm(i,t[Te],a,e,u,s)}let o=e[wi];o!==null&&o.firstChild!==null&&(o.firstChild=null)}function Ai(t,e,r,n,i=!1){for(;r!==null;){let o=e[r.index];o!==null&&n.push(Le(o)),Qe(o)&&Nv(o,n);let s=r.type;if(s&8)Ai(t,e,r.child,n);else if(s&32){let a=Aa(r,e),u;for(;u=a();)n.push(u)}else if(s&16){let a=jd(e,r);if(Array.isArray(a))n.push(...a);else{let u=_t(e[ke]);Ai(u[T],u,a,n,!0)}}r=i?r.projectionNext:r.next}return n}function Nv(t,e){for(let r=ge;r<t.length;r++){let n=t[r],i=n[T].firstChild;i!==null&&Ai(n[T],n,i,e)}t[Mt]!==t[Ye]&&e.push(t[Mt])}var Xd=[];function Rv(t){return t[pe]??Ov(t)}function Ov(t){let e=Xd.pop()??Object.create(Pv);return e.lView=t,e}function Fv(t){t.lView[pe]!==t&&(t.lView=null,Xd.push(t))}var Pv=O(g({},Vo),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{zi(t.lView)},consumerOnSignalRead(){this.lView[pe]=this}});function kv(t){let e=t[pe]??Object.create(Lv);return e.lView=t,e}var Lv=O(g({},Vo),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{let e=_t(t.lView);for(;e&&!ef(e[T]);)e=_t(e);e&&Ql(e)},consumerOnSignalRead(){this.lView[pe]=this}});function ef(t){return t.type!==2}var Vv=100;function tf(t,e=!0,r=0){let n=t[ze],i=n.rendererFactory,o=!1;o||i.begin?.();try{jv(t,r)}catch(s){throw e&&Jd(t,s),s}finally{o||(i.end?.(),n.inlineEffectRunner?.flush())}}function jv(t,e){let r=nd();try{Hc(!0),qs(t,e);let n=0;for(;Kn(t);){if(n===Vv)throw new v(103,!1);n++,qs(t,1)}}finally{Hc(r)}}function $v(t,e,r,n){let i=e[D];if((i&256)===256)return;let o=!1,s=!1;!o&&e[ze].inlineEffectRunner?.flush(),Ea(e);let a=!0,u=null,c=null;o||(ef(t)?(c=Rv(e),u=jo(c)):ic()===null?(a=!1,c=kv(e),u=jo(c)):e[pe]&&(Bo(e[pe]),e[pe]=null));try{Yl(e),Zg(t.bindingStartIndex),r!==null&&Gd(t,e,r,2,n);let l=(i&3)===3;if(!o)if(l){let f=t.preOrderCheckHooks;f!==null&&hi(e,f,null)}else{let f=t.preOrderHooks;f!==null&&pi(e,f,0,null),ds(e,0)}if(s||Bv(e),nf(e,0),t.contentQueries!==null&&Kd(t,e),!o)if(l){let f=t.contentCheckHooks;f!==null&&hi(e,f)}else{let f=t.contentHooks;f!==null&&pi(e,f,1),ds(e,1)}tv(t,e);let d=t.components;d!==null&&of(e,d,0);let h=t.viewQuery;if(h!==null&&Ws(2,h,n),!o)if(l){let f=t.viewCheckHooks;f!==null&&hi(e,f)}else{let f=t.viewHooks;f!==null&&pi(e,f,2),ds(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[ls]){for(let f of e[ls])f();e[ls]=null}o||(e[D]&=-73)}catch(l){throw o||zi(e),l}finally{c!==null&&(oc(c,u),a&&Fv(c)),Ia()}}function nf(t,e){for(let r=Td(t);r!==null;r=xd(r))for(let n=ge;n<r.length;n++){let i=r[n];rf(i,e)}}function Bv(t){for(let e=Td(t);e!==null;e=xd(e)){if(!(e[D]&Mi.HasTransplantedViews))continue;let r=e[bi];for(let n=0;n<r.length;n++){let i=r[n];Ql(i)}}}function Uv(t,e,r){let n=dt(e,t);rf(n,r)}function rf(t,e){Ca(t)&&qs(t,e)}function qs(t,e){let n=t[T],i=t[D],o=t[pe],s=!!(e===0&&i&16);if(s||=!!(i&64&&e===0),s||=!!(i&1024),s||=!!(o?.dirty&&$o(o)),s||=!1,o&&(o.dirty=!1),t[D]&=-9217,s)$v(n,t,n.template,t[He]);else if(i&8192){nf(t,1);let a=n.components;a!==null&&of(t,a,1)}}function of(t,e,r){for(let n=0;n<e.length;n++)Uv(t,e[n],r)}function Ba(t,e){let r=nd()?64:1088;for(t[ze].changeDetectionScheduler?.notify(e);t;){t[D]|=r;let n=_t(t);if(Ns(t)&&!n)return t;t=n}return null}var xt=class{get rootNodes(){let e=this._lView,r=e[T];return Ai(r,e,r.firstChild,[])}constructor(e,r,n=!0){this._lView=e,this._cdRefInjectingView=r,this.notifyErrorHandler=n,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[He]}set context(e){this._lView[He]=e}get destroyed(){return(this._lView[D]&256)===256}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let e=this._lView[re];if(Qe(e)){let r=e[Ii],n=r?r.indexOf(this):-1;n>-1&&(Hs(e,n),Di(r,n))}this._attachedToViewContainer=!1}Ld(this._lView[T],this._lView)}onDestroy(e){Kl(this._lView,e)}markForCheck(){Ba(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[D]&=-129}reattach(){Os(this._lView),this._lView[D]|=128}detectChanges(){this._lView[D]|=1024,tf(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new v(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=Ns(this._lView),r=this._lView[gn];r!==null&&!e&&Na(r,this._lView),Pd(this._lView[T],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new v(902,!1);this._appRef=e;let r=Ns(this._lView),n=this._lView[gn];n!==null&&!r&&kd(n,this._lView),Os(this._lView)}},Xi=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=Gv;let t=e;return t})(),Hv=Xi,zv=class extends Hv{constructor(e,r,n){super(),this._declarationLView=e,this._declarationTContainer=r,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,r){return this.createEmbeddedViewImpl(e,r)}createEmbeddedViewImpl(e,r,n){let i=xv(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:r,dehydratedView:n});return new xt(i)}};function Gv(){return Wv(oe(),$())}function Wv(t,e){return t.type&4?new zv(e,t,Zi(t,e)):null}var _S=new RegExp(`^(\\d+)*(${_m}|${Mm})*(.*)`);var qv=()=>null;function tl(t,e){return qv(t,e)}var Jn=class{},sf=new w("",{providedIn:"root",factory:()=>!1});var af=new w(""),Zs=class{},Ni=class{};function Zv(t){let e=Error(`No component factory found for ${ne(t)}.`);return e[Yv]=t,e}var Yv="ngComponent";var Ys=class{resolveComponentFactory(e){throw Zv(e)}},Xa=class Xa{};Xa.NULL=new Ys;var Dn=Xa,Cn=class{},ft=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>Qv();let t=e;return t})();function Qv(){let t=$(),e=oe(),r=dt(e.index,t);return(ot(r)?r:t)[Y]}var Kv=(()=>{let e=class e{};e.\u0275prov=y({token:e,providedIn:"root",factory:()=>null});let t=e;return t})();var nl=new Set;function uf(t){nl.has(t)||(nl.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function cf(t){let e=!0;return setTimeout(()=>{e&&(e=!1,t())}),typeof Es.requestAnimationFrame=="function"&&Es.requestAnimationFrame(()=>{e&&(e=!1,t())}),()=>{e=!1}}function rl(t){let e=!0;return queueMicrotask(()=>{e&&t()}),()=>{e=!1}}function il(...t){}var Z=class t{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new U(!1),this.onMicrotaskEmpty=new U(!1),this.onStable=new U(!1),this.onError=new U(!1),typeof Zone>"u")throw new v(908,!1);Zone.assertZonePatched();let i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!n&&r,i.shouldCoalesceRunChangeDetection=n,i.callbackScheduled=!1,ey(i)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new v(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new v(909,!1)}run(e,r,n){return this._inner.run(e,r,n)}runTask(e,r,n,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,e,Jv,il,il);try{return o.runTask(s,r,n)}finally{o.cancelTask(s)}}runGuarded(e,r,n){return this._inner.runGuarded(e,r,n)}runOutsideAngular(e){return this._outer.run(e)}},Jv={};function Ua(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Xv(t){t.isCheckStableRunning||t.callbackScheduled||(t.callbackScheduled=!0,Zone.root.run(()=>{cf(()=>{t.callbackScheduled=!1,Qs(t),t.isCheckStableRunning=!0,Ua(t),t.isCheckStableRunning=!1})}),Qs(t))}function ey(t){let e=()=>{Xv(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,n,i,o,s,a)=>{if(ty(a))return r.invokeTask(i,o,s,a);try{return ol(t),r.invokeTask(i,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),sl(t)}},onInvoke:(r,n,i,o,s,a,u)=>{try{return ol(t),r.invoke(i,o,s,a,u)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!ny(a)&&e(),sl(t)}},onHasTask:(r,n,i,o)=>{r.hasTask(i,o),n===i&&(o.change=="microTask"?(t._hasPendingMicrotasks=o.microTask,Qs(t),Ua(t)):o.change=="macroTask"&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(r,n,i,o)=>(r.handleError(i,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}function Qs(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function ol(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function sl(t){t._nesting--,Ua(t)}var Ks=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new U,this.onMicrotaskEmpty=new U,this.onStable=new U,this.onError=new U}run(e,r,n){return e.apply(r,n)}runGuarded(e,r,n){return e.apply(r,n)}runOutsideAngular(e){return e()}runTask(e,r,n,i){return e.apply(r,n)}};function ty(t){return lf(t,"__ignore_ng_zone__")}function ny(t){return lf(t,"__scheduler_tick__")}function lf(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}var df=(()=>{let e=class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let i of n)i()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};e.\u0275prov=y({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();function Ri(t,e,r){let n=r?t.styles:null,i=r?t.classes:null,o=0;if(e!==null)for(let s=0;s<e.length;s++){let a=e[s];if(typeof a=="number")o=a;else if(o==1)i=Nc(i,a);else if(o==2){let u=a,c=e[++s];n=Nc(n,u+": "+c+";")}}r?t.styles=n:t.stylesWithoutHost=n,r?t.classes=i:t.classesWithoutHost=i}var Oi=class extends Dn{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){let r=bt(e);return new Xn(r,this.ngModule)}};function al(t){let e=[];for(let r in t){if(!t.hasOwnProperty(r))continue;let n=t[r];n!==void 0&&e.push({propName:Array.isArray(n)?n[0]:n,templateName:r})}return e}function ry(t){let e=t.toLowerCase();return e==="svg"?kg:e==="math"?Lg:null}var Xn=class extends Ni{get inputs(){let e=this.componentDef,r=e.inputTransforms,n=al(e.inputs);if(r!==null)for(let i of n)r.hasOwnProperty(i.propName)&&(i.transform=r[i.propName]);return n}get outputs(){return al(this.componentDef.outputs)}constructor(e,r){super(),this.componentDef=e,this.ngModule=r,this.componentType=e.type,this.selector=mg(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!r}create(e,r,n,i){let o=F(null);try{i=i||this.ngModule;let s=i instanceof me?i:i?.injector;s&&this.componentDef.getStandaloneInjector!==null&&(s=this.componentDef.getStandaloneInjector(s)||s);let a=s?new Ps(e,s):e,u=a.get(Cn,null);if(u===null)throw new v(407,!1);let c=a.get(Kv,null),l=a.get(df,null),d=a.get(Jn,null),h={rendererFactory:u,sanitizer:c,inlineEffectRunner:null,afterRenderEventManager:l,changeDetectionScheduler:d},f=u.createRenderer(null,this.componentDef),p=this.componentDef.selectors[0][0]||"div",C=n?iv(f,n,this.componentDef.encapsulation,a):Fd(f,p,ry(p)),R=512;this.componentDef.signals?R|=4096:this.componentDef.onPush||(R|=16);let k=null;C!==null&&(k=Ta(C,a,!0));let we=La(0,null,null,1,0,null,null,null,null,null,null),W=Ki(null,we,null,R,null,null,h,f,a,null,k);Ea(W);let $e,zt;try{let Ee=this.componentDef,Gt,Fo=null;Ee.findHostDirectiveDefs?(Gt=[],Fo=new Map,Ee.findHostDirectiveDefs(Ee,Gt,Fo),Gt.push(Ee)):Gt=[Ee];let np=iy(W,C),rp=oy(np,C,Ee,Gt,W,h,f);zt=Zl(we,Ge),C&&uy(f,Ee,C,n),r!==void 0&&cy(zt,this.ngContentSelectors,r),$e=ay(rp,Ee,Gt,Fo,W,[ly]),$a(we,W,null)}finally{Ia()}return new Js(this.componentType,$e,Zi(zt,W),W,zt)}finally{F(o)}}},Js=class extends Zs{constructor(e,r,n,i,o){super(),this.location=n,this._rootLView=i,this._tNode=o,this.previousInputValues=null,this.instance=r,this.hostView=this.changeDetectorRef=new xt(i,void 0,!1),this.componentType=e}setInput(e,r){let n=this._tNode.inputs,i;if(n!==null&&(i=n[e])){if(this.previousInputValues??=new Map,this.previousInputValues.has(e)&&Object.is(this.previousInputValues.get(e),r))return;let o=this._rootLView;ja(o[T],o,i,e,r),this.previousInputValues.set(e,r);let s=dt(this._tNode.index,o);Ba(s,1)}}get injector(){return new It(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}};function iy(t,e){let r=t[T],n=Ge;return t[n]=e,sr(r,n,2,"#host",null)}function oy(t,e,r,n,i,o,s){let a=i[T];sy(n,t,e,s);let u=null;e!==null&&(u=Ta(e,i[pn]));let c=o.rendererFactory.createRenderer(e,r),l=16;r.signals?l=4096:r.onPush&&(l=64);let d=Ki(i,Wd(r),null,l,i[t.index],t,o,c,null,null,u);return a.firstCreatePass&&Gs(a,t,n.length-1),Ji(i,d),i[t.index]=d}function sy(t,e,r,n){for(let i of t)e.mergedAttrs=Zn(e.mergedAttrs,i.hostAttrs);e.mergedAttrs!==null&&(Ri(e,e.mergedAttrs,!0),r!==null&&Bd(n,r,e))}function ay(t,e,r,n,i,o){let s=oe(),a=i[T],u=xe(s,i);Zd(a,i,s,r,null,n);for(let l=0;l<r.length;l++){let d=s.directiveStart+l,h=yn(i,a,d,s);ut(h,i)}Yd(a,i,s),u&&ut(u,i);let c=yn(i,a,s.directiveStart+s.componentOffset,s);if(t[He]=i[He]=c,o!==null)for(let l of o)l(c,e);return Fa(a,s,i),c}function uy(t,e,r,n){if(n)Ss(t,r,["ng-version","18.0.4"]);else{let{attrs:i,classes:o}=vg(e.selectors[0]);i&&Ss(t,r,i),o&&o.length>0&&$d(t,r,o.join(" "))}}function cy(t,e,r){let n=t.projection=[];for(let i=0;i<e.length;i++){let o=r[i];n.push(o!=null?Array.from(o):null)}}function ly(){let t=oe();qi($()[T],t)}var Sn=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=dy;let t=e;return t})();function dy(){let t=oe();return hy(t,$())}var fy=Sn,ff=class extends fy{constructor(e,r,n){super(),this._lContainer=e,this._hostTNode=r,this._hostLView=n}get element(){return Zi(this._hostTNode,this._hostLView)}get injector(){return new It(this._hostTNode,this._hostLView)}get parentInjector(){let e=ba(this._hostTNode,this._hostLView);if(pd(e)){let r=Si(e,this._hostLView),n=_i(e),i=r[T].data[n+8];return new It(i,r)}else return new It(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let r=ul(this._lContainer);return r!==null&&r[e]||null}get length(){return this._lContainer.length-ge}createEmbeddedView(e,r,n){let i,o;typeof n=="number"?i=n:n!=null&&(i=n.index,o=n.injector);let s=tl(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(r||{},o,s);return this.insertImpl(a,i,el(this._hostTNode,s)),a}createComponent(e,r,n,i,o){let s=e&&!Rg(e),a;if(s)a=r;else{let p=r||{};a=p.index,n=p.injector,i=p.projectableNodes,o=p.environmentInjector||p.ngModuleRef}let u=s?e:new Xn(bt(e)),c=n||this.parentInjector;if(!o&&u.ngModule==null){let C=(s?c:this.parentInjector).get(me,null);C&&(o=C)}let l=bt(u.componentType??{}),d=tl(this._lContainer,l?.id??null),h=d?.firstChild??null,f=u.create(c,i,h,o);return this.insertImpl(f.hostView,a,el(this._hostTNode,d)),f}insert(e,r){return this.insertImpl(e,r,!0)}insertImpl(e,r,n){let i=e._lView;if(Vg(i)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let u=i[re],c=new ff(u,u[Te],u[re]);c.detach(c.indexOf(e))}}let o=this._adjustIndex(r),s=this._lContainer;return Av(s,i,o,n),e.attachToViewContainerRef(),_l(ms(s),o,e),e}move(e,r){return this.insert(e,r)}indexOf(e){let r=ul(this._lContainer);return r!==null?r.indexOf(e):-1}remove(e){let r=this._adjustIndex(e,-1),n=Hs(this._lContainer,r);n&&(Di(ms(this._lContainer),r),Ld(n[T],n))}detach(e){let r=this._adjustIndex(e,-1),n=Hs(this._lContainer,r);return n&&Di(ms(this._lContainer),r)!=null?new xt(n):null}_adjustIndex(e,r=0){return e??this.length+r}};function ul(t){return t[Ii]}function ms(t){return t[Ii]||(t[Ii]=[])}function hy(t,e){let r,n=e[t.index];return Qe(n)?r=n:(r=Qd(n,e,null,t),e[t.index]=r,Ji(e,r)),gy(r,e,t,n),new ff(r,t,e)}function py(t,e){let r=t[Y],n=r.createComment(""),i=xe(e,t),o=Ra(r,i);return xi(r,o,n,Wm(r,i),!1),n}var gy=yy,my=()=>!1;function vy(t,e,r){return my(t,e,r)}function yy(t,e,r,n){if(t[Mt])return;let i;r.type&8?i=Le(n):i=py(e,r),t[Mt]=i}function Dy(t){return typeof t=="function"&&t[Lo]!==void 0}function hf(t){return Dy(t)&&typeof t.set=="function"}function Cy(t){return Object.getPrototypeOf(t.prototype).constructor}function ht(t){let e=Cy(t.type),r=!0,n=[t];for(;e;){let i;if(st(t))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new v(903,!1);i=e.\u0275dir}if(i){if(r){n.push(i);let s=t;s.inputs=li(t.inputs),s.inputTransforms=li(t.inputTransforms),s.declaredInputs=li(t.declaredInputs),s.outputs=li(t.outputs);let a=i.hostBindings;a&&My(t,a);let u=i.viewQuery,c=i.contentQueries;if(u&&Iy(t,u),c&&by(t,c),wy(t,i),Lp(t.outputs,i.outputs),st(i)&&i.data.animation){let l=t.data;l.animation=(l.animation||[]).concat(i.data.animation)}}let o=i.features;if(o)for(let s=0;s<o.length;s++){let a=o[s];a&&a.ngInherit&&a(t),a===ht&&(r=!1)}}e=Object.getPrototypeOf(e)}Ey(n)}function wy(t,e){for(let r in e.inputs){if(!e.inputs.hasOwnProperty(r)||t.inputs.hasOwnProperty(r))continue;let n=e.inputs[r];if(n!==void 0&&(t.inputs[r]=n,t.declaredInputs[r]=e.declaredInputs[r],e.inputTransforms!==null)){let i=Array.isArray(n)?n[0]:n;if(!e.inputTransforms.hasOwnProperty(i))continue;t.inputTransforms??={},t.inputTransforms[i]=e.inputTransforms[i]}}}function Ey(t){let e=0,r=null;for(let n=t.length-1;n>=0;n--){let i=t[n];i.hostVars=e+=i.hostVars,i.hostAttrs=Zn(i.hostAttrs,r=Zn(r,i.hostAttrs))}}function li(t){return t===ln?{}:t===he?[]:t}function Iy(t,e){let r=t.viewQuery;r?t.viewQuery=(n,i)=>{e(n,i),r(n,i)}:t.viewQuery=e}function by(t,e){let r=t.contentQueries;r?t.contentQueries=(n,i,o)=>{e(n,i,o),r(n,i,o)}:t.contentQueries=e}function My(t,e){let r=t.hostBindings;r?t.hostBindings=(n,i)=>{e(n,i),r(n,i)}:t.hostBindings=e}var ct=class{},er=class{};var Xs=class extends ct{constructor(e,r,n){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Oi(this);let i=Fl(e);this._bootstrapComponents=Od(i.bootstrap),this._r3Injector=Id(e,r,[{provide:ct,useValue:this},{provide:Dn,useValue:this.componentFactoryResolver},...n],ne(e),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(e)}get injector(){return this._r3Injector}destroy(){let e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},ea=class extends er{constructor(e){super(),this.moduleType=e}create(e){return new Xs(this.moduleType,e,[])}};var Fi=class extends ct{constructor(e){super(),this.componentFactoryResolver=new Oi(this),this.instance=null;let r=new Yn([...e.providers,{provide:ct,useValue:this},{provide:Dn,useValue:this.componentFactoryResolver}],e.parent||ya(),e.debugName,new Set(["environment"]));this.injector=r,e.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function Ha(t,e,r=null){return new Fi({providers:t,parent:e,debugName:r,runEnvironmentInitializers:!0}).injector}function pf(t){return Sy(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function _y(t,e){if(Array.isArray(t))for(let r=0;r<t.length;r++)e(t[r]);else{let r=t[Symbol.iterator](),n;for(;!(n=r.next()).done;)e(n.value)}}function Sy(t){return t!==null&&(typeof t=="function"||typeof t=="object")}function tr(t,e,r){let n=t[e];return Object.is(n,r)?!1:(t[e]=r,!0)}function Ty(t,e,r,n){let i=tr(t,e,r);return tr(t,e+1,n)||i}function xy(t){return(t.flags&32)===32}function Ay(t,e,r,n,i,o,s,a,u){let c=e.consts,l=sr(e,t,4,s||null,a||null);Va(e,r,l,vn(c,u)),qi(e,l);let d=l.tView=La(2,l,n,i,o,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c,null);return e.queries!==null&&(e.queries.template(e,l),d.queries=e.queries.embeddedTView(l)),l}function Ny(t,e,r,n,i,o,s,a,u,c){let l=r+Ge,d=e.firstCreatePass?Ay(l,e,t,n,i,o,s,a,u):e.data[l];Ft(d,!1);let h=Ry(e,t,d,r);Gi()&&Yi(e,t,h,d),ut(h,t);let f=Qd(h,t,h,d);return t[l]=f,Ji(t,f),vy(f,d,t),Hi(d)&&Pa(e,t,d),u!=null&&ka(t,d,c),d}function za(t,e,r,n,i,o,s,a){let u=$(),c=ae(),l=vn(c.consts,o);return Ny(u,c,t,e,r,n,i,l,s,a),za}var Ry=Oy;function Oy(t,e,r,n){return Wi(!0),e[Y].createComment("")}function Fy(t,e,r,n,i,o){let s=qg(),a=Ty(t,s,r,i);return id(2),a?e+Is(r)+n+Is(i)+o:_n}function di(t,e){return t<<17|e<<2}function At(t){return t>>17&32767}function Py(t){return(t&2)==2}function ky(t,e){return t&131071|e<<17}function ta(t){return t|2}function wn(t){return(t&131068)>>2}function vs(t,e){return t&-131069|e<<2}function Ly(t){return(t&1)===1}function na(t){return t|1}function Vy(t,e,r,n,i,o){let s=o?e.classBindings:e.styleBindings,a=At(s),u=wn(s);t[n]=r;let c=!1,l;if(Array.isArray(r)){let d=r;l=d[1],(l===null||ir(d,l)>0)&&(c=!0)}else l=r;if(i)if(u!==0){let h=At(t[a+1]);t[n+1]=di(h,a),h!==0&&(t[h+1]=vs(t[h+1],n)),t[a+1]=ky(t[a+1],n)}else t[n+1]=di(a,0),a!==0&&(t[a+1]=vs(t[a+1],n)),a=n;else t[n+1]=di(u,0),a===0?a=n:t[u+1]=vs(t[u+1],n),u=n;c&&(t[n+1]=ta(t[n+1])),cl(t,l,n,!0),cl(t,l,n,!1),jy(e,l,t,n,o),s=di(a,u),o?e.classBindings=s:e.styleBindings=s}function jy(t,e,r,n,i){let o=i?t.residualClasses:t.residualStyles;o!=null&&typeof e=="string"&&ir(o,e)>=0&&(r[n+1]=na(r[n+1]))}function cl(t,e,r,n){let i=t[r+1],o=e===null,s=n?At(i):wn(i),a=!1;for(;s!==0&&(a===!1||o);){let u=t[s],c=t[s+1];$y(u,e)&&(a=!0,t[s+1]=n?na(c):ta(c)),s=n?At(c):wn(c)}a&&(t[r+1]=n?ta(i):na(i))}function $y(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?ir(t,e)>=0:!1}function Ae(t,e,r){let n=$(),i=rd();if(tr(n,i,e)){let o=ae(),s=dd();qd(o,s,n,t,e,n[Y],r,!1)}return Ae}function ll(t,e,r,n,i){let o=e.inputs,s=i?"class":"style";ja(t,r,o[s],s,n)}function Ga(t,e){return By(t,e,null,!0),Ga}function By(t,e,r,n){let i=$(),o=ae(),s=id(2);if(o.firstUpdatePass&&Hy(o,t,s,n),e!==_n&&tr(i,s,e)){let a=o.data[In()];Zy(o,a,i,i[Y],t,i[s+1]=Yy(e,r),n,s)}}function Uy(t,e){return e>=t.expandoStartIndex}function Hy(t,e,r,n){let i=t.data;if(i[r+1]===null){let o=i[In()],s=Uy(t,r);Qy(o,n)&&e===null&&!s&&(e=!1),e=zy(i,o,e,n),Vy(i,o,e,r,s,n)}}function zy(t,e,r,n){let i=Jg(t),o=n?e.residualClasses:e.residualStyles;if(i===null)(n?e.classBindings:e.styleBindings)===0&&(r=ys(null,t,e,r,n),r=nr(r,e.attrs,n),o=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==i)if(r=ys(i,t,e,r,n),o===null){let u=Gy(t,e,n);u!==void 0&&Array.isArray(u)&&(u=ys(null,t,e,u[1],n),u=nr(u,e.attrs,n),Wy(t,e,n,u))}else o=qy(t,e,n)}return o!==void 0&&(n?e.residualClasses=o:e.residualStyles=o),r}function Gy(t,e,r){let n=r?e.classBindings:e.styleBindings;if(wn(n)!==0)return t[At(n)]}function Wy(t,e,r,n){let i=r?e.classBindings:e.styleBindings;t[At(i)]=n}function qy(t,e,r){let n,i=e.directiveEnd;for(let o=1+e.directiveStylingLast;o<i;o++){let s=t[o].hostAttrs;n=nr(n,s,r)}return nr(n,e.attrs,r)}function ys(t,e,r,n,i){let o=null,s=r.directiveEnd,a=r.directiveStylingLast;for(a===-1?a=r.directiveStart:a++;a<s&&(o=e[a],n=nr(n,o.hostAttrs,i),o!==t);)a++;return t!==null&&(r.directiveStylingLast=a),n}function nr(t,e,r){let n=r?1:2,i=-1;if(e!==null)for(let o=0;o<e.length;o++){let s=e[o];typeof s=="number"?i=s:i===n&&(Array.isArray(t)||(t=t===void 0?[]:["",t]),rg(t,s,r?!0:e[++o]))}return t===void 0?null:t}function Zy(t,e,r,n,i,o,s,a){if(!(e.type&3))return;let u=t.data,c=u[a+1],l=Ly(c)?dl(u,e,r,i,wn(c),s):void 0;if(!Pi(l)){Pi(o)||Py(c)&&(o=dl(u,null,r,i,a,s));let d=ql(In(),r);Xm(n,s,d,i,o)}}function dl(t,e,r,n,i,o){let s=e===null,a;for(;i>0;){let u=t[i],c=Array.isArray(u),l=c?u[1]:u,d=l===null,h=r[i+1];h===_n&&(h=d?he:void 0);let f=d?us(h,n):l===n?h:void 0;if(c&&!Pi(f)&&(f=us(u,n)),Pi(f)&&(a=f,s))return a;let p=t[i+1];i=s?At(p):wn(p)}if(e!==null){let u=o?e.residualClasses:e.residualStyles;u!=null&&(a=us(u,n))}return a}function Pi(t){return t!==void 0}function Yy(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=ne(xa(t)))),t}function Qy(t,e){return(t.flags&(e?8:16))!==0}function Ky(t,e,r,n,i,o){let s=e.consts,a=vn(s,i),u=sr(e,t,2,n,a);return Va(e,r,u,vn(s,o)),u.attrs!==null&&Ri(u,u.attrs,!1),u.mergedAttrs!==null&&Ri(u,u.mergedAttrs,!0),e.queries!==null&&e.queries.elementStart(e,u),u}function Q(t,e,r,n){let i=$(),o=ae(),s=Ge+t,a=i[Y],u=o.firstCreatePass?Ky(s,o,i,e,r,n):o.data[s],c=Jy(o,i,u,a,e,t);i[s]=c;let l=Hi(u);return Ft(u,!0),Bd(a,c,u),!xy(u)&&Gi()&&Yi(o,i,c,u),$g()===0&&ut(c,i),Bg(),l&&(Pa(o,i,u),Fa(o,u,i)),n!==null&&ka(i,u),Q}function K(){let t=oe();wa()?td():(t=t.parent,Ft(t,!1));let e=t;zg(e)&&Gg(),Ug();let r=ae();return r.firstCreatePass&&(qi(r,t),Da(t)&&r.queries.elementEnd(t)),e.classesWithoutHost!=null&&im(e)&&ll(r,e,$(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&om(e)&&ll(r,e,$(),e.stylesWithoutHost,!1),K}function pt(t,e,r,n){return Q(t,e,r,n),K(),pt}var Jy=(t,e,r,n,i,o)=>(Wi(!0),Fd(n,i,em()));function Xy(t,e,r,n,i){let o=e.consts,s=vn(o,n),a=sr(e,t,8,"ng-container",s);s!==null&&Ri(a,s,!0);let u=vn(o,i);return Va(e,r,a,u),e.queries!==null&&e.queries.elementStart(e,a),a}function Wa(t,e,r){let n=$(),i=ae(),o=t+Ge,s=i.firstCreatePass?Xy(o,i,n,e,r):i.data[o];Ft(s,!0);let a=eD(i,n,s,t);return n[o]=a,Gi()&&Yi(i,n,a,s),ut(a,n),Hi(s)&&(Pa(i,n,s),Fa(i,s,n)),r!=null&&ka(n,s),Wa}function qa(){let t=oe(),e=ae();return wa()?td():(t=t.parent,Ft(t,!1)),e.firstCreatePass&&(qi(e,t),Da(t)&&e.queries.elementEnd(t)),qa}var eD=(t,e,r,n)=>(Wi(!0),km(e[Y],""));var ki="en-US";var tD=ki;function nD(t){typeof t=="string"&&(tD=t.toLowerCase().replace(/_/g,"-"))}var rD=(t,e,r)=>{};function ye(t,e,r,n){let i=$(),o=ae(),s=oe();return gf(o,i,i[Y],s,t,e,n),ye}function iD(t,e,r,n){let i=t.cleanup;if(i!=null)for(let o=0;o<i.length-1;o+=2){let s=i[o];if(s===r&&i[o+1]===n){let a=e[Ei],u=i[o+2];return a.length>u?a[u]:null}typeof s=="string"&&(o+=2)}return null}function gf(t,e,r,n,i,o,s){let a=Hi(n),c=t.firstCreatePass&&bv(t),l=e[He],d=Iv(e),h=!0;if(n.type&3||s){let C=xe(n,e),R=s?s(C):C,k=d.length,we=s?$e=>s(Le($e[n.index])):n.index,W=null;if(!s&&a&&(W=iD(t,e,i,n.index)),W!==null){let $e=W.__ngLastListenerFn__||W;$e.__ngNextListenerFn__=o,W.__ngLastListenerFn__=o,h=!1}else{o=hl(n,e,l,o),rD(C,i,o);let $e=r.listen(R,i,o);d.push(o,$e),c&&c.push(i,we,k,k+1)}}else o=hl(n,e,l,o);let f=n.outputs,p;if(h&&f!==null&&(p=f[i])){let C=p.length;if(C)for(let R=0;R<C;R+=2){let k=p[R],we=p[R+1],zt=e[k][we].subscribe(o),Ee=d.length;d.push(o,zt),c&&c.push(i,n.index,Ee,-(Ee+1))}}}function fl(t,e,r,n){let i=F(null);try{return Oe(6,e,r),r(n)!==!1}catch(o){return Jd(t,o),!1}finally{Oe(7,e,r),F(i)}}function hl(t,e,r,n){return function i(o){if(o===Function)return n;let s=t.componentOffset>-1?dt(t.index,e):e;Ba(s,5);let a=fl(e,r,n,o),u=i.__ngNextListenerFn__;for(;u;)a=fl(e,r,u,o)&&a,u=u.__ngNextListenerFn__;return a}}function Ve(t,e=""){let r=$(),n=ae(),i=t+Ge,o=n.firstCreatePass?sr(n,i,1,e,null):n.data[i],s=oD(n,r,o,e,t);r[i]=s,Gi()&&Yi(n,r,s,o),Ft(o,!1)}var oD=(t,e,r,n,i)=>(Wi(!0),Fm(e[Y],n));function Za(t,e,r,n,i){let o=$(),s=Fy(o,t,e,r,n,i);return s!==_n&&Mv(o,In(),s),Za}function ar(t,e,r){hf(e)&&(e=e());let n=$(),i=rd();if(tr(n,i,e)){let o=ae(),s=dd();qd(o,s,n,t,e,n[Y],r,!1)}return ar}function eo(t,e){let r=hf(t);return r&&t.set(e),r}function ur(t,e){let r=$(),n=ae(),i=oe();return gf(n,r,r[Y],i,t,e),ur}function sD(t,e,r){let n=ae();if(n.firstCreatePass){let i=st(t);ra(r,n.data,n.blueprint,i,!0),ra(e,n.data,n.blueprint,i,!1)}}function ra(t,e,r,n,i){if(t=te(t),Array.isArray(t))for(let o=0;o<t.length;o++)ra(t[o],e,r,n,i);else{let o=ae(),s=$(),a=oe(),u=hn(t)?t:te(t.provide),c=$l(t),l=a.providerIndexes&1048575,d=a.directiveStart,h=a.providerIndexes>>20;if(hn(t)||!t.multi){let f=new Tt(c,i,P),p=Cs(u,e,i?l:l+h,d);p===-1?(Ls(Ti(a,s),o,u),Ds(o,t,e.length),e.push(u),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),r.push(f),s.push(f)):(r[p]=f,s[p]=f)}else{let f=Cs(u,e,l+h,d),p=Cs(u,e,l,l+h),C=f>=0&&r[f],R=p>=0&&r[p];if(i&&!R||!i&&!C){Ls(Ti(a,s),o,u);let k=cD(i?uD:aD,r.length,i,n,c);!i&&R&&(r[p].providerFactory=k),Ds(o,t,e.length,0),e.push(u),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),r.push(k),s.push(k)}else{let k=mf(r[i?p:f],c,!i&&n);Ds(o,t,f>-1?f:p,k)}!i&&n&&R&&r[p].componentProviders++}}}function Ds(t,e,r,n){let i=hn(e),o=bg(e);if(i||o){let u=(o?te(e.useClass):e).prototype.ngOnDestroy;if(u){let c=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){let l=c.indexOf(r);l===-1?c.push(r,[n,u]):c[l+1].push(n,u)}else c.push(r,u)}}}function mf(t,e,r){return r&&t.componentProviders++,t.multi.push(e)-1}function Cs(t,e,r,n){for(let i=r;i<n;i++)if(e[i]===t)return i;return-1}function aD(t,e,r,n){return ia(this.multi,[])}function uD(t,e,r,n){let i=this.multi,o;if(this.providerFactory){let s=this.providerFactory.componentProviders,a=yn(r,r[T],this.providerFactory.index,n);o=a.slice(0,s),ia(i,o);for(let u=s;u<a.length;u++)o.push(a[u])}else o=[],ia(i,o);return o}function ia(t,e){for(let r=0;r<t.length;r++){let n=t[r];e.push(n())}return e}function cD(t,e,r,n,i){let o=new Tt(t,r,P);return o.multi=[],o.index=e,o.componentProviders=0,mf(o,i,n&&!r),o}function cr(t,e=[]){return r=>{r.providersResolver=(n,i)=>sD(n,i?i(t):t,e)}}var lD=(()=>{let e=class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let i=Ll(!1,n.type),o=i.length>0?Ha([i],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=y({token:e,providedIn:"environment",factory:()=>new e(x(me))});let t=e;return t})();function gt(t){uf("NgStandalone"),t.getStandaloneInjector=e=>e.get(lD).getOrCreateStandaloneInjector(t)}var to=(()=>{let e=class e{log(n){console.log(n)}warn(n){console.warn(n)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();var vf=new w("");function kt(t){return!!t&&typeof t.then=="function"}function yf(t){return!!t&&typeof t.subscribe=="function"}var Df=new w(""),Cf=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,i)=>{this.resolve=n,this.reject=i}),this.appInits=m(Df,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let s=o();if(kt(s))n.push(s);else if(yf(s)){let a=new Promise((u,c)=>{s.subscribe({complete:u,error:c})});n.push(a)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{i()}).catch(o=>{this.reject(o)}),n.length===0&&i(),this.initialized=!0}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Ya=new w("");function dD(){sc(()=>{throw new v(600,!1)})}function fD(t){return t.isBoundToModule}var hD=10;function pD(t,e,r){try{let n=r();return kt(n)?n.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}var Tn=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=m(bd),this.afterRenderEffectManager=m(df),this.zonelessEnabled=m(sf),this.externalTestViews=new Set,this.beforeRender=new z,this.afterTick=new z,this.componentTypes=[],this.components=[],this.isStable=m(bn).hasPendingTasks.pipe(_(n=>!n)),this._injector=m(me)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,i){let o=n instanceof Ni;if(!this._injector.get(Cf).done){let f=!o&&Ol(n),p=!1;throw new v(405,p)}let a;o?a=n:a=this._injector.get(Dn).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let u=fD(a)?void 0:this._injector.get(ct),c=i||a.selector,l=a.create(at.NULL,[],c,u),d=l.location.nativeElement,h=l.injector.get(vf,null);return h?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),ws(this.components,l),h?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){this._tick(!0)}_tick(n){if(this._runningTick)throw new v(101,!1);let i=F(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(n)}catch(o){this.internalErrorHandler(o)}finally{this._runningTick=!1,F(i),this.afterTick.next()}}detectChangesInAttachedViews(n){let i=null;this._injector.destroyed||(i=this._injector.get(Cn,null,{optional:!0}));let o=0,s=this.afterRenderEffectManager;for(;o<hD;){let a=o===0;if(n||!a){this.beforeRender.next(a);for(let{_lView:u,notifyErrorHandler:c}of this._views)gD(u,c,a,this.zonelessEnabled)}else i?.begin?.(),i?.end?.();if(o++,s.executeInternalCallbacks(),!this.allViews.some(({_lView:u})=>Kn(u))&&(s.execute(),!this.allViews.some(({_lView:u})=>Kn(u))))break}}attachView(n){let i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){let i=n;ws(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let i=this._injector.get(Ya,[]);[...this._bootstrapListeners,...i].forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>ws(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new v(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function ws(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function gD(t,e,r,n){if(!r&&!Kn(t))return;tf(t,e,r&&!n?0:1)}var oa=class{constructor(e,r){this.ngModuleFactory=e,this.componentFactories=r}},Qa=(()=>{let e=class e{compileModuleSync(n){return new ea(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let i=this.compileModuleSync(n),o=Fl(n),s=Od(o.declarations).reduce((a,u)=>{let c=bt(u);return c&&a.push(new Xn(c)),a},[]);return new oa(i,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var mD=(()=>{let e=class e{constructor(){this.zone=m(Z),this.changeDetectionScheduler=m(Jn),this.applicationRef=m(Tn)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function vD({ngZoneFactory:t,ignoreChangesOutsideZone:e}){return t??=()=>new Z(DD()),[{provide:Z,useFactory:t},{provide:dn,multi:!0,useFactory:()=>{let r=m(mD,{optional:!0});return()=>r.initialize()}},{provide:dn,multi:!0,useFactory:()=>{let r=m(CD);return()=>{r.initialize()}}},{provide:bd,useFactory:yD},e===!0?{provide:af,useValue:!0}:[]]}function yD(){let t=m(Z),e=m(We);return r=>t.runOutsideAngular(()=>e.handleError(r))}function DD(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var CD=(()=>{let e=class e{constructor(){this.subscription=new H,this.initialized=!1,this.zone=m(Z),this.pendingTasks=m(bn)}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(()=>{Z.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Z.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var wD=(()=>{let e=class e{constructor(){this.appRef=m(Tn),this.taskService=m(bn),this.ngZone=m(Z),this.zonelessEnabled=m(sf),this.disableScheduling=m(af,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new H,this.cancelScheduledCallback=null,this.shouldRefreshViews=!1,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Ks||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 3:case 2:case 0:case 4:case 5:case 1:{this.shouldRefreshViews=!0;break}case 8:case 7:case 6:case 9:default:}if(!this.shouldScheduleTick())return;let i=this.useMicrotaskScheduler?rl:cf;this.pendingRenderTaskId=this.taskService.add(),this.zoneIsDefined?Zone.root.run(()=>{this.cancelScheduledCallback=i(()=>{this.tick(this.shouldRefreshViews)})}):this.cancelScheduledCallback=i(()=>{this.tick(this.shouldRefreshViews)})}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Z.isInAngularZone())}tick(n){if(this.runningTick||this.appRef.destroyed)return;let i=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick(n)},void 0,this.schedulerTickApplyArgs)}catch(o){throw this.taskService.remove(i),o}finally{this.cleanup()}this.useMicrotaskScheduler=!0,rl(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(i)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.shouldRefreshViews=!1,this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function ED(){return typeof $localize<"u"&&$localize.locale||ki}var Ka=new w("",{providedIn:"root",factory:()=>m(Ka,M.Optional|M.SkipSelf)||ED()});var wf=new w("");var mi=null;function ID(t=[],e){return at.create({name:e,providers:[{provide:$i,useValue:"platform"},{provide:wf,useValue:new Set([()=>mi=null])},...t]})}function bD(t=[]){if(mi)return mi;let e=ID(t);return mi=e,dD(),MD(e),e}function MD(t){t.get(_a,null)?.forEach(r=>r())}var Lt=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=_D;let t=e;return t})();function _D(t){return SD(oe(),$(),(t&16)===16)}function SD(t,e,r){if(Ui(t)&&!r){let n=dt(t.index,e);return new xt(n,n)}else if(t.type&47){let n=e[ke];return new xt(n,e)}return null}var sa=class{constructor(){}supports(e){return pf(e)}create(e){return new aa(e)}},TD=(t,e)=>e,aa=class{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||TD}forEachItem(e){let r;for(r=this._itHead;r!==null;r=r._next)e(r)}forEachOperation(e){let r=this._itHead,n=this._removalsHead,i=0,o=null;for(;r||n;){let s=!n||r&&r.currentIndex<pl(n,i,o)?r:n,a=pl(s,i,o),u=s.currentIndex;if(s===n)i--,n=n._nextRemoved;else if(r=r._next,s.previousIndex==null)i++;else{o||(o=[]);let c=a-i,l=u-i;if(c!=l){for(let h=0;h<c;h++){let f=h<o.length?o[h]:o[h]=0,p=f+h;l<=p&&p<c&&(o[h]=f+1)}let d=s.previousIndex;o[d]=l-c}}a!==u&&e(s,a,u)}}forEachPreviousItem(e){let r;for(r=this._previousItHead;r!==null;r=r._nextPrevious)e(r)}forEachAddedItem(e){let r;for(r=this._additionsHead;r!==null;r=r._nextAdded)e(r)}forEachMovedItem(e){let r;for(r=this._movesHead;r!==null;r=r._nextMoved)e(r)}forEachRemovedItem(e){let r;for(r=this._removalsHead;r!==null;r=r._nextRemoved)e(r)}forEachIdentityChange(e){let r;for(r=this._identityChangesHead;r!==null;r=r._nextIdentityChange)e(r)}diff(e){if(e==null&&(e=[]),!pf(e))throw new v(900,!1);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let r=this._itHead,n=!1,i,o,s;if(Array.isArray(e)){this.length=e.length;for(let a=0;a<this.length;a++)o=e[a],s=this._trackByFn(a,o),r===null||!Object.is(r.trackById,s)?(r=this._mismatch(r,o,s,a),n=!0):(n&&(r=this._verifyReinsertion(r,o,s,a)),Object.is(r.item,o)||this._addIdentityChange(r,o)),r=r._next}else i=0,_y(e,a=>{s=this._trackByFn(i,a),r===null||!Object.is(r.trackById,s)?(r=this._mismatch(r,a,s,i),n=!0):(n&&(r=this._verifyReinsertion(r,a,s,i)),Object.is(r.item,a)||this._addIdentityChange(r,a)),r=r._next,i++}),this.length=i;return this._truncate(r),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,r,n,i){let o;return e===null?o=this._itTail:(o=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._reinsertAfter(e,o,i)):(e=this._linkedRecords===null?null:this._linkedRecords.get(n,i),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._moveAfter(e,o,i)):e=this._addAfter(new ua(r,n),o,i)),e}_verifyReinsertion(e,r,n,i){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return o!==null?e=this._reinsertAfter(o,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}_truncate(e){for(;e!==null;){let r=e._next;this._addToRemovals(this._unlink(e)),e=r}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,r,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let i=e._prevRemoved,o=e._nextRemoved;return i===null?this._removalsHead=o:i._nextRemoved=o,o===null?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(e,r,n),this._addToMoves(e,n),e}_moveAfter(e,r,n){return this._unlink(e),this._insertAfter(e,r,n),this._addToMoves(e,n),e}_addAfter(e,r,n){return this._insertAfter(e,r,n),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,r,n){let i=r===null?this._itHead:r._next;return e._next=i,e._prev=r,i===null?this._itTail=e:i._prev=e,r===null?this._itHead=e:r._next=e,this._linkedRecords===null&&(this._linkedRecords=new Li),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let r=e._prev,n=e._next;return r===null?this._itHead=n:r._next=n,n===null?this._itTail=r:n._prev=r,e}_addToMoves(e,r){return e.previousIndex===r||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Li),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,r){return e.item=r,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},ua=class{constructor(e,r){this.item=e,this.trackById=r,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},ca=class{constructor(){this._head=null,this._tail=null}add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,r){let n;for(n=this._head;n!==null;n=n._nextDup)if((r===null||r<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){let r=e._prevDup,n=e._nextDup;return r===null?this._head=n:r._nextDup=n,n===null?this._tail=r:n._prevDup=r,this._head===null}},Li=class{constructor(){this.map=new Map}put(e){let r=e.trackById,n=this.map.get(r);n||(n=new ca,this.map.set(r,n)),n.add(e)}get(e,r){let n=e,i=this.map.get(n);return i?i.get(e,r):null}remove(e){let r=e.trackById;return this.map.get(r).remove(e)&&this.map.delete(r),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function pl(t,e,r){let n=t.previousIndex;if(n===null)return n;let i=0;return r&&n<r.length&&(i=r[n]),n+e+i}function gl(){return new Ja([new sa])}var Ja=(()=>{let e=class e{constructor(n){this.factories=n}static create(n,i){if(i!=null){let o=i.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||gl()),deps:[[e,new Ml,new fa]]}}find(n){let i=this.factories.find(o=>o.supports(n));if(i!=null)return i;throw new v(901,!1)}};e.\u0275prov=y({token:e,providedIn:"root",factory:gl});let t=e;return t})();function Ef(t){try{let{rootComponent:e,appProviders:r,platformProviders:n}=t,i=bD(n),o=[vD({}),{provide:Jn,useExisting:wD},...r||[]],a=new Fi({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1}).injector,u=a.get(Z);return u.run(()=>{a.resolveInjectorInitializers();let c=a.get(We,null),l;u.runOutsideAngular(()=>{l=u.onError.subscribe({next:f=>{c.handleError(f)}})});let d=()=>a.destroy(),h=i.get(wf);return h.add(d),a.onDestroy(()=>{l.unsubscribe(),h.delete(d)}),pD(c,u,()=>{let f=a.get(Cf);return f.runInitializers(),f.donePromise.then(()=>{let p=a.get(Ka,ki);nD(p||ki);let C=a.get(Tn);return e!==void 0&&C.bootstrap(e),C})})})}catch(e){return Promise.reject(e)}}function no(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}var Sf=null;function Je(){return Sf}function Tf(t){Sf??=t}var ro=class{};var De=new w(""),xf=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:()=>m(ND),providedIn:"platform"});let t=e;return t})();var ND=(()=>{let e=class e extends xf{constructor(){super(),this._doc=m(De),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Je().getBaseHref(this._doc)}onPopState(n){let i=Je().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",n,!1),()=>i.removeEventListener("popstate",n)}onHashChange(n){let i=Je().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",n,!1),()=>i.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,i,o){this._history.pushState(n,i,o)}replaceState(n,i,o){this._history.replaceState(n,i,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:()=>new e,providedIn:"platform"});let t=e;return t})();function Af(t,e){if(t.length==0)return e;if(e.length==0)return t;let r=0;return t.endsWith("/")&&r++,e.startsWith("/")&&r++,r==2?t+e.substring(1):r==1?t+e:t+"/"+e}function If(t){let e=t.match(/#|\?|$/),r=e&&e.index||t.length,n=r-(t[r-1]==="/"?1:0);return t.slice(0,n)+t.slice(r)}function Vt(t){return t&&t[0]!=="?"?"?"+t:t}var oo=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:()=>m(Nf),providedIn:"root"});let t=e;return t})(),RD=new w(""),Nf=(()=>{let e=class e extends oo{constructor(n,i){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??m(De).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 Af(this._baseHref,n)}path(n=!1){let i=this._platformLocation.pathname+Vt(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${i}${o}`:i}pushState(n,i,o,s){let a=this.prepareExternalUrl(o+Vt(s));this._platformLocation.pushState(n,i,a)}replaceState(n,i,o,s){let a=this.prepareExternalUrl(o+Vt(s));this._platformLocation.replaceState(n,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(i){return new(i||e)(x(xf),x(RD,8))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var lr=(()=>{let e=class e{constructor(n){this._subject=new U,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let i=this._locationStrategy.getBaseHref();this._basePath=PD(If(bf(i))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,i=""){return this.path()==this.normalize(n+Vt(i))}normalize(n){return e.stripTrailingSlash(FD(this._basePath,bf(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,i="",o=null){this._locationStrategy.pushState(o,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Vt(i)),o)}replaceState(n,i="",o=null){this._locationStrategy.replaceState(o,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Vt(i)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{let i=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",i){this._urlChangeListeners.forEach(o=>o(n,i))}subscribe(n,i,o){return this._subject.subscribe({next:n,error:i,complete:o})}};e.normalizeQueryParams=Vt,e.joinWithSlash=Af,e.stripTrailingSlash=If,e.\u0275fac=function(i){return new(i||e)(x(oo))},e.\u0275prov=y({token:e,factory:()=>OD(),providedIn:"root"});let t=e;return t})();function OD(){return new lr(x(oo))}function FD(t,e){if(!t||!e.startsWith(t))return e;let r=e.substring(t.length);return r===""||["/",";","?","#"].includes(r[0])?r:e}function bf(t){return t.replace(/\/index.html$/,"")}function PD(t){if(new RegExp("^(https?:)?//").test(t)){let[,r]=t.split(/\/\/[^\/]+/);return r}return t}function Rf(t,e){e=encodeURIComponent(e);for(let r of t.split(";")){let n=r.indexOf("="),[i,o]=n==-1?[r,""]:[r.slice(0,n),r.slice(n+1)];if(i.trim()===e)return decodeURIComponent(o)}return null}var eu=class{constructor(e,r,n,i){this.$implicit=e,this.ngForOf=r,this.index=n,this.count=i}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},Of=(()=>{let e=class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,i,o){this._viewContainer=n,this._template=i,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;if(!this._differ&&n)if(0)try{}catch{}else this._differ=this._differs.find(n).create(this.ngForTrackBy)}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let i=this._viewContainer;n.forEachOperation((o,s,a)=>{if(o.previousIndex==null)i.createEmbeddedView(this._template,new eu(o.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)i.remove(s===null?void 0:s);else if(s!==null){let u=i.get(s);i.move(u,a),Mf(u,o)}});for(let o=0,s=i.length;o<s;o++){let u=i.get(o).context;u.index=o,u.count=s,u.ngForOf=this._ngForOf}n.forEachIdentityChange(o=>{let s=i.get(o.currentIndex);Mf(s,o)})}static ngTemplateContextGuard(n,i){return!0}};e.\u0275fac=function(i){return new(i||e)(P(Sn),P(Xi),P(Ja))},e.\u0275dir=ie({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let t=e;return t})();function Mf(t,e){t.context.$implicit=e.item}var Ff=(()=>{let e=class e{constructor(n,i){this._viewContainer=n,this._context=new tu,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){_f("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){_f("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,i){return!0}};e.\u0275fac=function(i){return new(i||e)(P(Sn),P(Xi))},e.\u0275dir=ie({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),tu=class{constructor(){this.$implicit=null,this.ngIf=null}};function _f(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${ne(e)}'.`)}var jt=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Ot({type:e}),e.\u0275inj=Rt({});let t=e;return t})(),Pf="browser",kD="server";function ru(t){return t===kD}var io=class{};var su=class extends ro{constructor(){super(...arguments),this.supportsDOMEvents=!0}},au=class t extends su{static makeCurrent(){Tf(new t)}onAndCancel(e,r,n){return e.addEventListener(r,n),()=>{e.removeEventListener(r,n)}}dispatchEvent(e,r){e.dispatchEvent(r)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,r){return r=r||this.getDefaultDocument(),r.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,r){return r==="window"?window:r==="document"?e:r==="body"?e.body:null}getBaseHref(e){let r=VD();return r==null?null:jD(r)}resetBaseElement(){dr=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return Rf(document.cookie,e)}},dr=null;function VD(){return dr=dr||document.querySelector("base"),dr?dr.getAttribute("href"):null}function jD(t){return new URL(t,document.baseURI).pathname}var $D=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),uu=new w(""),jf=(()=>{let e=class e{constructor(n,i){this._zone=i,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,i,o){return this._findPluginFor(i).addEventListener(n,i,o)}getZone(){return this._zone}_findPluginFor(n){let i=this._eventNameToPlugin.get(n);if(i)return i;if(i=this._plugins.find(s=>s.supports(n)),!i)throw new v(5101,!1);return this._eventNameToPlugin.set(n,i),i}};e.\u0275fac=function(i){return new(i||e)(x(uu),x(Z))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),so=class{constructor(e){this._doc=e}},iu="ng-app-id",$f=(()=>{let e=class e{constructor(n,i,o,s={}){this.doc=n,this.appId=i,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=ru(s),this.resetHostNodes()}addStyles(n){for(let i of n)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(n){for(let i of n)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(i=>i.remove()),n.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let i of this.getAllStyles())this.addStyleToHost(n,i)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let i of this.hostNodes)this.addStyleToHost(i,n)}onStyleRemoved(n){let i=this.styleRef;i.get(n)?.elements?.forEach(o=>o.remove()),i.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${iu}="${this.appId}"]`);if(n?.length){let i=new Map;return n.forEach(o=>{o.textContent!=null&&i.set(o.textContent,o)}),i}return null}changeUsageCount(n,i){let o=this.styleRef;if(o.has(n)){let s=o.get(n);return s.usage+=i,s.usage}return o.set(n,{usage:i,elements:[]}),i}getStyleElement(n,i){let o=this.styleNodesInDOM,s=o?.get(i);if(s?.parentNode===n)return o.delete(i),s.removeAttribute(iu),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(iu,this.appId),n.appendChild(a),a}}addStyleToHost(n,i){let o=this.getStyleElement(n,i),s=this.styleRef,a=s.get(i)?.elements;a?a.push(o):s.set(i,{elements:[o],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(i){return new(i||e)(x(De),x(Ma),x(Sa,8),x(Mn))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),ou={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"},lu=/%COMP%/g,Bf="%COMP%",BD=`_nghost-${Bf}`,UD=`_ngcontent-${Bf}`,HD=!0,zD=new w("",{providedIn:"root",factory:()=>HD});function GD(t){return UD.replace(lu,t)}function WD(t){return BD.replace(lu,t)}function Uf(t,e){return e.map(r=>r.replace(lu,t))}var kf=(()=>{let e=class e{constructor(n,i,o,s,a,u,c,l=null){this.eventManager=n,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=u,this.ngZone=c,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=ru(u),this.defaultRenderer=new fr(n,a,c,this.platformIsServer)}createRenderer(n,i){if(!n||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===Pe.ShadowDom&&(i=O(g({},i),{encapsulation:Pe.Emulated}));let o=this.getOrCreateRenderer(n,i);return o instanceof ao?o.applyToHost(n):o instanceof hr&&o.applyStyles(),o}getOrCreateRenderer(n,i){let o=this.rendererByCompId,s=o.get(i.id);if(!s){let a=this.doc,u=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,h=this.platformIsServer;switch(i.encapsulation){case Pe.Emulated:s=new ao(c,l,i,this.appId,d,a,u,h);break;case Pe.ShadowDom:return new cu(c,l,n,i,a,u,this.nonce,h);default:s=new hr(c,l,i,d,a,u,h);break}o.set(i.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(i){return new(i||e)(x(jf),x($f),x(Ma),x(zD),x(De),x(Mn),x(Z),x(Sa))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),fr=class{constructor(e,r,n,i){this.eventManager=e,this.doc=r,this.ngZone=n,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,r){return r?this.doc.createElementNS(ou[r]||r,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,r){(Lf(e)?e.content:e).appendChild(r)}insertBefore(e,r,n){e&&(Lf(e)?e.content:e).insertBefore(r,n)}removeChild(e,r){e&&e.removeChild(r)}selectRootElement(e,r){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new v(-5104,!1);return r||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,r,n,i){if(i){r=i+":"+r;let o=ou[i];o?e.setAttributeNS(o,r,n):e.setAttribute(r,n)}else e.setAttribute(r,n)}removeAttribute(e,r,n){if(n){let i=ou[n];i?e.removeAttributeNS(i,r):e.removeAttribute(`${n}:${r}`)}else e.removeAttribute(r)}addClass(e,r){e.classList.add(r)}removeClass(e,r){e.classList.remove(r)}setStyle(e,r,n,i){i&(qe.DashCase|qe.Important)?e.style.setProperty(r,n,i&qe.Important?"important":""):e.style[r]=n}removeStyle(e,r,n){n&qe.DashCase?e.style.removeProperty(r):e.style[r]=""}setProperty(e,r,n){e!=null&&(e[r]=n)}setValue(e,r){e.nodeValue=r}listen(e,r,n){if(typeof e=="string"&&(e=Je().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${r}`);return this.eventManager.addEventListener(e,r,this.decoratePreventDefault(n))}decoratePreventDefault(e){return r=>{if(r==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(r)):e(r))===!1&&r.preventDefault()}}};function Lf(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var cu=class extends fr{constructor(e,r,n,i,o,s,a,u){super(e,o,s,u),this.sharedStylesHost=r,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=Uf(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(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,r){return super.appendChild(this.nodeOrShadowRoot(e),r)}insertBefore(e,r,n){return super.insertBefore(this.nodeOrShadowRoot(e),r,n)}removeChild(e,r){return super.removeChild(this.nodeOrShadowRoot(e),r)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},hr=class extends fr{constructor(e,r,n,i,o,s,a,u){super(e,o,s,a),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=i,this.styles=u?Uf(u,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},ao=class extends hr{constructor(e,r,n,i,o,s,a,u){let c=i+"-"+n.id;super(e,r,n,o,s,a,u,c),this.contentAttr=GD(c),this.hostAttr=WD(c)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,r){let n=super.createElement(e,r);return super.setAttribute(n,this.contentAttr,""),n}},qD=(()=>{let e=class e extends so{constructor(n){super(n)}supports(n){return!0}addEventListener(n,i,o){return n.addEventListener(i,o,!1),()=>this.removeEventListener(n,i,o)}removeEventListener(n,i,o){return n.removeEventListener(i,o)}};e.\u0275fac=function(i){return new(i||e)(x(De))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),Vf=["alt","control","meta","shift"],ZD={"\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"},YD={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},QD=(()=>{let e=class e extends so{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,i,o){let s=e.parseEventName(i),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Je().onAndCancel(n,s.domEventName,a))}static parseEventName(n){let i=n.toLowerCase().split("."),o=i.shift();if(i.length===0||!(o==="keydown"||o==="keyup"))return null;let s=e._normalizeKey(i.pop()),a="",u=i.indexOf("code");if(u>-1&&(i.splice(u,1),a="code."),Vf.forEach(l=>{let d=i.indexOf(l);d>-1&&(i.splice(d,1),a+=l+".")}),a+=s,i.length!=0||s.length===0)return null;let c={};return c.domEventName=o,c.fullKey=a,c}static matchEventFullKeyCode(n,i){let o=ZD[n.key]||n.key,s="";return i.indexOf("code.")>-1&&(o=n.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),Vf.forEach(a=>{if(a!==o){let u=YD[a];u(n)&&(s+=a+".")}}),s+=o,s===i)}static eventCallback(n,i,o){return s=>{e.matchEventFullKeyCode(s,n)&&o.runGuarded(()=>i(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(i){return new(i||e)(x(De))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})();function Hf(t,e){return Ef(g({rootComponent:t},KD(e)))}function KD(t){return{appProviders:[...nC,...t?.providers??[]],platformProviders:tC}}function JD(){au.makeCurrent()}function XD(){return new We}function eC(){return Nd(document),document}var tC=[{provide:Mn,useValue:Pf},{provide:_a,useValue:JD,multi:!0},{provide:De,useFactory:eC,deps:[]}];var nC=[{provide:$i,useValue:"root"},{provide:We,useFactory:XD,deps:[]},{provide:uu,useClass:qD,multi:!0,deps:[De,Z,Mn]},{provide:uu,useClass:QD,multi:!0,deps:[De]},kf,$f,jf,{provide:Cn,useExisting:kf},{provide:io,useClass:$D,deps:[]},[]];var zf=(()=>{let e=class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};e.\u0275fac=function(i){return new(i||e)(x(De))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var b="primary",Ar=Symbol("RouteTitle"),gu=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r[0]:r}return null}getAll(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r:[r]}return[]}get keys(){return Object.keys(this.params)}};function Fn(t){return new gu(t)}function oC(t,e,r){let n=r.path.split("/");if(n.length>t.length||r.pathMatch==="full"&&(e.hasChildren()||n.length<t.length))return null;let i={};for(let o=0;o<n.length;o++){let s=n[o],a=t[o];if(s[0]===":")i[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:t.slice(0,n.length),posParams:i}}function sC(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(!je(t[r],e[r]))return!1;return!0}function je(t,e){let r=t?mu(t):void 0,n=e?mu(e):void 0;if(!r||!n||r.length!=n.length)return!1;let i;for(let o=0;o<r.length;o++)if(i=r[o],!Jf(t[i],e[i]))return!1;return!0}function mu(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function Jf(t,e){if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;let r=[...t].sort(),n=[...e].sort();return r.every((i,o)=>n[o]===i)}else return t===e}function Xf(t){return t.length>0?t[t.length-1]:null}function yt(t){return es(t)?t:kt(t)?B(Promise.resolve(t)):I(t)}var aC={exact:th,subset:nh},eh={exact:uC,subset:cC,ignored:()=>!0};function Gf(t,e,r){return aC[r.paths](t.root,e.root,r.matrixParams)&&eh[r.queryParams](t.queryParams,e.queryParams)&&!(r.fragment==="exact"&&t.fragment!==e.fragment)}function uC(t,e){return je(t,e)}function th(t,e,r){if(!Bt(t.segments,e.segments)||!lo(t.segments,e.segments,r)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let n in e.children)if(!t.children[n]||!th(t.children[n],e.children[n],r))return!1;return!0}function cC(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(r=>Jf(t[r],e[r]))}function nh(t,e,r){return rh(t,e,e.segments,r)}function rh(t,e,r,n){if(t.segments.length>r.length){let i=t.segments.slice(0,r.length);return!(!Bt(i,r)||e.hasChildren()||!lo(i,r,n))}else if(t.segments.length===r.length){if(!Bt(t.segments,r)||!lo(t.segments,r,n))return!1;for(let i in e.children)if(!t.children[i]||!nh(t.children[i],e.children[i],n))return!1;return!0}else{let i=r.slice(0,t.segments.length),o=r.slice(t.segments.length);return!Bt(t.segments,i)||!lo(t.segments,i,n)||!t.children[b]?!1:rh(t.children[b],e,o,n)}}function lo(t,e,r){return e.every((n,i)=>eh[r](t[i].parameters,n.parameters))}var vt=class{constructor(e=new V([],{}),r={},n=null){this.root=e,this.queryParams=r,this.fragment=n}get queryParamMap(){return this._queryParamMap??=Fn(this.queryParams),this._queryParamMap}toString(){return fC.serialize(this)}},V=class{constructor(e,r){this.segments=e,this.children=r,this.parent=null,Object.values(r).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return fo(this)}},$t=class{constructor(e,r){this.path=e,this.parameters=r}get parameterMap(){return this._parameterMap??=Fn(this.parameters),this._parameterMap}toString(){return oh(this)}};function lC(t,e){return Bt(t,e)&&t.every((r,n)=>je(r.parameters,e[n].parameters))}function Bt(t,e){return t.length!==e.length?!1:t.every((r,n)=>r.path===e[n].path)}function dC(t,e){let r=[];return Object.entries(t.children).forEach(([n,i])=>{n===b&&(r=r.concat(e(i,n)))}),Object.entries(t.children).forEach(([n,i])=>{n!==b&&(r=r.concat(e(i,n)))}),r}var Uu=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:()=>new Cr,providedIn:"root"});let t=e;return t})(),Cr=class{parse(e){let r=new yu(e);return new vt(r.parseRootSegment(),r.parseQueryParams(),r.parseFragment())}serialize(e){let r=`/${pr(e.root,!0)}`,n=gC(e.queryParams),i=typeof e.fragment=="string"?`#${hC(e.fragment)}`:"";return`${r}${n}${i}`}},fC=new Cr;function fo(t){return t.segments.map(e=>oh(e)).join("/")}function pr(t,e){if(!t.hasChildren())return fo(t);if(e){let r=t.children[b]?pr(t.children[b],!1):"",n=[];return Object.entries(t.children).forEach(([i,o])=>{i!==b&&n.push(`${i}:${pr(o,!1)}`)}),n.length>0?`${r}(${n.join("//")})`:r}else{let r=dC(t,(n,i)=>i===b?[pr(t.children[b],!1)]:[`${i}:${pr(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[b]!=null?`${fo(t)}/${r[0]}`:`${fo(t)}/(${r.join("//")})`}}function ih(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function uo(t){return ih(t).replace(/%3B/gi,";")}function hC(t){return encodeURI(t)}function vu(t){return ih(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ho(t){return decodeURIComponent(t)}function Wf(t){return ho(t.replace(/\+/g,"%20"))}function oh(t){return`${vu(t.path)}${pC(t.parameters)}`}function pC(t){return Object.entries(t).map(([e,r])=>`;${vu(e)}=${vu(r)}`).join("")}function gC(t){let e=Object.entries(t).map(([r,n])=>Array.isArray(n)?n.map(i=>`${uo(r)}=${uo(i)}`).join("&"):`${uo(r)}=${uo(n)}`).filter(r=>r);return e.length?`?${e.join("&")}`:""}var mC=/^[^\/()?;#]+/;function du(t){let e=t.match(mC);return e?e[0]:""}var vC=/^[^\/()?;=#]+/;function yC(t){let e=t.match(vC);return e?e[0]:""}var DC=/^[^=?&#]+/;function CC(t){let e=t.match(DC);return e?e[0]:""}var wC=/^[^&#]+/;function EC(t){let e=t.match(wC);return e?e[0]:""}var yu=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new V([],{}):new V([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(r).length>0)&&(n[b]=new V(e,r)),n}parseSegment(){let e=du(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new v(4009,!1);return this.capture(e),new $t(ho(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let r=yC(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let i=du(this.remaining);i&&(n=i,this.capture(n))}e[ho(r)]=ho(n)}parseQueryParam(e){let r=CC(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let s=EC(this.remaining);s&&(n=s,this.capture(n))}let i=Wf(r),o=Wf(n);if(e.hasOwnProperty(i)){let s=e[i];Array.isArray(s)||(s=[s],e[i]=s),s.push(o)}else e[i]=o}parseParens(e){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=du(this.remaining),i=this.remaining[n.length];if(i!=="/"&&i!==")"&&i!==";")throw new v(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=b);let s=this.parseChildren();r[o]=Object.keys(s).length===1?s[b]:new V([],s),this.consumeOptional("//")}return r}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new v(4011,!1)}};function sh(t){return t.segments.length>0?new V([],{[b]:t}):t}function ah(t){let e={};for(let[n,i]of Object.entries(t.children)){let o=ah(i);if(n===b&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))e[s]=a;else(o.segments.length>0||o.hasChildren())&&(e[n]=o)}let r=new V(t.segments,e);return IC(r)}function IC(t){if(t.numberOfChildren===1&&t.children[b]){let e=t.children[b];return new V(t.segments.concat(e.segments),e.children)}return t}function wr(t){return t instanceof vt}function bC(t,e,r=null,n=null){let i=uh(t);return ch(i,e,r,n)}function uh(t){let e;function r(o){let s={};for(let u of o.children){let c=r(u);s[u.outlet]=c}let a=new V(o.url,s);return o===t&&(e=a),a}let n=r(t.root),i=sh(n);return e??i}function ch(t,e,r,n){let i=t;for(;i.parent;)i=i.parent;if(e.length===0)return fu(i,i,i,r,n);let o=MC(e);if(o.toRoot())return fu(i,i,new V([],{}),r,n);let s=_C(o,i,t),a=s.processChildren?vr(s.segmentGroup,s.index,o.commands):dh(s.segmentGroup,s.index,o.commands);return fu(i,s.segmentGroup,a,r,n)}function po(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Er(t){return typeof t=="object"&&t!=null&&t.outlets}function fu(t,e,r,n,i){let o={};n&&Object.entries(n).forEach(([u,c])=>{o[u]=Array.isArray(c)?c.map(l=>`${l}`):`${c}`});let s;t===e?s=r:s=lh(t,e,r);let a=sh(ah(s));return new vt(a,o,i)}function lh(t,e,r){let n={};return Object.entries(t.children).forEach(([i,o])=>{o===e?n[i]=r:n[i]=lh(o,e,r)}),new V(t.segments,n)}var go=class{constructor(e,r,n){if(this.isAbsolute=e,this.numberOfDoubleDots=r,this.commands=n,e&&n.length>0&&po(n[0]))throw new v(4003,!1);let i=n.find(Er);if(i&&i!==Xf(n))throw new v(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function MC(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new go(!0,0,t);let e=0,r=!1,n=t.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===""?r=!0:a===".."?e++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new go(r,e,n)}var Nn=class{constructor(e,r,n){this.segmentGroup=e,this.processChildren=r,this.index=n}};function _C(t,e,r){if(t.isAbsolute)return new Nn(e,!0,0);if(!r)return new Nn(e,!1,NaN);if(r.parent===null)return new Nn(r,!0,0);let n=po(t.commands[0])?0:1,i=r.segments.length-1+n;return SC(r,i,t.numberOfDoubleDots)}function SC(t,e,r){let n=t,i=e,o=r;for(;o>i;){if(o-=i,n=n.parent,!n)throw new v(4005,!1);i=n.segments.length}return new Nn(n,!1,i-o)}function TC(t){return Er(t[0])?t[0].outlets:{[b]:t}}function dh(t,e,r){if(t??=new V([],{}),t.segments.length===0&&t.hasChildren())return vr(t,e,r);let n=xC(t,e,r),i=r.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){let o=new V(t.segments.slice(0,n.pathIndex),{});return o.children[b]=new V(t.segments.slice(n.pathIndex),t.children),vr(o,0,i)}else return n.match&&i.length===0?new V(t.segments,{}):n.match&&!t.hasChildren()?Du(t,e,r):n.match?vr(t,0,i):Du(t,e,r)}function vr(t,e,r){if(r.length===0)return new V(t.segments,{});{let n=TC(r),i={};if(Object.keys(n).some(o=>o!==b)&&t.children[b]&&t.numberOfChildren===1&&t.children[b].segments.length===0){let o=vr(t.children[b],e,r);return new V(t.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=dh(t.children[o],e,s))}),Object.entries(t.children).forEach(([o,s])=>{n[o]===void 0&&(i[o]=s)}),new V(t.segments,i)}}function xC(t,e,r){let n=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(n>=r.length)return o;let s=t.segments[i],a=r[n];if(Er(a))break;let u=`${a}`,c=n<r.length-1?r[n+1]:null;if(i>0&&u===void 0)break;if(u&&c&&typeof c=="object"&&c.outlets===void 0){if(!Zf(u,c,s))return o;n+=2}else{if(!Zf(u,{},s))return o;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function Du(t,e,r){let n=t.segments.slice(0,e),i=0;for(;i<r.length;){let o=r[i];if(Er(o)){let u=AC(o.outlets);return new V(n,u)}if(i===0&&po(r[0])){let u=t.segments[e];n.push(new $t(u.path,qf(r[0]))),i++;continue}let s=Er(o)?o.outlets[b]:`${o}`,a=i<r.length-1?r[i+1]:null;s&&a&&po(a)?(n.push(new $t(s,qf(a))),i+=2):(n.push(new $t(s,{})),i++)}return new V(n,{})}function AC(t){let e={};return Object.entries(t).forEach(([r,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(e[r]=Du(new V([],{}),0,n))}),e}function qf(t){let e={};return Object.entries(t).forEach(([r,n])=>e[r]=`${n}`),e}function Zf(t,e,r){return t==r.path&&je(e,r.parameters)}var yr="imperative",ee=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(ee||{}),Ce=class{constructor(e,r){this.id=e,this.url=r}},Ir=class extends Ce{constructor(e,r,n="imperative",i=null){super(e,r),this.type=ee.NavigationStart,this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Ut=class extends Ce{constructor(e,r,n){super(e,r),this.urlAfterRedirects=n,this.type=ee.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},de=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(de||{}),Cu=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Cu||{}),Xe=class extends Ce{constructor(e,r,n,i){super(e,r),this.reason=n,this.code=i,this.type=ee.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Ht=class extends Ce{constructor(e,r,n,i){super(e,r),this.reason=n,this.code=i,this.type=ee.NavigationSkipped}},br=class extends Ce{constructor(e,r,n,i){super(e,r),this.error=n,this.target=i,this.type=ee.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},mo=class extends Ce{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=ee.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},wu=class extends Ce{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=ee.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Eu=class extends Ce{constructor(e,r,n,i,o){super(e,r),this.urlAfterRedirects=n,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})`}},Iu=class extends Ce{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=ee.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},bu=class extends Ce{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=ee.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Mu=class{constructor(e){this.route=e,this.type=ee.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},_u=class{constructor(e){this.route=e,this.type=ee.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Su=class{constructor(e){this.snapshot=e,this.type=ee.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Tu=class{constructor(e){this.snapshot=e,this.type=ee.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},xu=class{constructor(e){this.snapshot=e,this.type=ee.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Au=class{constructor(e){this.snapshot=e,this.type=ee.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var Mr=class{},Pn=class{constructor(e,r){this.url=e,this.navigationBehaviorOptions=r}};var Nu=class{constructor(e){this.injector=e,this.outlet=null,this.route=null,this.children=new Io(this.injector),this.attachRef=null}},Io=(()=>{let e=class e{constructor(n){this.parentInjector=n,this.contexts=new Map}onChildOutletCreated(n,i){let o=this.getOrCreateContext(n);o.outlet=i,this.contexts.set(n,o)}onChildOutletDestroyed(n){let i=this.getContext(n);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let i=this.getContext(n);return i||(i=new Nu(this.parentInjector),this.contexts.set(n,i)),i}getContext(n){return this.contexts.get(n)||null}};e.\u0275fac=function(i){return new(i||e)(x(me))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),vo=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let r=this.pathFromRoot(e);return r.length>1?r[r.length-2]:null}children(e){let r=Ru(e,this._root);return r?r.children.map(n=>n.value):[]}firstChild(e){let r=Ru(e,this._root);return r&&r.children.length>0?r.children[0].value:null}siblings(e){let r=Ou(e,this._root);return r.length<2?[]:r[r.length-2].children.map(i=>i.value).filter(i=>i!==e)}pathFromRoot(e){return Ou(e,this._root).map(r=>r.value)}};function Ru(t,e){if(t===e.value)return e;for(let r of e.children){let n=Ru(t,r);if(n)return n}return null}function Ou(t,e){if(t===e.value)return[e];for(let r of e.children){let n=Ou(t,r);if(n.length)return n.unshift(e),n}return[]}var le=class{constructor(e,r){this.value=e,this.children=r}toString(){return`TreeNode(${this.value})`}};function An(t){let e={};return t&&t.children.forEach(r=>e[r.value.outlet]=r),e}var yo=class extends vo{constructor(e,r){super(e),this.snapshot=r,Hu(this,e)}toString(){return this.snapshot.toString()}};function fh(t){let e=NC(t),r=new J([new $t("",{})]),n=new J({}),i=new J({}),o=new J({}),s=new J(""),a=new kn(r,n,o,s,i,b,t,e.root);return a.snapshot=e.root,new yo(new le(a,[]),e)}function NC(t){let e={},r={},n={},i="",o=new Rn([],e,n,i,r,b,t,null,{});return new Co("",new le(o,[]))}var kn=class{constructor(e,r,n,i,o,s,a,u){this.urlSubject=e,this.paramsSubject=r,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=u,this.title=this.dataSubject?.pipe(_(c=>c[Ar]))??I(void 0),this.url=e,this.params=r,this.queryParams=n,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(_(e=>Fn(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(_(e=>Fn(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Do(t,e,r="emptyOnly"){let n,{routeConfig:i}=t;return e!==null&&(r==="always"||i?.path===""||!e.component&&!e.routeConfig?.loadComponent)?n={params:g(g({},e.params),t.params),data:g(g({},e.data),t.data),resolve:g(g(g(g({},t.data),e.data),i?.data),t._resolvedData)}:n={params:g({},t.params),data:g({},t.data),resolve:g(g({},t.data),t._resolvedData??{})},i&&ph(i)&&(n.resolve[Ar]=i.title),n}var Rn=class{get title(){return this.data?.[Ar]}constructor(e,r,n,i,o,s,a,u,c){this.url=e,this.params=r,this.queryParams=n,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??=Fn(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Fn(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(n=>n.toString()).join("/"),r=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${r}')`}},Co=class extends vo{constructor(e,r){super(r),this.url=e,Hu(this,r)}toString(){return hh(this._root)}};function Hu(t,e){e.value._routerState=t,e.children.forEach(r=>Hu(t,r))}function hh(t){let e=t.children.length>0?` { ${t.children.map(hh).join(", ")} } `:"";return`${t.value}${e}`}function hu(t){if(t.snapshot){let e=t.snapshot,r=t._futureSnapshot;t.snapshot=r,je(e.queryParams,r.queryParams)||t.queryParamsSubject.next(r.queryParams),e.fragment!==r.fragment&&t.fragmentSubject.next(r.fragment),je(e.params,r.params)||t.paramsSubject.next(r.params),sC(e.url,r.url)||t.urlSubject.next(r.url),je(e.data,r.data)||t.dataSubject.next(r.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Fu(t,e){let r=je(t.params,e.params)&&lC(t.url,e.url),n=!t.parent!=!e.parent;return r&&!n&&(!t.parent||Fu(t.parent,e.parent))}function ph(t){return typeof t.title=="string"||t.title===null}var RC=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=b,this.activateEvents=new U,this.deactivateEvents=new U,this.attachEvents=new U,this.detachEvents=new U,this.parentContexts=m(Io),this.location=m(Sn),this.changeDetector=m(Lt),this.inputBinder=m(zu,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:i,previousValue:o}=n.name;if(i)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new v(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new v(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new v(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,i){this.activated=n,this._activatedRoute=i,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,i){if(this.isActivated)throw new v(4013,!1);this._activatedRoute=n;let o=this.location,a=n.snapshot.component,u=this.parentContexts.getOrCreateContext(this.name).children,c=new Pu(n,u,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:c,environmentInjector:i}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=ie({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[En]});let t=e;return t})(),Pu=class t{__ngOutletInjector(e){return new t(this.route,this.childContexts,e)}constructor(e,r,n){this.route=e,this.childContexts=r,this.parent=n}get(e,r){return e===kn?this.route:e===Io?this.childContexts:this.parent.get(e,r)}},zu=new w("");function OC(t,e,r){let n=_r(t,e._root,r?r._root:void 0);return new yo(n,e)}function _r(t,e,r){if(r&&t.shouldReuseRoute(e.value,r.value.snapshot)){let n=r.value;n._futureSnapshot=e.value;let i=FC(t,e,r);return new le(n,i)}else{if(t.shouldAttach(e.value)){let o=t.retrieve(e.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>_r(t,a)),s}}let n=PC(e.value),i=e.children.map(o=>_r(t,o));return new le(n,i)}}function FC(t,e,r){return e.children.map(n=>{for(let i of r.children)if(t.shouldReuseRoute(n.value,i.value.snapshot))return _r(t,n,i);return _r(t,n)})}function PC(t){return new kn(new J(t.url),new J(t.params),new J(t.queryParams),new J(t.fragment),new J(t.data),t.outlet,t.component,t)}var Sr=class{constructor(e,r){this.redirectTo=e,this.navigationBehaviorOptions=r}},gh="ngNavigationCancelingError";function wo(t,e){let{redirectTo:r,navigationBehaviorOptions:n}=wr(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,i=mh(!1,de.Redirect);return i.url=r,i.navigationBehaviorOptions=n,i}function mh(t,e){let r=new Error(`NavigationCancelingError: ${t||""}`);return r[gh]=!0,r.cancellationCode=e,r}function kC(t){return vh(t)&&wr(t.url)}function vh(t){return!!t&&t[gh]}var LC=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=lt({type:e,selectors:[["ng-component"]],standalone:!0,features:[gt],decls:1,vars:0,template:function(i,o){i&1&&pt(0,"router-outlet")},dependencies:[RC],encapsulation:2});let t=e;return t})();function VC(t,e){return t.providers&&!t._injector&&(t._injector=Ha(t.providers,e,`Route: ${t.path}`)),t._injector??e}function Gu(t){let e=t.children&&t.children.map(Gu),r=e?O(g({},t),{children:e}):g({},t);return!r.component&&!r.loadComponent&&(e||r.loadChildren)&&r.outlet&&r.outlet!==b&&(r.component=LC),r}function Ne(t){return t.outlet||b}function jC(t,e){let r=t.filter(n=>Ne(n)===e);return r.push(...t.filter(n=>Ne(n)!==e)),r}function Nr(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let r=e.routeConfig;if(r?._loadedInjector)return r._loadedInjector;if(r?._injector)return r._injector}return null}var $C=(t,e,r,n)=>_(i=>(new ku(e,i.targetRouterState,i.currentRouterState,r,n).activate(t),i)),ku=class{constructor(e,r,n,i,o){this.routeReuseStrategy=e,this.futureState=r,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=o}activate(e){let r=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(r,n,e),hu(this.futureState.root),this.activateChildRoutes(r,n,e)}deactivateChildRoutes(e,r,n){let i=An(r);e.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],n),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(e,r,n){let i=e.value,o=r?r.value:null;if(i===o)if(i.component){let s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(e,r,s.children)}else this.deactivateChildRoutes(e,r,n);else o&&this.deactivateRouteAndItsChildren(r,n)}deactivateRouteAndItsChildren(e,r){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,r):this.deactivateRouteAndOutlet(e,r)}detachAndStoreRouteSubtree(e,r){let n=r.getContext(e.value.outlet),i=n&&e.value.component?n.children:r,o=An(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,r){let n=r.getContext(e.value.outlet),i=n&&e.value.component?n.children:r,o=An(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,r,n){let i=An(r);e.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],n),this.forwardEvent(new Au(o.value.snapshot))}),e.children.length&&this.forwardEvent(new Tu(e.value.snapshot))}activateRoutes(e,r,n){let i=e.value,o=r?r.value:null;if(hu(i),i===o)if(i.component){let s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(e,r,s.children)}else this.activateChildRoutes(e,r,n);else if(i.component){let s=n.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),hu(a.route.value),this.activateChildRoutes(e,null,s.children)}else{let a=Nr(i.snapshot);s.attachRef=null,s.route=i,s.injector=a??s.injector,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(e,null,s.children)}}else this.activateChildRoutes(e,null,n)}},Eo=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},On=class{constructor(e,r){this.component=e,this.route=r}};function BC(t,e,r){let n=t._root,i=e?e._root:null;return gr(n,i,r,[n.value])}function UC(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function Vn(t,e){let r=Symbol(),n=e.get(t,r);return n===r?typeof t=="function"&&!yl(t)?t:e.get(t):n}function gr(t,e,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=An(e);return t.children.forEach(s=>{HC(s,o[s.value.outlet],r,n.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Dr(a,r.getContext(s),i)),i}function HC(t,e,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=e?e.value:null,a=r?r.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let u=zC(s,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new Eo(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?gr(t,e,a?a.children:null,n,i):gr(t,e,r,n,i),u&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new On(a.outlet.component,s))}else s&&Dr(e,a,i),i.canActivateChecks.push(new Eo(n)),o.component?gr(t,null,a?a.children:null,n,i):gr(t,null,r,n,i);return i}function zC(t,e,r){if(typeof r=="function")return r(t,e);switch(r){case"pathParamsChange":return!Bt(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Bt(t.url,e.url)||!je(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Fu(t,e)||!je(t.queryParams,e.queryParams);case"paramsChange":default:return!Fu(t,e)}}function Dr(t,e,r){let n=An(t),i=t.value;Object.entries(n).forEach(([o,s])=>{i.component?e?Dr(s,e.children.getContext(o),r):Dr(s,null,r):Dr(s,e,r)}),i.component?e&&e.outlet&&e.outlet.isActivated?r.canDeactivateChecks.push(new On(e.outlet.component,i)):r.canDeactivateChecks.push(new On(null,i)):r.canDeactivateChecks.push(new On(null,i))}function Rr(t){return typeof t=="function"}function GC(t){return typeof t=="boolean"}function WC(t){return t&&Rr(t.canLoad)}function qC(t){return t&&Rr(t.canActivate)}function ZC(t){return t&&Rr(t.canActivateChild)}function YC(t){return t&&Rr(t.canDeactivate)}function QC(t){return t&&Rr(t.canMatch)}function yh(t){return t instanceof Be||t?.name==="EmptyError"}var co=Symbol("INITIAL_VALUE");function Ln(){return Me(t=>si(t.map(e=>e.pipe(Ue(1),ss(co)))).pipe(_(e=>{for(let r of e)if(r!==!0){if(r===co)return co;if(r===!1||KC(r))return r}return!0}),be(e=>e!==co),Ue(1)))}function KC(t){return wr(t)||t instanceof Sr}function JC(t,e){return q(r=>{let{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=r;return s.length===0&&o.length===0?I(O(g({},r),{guardsResult:!0})):XC(s,n,i,t).pipe(q(a=>a&&GC(a)?ew(n,o,t,e):I(a)),_(a=>O(g({},r),{guardsResult:a})))})}function XC(t,e,r,n){return B(t).pipe(q(i=>ow(i.component,i.route,r,e,n)),Re(i=>i!==!0,!0))}function ew(t,e,r,n){return B(e).pipe(tn(i=>en(nw(i.route.parent,n),tw(i.route,n),iw(t,i.path,r),rw(t,i.route,r))),Re(i=>i!==!0,!0))}function tw(t,e){return t!==null&&e&&e(new xu(t)),I(!0)}function nw(t,e){return t!==null&&e&&e(new Su(t)),I(!0)}function rw(t,e,r){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return I(!0);let i=n.map(o=>ai(()=>{let s=Nr(e)??r,a=Vn(o,s),u=qC(a)?a.canActivate(e,t):Ze(s,()=>a(e,t));return yt(u).pipe(Re())}));return I(i).pipe(Ln())}function iw(t,e,r){let n=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(s=>UC(s)).filter(s=>s!==null).map(s=>ai(()=>{let a=s.guards.map(u=>{let c=Nr(s.node)??r,l=Vn(u,c),d=ZC(l)?l.canActivateChild(n,t):Ze(c,()=>l(n,t));return yt(d).pipe(Re())});return I(a).pipe(Ln())}));return I(o).pipe(Ln())}function ow(t,e,r,n,i){let o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||o.length===0)return I(!0);let s=o.map(a=>{let u=Nr(e)??i,c=Vn(a,u),l=YC(c)?c.canDeactivate(t,e,r,n):Ze(u,()=>c(t,e,r,n));return yt(l).pipe(Re())});return I(s).pipe(Ln())}function sw(t,e,r,n){let i=e.canLoad;if(i===void 0||i.length===0)return I(!0);let o=i.map(s=>{let a=Vn(s,t),u=WC(a)?a.canLoad(e,r):Ze(t,()=>a(e,r));return yt(u)});return I(o).pipe(Ln(),Dh(n))}function Dh(t){return Qo(X(e=>{if(typeof e!="boolean")throw wo(t,e)}),_(e=>e===!0))}function aw(t,e,r,n){let i=e.canMatch;if(!i||i.length===0)return I(!0);let o=i.map(s=>{let a=Vn(s,t),u=QC(a)?a.canMatch(e,r):Ze(t,()=>a(e,r));return yt(u)});return I(o).pipe(Ln(),Dh(n))}var Tr=class{constructor(e){this.segmentGroup=e||null}},xr=class extends Error{constructor(e){super(),this.urlTree=e}};function xn(t){return Xt(new Tr(t))}function uw(t){return Xt(new v(4e3,!1))}function cw(t){return Xt(mh(!1,de.GuardRejected))}var Lu=class{constructor(e,r){this.urlSerializer=e,this.urlTree=r}lineralizeSegments(e,r){let n=[],i=r.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return I(n);if(i.numberOfChildren>1||!i.children[b])return uw(`${e.redirectTo}`);i=i.children[b]}}applyRedirectCommands(e,r,n,i,o){if(typeof r!="string"){let a=r,{queryParams:u,fragment:c,routeConfig:l,url:d,outlet:h,params:f,data:p,title:C}=i,R=Ze(o,()=>a({params:f,data:p,queryParams:u,fragment:c,routeConfig:l,url:d,outlet:h,title:C}));if(R instanceof vt)throw new xr(R);r=R}let s=this.applyRedirectCreateUrlTree(r,this.urlSerializer.parse(r),e,n);if(r[0]==="/")throw new xr(s);return s}applyRedirectCreateUrlTree(e,r,n,i){let o=this.createSegmentGroup(e,r.root,n,i);return new vt(o,this.createQueryParams(r.queryParams,this.urlTree.queryParams),r.fragment)}createQueryParams(e,r){let n={};return Object.entries(e).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);n[i]=r[a]}else n[i]=o}),n}createSegmentGroup(e,r,n,i){let o=this.createSegments(e,r.segments,n,i),s={};return Object.entries(r.children).forEach(([a,u])=>{s[a]=this.createSegmentGroup(e,u,n,i)}),new V(o,s)}createSegments(e,r,n,i){return r.map(o=>o.path[0]===":"?this.findPosParam(e,o,i):this.findOrReturn(o,n))}findPosParam(e,r,n){let i=n[r.path.substring(1)];if(!i)throw new v(4001,!1);return i}findOrReturn(e,r){let n=0;for(let i of r){if(i.path===e.path)return r.splice(n),i;n++}return e}},Vu={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function lw(t,e,r,n,i){let o=Wu(t,e,r);return o.matched?(n=VC(e,n),aw(n,e,r,i).pipe(_(s=>s===!0?o:g({},Vu)))):I(o)}function Wu(t,e,r){if(e.path==="**")return dw(r);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||r.length>0)?g({},Vu):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};let i=(e.matcher||oC)(r,t,e);if(!i)return g({},Vu);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:r.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function dw(t){return{matched:!0,parameters:t.length>0?Xf(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function Yf(t,e,r,n){return r.length>0&&pw(t,r,n)?{segmentGroup:new V(e,hw(n,new V(r,t.children))),slicedSegments:[]}:r.length===0&&gw(t,r,n)?{segmentGroup:new V(t.segments,fw(t,r,n,t.children)),slicedSegments:r}:{segmentGroup:new V(t.segments,t.children),slicedSegments:r}}function fw(t,e,r,n){let i={};for(let o of r)if(bo(t,e,o)&&!n[Ne(o)]){let s=new V([],{});i[Ne(o)]=s}return g(g({},n),i)}function hw(t,e){let r={};r[b]=e;for(let n of t)if(n.path===""&&Ne(n)!==b){let i=new V([],{});r[Ne(n)]=i}return r}function pw(t,e,r){return r.some(n=>bo(t,e,n)&&Ne(n)!==b)}function gw(t,e,r){return r.some(n=>bo(t,e,n))}function bo(t,e,r){return(t.hasChildren()||e.length>0)&&r.pathMatch==="full"?!1:r.path===""}function mw(t,e,r,n){return Ne(t)!==n&&(n===b||!bo(e,r,t))?!1:Wu(e,t,r).matched}function vw(t,e,r){return e.length===0&&!t.children[r]}var ju=class{};function yw(t,e,r,n,i,o,s="emptyOnly"){return new $u(t,e,r,n,i,s,o).recognize()}var Dw=31,$u=class{constructor(e,r,n,i,o,s,a){this.injector=e,this.configLoader=r,this.rootComponentType=n,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Lu(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new v(4002,`'${e.segmentGroup}'`)}recognize(){let e=Yf(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(_(({children:r,rootSnapshot:n})=>{let i=new le(n,r),o=new Co("",i),s=bC(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(e){let r=new Rn([],Object.freeze({}),Object.freeze(g({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),b,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,b,r).pipe(_(n=>({children:n,rootSnapshot:r})),tt(n=>{if(n instanceof xr)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof Tr?this.noMatchError(n):n}))}processSegmentGroup(e,r,n,i,o){return n.segments.length===0&&n.hasChildren()?this.processChildren(e,r,n,o):this.processSegment(e,r,n,n.segments,i,!0,o).pipe(_(s=>s instanceof le?[s]:[]))}processChildren(e,r,n,i){let o=[];for(let s of Object.keys(n.children))s==="primary"?o.unshift(s):o.push(s);return B(o).pipe(tn(s=>{let a=n.children[s],u=jC(r,s);return this.processSegmentGroup(e,u,a,s,i)}),os((s,a)=>(s.push(...a),s)),nt(null),is(),q(s=>{if(s===null)return xn(n);let a=Ch(s);return Cw(a),I(a)}))}processSegment(e,r,n,i,o,s,a){return B(r).pipe(tn(u=>this.processSegmentAgainstRoute(u._injector??e,r,u,n,i,o,s,a).pipe(tt(c=>{if(c instanceof Tr)return I(null);throw c}))),Re(u=>!!u),tt(u=>{if(yh(u))return vw(n,i,o)?I(new ju):xn(n);throw u}))}processSegmentAgainstRoute(e,r,n,i,o,s,a,u){return mw(n,i,o,s)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(e,i,n,o,s,u):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,i,r,n,o,s,u):xn(i):xn(i)}expandSegmentAgainstRouteUsingRedirect(e,r,n,i,o,s,a){let{matched:u,parameters:c,consumedSegments:l,positionalParamSegments:d,remainingSegments:h}=Wu(r,i,o);if(!u)return xn(r);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Dw&&(this.allowRedirects=!1));let f=new Rn(o,c,Object.freeze(g({},this.urlTree.queryParams)),this.urlTree.fragment,Qf(i),Ne(i),i.component??i._loadedComponent??null,i,Kf(i)),p=Do(f,a,this.paramsInheritanceStrategy);f.params=Object.freeze(p.params),f.data=Object.freeze(p.data);let C=this.applyRedirects.applyRedirectCommands(l,i.redirectTo,d,f,e);return this.applyRedirects.lineralizeSegments(i,C).pipe(q(R=>this.processSegment(e,n,r,R.concat(h),s,!1,a)))}matchSegmentAgainstRoute(e,r,n,i,o,s){let a=lw(r,n,i,e,this.urlSerializer);return n.path==="**"&&(r.children={}),a.pipe(Me(u=>u.matched?(e=n._injector??e,this.getChildConfig(e,n,i).pipe(Me(({routes:c})=>{let l=n._loadedInjector??e,{parameters:d,consumedSegments:h,remainingSegments:f}=u,p=new Rn(h,d,Object.freeze(g({},this.urlTree.queryParams)),this.urlTree.fragment,Qf(n),Ne(n),n.component??n._loadedComponent??null,n,Kf(n)),C=Do(p,s,this.paramsInheritanceStrategy);p.params=Object.freeze(C.params),p.data=Object.freeze(C.data);let{segmentGroup:R,slicedSegments:k}=Yf(r,h,f,c);if(k.length===0&&R.hasChildren())return this.processChildren(l,c,R,p).pipe(_(W=>new le(p,W)));if(c.length===0&&k.length===0)return I(new le(p,[]));let we=Ne(n)===o;return this.processSegment(l,c,R,k,we?b:o,!0,p).pipe(_(W=>new le(p,W instanceof le?[W]:[])))}))):xn(r)))}getChildConfig(e,r,n){return r.children?I({routes:r.children,injector:e}):r.loadChildren?r._loadedRoutes!==void 0?I({routes:r._loadedRoutes,injector:r._loadedInjector}):sw(e,r,n,this.urlSerializer).pipe(q(i=>i?this.configLoader.loadChildren(e,r).pipe(X(o=>{r._loadedRoutes=o.routes,r._loadedInjector=o.injector})):cw(r))):I({routes:[],injector:e})}};function Cw(t){t.sort((e,r)=>e.value.outlet===b?-1:r.value.outlet===b?1:e.value.outlet.localeCompare(r.value.outlet))}function ww(t){let e=t.value.routeConfig;return e&&e.path===""}function Ch(t){let e=[],r=new Set;for(let n of t){if(!ww(n)){e.push(n);continue}let i=e.find(o=>n.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...n.children),r.add(i)):e.push(n)}for(let n of r){let i=Ch(n.children);e.push(new le(n.value,i))}return e.filter(n=>!r.has(n))}function Qf(t){return t.data||{}}function Kf(t){return t.resolve||{}}function Ew(t,e,r,n,i,o){return q(s=>yw(t,e,r,n,s.extractedUrl,i,o).pipe(_(({state:a,tree:u})=>O(g({},s),{targetSnapshot:a,urlAfterRedirects:u}))))}function Iw(t,e){return q(r=>{let{targetSnapshot:n,guards:{canActivateChecks:i}}=r;if(!i.length)return I(r);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 wh(u))s.add(c);let a=0;return B(s).pipe(tn(u=>o.has(u)?bw(u,n,t,e):(u.data=Do(u,u.parent,t).resolve,I(void 0))),X(()=>a++),nn(1),q(u=>a===s.size?I(r):ce))})}function wh(t){let e=t.children.map(r=>wh(r)).flat();return[t,...e]}function bw(t,e,r,n){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!ph(i)&&(o[Ar]=i.title),Mw(o,t,e,n).pipe(_(s=>(t._resolvedData=s,t.data=Do(t,t.parent,r).resolve,null)))}function Mw(t,e,r,n){let i=mu(t);if(i.length===0)return I({});let o={};return B(i).pipe(q(s=>_w(t[s],e,r,n).pipe(Re(),X(a=>{if(a instanceof Sr)throw wo(new Cr,a);o[s]=a}))),nn(1),rs(o),tt(s=>yh(s)?ce:Xt(s)))}function _w(t,e,r,n){let i=Nr(e)??n,o=Vn(t,i),s=o.resolve?o.resolve(e,r):Ze(i,()=>o(e,r));return yt(s)}function pu(t){return Me(e=>{let r=t(e);return r?B(r).pipe(_(()=>e)):I(e)})}var Eh=(()=>{let e=class e{buildTitle(n){let i,o=n.root;for(;o!==void 0;)i=this.getResolvedTitleForRoute(o)??i,o=o.children.find(s=>s.outlet===b);return i}getResolvedTitleForRoute(n){return n.data[Ar]}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:()=>m(Sw),providedIn:"root"});let t=e;return t})(),Sw=(()=>{let e=class e extends Eh{constructor(n){super(),this.title=n}updateTitle(n){let i=this.buildTitle(n);i!==void 0&&this.title.setTitle(i)}};e.\u0275fac=function(i){return new(i||e)(x(zf))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),qu=new w("",{providedIn:"root",factory:()=>({})}),Zu=new w(""),Tw=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=m(Qa)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return I(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let i=yt(n.loadComponent()).pipe(_(Ih),X(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),Gn(()=>{this.componentLoaders.delete(n)})),o=new Jt(i,()=>new z).pipe(Kt());return this.componentLoaders.set(n,o),o}loadChildren(n,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return I({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let s=xw(i,this.compiler,n,this.onLoadEndListener).pipe(Gn(()=>{this.childrenLoaders.delete(i)})),a=new Jt(s,()=>new z).pipe(Kt());return this.childrenLoaders.set(i,a),a}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function xw(t,e,r,n){return yt(t.loadChildren()).pipe(_(Ih),q(i=>i instanceof er||Array.isArray(i)?I(i):B(e.compileModuleAsync(i))),_(i=>{n&&n(t);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(r).injector,s=o.get(Zu,[],{optional:!0,self:!0}).flat()),{routes:s.map(Gu),injector:o}}))}function Aw(t){return t&&typeof t=="object"&&"default"in t}function Ih(t){return Aw(t)?t.default:t}var Yu=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:()=>m(Nw),providedIn:"root"});let t=e;return t})(),Nw=(()=>{let e=class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,i){return n}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Rw=new w("");var Ow=new w(""),Fw=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new z,this.transitionAbortSubject=new z,this.configLoader=m(Tw),this.environmentInjector=m(me),this.urlSerializer=m(Uu),this.rootContexts=m(Io),this.location=m(lr),this.inputBindingEnabled=m(zu,{optional:!0})!==null,this.titleStrategy=m(Eh),this.options=m(qu,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=m(Yu),this.createViewTransition=m(Rw,{optional:!0}),this.navigationErrorHandler=m(Ow,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>I(void 0),this.rootComponentType=null;let n=o=>this.events.next(new Mu(o)),i=o=>this.events.next(new _u(o));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let i=++this.navigationId;this.transitions?.next(O(g(g({},this.transitions.value),n),{id:i}))}setupNavigations(n,i,o){return this.transitions=new J({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:yr,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(be(s=>s.id!==0),_(s=>O(g({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),Me(s=>{let a=!1,u=!1;return I(s).pipe(Me(c=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",de.SupersededByNewNavigation),ce;this.currentTransition=s,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?O(g({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let l=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=c.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!l&&d!=="reload"){let h="";return this.events.next(new Ht(c.id,this.urlSerializer.serialize(c.rawUrl),h,Cu.IgnoredSameUrlNavigation)),c.resolve(!1),ce}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return I(c).pipe(Me(h=>{let f=this.transitions?.getValue();return this.events.next(new Ir(h.id,this.urlSerializer.serialize(h.extractedUrl),h.source,h.restoredState)),f!==this.transitions?.getValue()?ce:Promise.resolve(h)}),Ew(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),X(h=>{s.targetSnapshot=h.targetSnapshot,s.urlAfterRedirects=h.urlAfterRedirects,this.currentNavigation=O(g({},this.currentNavigation),{finalUrl:h.urlAfterRedirects});let f=new mo(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(f)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:h,extractedUrl:f,source:p,restoredState:C,extras:R}=c,k=new Ir(h,this.urlSerializer.serialize(f),p,C);this.events.next(k);let we=fh(this.rootComponentType).snapshot;return this.currentTransition=s=O(g({},c),{targetSnapshot:we,urlAfterRedirects:f,extras:O(g({},R),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=f,I(s)}else{let h="";return this.events.next(new Ht(c.id,this.urlSerializer.serialize(c.extractedUrl),h,Cu.IgnoredByUrlHandlingStrategy)),c.resolve(!1),ce}}),X(c=>{let l=new wu(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),_(c=>(this.currentTransition=s=O(g({},c),{guards:BC(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),s)),JC(this.environmentInjector,c=>this.events.next(c)),X(c=>{if(s.guardsResult=c.guardsResult,c.guardsResult&&typeof c.guardsResult!="boolean")throw wo(this.urlSerializer,c.guardsResult);let l=new Eu(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(l)}),be(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",de.GuardRejected),!1)),pu(c=>{if(c.guards.canActivateChecks.length)return I(c).pipe(X(l=>{let d=new Iu(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),Me(l=>{let d=!1;return I(l).pipe(Iw(this.paramsInheritanceStrategy,this.environmentInjector),X({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(l,"",de.NoDataFromResolver)}}))}),X(l=>{let d=new bu(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}))}),pu(c=>{let l=d=>{let h=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&h.push(this.configLoader.loadComponent(d.routeConfig).pipe(X(f=>{d.component=f}),_(()=>{})));for(let f of d.children)h.push(...l(f));return h};return si(l(c.targetSnapshot.root)).pipe(nt(null),Ue(1))}),pu(()=>this.afterPreactivation()),Me(()=>{let{currentSnapshot:c,targetSnapshot:l}=s,d=this.createViewTransition?.(this.environmentInjector,c.root,l.root);return d?B(d).pipe(_(()=>s)):I(s)}),_(c=>{let l=OC(n.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=s=O(g({},c),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,s}),X(()=>{this.events.next(new Mr)}),$C(this.rootContexts,n.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),Ue(1),X({next:c=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Ut(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{a=!0}}),as(this.transitionAbortSubject.pipe(X(c=>{throw c}))),Gn(()=>{!a&&!u&&this.cancelNavigationTransition(s,"",de.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),tt(c=>{if(u=!0,vh(c))this.events.next(new Xe(s.id,this.urlSerializer.serialize(s.extractedUrl),c.message,c.cancellationCode)),kC(c)?this.events.next(new Pn(c.url,c.navigationBehaviorOptions)):s.resolve(!1);else{let l=new br(s.id,this.urlSerializer.serialize(s.extractedUrl),c,s.targetSnapshot??void 0);try{let d=Ze(this.environmentInjector,()=>this.navigationErrorHandler?.(l));if(d instanceof Sr){let{message:h,cancellationCode:f}=wo(this.urlSerializer,d);this.events.next(new Xe(s.id,this.urlSerializer.serialize(s.extractedUrl),h,f)),this.events.next(new Pn(d.redirectTo,d.navigationBehaviorOptions))}else{this.events.next(l);let h=n.errorHandler(c);s.resolve(!!h)}}catch(d){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(d)}}return ce}))}))}cancelNavigationTransition(n,i,o){let s=new Xe(n.id,this.urlSerializer.serialize(n.extractedUrl),i,o);this.events.next(s),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Pw(t){return t!==yr}var kw=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:()=>m(Lw),providedIn:"root"});let t=e;return t})(),Bu=class{shouldDetach(e){return!1}store(e,r){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,r){return e.routeConfig===r.routeConfig}},Lw=(()=>{let e=class e extends Bu{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Pt(e)))(o||e)}})(),e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),bh=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:()=>m(Vw),providedIn:"root"});let t=e;return t})(),Vw=(()=>{let e=class e extends bh{constructor(){super(...arguments),this.location=m(lr),this.urlSerializer=m(Uu),this.options=m(qu,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=m(Yu),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new vt,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=fh(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(i=>{i.type==="popstate"&&n(i.url,i.state)})}handleRouterEvent(n,i){if(n instanceof Ir)this.stateMemento=this.createStateMemento();else if(n instanceof Ht)this.rawUrlTree=i.initialUrl;else if(n instanceof mo){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(o,i)}}else n instanceof Mr?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i))):n instanceof Xe&&(n.code===de.GuardRejected||n.code===de.NoDataFromResolver)?this.restoreHistory(i):n instanceof br?this.restoreHistory(i,!0):n instanceof Ut&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,i){let o=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl){let s=this.browserPageId,a=g(g({},i.extras.state),this.generateNgRouterState(i.id,s));this.location.replaceState(o,"",a)}else{let s=g(g({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(o,"",s)}}restoreHistory(n,i=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,s=this.currentPageId-o;s!==0?this.location.historyGo(s):this.currentUrlTree===n.finalUrl&&s===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&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,i){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:i}:{navigationId:n}}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Pt(e)))(o||e)}})(),e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),mr=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(mr||{});function jw(t,e){t.events.pipe(be(r=>r instanceof Ut||r instanceof Xe||r instanceof br||r instanceof Ht),_(r=>r instanceof Ut||r instanceof Ht?mr.COMPLETE:(r instanceof Xe?r.code===de.Redirect||r.code===de.SupersededByNewNavigation:!1)?mr.REDIRECTING:mr.FAILED),be(r=>r!==mr.REDIRECTING),Ue(1)).subscribe(()=>{e()})}function $w(t){throw t}var Bw={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Uw={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Mh=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=m(to),this.stateManager=m(bh),this.options=m(qu,{optional:!0})||{},this.pendingTasks=m(bn),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=m(Fw),this.urlSerializer=m(Uu),this.location=m(lr),this.urlHandlingStrategy=m(Yu),this._events=new z,this.errorHandler=this.options.errorHandler||$w,this.navigated=!1,this.routeReuseStrategy=m(kw),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=m(Zu,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!m(zu,{optional:!0}),this.eventsSubscription=new H,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(i=>{try{let o=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(o!==null&&s!==null){if(this.stateManager.handleRouterEvent(i,s),i instanceof Xe&&i.code!==de.Redirect&&i.code!==de.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof Ut)this.navigated=!0;else if(i instanceof Pn){let a=i.navigationBehaviorOptions,u=this.urlHandlingStrategy.merge(i.url,o.currentRawUrl),c=g({info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Pw(o.source)},a);this.scheduleNavigation(u,yr,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}zw(i)&&this._events.next(i)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),yr,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",i)},0)})}navigateToSyncWithBrowser(n,i,o){let s={replaceUrl:!0},a=o?.navigationId?o:null;if(o){let c=g({},o);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(s.state=c)}let u=this.parseUrl(n);this.scheduleNavigation(u,i,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(Gu),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,i={}){let{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:u,preserveFragment:c}=i,l=c?this.currentUrlTree.fragment:a,d=null;switch(u){case"merge":d=g(g({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}d!==null&&(d=this.removeEmptyProps(d));let h;try{let f=o?o.snapshot:this.routerState.snapshot.root;h=uh(f)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),h=this.currentUrlTree.root}return ch(h,n,d,l??null)}navigateByUrl(n,i={skipLocationChange:!1}){let o=wr(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,yr,null,i)}navigate(n,i={skipLocationChange:!1}){return Hw(n),this.navigateByUrl(this.createUrlTree(n,i),i)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,i){let o;if(i===!0?o=g({},Bw):i===!1?o=g({},Uw):o=i,wr(n))return Gf(this.currentUrlTree,n,o);let s=this.parseUrl(n);return Gf(this.currentUrlTree,s,o)}removeEmptyProps(n){return Object.entries(n).reduce((i,[o,s])=>(s!=null&&(i[o]=s),i),{})}scheduleNavigation(n,i,o,s,a){if(this.disposed)return Promise.resolve(!1);let u,c,l;a?(u=a.resolve,c=a.reject,l=a.promise):l=new Promise((h,f)=>{u=h,c=f});let d=this.pendingTasks.add();return jw(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:s,resolve:u,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(h=>Promise.reject(h))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Hw(t){for(let e=0;e<t.length;e++)if(t[e]==null)throw new v(4008,!1)}function zw(t){return!(t instanceof Mr)&&!(t instanceof Pn)}var Gw=new w("");function _h(t,...e){return ga([{provide:Zu,multi:!0,useValue:t},[],{provide:kn,useFactory:Ww,deps:[Mh]},{provide:Ya,multi:!0,useFactory:qw},e.map(r=>r.\u0275providers)])}function Ww(t){return t.routerState.root}function qw(){let t=m(at);return e=>{let r=t.get(Tn);if(e!==r.components[0])return;let n=t.get(Mh),i=t.get(Zw);t.get(Yw)===1&&n.initialNavigation(),t.get(Qw,null,M.Optional)?.setUpPreloading(),t.get(Gw,null,M.Optional)?.init(),n.resetRootComponentType(r.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Zw=new w("",{factory:()=>new z}),Yw=new w("",{providedIn:"root",factory:()=>1});var Qw=new w("");var Sh=[];var kh=(()=>{let e=class e{constructor(n,i){this._renderer=n,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,i){this._renderer.setProperty(this._elementRef.nativeElement,n,i)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}};e.\u0275fac=function(i){return new(i||e)(P(ft),P(Ke))},e.\u0275dir=ie({type:e});let t=e;return t})(),ec=(()=>{let e=class e extends kh{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Pt(e)))(o||e)}})(),e.\u0275dir=ie({type:e,features:[ht]});let t=e;return t})(),xo=new w("");var Kw={provide:xo,useExisting:Nt(()=>Ao),multi:!0};function Jw(){let t=Je()?Je().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var Xw=new w(""),Ao=(()=>{let e=class e extends kh{constructor(n,i,o){super(n,i),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!Jw())}writeValue(n){let i=n??"";this.setProperty("value",i)}_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)}};e.\u0275fac=function(i){return new(i||e)(P(ft),P(Ke),P(Xw,8))},e.\u0275dir=ie({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(i,o){i&1&&ye("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[cr([Kw]),ht]});let t=e;return t})();var eE=new w(""),tE=new w("");function Lh(t){return t!=null}function Vh(t){return kt(t)?B(t):t}function jh(t){let e={};return t.forEach(r=>{e=r!=null?g(g({},e),r):e}),Object.keys(e).length===0?null:e}function $h(t,e){return e.map(r=>r(t))}function nE(t){return!t.validate}function Bh(t){return t.map(e=>nE(e)?e:r=>e.validate(r))}function rE(t){if(!t)return null;let e=t.filter(Lh);return e.length==0?null:function(r){return jh($h(r,e))}}function Uh(t){return t!=null?rE(Bh(t)):null}function iE(t){if(!t)return null;let e=t.filter(Lh);return e.length==0?null:function(r){let n=$h(r,e).map(Vh);return ns(n).pipe(_(jh))}}function Hh(t){return t!=null?iE(Bh(t)):null}function Th(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function oE(t){return t._rawValidators}function sE(t){return t._rawAsyncValidators}function Qu(t){return t?Array.isArray(t)?t:[t]:[]}function _o(t,e){return Array.isArray(t)?t.includes(e):t===e}function xh(t,e){let r=Qu(e);return Qu(t).forEach(i=>{_o(r,i)||r.push(i)}),r}function Ah(t,e){return Qu(e).filter(r=>!_o(t,r))}var So=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(e){this._rawValidators=e||[],this._composedValidatorFn=Uh(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Hh(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,r){return this.control?this.control.hasError(e,r):!1}getError(e,r){return this.control?this.control.getError(e,r):null}},Ku=class extends So{get formDirective(){return null}get path(){return null}},Lr=class extends So{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Ju=class{constructor(e){this._cd=e}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}},aE={"[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"},Dx=O(g({},aE),{"[class.ng-submitted]":"isSubmitted"}),No=(()=>{let e=class e extends Ju{constructor(n){super(n)}};e.\u0275fac=function(i){return new(i||e)(P(Lr,2))},e.\u0275dir=ie({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){i&2&&Ga("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[ht]});let t=e;return t})();var Or="VALID",Mo="INVALID",jn="PENDING",Fr="DISABLED",Bn=class{},To=class extends Bn{constructor(e,r){super(),this.value=e,this.source=r}},Pr=class extends Bn{constructor(e,r){super(),this.pristine=e,this.source=r}},kr=class extends Bn{constructor(e,r){super(),this.touched=e,this.source=r}},$n=class extends Bn{constructor(e,r){super(),this.status=e,this.source=r}};function uE(t){return(Ro(t)?t.validators:t)||null}function cE(t){return Array.isArray(t)?Uh(t):t||null}function lE(t,e){return(Ro(e)?e.asyncValidators:t)||null}function dE(t){return Array.isArray(t)?Hh(t):t||null}function Ro(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}var Xu=class{constructor(e,r){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._events=new z,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(r)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===Or}get invalid(){return this.status===Mo}get pending(){return this.status==jn}get disabled(){return this.status===Fr}get enabled(){return this.status!==Fr}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(xh(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(xh(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(Ah(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(Ah(e,this._rawAsyncValidators))}hasValidator(e){return _o(this._rawValidators,e)}hasAsyncValidator(e){return _o(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let r=this.touched===!1;this.touched=!0;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(O(g({},e),{sourceControl:n})),r&&e.emitEvent!==!1&&this._events.next(new kr(!0,n))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(r=>r.markAllAsTouched(e))}markAsUntouched(e={}){let r=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=e.sourceControl??this;this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:n})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n),r&&e.emitEvent!==!1&&this._events.next(new kr(!1,n))}markAsDirty(e={}){let r=this.pristine===!0;this.pristine=!1;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(O(g({},e),{sourceControl:n})),r&&e.emitEvent!==!1&&this._events.next(new Pr(!1,n))}markAsPristine(e={}){let r=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=e.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),r&&e.emitEvent!==!1&&this._events.next(new Pr(!0,n))}markAsPending(e={}){this.status=jn;let r=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new $n(this.status,r)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(O(g({},e),{sourceControl:r}))}disable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=Fr,this.errors=null,this._forEachChild(i=>{i.disable(O(g({},e),{onlySelf:!0}))}),this._updateValue();let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new To(this.value,n)),this._events.next(new $n(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(O(g({},e),{skipPristineCheck:r}),this),this._onDisabledChange.forEach(i=>i(!0))}enable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=Or,this._forEachChild(n=>{n.enable(O(g({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(O(g({},e),{skipPristineCheck:r}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e,r){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},r),this._parent._updateTouched({},r))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Or||this.status===jn)&&this._runAsyncValidator(n,e.emitEvent)}let r=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new To(this.value,r)),this._events.next(new $n(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(O(g({},e),{sourceControl:r}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(r=>r._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Fr:Or}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,r){if(this.asyncValidator){this.status=jn,this._hasOwnPendingAsyncValidator={emitEvent:r!==!1};let n=Vh(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{emitEvent:r,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,r={}){this.errors=e,this._updateControlsErrors(r.emitEvent!==!1,this,r.shouldHaveEmitted)}get(e){let r=e;return r==null||(Array.isArray(r)||(r=r.split(".")),r.length===0)?null:r.reduce((n,i)=>n&&n._find(i),this)}getError(e,r){let n=r?this.get(r):this;return n&&n.errors?n.errors[e]:null}hasError(e,r){return!!this.getError(e,r)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,r,n){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||n)&&this._events.next(new $n(this.status,r)),this._parent&&this._parent._updateControlsErrors(e,r,n)}_initObservables(){this.valueChanges=new U,this.statusChanges=new U}_calculateStatus(){return this._allControlsDisabled()?Fr:this.errors?Mo:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(jn)?jn:this._anyControlsHaveStatus(Mo)?Mo:Or}_anyControlsHaveStatus(e){return this._anyControls(r=>r.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,r){let n=!this._anyControlsDirty(),i=this.pristine!==n;this.pristine=n,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,r),i&&this._events.next(new Pr(this.pristine,r))}_updateTouched(e={},r){this.touched=this._anyControlsTouched(),this._events.next(new kr(this.touched,r)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,r)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Ro(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let r=this._parent&&this._parent.dirty;return!e&&!!r&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=cE(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=dE(this._rawAsyncValidators)}};var zh=new w("CallSetDisabledState",{providedIn:"root",factory:()=>tc}),tc="always";function fE(t,e){return[...e.path,t]}function hE(t,e,r=tc){gE(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||r==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),mE(t,e),yE(t,e),vE(t,e),pE(t,e)}function Nh(t,e){t.forEach(r=>{r.registerOnValidatorChange&&r.registerOnValidatorChange(e)})}function pE(t,e){if(e.valueAccessor.setDisabledState){let r=n=>{e.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(r),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(r)})}}function gE(t,e){let r=oE(t);e.validator!==null?t.setValidators(Th(r,e.validator)):typeof r=="function"&&t.setValidators([r]);let n=sE(t);e.asyncValidator!==null?t.setAsyncValidators(Th(n,e.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let i=()=>t.updateValueAndValidity();Nh(e._rawValidators,i),Nh(e._rawAsyncValidators,i)}function mE(t,e){e.valueAccessor.registerOnChange(r=>{t._pendingValue=r,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&Gh(t,e)})}function vE(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&Gh(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function Gh(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function yE(t,e){let r=(n,i)=>{e.valueAccessor.writeValue(n),i&&e.viewToModelUpdate(n)};t.registerOnChange(r),e._registerOnDestroy(()=>{t._unregisterOnChange(r)})}function DE(t,e){if(!t.hasOwnProperty("model"))return!1;let r=t.model;return r.isFirstChange()?!0:!Object.is(e,r.currentValue)}function CE(t){return Object.getPrototypeOf(t.constructor)===ec}function wE(t,e){if(!e)return null;Array.isArray(e);let r,n,i;return e.forEach(o=>{o.constructor===Ao?r=o:CE(o)?n=o:i=o}),i||n||r||null}function Rh(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function Oh(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var EE=class extends Xu{constructor(e=null,r,n){super(uE(r),lE(n,r)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(r),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Ro(r)&&(r.nonNullable||r.initialValueIsDefault)&&(Oh(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,r={}){this.value=this._pendingValue=e,this._onChange.length&&r.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,r.emitViewToModelChange!==!1)),this.updateValueAndValidity(r)}patchValue(e,r={}){this.setValue(e,r)}reset(e=this.defaultValue,r={}){this._applyFormState(e),this.markAsPristine(r),this.markAsUntouched(r),this.setValue(this.value,r),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){Rh(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){Rh(this._onDisabledChange,e)}_forEachChild(e){}_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(e){Oh(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var IE={provide:Lr,useExisting:Nt(()=>Vr)},Fh=Promise.resolve(),Vr=(()=>{let e=class e extends Lr{constructor(n,i,o,s,a,u){super(),this._changeDetectorRef=a,this.callSetDisabledState=u,this.control=new EE,this._registered=!1,this.name="",this.update=new U,this._parent=n,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=wE(this,s)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let i=n.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),DE(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(){hE(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){Fh.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let i=n.isDisabled.currentValue,o=i!==0&&no(i);Fh.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?fE(n,this._parent):[n]}};e.\u0275fac=function(i){return new(i||e)(P(Ku,9),P(eE,10),P(tE,10),P(xo,10),P(Lt,8),P(zh,8))},e.\u0275dir=ie({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:[cr([IE]),ht,En]});let t=e;return t})();var bE={provide:xo,useExisting:Nt(()=>Oo),multi:!0};function Wh(t,e){return t==null?`${e}`:(e&&typeof e=="object"&&(e="Object"),`${t}: ${e}`.slice(0,50))}function ME(t){return t.split(":")[0]}var Oo=(()=>{let e=class e extends ec{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){this.value=n;let i=this._getOptionId(n),o=Wh(i,n);this.setProperty("value",o)}registerOnChange(n){this.onChange=i=>{this.value=this._getOptionValue(i),n(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(n){for(let i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i),n))return i;return null}_getOptionValue(n){let i=ME(n);return this._optionMap.has(i)?this._optionMap.get(i):n}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Pt(e)))(o||e)}})(),e.\u0275dir=ie({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(i,o){i&1&&ye("change",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},features:[cr([bE]),ht]});let t=e;return t})(),qh=(()=>{let e=class e{constructor(n,i,o){this._element=n,this._renderer=i,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(n){this._select!=null&&(this._select._optionMap.set(this.id,n),this._setElementValue(Wh(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._setElementValue(n),this._select&&this._select.writeValue(this._select.value)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}};e.\u0275fac=function(i){return new(i||e)(P(Ke),P(ft),P(Oo,9))},e.\u0275dir=ie({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});let t=e;return t})(),_E={provide:xo,useExisting:Nt(()=>Zh),multi:!0};function Ph(t,e){return t==null?`${e}`:(typeof e=="string"&&(e=`'${e}'`),e&&typeof e=="object"&&(e="Object"),`${t}: ${e}`.slice(0,50))}function SE(t){return t.split(":")[0]}var Zh=(()=>{let e=class e extends ec{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){this.value=n;let i;if(Array.isArray(n)){let o=n.map(s=>this._getOptionId(s));i=(s,a)=>{s._setSelected(o.indexOf(a.toString())>-1)}}else i=(o,s)=>{o._setSelected(!1)};this._optionMap.forEach(i)}registerOnChange(n){this.onChange=i=>{let o=[],s=i.selectedOptions;if(s!==void 0){let a=s;for(let u=0;u<a.length;u++){let c=a[u],l=this._getOptionValue(c.value);o.push(l)}}else{let a=i.options;for(let u=0;u<a.length;u++){let c=a[u];if(c.selected){let l=this._getOptionValue(c.value);o.push(l)}}}this.value=o,n(o)}}_registerOption(n){let i=(this._idCounter++).toString();return this._optionMap.set(i,n),i}_getOptionId(n){for(let i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i)._value,n))return i;return null}_getOptionValue(n){let i=SE(n);return this._optionMap.has(i)?this._optionMap.get(i)._value:n}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Pt(e)))(o||e)}})(),e.\u0275dir=ie({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(i,o){i&1&&ye("change",function(a){return o.onChange(a.target)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},features:[cr([_E]),ht]});let t=e;return t})(),Yh=(()=>{let e=class e{constructor(n,i,o){this._element=n,this._renderer=i,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(n){this._select!=null&&(this._value=n,this._setElementValue(Ph(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(Ph(this.id,n)),this._select.writeValue(this._select.value)):this._setElementValue(n)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}_setSelected(n){this._renderer.setProperty(this._element.nativeElement,"selected",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}};e.\u0275fac=function(i){return new(i||e)(P(Ke),P(ft),P(Zh,9))},e.\u0275dir=ie({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});let t=e;return t})();var TE=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Ot({type:e}),e.\u0275inj=Rt({});let t=e;return t})();var Un=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:zh,useValue:n.callSetDisabledState??tc}]}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Ot({type:e}),e.\u0275inj=Rt({imports:[TE]});let t=e;return t})();var Kh={providers:[_h(Sh),ma(Un)]};var Jh=(()=>{let e=class e{constructor(){this.onChange=new U}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=lt({type:e,selectors:[["app-language-selector"]],inputs:{defaultLanguage:"defaultLanguage",type:"type"},outputs:{onChange:"onChange"},standalone:!0,features:[gt],decls:5,vars:1,consts:[[3,"ngModelChange","ngModel"],["value","eng_Latn"],["value","fra_Latn"]],template:function(i,o){i&1&&(Q(0,"select",0),ur("ngModelChange",function(a){return eo(o.defaultLanguage,a)||(o.defaultLanguage=a),a}),ye("ngModelChange",function(a){return o.onChange.emit(a)}),Q(1,"option",1),Ve(2,"English"),K(),Q(3,"option",2),Ve(4,"French"),K()()),i&2&&ar("ngModel",o.defaultLanguage)},dependencies:[Un,qh,Yh,Oo,No,Vr,jt],encapsulation:2});let t=e;return t})();var Xh=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=lt({type:e,selectors:[["app-progress"]],inputs:{text:"text",percentage:"percentage"},standalone:!0,features:[gt],decls:3,vars:3,consts:[["max","100",3,"value"]],template:function(i,o){i&1&&(Q(0,"div"),Ve(1),K(),pt(2,"progress",0)),i&2&&(ve(),Za("",o.text,": ",o.percentage,"%"),ve(),Ae("value",o.percentage))},dependencies:[jt],encapsulation:2});let t=e;return t})();var ep=(()=>{let e=class e{constructor(){this.progressUpdates=new z,this.translationUpdates=new z,this.worker=new Worker(new URL("worker-CHKZDYEV.js",import.meta.url),{type:"module"}),this.worker.onmessage=n=>{n.data.status==="update"||n.data.status==="complete"?this.translationUpdates.next(n.data.output):this.progressUpdates.next(n.data)}}translate(n,i,o){this.worker.postMessage({text:n,src_lang:i,tgt_lang:o})}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function AE(t,e){t&1&&(Wa(0),Q(1,"label"),Ve(2,"Loading models... (only run once)"),K(),qa())}function NE(t,e){if(t&1&&(Q(0,"div"),pt(1,"app-progress",11),K()),t&2){let r=e.$implicit;ve(),Ae("text",r.file)("percentage",r.progress)}}var tp=(()=>{let e=class e{constructor(n){this.translationService=n,this.input="Damn, it's working :)",this.output="",this.sourceLanguage="eng_Latn",this.targetLanguage="fra_Latn",this.ready=null,this.disabled=!1,this.progressItems=[],this.translationService.progressUpdates.subscribe(i=>{switch(i.status){case"initiate":this.ready=!1,this.progressItems.push(i);break;case"progress":this.updateProgressItem(i);break;case"done":this.removeProgressItem(i);break;case"ready":this.ready=!0;break}}),this.translationService.translationUpdates.subscribe(i=>{this.output=i,this.disabled=!1})}translate(){this.disabled=!0,this.translationService.translate(this.input,this.sourceLanguage,this.targetLanguage)}updateProgressItem(n){let i=this.progressItems.findIndex(o=>o.file===n.file);i!==-1&&(this.progressItems[i].progress=n.progress)}removeProgressItem(n){this.progressItems=this.progressItems.filter(i=>i.file!==n.file)}};e.\u0275fac=function(i){return new(i||e)(P(ep))},e.\u0275cmp=lt({type:e,selectors:[["app-root"]],standalone:!0,features:[gt],decls:16,vars:7,consts:[[1,"container"],[1,"language-container"],["type","Source",3,"onChange","defaultLanguage"],["type","Target",3,"onChange","defaultLanguage"],[1,"textbox-container"],["rows","3",3,"ngModelChange","ngModel"],["rows","3","readonly","",3,"value"],[3,"click","disabled"],[1,"progress-bars-container"],[4,"ngIf"],[4,"ngFor","ngForOf"],[3,"text","percentage"]],template:function(i,o){i&1&&(Q(0,"h1"),Ve(1,"Transformers.js"),K(),Q(2,"h2"),Ve(3,"ML-powered multilingual translation in Angular!"),K(),Q(4,"div",0)(5,"div",1)(6,"app-language-selector",2),ye("onChange",function(a){return o.sourceLanguage=a}),K(),Q(7,"app-language-selector",3),ye("onChange",function(a){return o.targetLanguage=a}),K()(),Q(8,"div",4)(9,"textarea",5),ur("ngModelChange",function(a){return eo(o.input,a)||(o.input=a),a}),K(),pt(10,"textarea",6),K()(),Q(11,"button",7),ye("click",function(){return o.translate()}),Ve(12,"Translate"),K(),Q(13,"div",8),za(14,AE,3,0,"ng-container",9)(15,NE,2,2,"div",10),K()),i&2&&(ve(6),Ae("defaultLanguage",o.sourceLanguage),ve(),Ae("defaultLanguage",o.targetLanguage),ve(2),ar("ngModel",o.input),ve(),Ae("value",o.output),ve(),Ae("disabled",o.disabled),ve(3),Ae("ngIf",o.ready===!1),ve(),Ae("ngForOf",o.progressItems))},dependencies:[jt,Of,Ff,Un,Ao,No,Vr,Jh,Xh]});let t=e;return t})();Hf(tp,Kh).catch(t=>console.error(t));