@rero/rero-ils-ui
Version:
User interface for RERO integrated library system (RERO ILS).
8 lines • 251 kB
JavaScript
var Xg=Object.create;var as=Object.defineProperty,em=Object.defineProperties,tm=Object.getOwnPropertyDescriptor,nm=Object.getOwnPropertyDescriptors,rm=Object.getOwnPropertyNames,jr=Object.getOwnPropertySymbols,om=Object.getPrototypeOf,ls=Object.prototype.hasOwnProperty,zc=Object.prototype.propertyIsEnumerable;var qc=(t,e,n)=>e in t?as(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Q=(t,e)=>{for(var n in e||={})ls.call(e,n)&&qc(t,n,e[n]);if(jr)for(var n of jr(e))zc.call(e,n)&&qc(t,n,e[n]);return t},pe=(t,e)=>em(t,nm(e));var yT=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,n)=>(typeof require<"u"?require:e)[n]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var vT=t=>typeof t=="symbol"?t:t+"",Wc=(t,e)=>{var n={};for(var r in t)ls.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&jr)for(var r of jr(t))e.indexOf(r)<0&&zc.call(t,r)&&(n[r]=t[r]);return n};var ET=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var im=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of rm(e))!ls.call(t,o)&&o!==n&&as(t,o,{get:()=>e[o],enumerable:!(r=tm(e,o))||r.enumerable});return t};var IT=(t,e,n)=>(n=t!=null?Xg(om(t)):{},im(e||!t||!t.__esModule?as(n,"default",{value:t,enumerable:!0}):n,t));function fs(t,e){return Object.is(t,e)}var Z=null,Hr=!1,ps=1,ae=Symbol("SIGNAL");function M(t){let e=Z;return Z=t,e}function hs(){return Z}var Jt={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Xt(t){if(Hr)throw new Error("");if(Z===null)return;Z.consumerOnSignalRead(t);let e=Z.nextProducerIndex++;if(zr(Z),e<Z.producerNode.length&&Z.producerNode[e]!==t&&Hn(Z)){let n=Z.producerNode[e];qr(n,Z.producerIndexOfThis[e])}Z.producerNode[e]!==t&&(Z.producerNode[e]=t,Z.producerIndexOfThis[e]=Hn(Z)?Qc(t,Z,e):0),Z.producerLastReadVersion[e]=t.version}function Gc(){ps++}function gs(t){if(!(Hn(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===ps)){if(!t.producerMustRecompute(t)&&!Ur(t)){ds(t);return}t.producerRecomputeValue(t),ds(t)}}function ms(t){if(t.liveConsumerNode===void 0)return;let e=Hr;Hr=!0;try{for(let n of t.liveConsumerNode)n.dirty||sm(n)}finally{Hr=e}}function ys(){return Z?.consumerAllowSignalWrites!==!1}function sm(t){t.dirty=!0,ms(t),t.consumerMarkedDirty?.(t)}function ds(t){t.dirty=!1,t.lastCleanEpoch=ps}function Bn(t){return t&&(t.nextProducerIndex=0),M(t)}function $r(t,e){if(M(e),!(!t||t.producerNode===void 0||t.producerIndexOfThis===void 0||t.producerLastReadVersion===void 0)){if(Hn(t))for(let n=t.nextProducerIndex;n<t.producerNode.length;n++)qr(t.producerNode[n],t.producerIndexOfThis[n]);for(;t.producerNode.length>t.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function Ur(t){zr(t);for(let e=0;e<t.producerNode.length;e++){let n=t.producerNode[e],r=t.producerLastReadVersion[e];if(r!==n.version||(gs(n),r!==n.version))return!0}return!1}function $n(t){if(zr(t),Hn(t))for(let e=0;e<t.producerNode.length;e++)qr(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 Qc(t,e,n){if(Kc(t),t.liveConsumerNode.length===0&&Zc(t))for(let r=0;r<t.producerNode.length;r++)t.producerIndexOfThis[r]=Qc(t.producerNode[r],t,r);return t.liveConsumerIndexOfThis.push(n),t.liveConsumerNode.push(e)-1}function qr(t,e){if(Kc(t),t.liveConsumerNode.length===1&&Zc(t))for(let r=0;r<t.producerNode.length;r++)qr(t.producerNode[r],t.producerIndexOfThis[r]);let n=t.liveConsumerNode.length-1;if(t.liveConsumerNode[e]=t.liveConsumerNode[n],t.liveConsumerIndexOfThis[e]=t.liveConsumerIndexOfThis[n],t.liveConsumerNode.length--,t.liveConsumerIndexOfThis.length--,e<t.liveConsumerNode.length){let r=t.liveConsumerIndexOfThis[e],o=t.liveConsumerNode[e];zr(o),o.producerIndexOfThis[r]=e}}function Hn(t){return t.consumerIsAlwaysLive||(t?.liveConsumerNode?.length??0)>0}function zr(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function Kc(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function Zc(t){return t.producerNode!==void 0}function Wr(t,e){let n=Object.create(am);n.computation=t,e!==void 0&&(n.equal=e);let r=()=>{if(gs(n),Xt(n),n.value===Br)throw n.error;return n.value};return r[ae]=n,r}var cs=Symbol("UNSET"),us=Symbol("COMPUTING"),Br=Symbol("ERRORED"),am=pe(Q({},Jt),{value:cs,dirty:!0,error:null,equal:fs,kind:"computed",producerMustRecompute(t){return t.value===cs||t.value===us},producerRecomputeValue(t){if(t.value===us)throw new Error("Detected cycle in computations.");let e=t.value;t.value=us;let n=Bn(t),r,o=!1;try{r=t.computation(),M(null),o=e!==cs&&e!==Br&&r!==Br&&t.equal(e,r)}catch(i){r=Br,t.error=i}finally{$r(t,n)}if(o){t.value=e;return}t.value=r,t.version++}});function lm(){throw new Error}var Yc=lm;function Jc(t){Yc(t)}function vs(t){Yc=t}var cm=null;function Es(t,e){let n=Object.create(Gr);n.value=t,e!==void 0&&(n.equal=e);let r=()=>(Xt(n),n.value);return r[ae]=n,r}function en(t,e){ys()||Jc(t),t.equal(t.value,e)||(t.value=e,um(t))}function Is(t,e){ys()||Jc(t),en(t,e(t.value))}var Gr=pe(Q({},Jt),{equal:fs,value:void 0,kind:"signal"});function um(t){t.version++,Gc(),ms(t),cm?.()}function _s(t){let e=M(null);try{return t()}finally{M(e)}}var ws;function Un(){return ws}function Qe(t){let e=ws;return ws=t,e}var Qr=Symbol("NotFound");function S(t){return typeof t=="function"}function tn(t){let n=t(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Kr=tn(t=>function(n){t(this),this.message=n?`${n.length} errors occurred during unsubscription:
${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
`)}`:"",this.name="UnsubscriptionError",this.errors=n});function wt(t,e){if(t){let n=t.indexOf(e);0<=n&&t.splice(n,1)}}var z=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(S(r))try{r()}catch(i){e=i instanceof Kr?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Xc(i)}catch(s){e=e??[],s instanceof Kr?e=[...e,...s.errors]:e.push(s)}}if(e)throw new Kr(e)}}add(e){var n;if(e&&e!==this)if(this.closed)Xc(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(e)}}_hasParent(e){let{_parentage:n}=this;return n===e||Array.isArray(n)&&n.includes(e)}_addParent(e){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(e),n):n?[n,e]:e}_removeParent(e){let{_parentage:n}=this;n===e?this._parentage=null:Array.isArray(n)&&wt(n,e)}remove(e){let{_finalizers:n}=this;n&&wt(n,e),e instanceof t&&e._removeParent(this)}};z.EMPTY=(()=>{let t=new z;return t.closed=!0,t})();var bs=z.EMPTY;function Zr(t){return t instanceof z||t&&"closed"in t&&S(t.remove)&&S(t.add)&&S(t.unsubscribe)}function Xc(t){S(t)?t():t.unsubscribe()}var Ae={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var nn={setTimeout(t,e,...n){let{delegate:r}=nn;return r?.setTimeout?r.setTimeout(t,e,...n):setTimeout(t,e,...n)},clearTimeout(t){let{delegate:e}=nn;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Yr(t){nn.setTimeout(()=>{let{onUnhandledError:e}=Ae;if(e)e(t);else throw t})}function qn(){}var eu=Ds("C",void 0,void 0);function tu(t){return Ds("E",void 0,t)}function nu(t){return Ds("N",t,void 0)}function Ds(t,e,n){return{kind:t,value:e,error:n}}var bt=null;function rn(t){if(Ae.useDeprecatedSynchronousErrorHandling){let e=!bt;if(e&&(bt={errorThrown:!1,error:null}),t(),e){let{errorThrown:n,error:r}=bt;if(bt=null,n)throw r}}else t()}function ru(t){Ae.useDeprecatedSynchronousErrorHandling&&bt&&(bt.errorThrown=!0,bt.error=t)}var Dt=class extends z{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,Zr(e)&&e.add(this)):this.destination=mm}static create(e,n,r){return new Ke(e,n,r)}next(e){this.isStopped?Ms(nu(e),this):this._next(e)}error(e){this.isStopped?Ms(tu(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Ms(eu,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()}}},hm=Function.prototype.bind;function Ts(t,e){return hm.call(t,e)}var Ss=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:n}=this;if(n.next)try{n.next(e)}catch(r){Jr(r)}}error(e){let{partialObserver:n}=this;if(n.error)try{n.error(e)}catch(r){Jr(r)}else Jr(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(n){Jr(n)}}},Ke=class extends Dt{constructor(e,n,r){super();let o;if(S(e)||!e)o={next:e??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Ae.useDeprecatedNextContext?(i=Object.create(e),i.unsubscribe=()=>this.unsubscribe(),o={next:e.next&&Ts(e.next,i),error:e.error&&Ts(e.error,i),complete:e.complete&&Ts(e.complete,i)}):o=e}this.destination=new Ss(o)}};function Jr(t){Ae.useDeprecatedSynchronousErrorHandling?ru(t):Yr(t)}function gm(t){throw t}function Ms(t,e){let{onStoppedNotification:n}=Ae;n&&nn.setTimeout(()=>n(t,e))}var mm={closed:!0,next:qn,error:gm,complete:qn};var on=typeof Symbol=="function"&&Symbol.observable||"@@observable";function le(t){return t}function ym(...t){return Cs(t)}function Cs(t){return t.length===0?le:t.length===1?t[0]:function(n){return t.reduce((r,o)=>o(r),n)}}var F=(()=>{class t{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new t;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=Em(n)?n:new Ke(n,r,o);return rn(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=ou(r),new r((o,i)=>{let s=new Ke({next:a=>{try{n(a)}catch(l){i(l),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[on](){return this}pipe(...n){return Cs(n)(this)}toPromise(n){return n=ou(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return t.create=e=>new t(e),t})();function ou(t){var e;return(e=t??Ae.Promise)!==null&&e!==void 0?e:Promise}function vm(t){return t&&S(t.next)&&S(t.error)&&S(t.complete)}function Em(t){return t&&t instanceof Dt||vm(t)&&Zr(t)}function Ns(t){return S(t?.lift)}function N(t){return e=>{if(Ns(e))return e.lift(function(n){try{return t(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function C(t,e,n,r,o){return new xs(t,e,n,r,o)}var xs=class extends Dt{constructor(e,n,r,o,i,s){super(e),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(l){e.error(l)}}:super._next,this._error=o?function(a){try{o(a)}catch(l){e.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};function As(){return N((t,e)=>{let n=null;t._refCount++;let r=C(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){n=null;return}let o=t._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),e.unsubscribe()});t.subscribe(r),r.closed||(n=t.connect())})}var ks=class extends F{constructor(e,n){super(),this.source=e,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Ns(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 z;let n=this.getSubject();e.add(this.source.subscribe(C(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),e.closed&&(this._connection=null,e=z.EMPTY)}return e}refCount(){return As()(this)}};var sn={schedule(t){let e=requestAnimationFrame,n=cancelAnimationFrame,{delegate:r}=sn;r&&(e=r.requestAnimationFrame,n=r.cancelAnimationFrame);let o=e(i=>{n=void 0,t(i)});return new z(()=>n?.(o))},requestAnimationFrame(...t){let{delegate:e}=sn;return(e?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){let{delegate:e}=sn;return(e?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0};var iu=tn(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var Me=(()=>{class t extends F{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Xr(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new iu}next(n){rn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){rn(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){rn(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?bs:(this.currentObservers=null,i.push(n),new z(()=>{this.currentObservers=null,wt(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new F;return n.source=this,n}}return t.create=(e,n)=>new Xr(e,n),t})(),Xr=class extends Me{constructor(e,n){super(),this.destination=e,this.source=n}next(e){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,e)}error(e){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,e)}complete(){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||n===void 0||n.call(e)}_subscribe(e){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(e))!==null&&r!==void 0?r:bs}};var zn=class extends Me{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let n=super._subscribe(e);return!n.closed&&e.next(this._value),n}getValue(){let{hasError:e,thrownError:n,_value:r}=this;if(e)throw n;return this._throwIfClosed(),r}next(e){super.next(this._value=e)}};var Wn={now(){return(Wn.delegate||Date).now()},delegate:void 0};var eo=class extends Me{constructor(e=1/0,n=1/0,r=Wn){super(),this._bufferSize=e,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,n)}next(e){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(e),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(e),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!e.closed;s+=r?1:2)e.next(i[s]);return this._checkFinalizedStatuses(e),n}_trimBuffer(){let{_bufferSize:e,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*e;if(e<1/0&&i<r.length&&r.splice(0,r.length-i),!o){let s=n.now(),a=0;for(let l=1;l<r.length&&r[l]<=s;l+=2)a=l;a&&r.splice(0,a+1)}}};var to=class extends z{constructor(e,n){super()}schedule(e,n=0){return this}};var Gn={setInterval(t,e,...n){let{delegate:r}=Gn;return r?.setInterval?r.setInterval(t,e,...n):setInterval(t,e,...n)},clearInterval(t){let{delegate:e}=Gn;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var an=class extends to{constructor(e,n){super(e,n),this.scheduler=e,this.work=n,this.pending=!1}schedule(e,n=0){var r;if(this.closed)return this;this.state=e;let o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=!0,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(i,this.id,n),this}requestAsyncId(e,n,r=0){return Gn.setInterval(e.flush.bind(e,this),r)}recycleAsyncId(e,n,r=0){if(r!=null&&this.delay===r&&this.pending===!1)return n;n!=null&&Gn.clearInterval(n)}execute(e,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let r=this._execute(e,n);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,n){let r=!1,o;try{this.work(e)}catch(i){r=!0,o=i||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:e,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,wt(r,this),e!=null&&(this.id=this.recycleAsyncId(n,e,null)),this.delay=null,super.unsubscribe()}}};var ln=class t{constructor(e,n=t.now){this.schedulerActionCtor=e,this.now=n}schedule(e,n=0,r){return new this.schedulerActionCtor(this,e).schedule(r,n)}};ln.now=Wn.now;var cn=class extends ln{constructor(e,n=ln.now){super(e,n),this.actions=[],this._active=!1}flush(e){let{actions:n}=this;if(this._active){n.push(e);return}let r;this._active=!0;do if(r=e.execute(e.state,e.delay))break;while(e=n.shift());if(this._active=!1,r){for(;e=n.shift();)e.unsubscribe();throw r}}};var Tt=new cn(an),su=Tt;var no=class extends an{constructor(e,n){super(e,n),this.scheduler=e,this.work=n}requestAsyncId(e,n,r=0){return r!==null&&r>0?super.requestAsyncId(e,n,r):(e.actions.push(this),e._scheduled||(e._scheduled=sn.requestAnimationFrame(()=>e.flush(void 0))))}recycleAsyncId(e,n,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(e,n,r);let{actions:i}=e;n!=null&&n===e._scheduled&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(sn.cancelAnimationFrame(n),e._scheduled=void 0)}};var ro=class extends cn{flush(e){this._active=!0;let n;e?n=e.id:(n=this._scheduled,this._scheduled=void 0);let{actions:r}=this,o;e=e||r.shift();do if(o=e.execute(e.state,e.delay))break;while((e=r[0])&&e.id===n&&r.shift());if(this._active=!1,o){for(;(e=r[0])&&e.id===n&&r.shift();)e.unsubscribe();throw o}}};var Im=new ro(no);var Mt=new F(t=>t.complete());function oo(t){return t&&S(t.schedule)}function Rs(t){return t[t.length-1]}function io(t){return S(Rs(t))?t.pop():void 0}function je(t){return oo(Rs(t))?t.pop():void 0}function au(t,e){return typeof Rs(t)=="number"?t.pop():e}function cu(t,e,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(u){try{c(r.next(u))}catch(d){s(d)}}function l(u){try{c(r.throw(u))}catch(d){s(d)}}function c(u){u.done?i(u.value):o(u.value).then(a,l)}c((r=r.apply(t,e||[])).next())})}function lu(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function St(t){return this instanceof St?(this.v=t,this):new St(t)}function uu(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(h){return Promise.resolve(h).then(f,d)}}function a(f,h){r[f]&&(o[f]=function(g){return new Promise(function(E,y){i.push([f,g,E,y])>1||l(f,g)})},h&&(o[f]=h(o[f])))}function l(f,h){try{c(r[f](h))}catch(g){p(i[0][3],g)}}function c(f){f.value instanceof St?Promise.resolve(f.value.v).then(u,d):p(i[0][2],f)}function u(f){l("next",f)}function d(f){l("throw",f)}function p(f,h){f(h),i.shift(),i.length&&l(i[0][0],i[0][1])}}function du(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof lu=="function"?lu(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=t[i]&&function(s){return new Promise(function(a,l){s=t[i](s),o(a,l,s.done,s.value)})}}function o(i,s,a,l){Promise.resolve(l).then(function(c){i({value:c,done:a})},s)}}var so=t=>t&&typeof t.length=="number"&&typeof t!="function";function ao(t){return S(t?.then)}function lo(t){return S(t[on])}function co(t){return Symbol.asyncIterator&&S(t?.[Symbol.asyncIterator])}function uo(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 _m(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var fo=_m();function po(t){return S(t?.[fo])}function ho(t){return uu(this,arguments,function*(){let n=t.getReader();try{for(;;){let{value:r,done:o}=yield St(n.read());if(o)return yield St(void 0);yield yield St(r)}}finally{n.releaseLock()}})}function go(t){return S(t?.getReader)}function V(t){if(t instanceof F)return t;if(t!=null){if(lo(t))return wm(t);if(so(t))return bm(t);if(ao(t))return Dm(t);if(co(t))return fu(t);if(po(t))return Tm(t);if(go(t))return Mm(t)}throw uo(t)}function wm(t){return new F(e=>{let n=t[on]();if(S(n.subscribe))return n.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function bm(t){return new F(e=>{for(let n=0;n<t.length&&!e.closed;n++)e.next(t[n]);e.complete()})}function Dm(t){return new F(e=>{t.then(n=>{e.closed||(e.next(n),e.complete())},n=>e.error(n)).then(null,Yr)})}function Tm(t){return new F(e=>{for(let n of t)if(e.next(n),e.closed)return;e.complete()})}function fu(t){return new F(e=>{Sm(t,e).catch(n=>e.error(n))})}function Mm(t){return fu(ho(t))}function Sm(t,e){var n,r,o,i;return cu(this,void 0,void 0,function*(){try{for(n=du(t);r=yield n.next(),!r.done;){let s=r.value;if(e.next(s),e.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}e.complete()})}function he(t,e,n,r=0,o=!1){let i=e.schedule(function(){n(),o?t.add(this.schedule(null,r)):this.unsubscribe()},r);if(t.add(i),!o)return i}function mo(t,e=0){return N((n,r)=>{n.subscribe(C(r,o=>he(r,t,()=>r.next(o),e),()=>he(r,t,()=>r.complete(),e),o=>he(r,t,()=>r.error(o),e)))})}function yo(t,e=0){return N((n,r)=>{r.add(t.schedule(()=>n.subscribe(r),e))})}function pu(t,e){return V(t).pipe(yo(e),mo(e))}function hu(t,e){return V(t).pipe(yo(e),mo(e))}function gu(t,e){return new F(n=>{let r=0;return e.schedule(function(){r===t.length?n.complete():(n.next(t[r++]),n.closed||this.schedule())})})}function mu(t,e){return new F(n=>{let r;return he(n,e,()=>{r=t[fo](),he(n,e,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>S(r?.return)&&r.return()})}function vo(t,e){if(!t)throw new Error("Iterable cannot be null");return new F(n=>{he(n,e,()=>{let r=t[Symbol.asyncIterator]();he(n,e,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function yu(t,e){return vo(ho(t),e)}function vu(t,e){if(t!=null){if(lo(t))return pu(t,e);if(so(t))return gu(t,e);if(ao(t))return hu(t,e);if(co(t))return vo(t,e);if(po(t))return mu(t,e);if(go(t))return yu(t,e)}throw uo(t)}function He(t,e){return e?vu(t,e):V(t)}function Cm(...t){let e=je(t);return He(t,e)}function Nm(t,e){let n=S(t)?t:()=>t,r=o=>o.error(n());return new F(e?o=>e.schedule(r,0,o):r)}function xm(t){return!!t&&(t instanceof F||S(t.lift)&&S(t.subscribe))}var Ct=tn(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function Eu(t){return t instanceof Date&&!isNaN(t)}function ut(t,e){return N((n,r)=>{let o=0;n.subscribe(C(r,i=>{r.next(t.call(e,i,o++))}))})}var{isArray:Am}=Array;function km(t,e){return Am(e)?t(...e):t(e)}function Eo(t){return ut(e=>km(t,e))}var{isArray:Rm}=Array,{getPrototypeOf:Om,prototype:Pm,keys:Fm}=Object;function Io(t){if(t.length===1){let e=t[0];if(Rm(e))return{args:e,keys:null};if(Lm(e)){let n=Fm(e);return{args:n.map(r=>e[r]),keys:n}}}return{args:t,keys:null}}function Lm(t){return t&&typeof t=="object"&&Om(t)===Pm}function _o(t,e){return t.reduce((n,r,o)=>(n[r]=e[o],n),{})}function Vm(...t){let e=je(t),n=io(t),{args:r,keys:o}=Io(t);if(r.length===0)return He([],e);let i=new F(jm(r,e,o?s=>_o(o,s):le));return n?i.pipe(Eo(n)):i}function jm(t,e,n=le){return r=>{Iu(e,()=>{let{length:o}=t,i=new Array(o),s=o,a=o;for(let l=0;l<o;l++)Iu(e,()=>{let c=He(t[l],e),u=!1;c.subscribe(C(r,d=>{i[l]=d,u||(u=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function Iu(t,e,n){t?he(n,t,e):e()}function _u(t,e,n,r,o,i,s,a){let l=[],c=0,u=0,d=!1,p=()=>{d&&!l.length&&!c&&e.complete()},f=g=>c<r?h(g):l.push(g),h=g=>{i&&e.next(g),c++;let E=!1;V(n(g,u++)).subscribe(C(e,y=>{o?.(y),i?f(y):e.next(y)},()=>{E=!0},void 0,()=>{if(E)try{for(c--;l.length&&c<r;){let y=l.shift();s?he(e,s,()=>h(y)):h(y)}p()}catch(y){e.error(y)}}))};return t.subscribe(C(e,f,()=>{d=!0,p()})),()=>{a?.()}}function Nt(t,e,n=1/0){return S(e)?Nt((r,o)=>ut((i,s)=>e(r,i,o,s))(V(t(r,o))),n):(typeof e=="number"&&(n=e),N((r,o)=>_u(r,o,t,n)))}function Qn(t=1/0){return Nt(le,t)}function wu(){return Qn(1)}function wo(...t){return wu()(He(t,je(t)))}function Hm(t){return new F(e=>{V(t()).subscribe(e)})}function Bm(...t){let e=io(t),{args:n,keys:r}=Io(t),o=new F(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),l=s,c=s;for(let u=0;u<s;u++){let d=!1;V(n[u]).subscribe(C(i,p=>{d||(d=!0,c--),a[u]=p},()=>l--,void 0,()=>{(!l||!d)&&(c||i.next(r?_o(r,a):a),i.complete())}))}});return e?o.pipe(Eo(e)):o}function Kn(t=0,e,n=su){let r=-1;return e!=null&&(oo(e)?n=e:r=e),new F(o=>{let i=Eu(t)?+t-n.now():t;i<0&&(i=0);let s=0;return n.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete())},i)})}function $m(t=0,e=Tt){return t<0&&(t=0),Kn(t,t,e)}function Um(...t){let e=je(t),n=au(t,1/0),r=t;return r.length?r.length===1?V(r[0]):Qn(n)(He(r,e)):Mt}function Zn(t,e){return N((n,r)=>{let o=0;n.subscribe(C(r,i=>t.call(e,i,o++)&&r.next(i)))})}function bu(t){return N((e,n)=>{let r=!1,o=null,i=null,s=!1,a=()=>{if(i?.unsubscribe(),i=null,r){r=!1;let c=o;o=null,n.next(c)}s&&n.complete()},l=()=>{i=null,s&&n.complete()};e.subscribe(C(n,c=>{r=!0,o=c,i||V(t(c)).subscribe(i=C(n,a,l))},()=>{s=!0,(!r||!i||i.closed)&&n.complete()}))})}function qm(t,e=Tt){return bu(()=>Kn(t,e))}function Os(t){return N((e,n)=>{let r=null,o=!1,i;r=e.subscribe(C(n,void 0,void 0,s=>{i=V(t(s,Os(t)(e))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function Du(t,e,n,r,o){return(i,s)=>{let a=n,l=e,c=0;i.subscribe(C(s,u=>{let d=c++;l=a?t(l,u,d):(a=!0,u),r&&s.next(l)},o&&(()=>{a&&s.next(l),s.complete()})))}}function zm(t,e){return S(e)?Nt(t,e,1):Nt(t,1)}function Wm(t,e=Tt){return N((n,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let c=i;i=null,r.next(c)}};function l(){let c=s+t,u=e.now();if(u<c){o=this.schedule(void 0,c-u),r.add(o);return}a()}n.subscribe(C(r,c=>{i=c,s=e.now(),o||(o=e.schedule(l,t),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}function Yn(t){return N((e,n)=>{let r=!1;e.subscribe(C(n,o=>{r=!0,n.next(o)},()=>{r||n.next(t),n.complete()}))})}function Ps(t){return t<=0?()=>Mt:N((e,n)=>{let r=0;e.subscribe(C(n,o=>{++r<=t&&(n.next(o),t<=r&&n.complete())}))})}function Gm(t,e=le){return t=t??Qm,N((n,r)=>{let o,i=!0;n.subscribe(C(r,s=>{let a=e(s);(i||!t(o,a))&&(i=!1,o=a,r.next(s))}))})}function Qm(t,e){return t===e}function bo(t=Km){return N((e,n)=>{let r=!1;e.subscribe(C(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(t())))})}function Km(){return new Ct}function Zm(t){return N((e,n)=>{try{e.subscribe(n)}finally{n.add(t)}})}function Ym(t,e){let n=arguments.length>=2;return r=>r.pipe(t?Zn((o,i)=>t(o,i,r)):le,Ps(1),n?Yn(e):bo(()=>new Ct))}function Fs(t){return t<=0?()=>Mt:N((e,n)=>{let r=[];e.subscribe(C(n,o=>{r.push(o),t<r.length&&r.shift()},()=>{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function Jm(t,e){let n=arguments.length>=2;return r=>r.pipe(t?Zn((o,i)=>t(o,i,r)):le,Fs(1),n?Yn(e):bo(()=>new Ct))}function Xm(t,e){return N(Du(t,e,arguments.length>=2,!0))}function Tu(t={}){let{connector:e=()=>new Me,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=t;return i=>{let s,a,l,c=0,u=!1,d=!1,p=()=>{a?.unsubscribe(),a=void 0},f=()=>{p(),s=l=void 0,u=d=!1},h=()=>{let g=s;f(),g?.unsubscribe()};return N((g,E)=>{c++,!d&&!u&&p();let y=l=l??e();E.add(()=>{c--,c===0&&!d&&!u&&(a=Ls(h,o))}),y.subscribe(E),!s&&c>0&&(s=new Ke({next:R=>y.next(R),error:R=>{d=!0,p(),a=Ls(f,n,R),y.error(R)},complete:()=>{u=!0,p(),a=Ls(f,r),y.complete()}}),V(g).subscribe(s))})(i)}}function Ls(t,e,...n){if(e===!0){t();return}if(e===!1)return;let r=new Ke({next:()=>{r.unsubscribe(),t()}});return V(e(...n)).subscribe(r)}function ey(t,e,n){let r,o=!1;return t&&typeof t=="object"?{bufferSize:r=1/0,windowTime:e=1/0,refCount:o=!1,scheduler:n}=t:r=t??1/0,Tu({connector:()=>new eo(r,e,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function ty(...t){let e=je(t);return N((n,r)=>{(e?wo(t,n,e):wo(t,n)).subscribe(r)})}function Mu(t,e){return N((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(C(r,l=>{o?.unsubscribe();let c=0,u=i++;V(t(l,u)).subscribe(o=C(r,d=>r.next(e?e(l,d,u,c++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function ny(t){return N((e,n)=>{V(t).subscribe(C(n,()=>n.complete(),qn)),!n.closed&&e.subscribe(n)})}function Su(t,e,n){let r=S(t)||e||n?{next:t,error:e,complete:n}:t;return r?N((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(C(i,l=>{var c;(c=r.next)===null||c===void 0||c.call(r,l),i.next(l)},()=>{var l;a=!1,(l=r.complete)===null||l===void 0||l.call(r),i.complete()},l=>{var c;a=!1,(c=r.error)===null||c===void 0||c.call(r,l),i.error(l)},()=>{var l,c;a&&((l=r.unsubscribe)===null||l===void 0||l.call(r)),(c=r.finalize)===null||c===void 0||c.call(r)}))}):le}var Rd="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",m=class extends Error{code;constructor(e,n){super(Od(e,n)),this.code=e}};function ry(t){return`NG0${Math.abs(t)}`}function Od(t,e){return`${ry(t)}${e?": "+e:""}`}var mi=Symbol("InputSignalNode#UNSET"),Pd=pe(Q({},Gr),{transformFn:void 0,applyValueToInputSignal(t,e){en(t,e)}});function Fd(t,e){let n=Object.create(Pd);n.value=t,n.transformFn=e?.transform;function r(){if(Xt(n),n.value===mi){let o=null;throw new m(-950,o)}return n.value}return r[ae]=n,r}function yr(t){return{toString:t}.toString()}var Do="__parameters__";function oy(t){return function(...n){if(t){let r=t(...n);for(let o in r)this[o]=r[o]}}}function Ld(t,e,n){return yr(()=>{let r=oy(e);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(l,c,u){let d=l.hasOwnProperty(Do)?l[Do]:Object.defineProperty(l,Do,{value:[]})[Do];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return o.prototype.ngMetadataName=t,o.annotationCls=o,o})}var Ze=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 iy(t,e){for(let n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function ye(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(ye).join(", ")}]`;if(t==null)return""+t;let e=t.overriddenName||t.name;if(e)return`${e}`;let n=t.toString();if(n==null)return""+n;let r=n.indexOf(`
`);return r>=0?n.slice(0,r):n}function ea(t,e){return t?e?`${t} ${e}`:t:e||""}var sy=j({__forward_ref__:j});function Vd(t){return t.__forward_ref__=Vd,t.toString=function(){return ye(this())},t}function ee(t){return jd(t)?t():t}function jd(t){return typeof t=="function"&&t.hasOwnProperty(sy)&&t.__forward_ref__===Vd}function q(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function ay(t){return{providers:t.providers||[],imports:t.imports||[]}}function yi(t){return Cu(t,Hd)||Cu(t,Bd)}function Wk(t){return yi(t)!==null}function Cu(t,e){return t.hasOwnProperty(e)?t[e]:null}function ly(t){let e=t&&(t[Hd]||t[Bd]);return e||null}function Nu(t){return t&&(t.hasOwnProperty(xu)||t.hasOwnProperty(cy))?t[xu]:null}var Hd=j({\u0275prov:j}),xu=j({\u0275inj:j}),Bd=j({ngInjectableDef:j}),cy=j({ngInjectorDef:j}),O=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(e,n){this._desc=e,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=q({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function $d(t){return t&&!!t.\u0275providers}var uy=j({\u0275cmp:j}),dy=j({\u0275dir:j}),fy=j({\u0275pipe:j}),py=j({\u0275mod:j}),Fo=j({\u0275fac:j}),tr=j({__NG_ELEMENT_ID__:j}),Au=j({__NG_ENV_ID__:j});function Ot(t){return typeof t=="string"?t:t==null?"":String(t)}function hy(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():Ot(t)}function Ud(t,e){throw new m(-200,t)}function dl(t,e){throw new m(-201,!1)}var k=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}(k||{}),ta;function qd(){return ta}function ge(t){let e=ta;return ta=t,e}function zd(t,e,n){let r=yi(t);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&k.Optional)return null;if(e!==void 0)return e;dl(t,"Injector")}var gy={},kt=gy,na="__NG_DI_FLAG__",Lo=class{injector;constructor(e){this.injector=e}retrieve(e,n){let r=n;return this.injector.get(e,r.optional?Qr:kt,r)}},Vo="ngTempTokenPath",my="ngTokenPath",yy=/\n/gm,vy="\u0275",ku="__source";function Ey(t,e=k.Default){if(Un()===void 0)throw new m(-203,!1);if(Un()===null)return zd(t,void 0,e);{let n=Un(),r;return n instanceof Lo?r=n.injector:r=n,r.get(t,e&k.Optional?null:void 0,e)}}function we(t,e=k.Default){return(qd()||Ey)(ee(t),e)}function A(t,e=k.Default){return we(t,vi(e))}function vi(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function ra(t){let e=[];for(let n=0;n<t.length;n++){let r=ee(t[n]);if(Array.isArray(r)){if(r.length===0)throw new m(900,!1);let o,i=k.Default;for(let s=0;s<r.length;s++){let a=r[s],l=Iy(a);typeof l=="number"?l===-1?o=a.token:i|=l:o=a}e.push(we(o,i))}else e.push(we(r))}return e}function Wd(t,e){return t[na]=e,t.prototype[na]=e,t}function Iy(t){return t[na]}function _y(t,e,n,r){let o=t[Vo];throw e[ku]&&o.unshift(e[ku]),t.message=wy(`
`+t.message,o,n,r),t[my]=o,t[Vo]=null,t}function wy(t,e,n,r=null){t=t&&t.charAt(0)===`
`&&t.charAt(1)==vy?t.slice(2):t;let o=ye(e);if(Array.isArray(e))o=e.map(ye).join(" -> ");else if(typeof e=="object"){let i=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):ye(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${t.replace(yy,`
`)}`}var Gd=Wd(Ld("Optional"),8);var Qd=Wd(Ld("SkipSelf"),4);function Pt(t,e){let n=t.hasOwnProperty(Fo);return n?t[Fo]:null}function by(t,e,n){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++){let o=t[r],i=e[r];if(n&&(o=n(o),i=n(i)),i!==o)return!1}return!0}function Dy(t){return t.flat(Number.POSITIVE_INFINITY)}function fl(t,e){t.forEach(n=>Array.isArray(n)?fl(n,e):e(n))}function Kd(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function jo(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Ty(t,e){let n=[];for(let r=0;r<t;r++)n.push(e);return n}function My(t,e,n,r){let o=t.length;if(o==e)t.push(n,r);else if(o===1)t.push(r,t[0]),t[0]=n;else{for(o--,t.push(t[o-1],t[o]);o>e;){let i=o-2;t[o]=t[i],o--}t[e]=n,t[e+1]=r}}function vr(t,e,n){let r=Er(t,e);return r>=0?t[r|1]=n:(r=~r,My(t,r,e,n)),r}function Vs(t,e){let n=Er(t,e);if(n>=0)return t[n|1]}function Er(t,e){return Sy(t,e,1)}function Sy(t,e,n){let r=0,o=t.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=t[i<<n];if(e===s)return i<<n;s>e?o=i:r=i+1}return~(o<<n)}var $e={},ce=[],Ho=new O(""),Zd=new O("",-1),Yd=new O(""),Bo=class{get(e,n=kt){if(n===kt){let r=new Error(`NullInjectorError: No provider for ${ye(e)}!`);throw r.name="NullInjectorError",r}return n}};function Jd(t,e){let n=t[py]||null;if(!n&&e===!0)throw new Error(`Type ${ye(t)} does not have '\u0275mod' property.`);return n}function Ye(t){return t[uy]||null}function pl(t){return t[dy]||null}function Xd(t){return t[fy]||null}function Cy(t){return{\u0275providers:t}}function Ny(...t){return{\u0275providers:hl(!0,t),\u0275fromNgModule:!0}}function hl(t,...e){let n=[],r=new Set,o,i=s=>{n.push(s)};return fl(e,s=>{let a=s;oa(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&ef(o,i),n}function ef(t,e){for(let n=0;n<t.length;n++){let{ngModule:r,providers:o}=t[n];gl(o,i=>{e(i,r)})}}function oa(t,e,n,r){if(t=ee(t),!t)return!1;let o=null,i=Nu(t),s=!i&&Ye(t);if(!i&&!s){let l=t.ngModule;if(i=Nu(l),i)o=l;else return!1}else{if(s&&!s.standalone)return!1;o=t}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let l=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of l)oa(c,e,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let c;try{fl(i.imports,u=>{oa(u,e,n,r)&&(c||=[],c.push(u))})}finally{}c!==void 0&&ef(c,e)}if(!a){let c=Pt(o)||(()=>new o);e({provide:o,useFactory:c,deps:ce},o),e({provide:Yd,useValue:o,multi:!0},o),e({provide:Ho,useValue:()=>we(o),multi:!0},o)}let l=i.providers;if(l!=null&&!a){let c=t;gl(l,u=>{e(u,c)})}}else return!1;return o!==t&&t.providers!==void 0}function gl(t,e){for(let n of t)$d(n)&&(n=n.\u0275providers),Array.isArray(n)?gl(n,e):e(n)}var xy=j({provide:String,useValue:j});function tf(t){return t!==null&&typeof t=="object"&&xy in t}function Ay(t){return!!(t&&t.useExisting)}function ky(t){return!!(t&&t.useFactory)}function yn(t){return typeof t=="function"}function Ry(t){return!!t.useClass}var nf=new O(""),xo={},Ru={},js;function Ei(){return js===void 0&&(js=new Bo),js}var Je=class{},or=class extends Je{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(e,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,sa(e,s=>this.processProvider(s)),this.records.set(Zd,un(void 0,this)),o.has("environment")&&this.records.set(Je,un(void 0,this));let i=this.records.get(nf);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Yd,ce,k.Self))}retrieve(e,n){let r=n;return this.get(e,r.optional?Qr:kt,r)}destroy(){Xn(this),this._destroyed=!0;let e=M(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),M(e)}}onDestroy(e){return Xn(this),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){Xn(this);let n=Qe(this),r=ge(void 0),o;try{return e()}finally{Qe(n),ge(r)}}get(e,n=kt,r=k.Default){if(Xn(this),e.hasOwnProperty(Au))return e[Au](this);r=vi(r);let o,i=Qe(this),s=ge(void 0);try{if(!(r&k.SkipSelf)){let l=this.records.get(e);if(l===void 0){let c=Vy(e)&&yi(e);c&&this.injectableDefInScope(c)?l=un(ia(e),xo):l=null,this.records.set(e,l)}if(l!=null)return this.hydrate(e,l)}let a=r&k.Self?Ei():this.parent;return n=r&k.Optional&&n===kt?null:n,a.get(e,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Vo]=a[Vo]||[]).unshift(ye(e)),i)throw a;return _y(a,e,"R3InjectorError",this.source)}else throw a}finally{ge(s),Qe(i)}}resolveInjectorInitializers(){let e=M(null),n=Qe(this),r=ge(void 0),o;try{let i=this.get(Ho,ce,k.Self);for(let s of i)s()}finally{Qe(n),ge(r),M(e)}}toString(){let e=[],n=this.records;for(let r of n.keys())e.push(ye(r));return`R3Injector[${e.join(", ")}]`}processProvider(e){e=ee(e);let n=yn(e)?e:ee(e&&e.provide),r=Py(e);if(!yn(e)&&e.multi===!0){let o=this.records.get(n);o||(o=un(void 0,xo,!0),o.factory=()=>ra(o.multi),this.records.set(n,o)),n=e,o.multi.push(e)}this.records.set(n,r)}hydrate(e,n){let r=M(null);try{return n.value===Ru?Ud(ye(e)):n.value===xo&&(n.value=Ru,n.value=n.factory()),typeof n.value=="object"&&n.value&&Ly(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{M(r)}}injectableDefInScope(e){if(!e.providedIn)return!1;let n=ee(e.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(e){let n=this._onDestroyHooks.indexOf(e);n!==-1&&this._onDestroyHooks.splice(n,1)}};function ia(t){let e=yi(t),n=e!==null?e.factory:Pt(t);if(n!==null)return n;if(t instanceof O)throw new m(204,!1);if(t instanceof Function)return Oy(t);throw new m(204,!1)}function Oy(t){if(t.length>0)throw new m(204,!1);let n=ly(t);return n!==null?()=>n.factory(t):()=>new t}function Py(t){if(tf(t))return un(void 0,t.useValue);{let e=rf(t);return un(e,xo)}}function rf(t,e,n){let r;if(yn(t)){let o=ee(t);return Pt(o)||ia(o)}else if(tf(t))r=()=>ee(t.useValue);else if(ky(t))r=()=>t.useFactory(...ra(t.deps||[]));else if(Ay(t))r=()=>we(ee(t.useExisting));else{let o=ee(t&&(t.useClass||t.provide));if(Fy(t))r=()=>new o(...ra(t.deps));else return Pt(o)||ia(o)}return r}function Xn(t){if(t.destroyed)throw new m(205,!1)}function un(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function Fy(t){return!!t.deps}function Ly(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function Vy(t){return typeof t=="function"||typeof t=="object"&&t instanceof O}function sa(t,e){for(let n of t)Array.isArray(n)?sa(n,e):n&&$d(n)?sa(n.\u0275providers,e):e(n)}function of(t,e){let n;t instanceof or?(Xn(t),n=t):n=new Lo(t);let r,o=Qe(n),i=ge(void 0);try{return e()}finally{Qe(o),ge(i)}}function sf(){return qd()!==void 0||Un()!=null}function af(t){if(!sf())throw new m(-203,!1)}function jy(t){let e=Ze.ng;if(e&&e.\u0275compilerFacade)return e.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}var Gk=Function;function Hy(t){return typeof t=="function"}var rt=0,w=1,T=2,te=3,Re=4,ve=5,vn=6,$o=7,J=8,Ce=9,Xe=10,$=11,ir=12,Ou=13,Tn=14,be=15,Ft=16,dn=17,et=18,Ii=19,lf=20,ft=21,Hs=22,Lt=23,Se=24,hn=25,B=26,cf=1,sr=6,Vt=7,Uo=8,En=9,re=10;function pt(t){return Array.isArray(t)&&typeof t[cf]=="object"}function ot(t){return Array.isArray(t)&&t[cf]===!0}function ml(t){return(t.flags&4)!==0}function Mn(t){return t.componentOffset>-1}function _i(t){return(t.flags&1)===1}function Ue(t){return!!t.template}function qo(t){return(t[T]&512)!==0}function Wt(t){return(t[T]&256)===256}var aa=class{previousValue;currentValue;firstChange;constructor(e,n,r){this.previousValue=e,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function uf(t,e,n,r){e!==null?e.applyValueToInputSignal(e,r):t[n]=r}var Qk=(()=>{let t=()=>df;return t.ngInherit=!0,t})();function df(t){return t.type.prototype.ngOnChanges&&(t.setInput=$y),By}function By(){let t=pf(this),e=t?.current;if(e){let n=t.previous;if(n===$e)t.previous=e;else for(let r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e)}}function $y(t,e,n,r,o){let i=this.declaredInputs[r],s=pf(t)||Uy(t,{previous:$e,current:null}),a=s.current||(s.current={}),l=s.previous,c=l[i];a[i]=new aa(c&&c.currentValue,n,l===$e),uf(t,e,o,n)}var ff="__ngSimpleChanges__";function pf(t){return t[ff]||null}function Uy(t,e){return t[ff]=e}var Pu=null;var L=function(t,e=null,n){Pu?.(t,e,n)},hf="svg",qy="math";function qe(t){for(;Array.isArray(t);)t=t[rt];return t}function gf(t,e){return qe(e[t])}function We(t,e){return qe(e[t.index])}function Ir(t,e){return t.data[e]}function Sn(t,e){return t[e]}function ze(t,e){let n=e[t];return pt(n)?n:n[rt]}function zy(t){return(t[T]&4)===4}function yl(t){return(t[T]&128)===128}function Wy(t){return ot(t[te])}function ht(t,e){return e==null?null:t[e]}function mf(t){t[dn]=0}function yf(t){t[T]&1024||(t[T]|=1024,yl(t)&&Cn(t))}function Gy(t,e){for(;t>0;)e=e[Tn],t--;return e}function wi(t){return!!(t[T]&9216||t[Se]?.dirty)}function la(t){t[Xe].changeDetectionScheduler?.notify(8),t[T]&64&&(t[T]|=1024),wi(t)&&Cn(t)}function Cn(t){t[Xe].changeDetectionScheduler?.notify(0);let e=jt(t);for(;e!==null&&!(e[T]&8192||(e[T]|=8192,!yl(e)));)e=jt(e)}function vl(t,e){if(Wt(t))throw new m(911,!1);t[ft]===null&&(t[ft]=[]),t[ft].push(e)}function vf(t,e){if(t[ft]===null)return;let n=t[ft].indexOf(e);n!==-1&&t[ft].splice(n,1)}function jt(t){let e=t[te];return ot(e)?e[te]:e}function El(t){return t[$o]??=[]}function Il(t){return t.cleanup??=[]}function Qy(t,e,n,r){let o=El(e);o.push(n),t.firstCreatePass&&Il(t).push(r,o.length-1)}var x={lFrame:Df(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var ca=!1;function Ky(){return x.lFrame.elementDepthCount}function Zy(){x.lFrame.elementDepthCount++}function Yy(){x.lFrame.elementDepthCount--}function _l(){return x.bindingsEnabled}function Ef(){return x.skipHydrationRootTNode!==null}function Jy(t){return x.skipHydrationRootTNode===t}function Xy(){x.skipHydrationRootTNode=null}function I(){return x.lFrame.lView}function H(){return x.lFrame.tView}function Kk(t){return x.lFrame.contextLView=t,t[J]}function Zk(t){return x.lFrame.contextLView=null,t}function ie(){let t=If();for(;t!==null&&t.type===64;)t=t.parent;return t}function If(){return x.lFrame.currentTNode}function ev(){let t=x.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function mt(t,e){let n=x.lFrame;n.currentTNode=t,n.isParent=e}function wl(){return x.lFrame.isParent}function bl(){x.lFrame.isParent=!1}function tv(){return x.lFrame.contextLView}function _f(){return ca}function zo(t){let e=ca;return ca=t,e}function Ne(){let t=x.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function nv(){return x.lFrame.bindingIndex}function rv(t){return x.lFrame.bindingIndex=t}function yt(){return x.lFrame.bindingIndex++}function Dl(t){let e=x.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function ov(){return x.lFrame.inI18n}function iv(t,e){let n=x.lFrame;n.bindingIndex=n.bindingRootIndex=t,ua(e)}function sv(){return x.lFrame.currentDirectiveIndex}function ua(t){x.lFrame.currentDirectiveIndex=t}function av(t){let e=x.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function Tl(){return x.lFrame.currentQueryIndex}function bi(t){x.lFrame.currentQueryIndex=t}function lv(t){let e=t[w];return e.type===2?e.declTNode:e.type===1?t[ve]:null}function wf(t,e,n){if(n&k.SkipSelf){let o=e,i=t;for(;o=o.parent,o===null&&!(n&k.Host);)if(o=lv(i),o===null||(i=i[Tn],o.type&10))break;if(o===null)return!1;e=o,t=i}let r=x.lFrame=bf();return r.currentTNode=e,r.lView=t,!0}function Ml(t){let e=bf(),n=t[w];x.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function bf(){let t=x.lFrame,e=t===null?null:t.child;return e===null?Df(t):e}function Df(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 Tf(){let t=x.lFrame;return x.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Mf=Tf;function Sl(){let t=Tf();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 cv(t){return(x.lFrame.contextLView=Gy(t,x.lFrame.contextLView))[J]}function it(){return x.lFrame.selectedIndex}function Ht(t){x.lFrame.selectedIndex=t}function Gt(){let t=x.lFrame;return Ir(t.tView,t.selectedIndex)}function Yk(){x.lFrame.currentNamespace=hf}function uv(){return x.lFrame.currentNamespace}var Sf=!0;function Di(){return Sf}function Ti(t){Sf=t}function dv(t,e,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=e.type.prototype;if(r){let s=df(e);(n.preOrderHooks??=[]).push(t,s),(n.preOrderCheckHooks??=[]).push(t,s)}o&&(n.preOrderHooks??=[]).push(0-t,o),i&&((n.preOrderHooks??=[]).push(t,i),(n.preOrderCheckHooks??=[]).push(t,i))}function Cl(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n<r;n++){let i=t.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=i;s&&(t.contentHooks??=[]).push(-n,s),a&&((t.contentHooks??=[]).push(n,a),(t.contentCheckHooks??=[]).push(n,a)),l&&(t.viewHooks??=[]).push(-n,l),c&&((t.viewHooks??=[]).push(n,c),(t.viewCheckHooks??=[]).push(n,c)),u!=null&&(t.destroyHooks??=[]).push(n,u)}}function Ao(t,e,n){Cf(t,e,3,n)}function ko(t,e,n,r){(t[T]&3)===n&&Cf(t,e,n,r)}function Bs(t,e){let n=t[T];(n&3)===e&&(n&=16383,n+=1,t[T]=n)}function Cf(t,e,n,r){let o=r!==void 0?t[dn]&65535:0,i=r??-1,s=e.length-1,a=0;for(let l=o;l<s;l++)if(typeof e[l+1]=="number"){if(a=e[l],r!=null&&a>=r)break}else e[l]<0&&(t[dn]+=65536),(a<i||i==-1)&&(fv(t,n,e,l),t[dn]=(t[dn]&4294901760)+l+2),l++}function Fu(t,e){L(4,t,e);let n=M(null);try{e.call(t)}finally{M(n),L(5,t,e)}}function fv(t,e,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=t[s];o?t[T]>>14<t[dn]>>16&&(t[T]&3)===e&&(t[T]+=16384,Fu(a,i)):Fu(a,i)}var gn=-1,Bt=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(e,n,r){this.factory=e,this.canSeeViewProviders=n,this.injectImpl=r}};function pv(t){return(t.flags&8)!==0}function hv(t){return(t.flags&16)!==0}function gv(t,e,n){let r=0;for(;r<n.length;){let o=n[r];if(typeof o=="number"){if(o!==0)break;r++;let i=n[r++],s=n[r++],a=n[r++];t.setAttribute(e,s,a,i)}else{let i=o,s=n[++r];mv(i)?t.setProperty(e,i,s):t.setAttribute(e,i,s),r++}}return r}function Nf(t){return t===3||t===4||t===6}function mv(t){return t.charCodeAt(0)===64}function In(t,e){if(!(e===null||e.length===0))if(t===null||t.length===0)t=e.slice();else{let n=-1;for(let r=0;r<e.length;r++){let o=e[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?Lu(t,n,o,null,e[++r]):Lu(t,n,o,null,null))}}return t}function Lu(t,e,n,r,o){let i=0,s=t.length;if(e===-1)s=-1;else for(;i<t.length;){let a=t[i++];if(typeof a=="number"){if(a===e){s=-1;break}else if(a>e){s=i-1;break}}}for(;i<t.length;){let a=t[i];if(typeof a=="number")break;if(a===n){o!==null&&(t[i+1]=o);return}i++,o!==null&&i++}s!==-1&&(t.splice(s,0,e),i=s+1),t.splice(i++,0,n),o!==null&&t.splice(i++,0,o)}function xf(t){return t!==gn}function Wo(t){return t&32767}function yv(t){return t>>16}function Go(t,e){let n=yv(t),r=e;for(;n>0;)r=r[Tn],n--;return r}var da=!0;function Qo(t){let e=da;return da=t,e}var vv=256,Af=vv-1,kf=5,Ev=0,Be={};function Iv(t,e,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(tr)&&(r=n[tr]),r==null&&(r=n[tr]=Ev++);let o=r&Af,i=1<<o;e.data[t+(o>>kf)]|=i}function Ko(t,e){let n=Rf(t,e);if(n!==-1)return n;let r=e[w];r.firstCreatePass&&(t.injectorIndex=e.length,$s(r.data,t),$s(e,null),$s(r.blueprint,null));let o=Nl(t,e),i=t.injectorIndex;if(xf(o)){let s=Wo(o),a=Go(o,e),l=a[w].data;for(let c=0;c<8;c++)e[i+c]=a[s+c]|l[s+c]}return e[i+8]=o,i}function $s(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Rf(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function Nl(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let n=0,r=null,o=e;for(;o!==null;){if(r=Vf(o),r===null)return gn;if(n++,o=o[Tn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return gn}function fa(t,e,n){Iv(t,e,n)}function _v(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let n=t.attrs;if(n){let r=n.length,o=0;for(;o<r;){let i=n[o];if(Nf(i))break;if(i===0)o=o+2;else if(typeof i=="number")for(o++;o<r&&typeof n[o]=="string";)o++;else{if(i===e)return n[o+1];o=o+2}}}return null}function Of(t,e,n){if(n&k.Optional||t!==void 0)return t;dl(e,"NodeInjector")}function Pf(t,e,n,r){if(n&k.Optional&&r===void 0&&(r=null),(n&(k.Self|k.Host))===0){let o=t[Ce],i=ge(void 0);try{return o?o.get(e,r,n&k.Optional):zd(e,r,n&k.Optional)}finally{ge(i)}}return Of(r,e,n)}function Ff(t,e,n,r=k.Default,o){if(t!==null){if(e[T]&2048&&!(r&k.Self)){let s=Tv(t,e,n,r,Be);if(s!==Be)return s}let i=Lf(t,e,n,r,Be);if(i!==Be)return i}return Pf(e,n,r,o)}function Lf(t,e,n,r,o){let i=bv(n);if(typeof i=="function"){if(!wf(e,t,r))return r&k.Host?Of(o,n,r):Pf(e,n,r,o);try{let s;if(s=i(r),s==null&&!(r&k.Optional))dl(n);else return s}finally{Mf()}}else if(typeof i=="number"){let s=null,a=Rf(t,e),l=gn,c=r&k.Host?e[be][ve]:null;for((a===-1||r&k.SkipSelf)&&(l=a===-1?Nl(t,e):e[a+8],l===gn||!ju(r,!1)?a=-1:(s=e[w],a=Wo(l),e=Go(l,e)));a!==-1;){let u=e[w];if(Vu(i,a,u.data)){let d=wv(a,e,n,s,r,c);if(d!==Be)return d}l=e[a+8],l!==gn&&ju(r,e[w].data[a+8]===c)&&Vu(i,a,e)?(s=u,a=Wo(l),e=Go(l,e)):a=-1}}return o}function wv(t,e,n,r,o,i){let s=e[w],a=s.data[t+8],l=r==null?Mn(a)&&da:r!=s&&(a.type&3)!==0,c=o&k.Host&&i===a,u=Ro(a,s,n,l,c);return u!==null?ar(e,s,u,a):Be}function Ro(t,e,n,r,o){let i=t.providerIndexes,s=e.data,a=i&1048575,l=t.directiveStart,c=t.directiveEnd,u=i>>20,d=r?a:a+u,p=o?a+u:c;for(let f=d;f<p;f++){let h=s[f];if(f<l&&n===h||f>=l&&h.type===n)return f}if(o){let f=s[l];if(f&&Ue(f)&&f.type===n)return l}return null}function ar(t,e,n,r){let o=t[n],i=e.data;if(o instanceof Bt){let s=o;s.resolving&&Ud(hy(i[n]));let a=Qo(s.canSeeViewProviders);s.resolving=!0;let l,c=s.injectImpl?ge(s.injectImpl):null,u=wf(t,r,k.Default);try{o=t[n]=s.factory(void 0,i,t,r),e.firstCreatePass&&n>=r.directiveStart&&dv(n,i[n],e)}finally{c!==null&&ge(c),Qo(a),s.resolving=!1,Mf()}}return o}function bv(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(tr)?t[tr]:void 0;return typeof e=="number"?e>=0?e&Af:Dv:e}function Vu(t,e,n){let r=1<<t;return!!(n[e+(t>>kf)]&r)}function ju(t,e){return!(t&k.Self)&&!(t&k.Host&&e)}var Rt=class{_tNode;_lView;constructor(e,n){this._tNode=e,this._lView=n}get(e,n,r){return Ff(this._tNode,this._lView,e,vi(r),n)}};function Dv(){return new Rt(ie(),I())}function Jk(t){return yr(()=>{let e=t.prototype.constructor,n=e[Fo]||pa(e),r=Object.prototype,o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==r;){let i=o[Fo]||pa(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function pa(t){return jd(t)?()=>{let e=pa(ee(t));return e&&e()}:Pt(t)}function Tv(t,e,n,r,o){let i=t,s=e;for(;i!==null&&s!==null&&s[T]&2048&&!qo(s);){let a=Lf(i,s,n,r|k.Self,Be);if(a!==Be)return a;let l=i.parent;if(!l){let c=s[lf];if(c){let u=c.get(n,Be,r);if(u!==Be)return u}l=Vf(s),s=s[Tn]}i=l}return o}function Vf(t){let e=t[w],n=e.type;return n===2?e.declTNode:n===1?t[ve]:null}function Xk(t){return _v(ie(),t)}function Hu(t,e=null,n=null,r){let o=jf(t,e,n,r);return o.resolveInjectorInitializers(),o}function jf(t,e=null,n=null,r,o=new Set){let i=[n||ce,Ny(t)];return r=r||(typeof t=="object"?void 0:ye(t)),new or(i,e||Ei(),r||null,o)}var tt=class t{static THROW_IF_NOT_FOUND=kt;static NULL=new Bo;static create(e,n){if(Array.isArray(e))return Hu({name:""},n,e,"");{let r=e.name??"";return Hu({name:r},e.parent,e.providers,r)}}static \u0275prov=q({token:t,providedIn:"any",factory:()=>we(Zd)});static __NG_ELEMENT_ID__=-1};var Mv=new O("");Mv.__NG_ELEMENT_ID__=t=>{let e=ie();if(e===null)throw new m(204,!1);if(e.type&2)return e.value;if(t&k.Optional)return null;throw new m(204,!1)};var Hf=!1,_r=(()=>{class t{static __NG_ELEMENT_ID__=Sv;static __NG_ENV_ID__=n=>n}return t})(),Zo=class extends _r{_lView;constructor(e){super(),this._lView=e}onDestroy(e){let n=this._lView;return Wt(n)?(e(),()=>{}):(vl(n,e),()=>vf(n,e))}};function Sv(){return new Zo(I())}var $t=class{},Bf=new O("",{providedIn:"root",factory:()=>!1});var $f=new O(""),Uf=new O(""),wr=(()=>{class t{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new zn(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=q({token:t,providedIn:"root",factory:()=>new t})}return t})();var ha=class extends Me{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(e=!1){super(),this.__isAsync=e,sf()&&(this.destroyRef=A(_r,{optional:!0})??void 0,this.pendingTasks=A(wr,{optional:!0})??void 0)}emit(e){let n=M(null);try{super.next(e)}finally{M(n)}}subscribe(e,n,r){let o=e,i=n||(()=>null),s=r;if(e&&typeof e=="object"){let l=e;o=l.next?.bind(l),i=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return e instanceof z&&e.add(a),a}wrapInTimeout(e){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{e(n)}finally{r!==void 0&&this.pendingTasks?.remove(r)}})}}},dt=ha;function lr(...t){}function qf(t){let e,n;function r(){t=lr;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),e!==void 0&&clearTimeout(e)}catch{}}return e=setTimeout(()=>{t(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{t(),r()})),()=>r()}function Bu(t){return queueMicrotask(()=>t()),()=>{t=lr}}var xl="isAngularZone",Yo=xl+"_ID",Cv=0,ue=class t{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new dt(!1);onMicrotaskEmpty=new dt(!1);onStable=new dt(!1);onError=new dt(!1);constructor(e){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=Hf}=e;if(typeof Zone>"u")throw new m(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,Av(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(xl)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new m(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new m(909,!1)}run(e,n,r){return this._inner.run(e,n,r)}runTask(e,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,e,Nv,lr,lr);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(e,n,r){return this._inner.runGuarded(e,n,r)}runOutsideAngular(e){return this._outer.run(e)}},Nv={};function Al(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){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function e(){qf(()=>{t.callbackScheduled=!1,ga(t),t.isCheckStableRunning=!0,Al(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{e()}):t._outer.run(()=>{e()}),ga(t)}function Av(t){let e=()=>{xv(t)},n=Cv++;t._inner=t._inner.fork({name:"angular",properties:{[xl]:!0,[Yo]:n,[Yo+n]:!0},onInvokeTask:(r,o,i,s,a,l)=>{if(kv(l))return r.invokeTask(i,s,a,l);try{return $u(t),r.invokeTask(i,s,a,l)}finally{(t.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),Uu(t)}},onInvoke:(r,o,i,s,a,l,c)=>{try{return $u(t),r.invoke(i,s,a,l,c)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!Rv(l)&&e(),Uu(t)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(t._hasPendingMicrotasks=s.microTask,ga(t),Al(t)):s.change=="macroTask"&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}function ga(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function $u(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Uu(t){t._nesting--,Al(t)}var Jo=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new dt;onMicrotaskEmpty=new dt;onStable=new dt;onError=new dt;run(e,n,r){return e.apply(n,r)}runGuarded(e,n,r){return e.apply(n,r)}runOutsideAngular(e){return e()}runTask(e,n,r,o){return e.apply(n,r)}};function kv(t){return zf(t,"__ignore_ng_zone__")}function Rv(t){return zf(t,"__scheduler_tick__")}function zf(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}function Ov(t="zone.js",e){return t==="noop"?new Jo:t==="zone.js"?new ue(e):t}var gt=class{_console=console;handleError(e){this._console.error("ERROR",e)}},Pv=new O("",{providedIn:"root",factory:()=>{let t=A(ue),e=A(gt);return n=>t.runOutsideAngular(()=>e.handleError(n))}}),Xo=class{destroyed=!1;listeners=null;errorHandler=A(gt,{optional:!0});destroyRef=A(_r);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(e){if(this.destroyed)throw new m(953,!1);return(this.listeners??=[]).push(e),{unsubscribe:()=>{let n=this.listeners?.indexOf(e);n!==void 0&&n!==-1&&this.listeners?.splice(n,1)}}}emit(e){if(this.destroyed){console.warn(Od(953,!1));return}if(this.listeners===null)return;let n=M(null);try{for(let r of this.listeners)try{r(e)}catch(o){this.errorHandler?.handleError(o)}}finally{M(n)}}};function eR(t){return new Xo}function qu(t,e){return Fd(t,e)}function Fv(t){return Fd(mi,t)}var tR=(qu.required=Fv,qu);function Lv(){return Nn(ie(),I())}function Nn(t,e){return new Mi(We(t,e))}var Mi=(()=>{class t{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=Lv}return t})();function Wf(t){return t instanceof Mi?t.nativeElement:t}function Vv(t){return typeof t=="function"&&t[ae]!==void 0}function jv(t,e){let n=Es(t,e?.equal),r=n[ae];return n.set=o=>en(r,o),n.update=o=>Is(r,o),n.asReadonly=Gf.bind(n),n}function Gf(){let t=this[ae];if(t.readonlyFn===void 0){let e=()=>this();e[ae]=t,t.readonlyFn=e}return t.readonlyFn}function Qf(t){return Vv(t)&&typeof t.set=="function"}function Hv(){return this._results[Symbol.iterator]()}var ma=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new Me}constructor(e=!1){this._emitDistinctChangesOnly=e}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,n){return this._results.reduce(e,n)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,n){this.dirty=!1;let r=Dy(e);(this._changesDetected=!by(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=Hv};function Kf(t){return(t.flags&128)===128}var Zf=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(Zf||{}),Yf=new Map,Bv=0;function $v(){return Bv++}function Uv(t){Yf.set(t[Ii],t)}function ya(t){Yf.delete(t[Ii])}var zu="__ngContext__";function xn(t,e){pt(e)?(t[zu]=e[Ii],Uv(e)):t[zu]=e}function Jf(t){return ep(t[ir])}function Xf(t){return ep(t[Re])}function ep(t){for(;t!==null&&!ot(t);)t=t[Re];return t}var va;function nR(t){va=t}function tp(){if(va!==void 0)return va;if(typeof document<"u")return document;throw new m(210,!1)}var qv=new O("",{providedIn:"root",factory:()=>zv}),zv="ng",Wv=new O(""),rR=new O("",{providedIn:"platform",factory:()=>"unknown"});var oR=new O(""),iR=new O("",{providedIn:"root",factory:()=>tp().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Gv="h",Qv="b";var Kv="di",np="s";var rp=!1,Zv=new O("",{providedIn:"root",factory:()=>rp});var Yv=new O("");var kl=function(t){return t[t.CHANGE_DETECTION=0]="CHANGE_DETECTION",t[t.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",t}(kl||{}),Si=new O(""),Wu=new Set;function br(t){Wu.has(t)||(Wu.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}var Rl=(()=>{class t{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=Jv}return t})();function Jv(){return new Rl(I(),ie())}var fn=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(fn||{}),op=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=q({token:t,providedIn:"root",factory:()=>new t})}return t})(),Xv=[fn.EarlyRead,fn.Write,fn.MixedReadWrite,fn.Read],eE=(()=>{class t{ngZone=A(ue);scheduler=A($t);errorHandler=A(gt,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){A(Si,{optional:!0})}execute(){let n=this.sequences.size>0;n&&L(16),this.executing=!0;for(let r of Xv)for(let o of this.sequences)if(!(o.erroredOrDestroyed||!o.hooks[r]))try{o.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let i=o.hooks[r];return i(o.pipelinedValue)},o.snapshot))}catch(i){o.erroredOrDestroyed=!0,this.errorHandler?.handleError(i)}this.executing=!1;for(let r of this.sequences)r.afterRun(),r.once&&(this.sequences.delete(r),r.destroy());for(let r of this.deferredRegistrations)this.sequences.add(r);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),n&&L(17)}register(n){let{view:r}=n;r!==void 0?((r[hn]??=[]).push(n),Cn(r),r[T]|=8192):this.executing?this.deferredRegistrations.add(n):this.addSequence(n)}addSequence(n){this.sequences.add(n),this.scheduler.notify(7)}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=!0,n.pipelinedValue=void 0,n.once=!0):(this.sequences.delete(n),this.deferredRegistrations.delete(n))}maybeTrace(n,r){return r?r.run(kl.AFTER_NEXT_RENDER,n):n()}static \u0275prov=q({token:t,providedIn:"root",factory:()=>new t})}return t})(),Ea=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(e,n,r,o,i,s=null){this.impl=e,this.hooks=n,this.view=r,this.once=o,this.snapshot=s,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let e=this.view?.[hn];e&&(this.view[hn]=e.filter(n=>n!==this))}};function tE(t,e){!e?.injector&&af(tE);let n=e?.injector??A(tt);return br("NgAfterNextRender"),rE(t,n,e,!0)}function nE(t,e){if(t instanceof Function){let n=[void 0,void 0,void 0,void 0];return n[e]=t,n}else return[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function rE(t,e,n,r){let o=e.get(op);o.impl??=e.get(eE);let i=e.get(Si,null,{optional:!0}),s=n?.phase??fn.MixedReadWrite,a=n?.manualCleanup!==!0?e.get(_r):null,l=e.get(Rl,null,{optional:!0}),c=new Ea(o.impl,nE(t,s),l?.view,r,a,i?.snapshot(null));return o.impl.register(c),c}var me=function(t){return t[t.NOT_STARTED=0]="NOT_STARTED",t[t.IN_PROGRESS=1]="IN_PROGRESS",t[t.COMPLETE=2]="COMPLETE",t[t.FAILED=3]="FAILED",t}(me||{}),Gu=0,oE=1,K=function(t){return t[t.Placeholder=0]="Placeholder",t[t.Loading=1]="Loading",t[t.Complete=2]="Complete",t[t.Error=3]="Error",t}(K||{}),ei=function(t){return t[t.Initial=-1]="Initial",t}(ei||{}),iE=0,Ci=1;var sE=4,aE=5,lE=6,cE=7,Us=8,uE=9,ip=function(t){return t[t.Manual=0]="Manual",t[t.Playthrough=1]="Playthrough",t}(ip||{});function dE(t,e,n){let r=ap(t);e[r]===null&&(e[r]=[]),e[r].push(n)}function Oo(t,e){let n=ap(t),r=e[n];if(r!==null){for(let o of r)o();e[n]=null}}function sp(t){Oo(1,t),Oo(0,t),Oo(2,t)}function ap(t){let e=sE;return t===1?e=aE:t===2&&(e=uE),e}function Ni(t){return t+1}function Dr(t,e){let n=t[w],r=Ni(e.index);return t[r]}function fE(t,e,n){let r=t[w],o=Ni(e);t[o]=n}function Tr(t,e){let n=Ni(e.index);return t.data[n]}function pE(t,e,n){let r=Ni(e);t.data[r]=n}function hE(t,e,n){let r=e[w],o=Tr(r,n);switch(t){case K.Complete:return o.primaryTmplIndex;case K.Loading:return o.loadingTmplIndex;case K.Error:return o.errorTmplIndex;case K.Placeholder:return o.placeholderTmplIndex;default:return null}}function Qu(t,e){return e===K.Placeholder?t.placeholderBlockConfig?.[Gu]??null:e===K.Loading?t.loadingBlockConfig?.[Gu]??null:null}function gE(t){return t.loadingBlockConfig?.[oE]??null}function Ku(t,e){if(!t||t.length===0)return e;let n=new Set(t);for(let r of e)n.add(r);return t.length===n.size?t:Array.from(n)}function mE(t,e){let n=e.primaryTmplIndex+B;return Ir(t,n)}var yE=new O("");var vE=()=>null;function lp(t,e,n=!1){return vE(t,e,n)}function EE(t){return t.get(Yv,!1,{optional:!0})}function cp(t,e){let n=t.contentQueries;if(n!==null){let r=M(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=t.data[s];bi(i),a.contentQueries(2,e[s],s)}}}finally{M(r)}}}function Ia(t,e,n){bi(0);let r=M(null);try{e(t,n)}finally{M(r)}}function Ol(t,e,n){if(ml(e)){let r=M(null);try{let o=e.directiveStart,i=e.directiveEnd;for(let s=o;s<i;s++){let a=t.data[s];if(a.contentQueries){let l=n[s];a.contentQueries(1,l,s)}}}finally{M(r)}}}var cr=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(cr||{}),To;function IE(){if(To===void 0&&(To=null,Ze.trustedTypes))try{To=Ze.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return To}function xi(t){return IE()?.createHTML(t)||t}var Mo;function up(){if(Mo===void 0&&(Mo=null,Ze.trustedTypes))try{Mo=Ze.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Mo}function Zu(t){return up()?.createHTML(t)||t}function Yu(t){return up()?.createScriptURL(t)||t}var nt=class{changingThisBreaksApplicationSecurity;constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Rd})`}},_a=class extends nt{getTypeName(){return"HTML"}},wa=class extends nt{getTypeName(){return"Style"}},ba=class extends nt{getTypeName(){return"Script"}},Da=class extends nt{getTypeName(){return"URL"}},Ta=class extends nt{getTypeName(){return"ResourceURL"}};function An(t){return t instanceof nt?t.changingThisBreaksApplicationSecurity:t}function Pl(t,e){let n=_E(t);if(n!=null&&n!==e){if(n==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${n} (see ${Rd})`)}return n===e}function _E(t){return t instanceof nt&&t.getTypeName()||null}function sR(t){return new _a(t)}function aR(t){return new wa(t)}function lR(t){return new ba(t)}function cR(t){return new Da(t)}function uR(t){return new Ta(t)}function wE(t){let e=new Sa(t);return bE()?new Ma(e):e}var Ma=class{inertDocumentHelper;constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{let n=new window.DOMParser().parseFromString(xi(e),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(e):(n.firstChild?.remove(),n)}catch{return null}}},Sa=class{defaultDoc;inertDocument;constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let n=this.inertDocument.createElement("template");return n.innerHTML=xi(e),n}};function bE(){try{return!!new window.DOMParser().parseFromString(xi(""),"text/html")}catch{return!1}}var DE=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function dp(t){return t=String(t),t.match(DE)?t:"unsafe:"+t}function st(t){let e={};for(let n of t.split(","))e[n]=!0;return e}function Mr(...t){let e={};for(let n of t)for(let r in n)n.hasOwnProperty(r)&&(e[r]=!0);return e}var fp=st("area,br,col,hr,img,wbr"),pp=st("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),hp=st("rp,rt"),TE=Mr(hp,pp),ME=Mr(pp,st("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),SE=Mr(hp,st("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Ju=Mr(fp,ME,SE,TE),gp=st("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),CE=st("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),NE=st("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),xE=Mr(gp,CE,NE),AE=st("script,style,template"),Ca=class{sanitizedSomething=!1;buf=[];sanitizeChildren(e){let n=e.firstChild,r=!0,o=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild){o.push(n),n=OE(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=RE(n);if(i){n=i;break}n=o.pop()}}return this.buf.join("")}startElement(e){let n=Xu(e).toLowerCase();if(!Ju.hasOwnProperty(n))return this.sanitizedSomething=!0,!AE.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=e.attributes;for(let o=0;o<r.length;o++){let i=r.item(o),s=i.name,a=s.toLowerCase();if(!xE.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=i.value;gp[a]&&(l=dp(l)),this.buf.push(" ",s,'="',ed(l),'"')}return this.buf.push(">"),!0}endElement(e){let n=Xu(e).toLowerCase();Ju.hasOwnProperty(n)&&!fp.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(e){this.buf.push(ed(e))}};function kE(t,e){return(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function RE(t){let e=t.nextSibling;if(e&&t!==e.previousSibling)throw mp(e);return e}function OE(t){let e=t.firstChild;if(e&&kE(t,e))throw mp(e);return e}function Xu(t){let e=t.nodeName;return typeof e=="string"?e:"FORM"}function mp(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var PE=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,FE=/([^\#-~ |!])/g;function ed(t){return t.replace(/&/g,"&").replace(PE,function(e){let n=e.charCodeAt(0),r=e.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(FE,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}var So;function LE(t,e){let n=null;try{So=So||wE(t);let r=e?String(e):"";n=So.getInertBodyElement(r);let o=5,i=r;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=So.getInertBodyElement(r)}while(r!==i);let a=new Ca().sanitizeChildren(td(n)||n);return xi(a)}finally{if(n){let r=td(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function td(t){return"content"in t&&VE(t)?t.content:null}function VE(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var Ai=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Ai||{});function dR(t){let e=Fl();return e?Zu(e.sanitize(Ai.HTML,t)||""):Pl(t,"HTML")?Zu(An(t)):LE(tp(),Ot(t))}function jE(t){let e=Fl();return e?e.sanitize(Ai.URL,t)||"":Pl(t,"URL")?An(t):dp(Ot(t))}function HE(t){let e=Fl();if(e)return Yu(e.sanitize(Ai.RESOURCE_URL,t)||"");if(Pl(t,"ResourceURL"))return Yu(An(t));throw new m(904,!1)}function BE(t,e){return e==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||e==="href"&&(t==="base"||t==="link")?HE:jE}function fR(t,e,n){return BE(e,n)(t)}function Fl(){let t=I();return t&&t[Xe].sanitizer}var $E=/^>|^->|<!--|-->|--!>|<!-$/g,UE=/(<|>)/g,qE="\u200B$1\u200B";function zE(t){return t.replace($E,e=>e.replace(UE,qE))}function pR(t){return t.ownerDocument.defaultView}function yp(t){return t instanceof Function?t():t}function WE(t,e,n){let r=t.length;for(;;){let o=t.indexOf(e,n);if(o===-1)return o;if(o===0||t.charCodeAt(o-1)<=32){let i=e.length;if(o+i===r||t.charCodeAt(o+i)<=32)return o}n=o+1}}var vp="ng-template";function GE(t,e,n,r){let o=0;if(r){for(;o<e.length&&typeof e[o]=="string";o+=2)if(e[o]==="class"&&WE(e[o+1].toLowerCase(),n,0)!==-1)return!0}else if(Ll(t))return!1;if(o=e.indexOf(1,o),o>-1){let i;for(;++o<e.length&&typeof(i=e[o])=="string";)if(i.toLowerCase()===n)return!0}return!1}function Ll(t){return t.type===4&&t.value!==vp}function QE(t,e,n){let r=t.type===4&&!n?vp:t.value;return e===r}function KE(t,e,n){let r=4,o=t.attrs,i=o!==null?JE(o):0,s=!1;for(let a=0;a<e.length;a++){let l=e[a];if(typeof l=="number"){if(!s&&!ke(r)&&!ke(l))return!1;if(s&&ke(l))continue;s=!1,r=l|r&1;continue}if(!s)if(r&4){if(r=2|r&1,l!==""&&!QE(t,l,n)||l===""&&e.length===1){if(ke(r))return!1;s=!0}}else if(r&8){if(o===null||!GE(t,o,l,n)){if(ke(r))return!1;s=!0}}else{let c=e[++a],u=ZE(l,o,Ll(t),n);if(u===-1){if(ke(r))return!1;s=!0;continue}if(c!==""){let d;if(u>i?d="":d=o[u+1].toLowerCase(),r&2&&c!==d){if(ke(r))return!1;s=!0}}}}return ke(r)||s}function ke(t){return(t&1)===0}function ZE(t,e,n,r){if(e===null)return-1;let o=0;if(r||!n){let i=!1;for(;o<e.length;){let s=e[o];if(s===t)return o;if(s===3||s===6)i=!0;else if(s===1||s===2){let a=e[++o];for(;typeof a=="string";)a=e[++o];continue}else{if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2}return-1}else return XE(e,t)}function Ep(t,e,n=!1){for(let r=0;r<e.length;r++)if(KE(t,e[r],n))return!0;return!1}function YE(t){let e=t.attrs;if(e!=null){let n=e.indexOf(5);if((n&1)===0)return e[n+1]}return null}function JE(t){for(let e=0;e<t.length;e++){let n=t[e];if(Nf(n))return e}return t.length}function XE(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){let r=t[n];if(typeof r=="number")return-1;if(r===e)return n;n++}return-1}function eI(t,e){e:for(let n=0;n<e.length;n++){let r=e[n];if(t.length===r.length){for(let o=0;o<t.length;o++)if(t[o]!==r[o])continue e;return!0}}return!1}function nd(t,e){return t?":not("+e.trim()+")":e}function tI(t){let e=t[0],n=1,r=2,o="",i=!1;for(;n<t.length;){let s=t[n];if(typeof s=="string")if(r&2){let a=t[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!ke(s)&&(e+=nd(i,o),o=""),r=s,i=i||!ke(r);n++}return o!==""&&(e+=nd(i,o)),e}function nI(t){return t.map(tI).join(",")}function rI(t){let e=[],n=[],r=1,o=2;for(;r<t.length;){let i=t[r];if(typeof i=="string")o===2?i!==""&&e.push(i,t[++r]):o===8&&n.push(i);else{if(!ke(o))break;o=i}r++}return n.length&&e.push(1,...n),e}var de={};function oI(t,e){return t.createText(e)}function iI(t,e,n){t.setValue(e,n)}function sI(t,e){return t.createComment(zE(e))}function Ip(t,e,n){return t.createElement(e,n)}function ti(t,e,n,r,o){t.insertBefore(e,n,r,o)}function _p(t,e,n){t.appendChild(e,n)}function rd(t,e,n,r,o){r!==null?ti(t,e,n,r,o):_p(t,e,n)}function aI(t,e,n){t.removeChild(null,e,n)}function lI(t,e,n){t.setAttribute(e,"style",n)}function cI(t,e,n){n===""?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n)}function wp(t,e,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&gv(t,e,r),o!==null&&cI(t,e,o),i!==null&&lI(t,e,i)}function Vl(t,e,n,r,o,i,s,a,l,c,u){let d=B+r,p=d+o,f=uI(d,p),h=typeof c=="function"?c():c;return f[w]={type:t,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:e,data:f.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:p,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 i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:l,consts:h,incompleteFirstPass:!1,ssrId:u}}function uI(t,e){let n=[];for(let r=0;r<e;r++)n.push(r<t?null:de);return n}function dI(t){let e=t.tView;return e===null||e.incompleteFirstPass?t.tView=Vl(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):e}function jl(t,e,n,r,o,i,s,a,l,c,u){let d=e.blueprint.slice();return d[rt]=o,d[T]=r|4|128|8|64|1024,(c!==null||t&&t[T]&2048)&&(d[T]|=2048),mf(d),d[te]=d[Tn]=t,d[J]=n,d[Xe]=s||t&&t[Xe],d[$]=a||t&&t[$],d[Ce]=l||t&&t[Ce]||null,d[ve]=i,d[Ii]=$v(),d[vn]=u,d[lf]=c,d[be]=e.type==2?t[be]:d,d}function fI(t,e,n){let r=We(e,t),o=dI(n),i=t[Xe].rendererFactory,s=Hl(t,jl(t,o,null,bp(n),r,e,null,i.createRenderer(r,n),null,null,null));return t[e.index]=s}function bp(t){let e=16;return t.signals?e=4096:t.onPush&&(e=64),e}function Dp(t,e,n,r){if(n===0)return-1;let o=e.length;for(let i=0;i<n;i++)e.push(r),t.blueprint.push(r),t.data.push(null);return o}function Hl(t,e){return t[ir]?t[Ou][Re]=e:t[ir]=e,t[Ou]=e,e}function hR(t=1){Tp(H(),I(),it()+t,!1)}function Tp(t,e,n,r){if(!r)if((e[T]&3)===3){let i=t.preOrderCheckHooks;i!==null&&Ao(e,i,n)}else{let i=t.preOrderHooks;i!==null&&ko(e,i,0,n)}Ht(n)}var ki=function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t}(ki||{});function Na(t,e,n,r){let o=M(null);try{let[i,s,a]=t.inputs[n],l=null;(s&ki.SignalBased)!==0&&(l=e[i][ae]),l!==null&&l.transformFn!==void 0?r=l.transformFn(r):a!==null&&(r=a.call(e,r)),t.setInput!==null?t.setInput(e,l,r,n,i):uf(e,l,i,r)}finally{M(o)}}function Mp(t,e,n,r,o){let i=it(),s=r&2;try{Ht(-1),s&&e.length>B&&Tp(t,e,B,!1),L(s?2:0,o),n(r,o)}finally{Ht(i),L(s?3:1,o)}}function Ri(t,e,n){vI(t,e,n),(n.flags&64)===64&&EI(t,e,n)}function Bl(t,e,n=We){let r=e.localNames;if(r!==null){let o=e.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(e,t):t[s];t[o++]=a}}}function pI(t,e,n,r){let i=r.get(Zv,rp)||n===cr.ShadowDom,s=t.selectRootElement(e,i);return hI(s),s}function hI(t){gI(t)}var gI=()=>null;function mI(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function Sr(t,e,n,r,o,i,s,a){if(!a&&ql(e,t,n,r,o)){Mn(e)&&yI(n,e.index);return}if(e.type&3){let l=We(e,n);r=mI(r),o=s!=null?s(o,e.value||"",r):o,i.setProperty(l,r,o)}else e.type&12}function yI(t,e){let n=ze(e,t);n[T]&16||(n[T]|=64)}function vI(t,e,n){let r=n.directiveStart,o=n.directiveEnd;Mn(n)&&fI(e,n,t.data[r+n.componentOffset]),t.firstCreatePass||Ko(n,e);let i=n.initialInputs;for(let s=r;s<o;s++){let a=t.data[s],l=ar(e,t,s,n);if(xn(l,e),i!==null&&bI(e,s-r,l,a,n,i),Ue(a)){let c=ze(n.index,e);c[J]=ar(e,t,s,n)}}}function EI(t,e,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=sv();try{Ht(i);for(let a=r;a<o;a++){let l=t.data[a],c=e[a];ua(a),(l.hostBindings!==null||l.hostVars!==0||l.hostAttrs!==null)&&II(l,c)}}finally{Ht(-1),ua(s)}}function II(t,e){t.hostBindings!==null&&t.hostBindings(1,e)}function $l(t,e){let n=t.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];Ep(e,i.selectors,!1)&&(r??=[],Ue(i)?r.unshift(i):r.push(i))}return r}function _I(t,e,n,r,o,i){let s=We(t,e);wI(e[$],s,i,t.value,n,r,o)}function wI(t,e,n,r,o,i,s){if(i==null)t.removeAttribute(e,o,n);else{let a=s==null?Ot(i):s(i,r||"",o);t.setAttribute(e,o,a,n)}}function bI(t,e,n,r,o,i){let s=i[e];if(s!==null)for(let a=0;a<s.length;a+=2){let l=s[a],c=s[a+1];Na(r,n,l,c)}}function Ul(t,e){let n=t[Ce],r=n?n.get(gt,null):null;r&&r.handleError(e)}function ql(t,e,n,r,o){let i=t.inputs?.[r],s=t.hostDirectiveInputs?.[r],a=!1;if(s)for(let l=0;l<s.length;l+=2){let c=s[l],u=s[l+1],d=e.data[c];Na(d,n[c],u,o),a=!0}if(i)for(let l of i){let c=n[l],u=e.data[l];Na(u,c,r,o),a=!0}return a}function DI(t,e){let n=ze(e,t),r=n[w];TI(r,n);let o=n[rt];o!==null&&n[vn]===null&&(n[vn]=lp(o,n[Ce])),L(18),zl(r,n,n[J]),L(19,n[J])}function TI(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}function zl(t,e,n){Ml(e);try{let r=t.viewQuery;r!==null&&Ia(1,r,n);let o=t.template;o!==null&&Mp(t,e,o,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),e[et]?.finishViewCreation(t),t.staticContentQueries&&cp(t,e),t.staticViewQueries&&Ia(2,t.viewQuery,n);let i=t.components;i!==null&&MI(e,i)}catch(r){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),r}finally{e[T]&=-5,Sl()}}function MI(t,e){for(let n=0;n<e.length;n++)DI(t,e[n])}function kn(t,e,n,r){let o=M(null);try{let i=e.tView,a=t[T]&4096?4096:16,l=jl(t,i,n,a,null,e,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),c=t[e.index];l[Ft]=c;let u=t[et];return u!==null&&(l[et]=u.createEmbeddedView(i)),zl(i,l,n),l}finally{M(o)}}function Ut(t,e){return!e||e.firstChild===null||Kf(t)}var SI;function Wl(t,e){return SI(t,e)}var xa=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(xa||{});function Gl(t){return(t.flags&32)===32}function pn(t,e,n,r,o){if(r!=null){let i,s=!1;ot(r)?i=r:pt(r)&&(s=!0,r=r[rt]);let a=qe(r);t===0&&n!==null?o==null?_p(e,n,a):ti(e,n,a,o||null,!0):t===1&&n!==null?ti(e,n,a,o||null,!0):t===2?aI(e,a,s):t===3&&e.destroyNode(a),i!=null&&LI(e,t,i,n,o)}}function CI(t,e){Sp(t,e),e[rt]=null,e[ve]=null}function NI(t,e,n,r,o,i){r[rt]=o,r[ve]=e,Fi(t,r,n,1,o,i)}function Sp(t,e){e[Xe].changeDetectionScheduler?.notify(9),Fi(t,e,e[$],2,null,null)}function xI(t){let e=t[ir];if(!e)return qs(t[w],t);for(;e;){let n=null;if(pt(e))n=e[ir];else{let r=e[re];r&&(n=r)}if(!n){for(;e&&!e[Re]&&e!==t;)pt(e)&&qs(e[w],e),e=e[te];e===null&&(e=t),pt(e)&&qs(e[w],e),n=e&&e[Re]}e=n}}function Ql(t,e){let n=t[En],r=n.indexOf(e);n.splice(r,1)}function Oi(t,e){if(Wt(e))return;let n=e[$];n.destroyNode&&Fi(t,e,n,3,null,null),xI(e)}function qs(t,e){if(Wt(e))return;let n=M(null);try{e[T]&=-129,e[T]|=256,e[Se]&&$n(e[Se]),kI(t,e),AI(t,e),e[w].type===1&&e[$].destroy();let r=e[Ft];if(r!==null&&ot(e[te])){r!==e[te]&&Ql(r,e);let o=e[et];o!==null&&o.detachView(t)}ya(e)}finally{M(n)}}function AI(t,e){let n=t.cleanup,r=e[$o];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(e[$o]=null);let o=e[ft];if(o!==null){e[ft]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=e[Lt];if(i!==null){e[Lt]=null;for(let s of i)s.destroy()}}function kI(t,e){let n;if(t!=null&&(n=t.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let o=e[n[r]];if(!(o instanceof Bt)){let i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){let a=o[i[s]],l=i[s+1];L(4,a,l);try{l.call(a)}finally{L(5,a,l)}}else{L(4,o,i);try{i.call(o)}finally{L(5,o,i)}}}}}function Cp(t,e,n){return RI(t,e.parent,n)}function RI(t,e,n){let r=e;for(;r!==null&&r.type&168;)e=r,r=e.parent;if(r===null)return n[rt];if(Mn(r)){let{encapsulation:o}=t.data[r.directiveStart+r.componentOffset];if(o===cr.None||o===cr.Emulated)return null}return We(r,n)}function Np(t,e,n){return PI(t,e,n)}function OI(t,e,n){return t.type&40?We(t,n):null}var PI=OI,od;function Pi(t,e,n,r){let o=Cp(t,r,e),i=e[$],s=r.parent||e[ve],a=Np(s,r,e);if(o!=null)if(Array.isArray(n))for(let l=0;l<n.length;l++)rd(i,o,n[l],a,!1);else rd(i,o,n,a,!1);od!==void 0&&od(i,r,e,n,o)}function er(t,e){if(e!==null){let n=e.type;if(n&3)return We(e,t);if(n&4)return Aa(-1,t[e.index]);if(n&8){let r=e.child;if(r!==null)return er(t,r);{let o=t[e.index];return ot(o)?Aa(-1,o):qe(o)}}else{if(n&128)return er(t,e.next);if(n&32)return Wl(e,t)()||qe(t[e.index]);{let r=xp(t,e);if(r!==null){if(Array.isArray(r))return r[0];let o=jt(t[be]);return er(o,r)}else return er(t,e.next)}}}return null}function xp(t,e){if(e!==null){let r=t[be][ve],o=e.projection;return r.projection[o]}return null}function Aa(t,e){let n=re+t+1;if(n<e.length){let r=e[n],o=r[w].firstChild;if(o!==null)return er(r,o)}return e[Vt]}function Kl(t,e,n,r,o,i,s){for(;n!=null;){if(n.type===128){n=n.next;continue}let a=r[n.index],l=n.type;if(s&&e===0&&(a&&xn(qe(a),r),n.flags|=2),!Gl(n))if(l&8)Kl(t,e,n.child,r,o,i,!1),pn(e,t,o,a,i);else if(l&32){let c=Wl(n,r),u;for(;u=c();)pn(e,t,o,u,i);pn(e,t,o,a,i)}else l&16?Ap(t,e,r,n,o,i):pn(e,t,o,a,i);n=s?n.projectionNext:n.next}}function Fi(t,e,n,r,o,i){Kl(n,r,t.firstChild,e,o,i,!1)}function FI(t,e,n){let r=e[$],o=Cp(t,n,e),i=n.parent||e[ve],s=Np(i,n,e);Ap(r,0,e,n,o,s)}function Ap(t,e,n,r,o,i){let s=n[be],l=s[ve].projection[r.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++){let u=l[c];pn(e,t,o,u,i)}else{let c=l,u=s[te];Kf(r)&&(c.flags|=128),Kl(t,e,c,u,o,i,!0)}}function LI(t,e,n,r,o){let i=n[Vt],s=qe(n);i!==s&&pn(e,t,r,i,o);for(let a=re;a<n.length;a++){let l=n[a];Fi(l[w],l,t,e,r,i)}}function VI(t,e,n,r,o){if(e)o?t.addClass(n,r):t.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:xa.DashCase;o==null?t.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=xa.Important),t.setStyle(n,r,o,i))}}function ni(t,e,n,r,o=!1){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=e[n.index];i!==null&&r.push(qe(i)),ot(i)&&jI(i,r);let s=n.type;if(s&8)ni(t,e,n.child,r);else if(s&32){let a=Wl(n,e),l;for(;l=a();)r.push(l)}else if(s&16){let a=xp(e,n);if(Array.isArray(a))r.push(...a);else{let l=jt(e[be]);ni(l[w],l,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function jI(t,e){for(let n=re;n<t.length;n++){let r=t[n],o=r[w].firstChild;o!==null&&ni(r[w],r,o,e)}t[Vt]!==t[rt]&&e.push(t[Vt])}function kp(t){if(t[hn]!==null){for(let e of t[hn])e.impl.addSequence(e);t[hn].length=0}}var Rp=[];function HI(t){return t[Se]??BI(t)}function BI(t){let e=Rp.pop()??Object.create(UI);return e.lView=t,e}function $I(t){t.lView[Se]!==t&&(t.lView=null,Rp.push(t))}var UI=pe(Q({},Jt),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{Cn(t.lView)},consumerOnSignalRead(){this.lView[Se]=this}});function qI(t){let e=t[Se]??Object.create(zI);return e.lView=t,e}var zI=pe(Q({},Jt),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let e=jt(t.lView);for(;e&&!Op(e[w]);)e=jt(e);e&&yf(e)},consumerOnSignalRead(){this.lView[Se]=this}});function Op(t){return t.type!==2}function Pp(t){if(t[Lt]===null)return;let e=!0;for(;e;){let n=!1;for(let r of t[Lt])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));e=n&&!!(t[T]&8192)}}var WI=100;function Fp(t,e=!0,n=0){let o=t[Xe].rendererFactory,i=!1;i||o.begin?.();try{GI(t,n)}catch(s){throw e&&Ul(t,s),s}finally{i||o.end?.()}}function GI(t,e){let n=_f();try{zo(!0),ka(t,e);let r=0;for(;wi(t);){if(r===WI)throw new m(103,!1);r++,ka(t,1)}}finally{zo(n)}}function QI(t,e,n,r){if(Wt(e))return;let o=e[T],i=!1,s=!1;Ml(e);let a=!0,l=null,c=null;i||(Op(t)?(c=HI(e),l=Bn(c)):hs()===null?(a=!1,c=qI(e),l=Bn(c)):e[Se]&&($n(e[Se]),e[Se]=null));try{mf(e),rv(t.bindingStartIndex),n!==null&&Mp(t,e,n,2,r);let u=(o&3)===3;if(!i)if(u){let f=t.preOrderCheckHooks;f!==null&&Ao(e,f,null)}else{let f=t.preOrderHooks;f!==null&&ko(e,f,0,null),Bs(e,0)}if(s||KI(e),Pp(e),Lp(e,0),t.contentQueries!==null&&cp(t,e),!i)if(u){let f=t.contentCheckHooks;f!==null&&Ao(e,f)}else{let f=t.contentHooks;f!==null&&ko(e,f,1),Bs(e,1)}YI(t,e);let d=t.components;d!==null&&jp(e,d,0);let p=t.viewQuery;if(p!==null&&Ia(2,p,r),!i)if(u){let f=t.viewCheckHooks;f!==null&&Ao(e,f)}else{let f=t.viewHooks;f!==null&&ko(e,f,2),Bs(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[Hs]){for(let f of e[Hs])f();e[Hs]=null}i||(kp(e),e[T]&=-73)}catch(u){throw i||Cn(e),u}finally{c!==null&&($r(c,l),a&&$I(c)),Sl()}}function Lp(t,e){for(let n=Jf(t);n!==null;n=Xf(n))for(let r=re;r<n.length;r++){let o=n[r];Vp(o,e)}}function KI(t){for(let e=Jf(t);e!==null;e=Xf(e)){if(!(e[T]&2))continue;let n=e[En];for(let r=0;r<n.length;r++){let o=n[r];yf(o)}}}function ZI(t,e,n){L(18);let r=ze(e,t);Vp(r,n),L(19,r[J])}function Vp(t,e){yl(t)&&ka(t,e)}function ka(t,e){let r=t[w],o=t[T],i=t[Se],s=!!(e===0&&o&16);if(s||=!!(o&64&&e===0),s||=!!(o&1024),s||=!!(i?.dirty&&Ur(i)),s||=!1,i&&(i.dirty=!1),t[T]&=-9217,s)QI(r,t,r.template,t[J]);else if(o&8192){Pp(t),Lp(t,1);let a=r.components;a!==null&&jp(t,a,1),kp(t)}}function jp(t,e,n){for(let r=0;r<e.length;r++)ZI(t,e[r],n)}function YI(t,e){let n=t.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let o=n[r];if(o<0)Ht(~o);else{let i=o,s=n[++r],a=n[++r];iv(s,i);let l=e[i];L(24,l),a(2,l),L(25,l)}}}finally{Ht(-1)}}function Li(t,e){let n=_f()?64:1088;for(t[Xe].changeDetectionScheduler?.notify(e);t;){t[T]|=n;let r=jt(t);if(qo(t)&&!r)return t;t=r}return null}function Hp(t,e,n,r){return[t,!0,0,e,null,r,null,n,null,null]}function Bp(t,e){let n=re+e;if(n<t.length)return t[n]}function Rn(t,e,n,r=!0){let o=e[w];if(JI(o,e,t,n),r){let s=Aa(n,t),a=e[$],l=a.parentNode(t[Vt]);l!==null&&NI(o,t[ve],a,e,l,s)}let i=e[vn];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function Zl(t,e){let n=ur(t,e);return n!==void 0&&Oi(n[w],n),n}function ur(t,e){if(t.length<=re)return;let n=re+e,r=t[n];if(r){let o=r[Ft];o!==null&&o!==t&&Ql(o,r),e>0&&(t[n-1][Re]=r[Re]);let i=jo(t,re+e);CI(r[w],r);let s=i[et];s!==null&&s.detachView(i[w]),r[te]=null,r[Re]=null,r[T]&=-129}return r}function JI(t,e,n,r){let o=re+r,i=n.length;r>0&&(n[o-1][Re]=e),r<i-re?(e[Re]=n[o],Kd(n,re+r,e)):(n.push(e),e[Re]=null),e[te]=n;let s=e[Ft];s!==null&&n!==s&&$p(s,e);let a=e[et];a!==null&&a.insertView(t),la(e),e[T]|=128}function $p(t,e){let n=t[En],r=e[te];if(pt(r))t[T]|=2;else{let o=r[te][be];e[be]!==o&&(t[T]|=2)}n===null?t[En]=[e]:n.push(e)}var dr=class{_lView;_cdRefInjectingView;notifyErrorHandler;_appRef=null;_attachedToViewContainer=!1;get rootNodes(){let e=this._lView,n=e[w];return ni(n,e,n.firstChild,[])}constructor(e,n,r=!0){this._lView=e,this._cdRefInjectingView=n,this.notifyErrorHandler=r}get context(){return this._lView[J]}set context(e){this._lView[J]=e}get destroyed(){return Wt(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let e=this._lView[te];if(ot(e)){let n=e[Uo],r=n?n.indexOf(this):-1;r>-1&&(ur(e,r),jo(n,r))}this._attachedToViewContainer=!1}Oi(this._lView[w],this._lView)}onDestroy(e){vl(this._lView,e)}markForCheck(){Li(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[T]&=-129}reattach(){la(this._lView),this._lView[T]|=128}detectChanges(){this._lView[T]|=1024,Fp(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new m(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=qo(this._lView),n=this._lView[Ft];n!==null&&!e&&Ql(n,this._lView),Sp(this._lView[w],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new m(902,!1);this._appRef=e;let n=qo(this._lView),r=this._lView[Ft];r!==null&&!n&&$p(r,this._lView),la(this._lView)}};var ri=(()=>{class t{static __NG_ELEMENT_ID__=t_}return t})(),XI=ri,e_=class extends XI{_declarationLView;_declarationTContainer;elementRef;constructor(e,n,r){super(),this._declarationLView=e,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,n){return this.createEmbeddedViewImpl(e,n)}createEmbeddedViewImpl(e,n,r){let o=kn(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:n,dehydratedView:r});return new dr(o)}};function t_(){return Vi(ie(),I())}function Vi(t,e){return t.type&4?new e_(e,t,Nn(t,e)):null}function On(t,e,n,r,o){let i=t.data[e];if(i===null)i=n_(t,e,n,r,o),ov()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=ev();i.injectorIndex=s===null?-1:s.injectorIndex}return mt(i,!0),i}function n_(t,e,n,r,o){let i=If(),s=wl(),a=s?i:i&&i.parent,l=t.data[e]=o_(t,a,n,e,r,o);return r_(t,l,i,s),l}function r_(t,e,n,r){t.firstChild===null&&(t.firstChild=e),n!==null&&(r?n.child==null&&e.parent!==null&&(n.child=e):n.next===null&&(n.next=e,e.prev=n))}function o_(t,e,n,r,o,i){let s=e?e.injectorIndex:-1,a=0;return Ef()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var yR=new RegExp(`^(\\d+)*(${Qv}|${Gv})*(.*)`);var i_=()=>null;function _n(t,e){return i_(t,e)}var s_=class{},Up=class{},Ra=class{resolveComponentFactory(e){throw Error(`No component factory found for ${ye(e)}.`)}},ji=class{static NULL=new Ra},oi=class{},_R=(()=>{class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>a_()}return t})();function a_(){let t=I(),e=ie(),n=ze(e.index,t);return(pt(n)?n:t)[$]}var l_=(()=>{class t{static \u0275prov=q({token:t,providedIn:"root",factory:()=>null})}return t})();var zs={},mn=class{injector;parentInjector;constructor(e,n){this.injector=e,this.parentInjector=n}get(e,n,r){r=vi(r);let o=this.injector.get(e,zs,r);return o!==zs||n===zs?o:this.parentInjector.get(e,n,r)}};function Oa(t,e,n){let r=n?t.styles:null,o=n?t.classes:null,i=0;if(e!==null)for(let s=0;s<e.length;s++){let a=e[s];if(typeof a=="number")i=a;else if(i==1)o=ea(o,a);else if(i==2){let l=a,c=e[++s];r=ea(r,l+": "+c+";")}}n?t.styles=r:t.stylesWithoutHost=r,n?t.classes=o:t.classesWithoutHost=o}function Hi(t,e=k.Default){let n=I();if(n===null)return we(t,e);let r=ie();return Ff(r,n,ee(t),e)}function wR(){let t="invalid";throw new Error(t)}function Yl(t,e,n,r,o){let i=r===null?null:{"":-1},s=o(t,n);if(s!==null){let a,l=null,c=null,u=u_(s);u===null?a=s:[a,l,c]=u,p_(t,e,n,a,i,l,c)}i!==null&&r!==null&&c_(n,r,i)}function c_(t,e,n){let r=t.localNames=[];for(let o=0;o<e.length;o+=2){let i=n[e[o+1]];if(i==null)throw new m(-301,!1);r.push(e[o],i)}}function u_(t){let e=null,n=!1;for(let s=0;s<t.length;s++){let a=t[s];if(s===0&&Ue(a)&&(e=a),a.findHostDirectiveDefs!==null){n=!0;break}}if(!n)return null;let r=null,o=null,i=null;for(let s of t)s.findHostDirectiveDefs!==null&&(r??=[],o??=new Map,i??=new Map,d_(s,r,i,o)),s===e&&(r??=[],r.push(s));return r!==null?(r.push(...e===null?t:t.slice(1)),[r,o,i]):null}function d_(t,e,n,r){let o=e.length;t.findHostDirectiveDefs(t,e,r),n.set(t,[o,e.length-1])}function f_(t,e,n){e.componentOffset=n,(t.components??=[]).push(e.index)}function p_(t,e,n,r,o,i,s){let a=r.length,l=!1;for(let p=0;p<a;p++){let f=r[p];!l&&Ue(f)&&(l=!0,f_(t,n,p)),fa(Ko(n,e),t,f.type)}E_(n,t.data.length,a);for(let p=0;p<a;p++){let f=r[p];f.providersResolver&&f.providersResolver(f)}let c=!1,u=!1,d=Dp(t,e,a,null);a>0&&(n.directiveToIndex=new Map);for(let p=0;p<a;p++){let f=r[p];if(n.mergedAttrs=In(n.mergedAttrs,f.hostAttrs),g_(t,n,e,d,f),v_(d,f,o),s!==null&&s.has(f)){let[g,E]=s.get(f);n.directiveToIndex.set(f.type,[d,g+n.directiveStart,E+n.directiveStart])}else(i===null||!i.has(f))&&n.directiveToIndex.set(f.type,d);f.contentQueries!==null&&(n.flags|=4),(f.hostBindings!==null||f.hostAttrs!==null||f.hostVars!==0)&&(n.flags|=64);let h=f.type.prototype;!c&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((t.preOrderHooks??=[]).push(n.index),c=!0),!u&&(h.ngOnChanges||h.ngDoCheck)&&((t.preOrderCheckHooks??=[]).push(n.index),u=!0),d++}h_(t,n,i)}function h_(t,e,n){for(let r=e.directiveStart;r<e.directiveEnd;r++){let o=t.data[r];if(n===null||!n.has(o))id(0,e,o,r),id(1,e,o,r),ad(e,r,!1);else{let i=n.get(o);sd(0,e,i,r),sd(1,e,i,r),ad(e,r,!0)}}}function id(t,e,n,r){let o=t===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s;t===0?s=e.inputs??={}:s=e.outputs??={},s[i]??=[],s[i].push(r),qp(e,i)}}function sd(t,e,n,r){let o=t===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s=o[i],a;t===0?a=e.hostDirectiveInputs??={}:a=e.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),qp(e,s)}}function qp(t,e){e==="class"?t.flags|=8:e==="style"&&(t.flags|=16)}function ad(t,e,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=t;if(r===null||!n&&o===null||n&&i===null||Ll(t)){t.initialInputs??=[],t.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let l=r[a];if(l===0){a+=4;continue}else if(l===5){a+=2;continue}else if(typeof l=="number")break;if(!n&&o.hasOwnProperty(l)){let c=o[l];for(let u of c)if(u===e){s??=[],s.push(l,r[a+1]);break}}else if(n&&i.hasOwnProperty(l)){let c=i[l];for(let u=0;u<c.length;u+=2)if(c[u]===e){s??=[],s.push(c[u+1],r[a+1]);break}}a+=2}t.initialInputs??=[],t.initialInputs.push(s)}function g_(t,e,n,r,o){t.data[r]=o;let i=o.factory||(o.factory=Pt(o.type,!0)),s=new Bt(i,Ue(o),Hi);t.blueprint[r]=s,n[r]=s,m_(t,e,r,Dp(t,n,o.hostVars,de),o)}function m_(t,e,n,r,o){let i=o.hostBindings;if(i){let s=t.hostBindingOpCodes;s===null&&(s=t.hostBindingOpCodes=[]);let a=~e.index;y_(s)!=a&&s.push(a),s.push(n,r,i)}}function y_(t){let e=t.length;for(;e>0;){let n=t[--e];if(typeof n=="number"&&n<0)return n}return 0}function v_(t,e,n){if(n){if(e.exportAs)for(let r=0;r<e.exportAs.length;r++)n[e.exportAs[r]]=t;Ue(e)&&(n[""]=t)}}function E_(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function zp(t,e,n,r,o,i,s,a){let l=e.consts,c=ht(l,s),u=On(e,t,2,r,c);return i&&Yl(e,n,u,ht(l,a),o),u.mergedAttrs=In(u.mergedAttrs,u.attrs),u.attrs!==null&&Oa(u,u.attrs,!1),u.mergedAttrs!==null&&Oa(u,u.mergedAttrs,!0),e.queries!==null&&e.queries.elementStart(e,u),u}function Wp(t,e){Cl(t,e),ml(e)&&t.queries.elementEnd(e)}var ii=class extends ji{ngModule;constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){let n=Ye(e);return new qt(n,this.ngModule)}};function I_(t){return Object.keys(t).map(e=>{let[n,r,o]=t[e],i={propName:n,templateName:e,isSignal:(r&ki.SignalBased)!==0};return o&&(i.transform=o),i})}function __(t){return Object.keys(t).map(e=>({propName:t[e],templateName:e}))}function w_(t,e,n){let r=e instanceof Je?e:e?.injector;return r&&t.getStandaloneInjector!==null&&(r=t.getStandaloneInjector(r)||r),r?new mn(n,r):n}function b_(t){let e=t.get(oi,null);if(e===null)throw new m(407,!1);let n=t.get(l_,null),r=t.get($t,null);return{rendererFactory:e,sanitizer:n,changeDetectionScheduler:r}}function D_(t,e){let n=(t.selectors[0][0]||"div").toLowerCase();return Ip(e,n,n==="svg"?hf:n==="math"?qy:null)}var qt=class extends Up{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=I_(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=__(this.componentDef.outputs),this.cachedOutputs}constructor(e,n){super(),this.componentDef=e,this.ngModule=n,this.componentType=e.type,this.selector=nI(e.selectors),this.ngContentSelectors=e.ngContentSelectors??[],this.isBoundToModule=!!n}create(e,n,r,o){L(22);let i=M(null);try{let s=this.componentDef,a=r?["ng-version","19.2.9"]:rI(this.componentDef.selectors[0]),l=Vl(0,null,null,1,0,null,null,null,null,[a],null),c=w_(s,o||this.ngModule,e),u=b_(c),d=u.rendererFactory.createRenderer(null,s),p=r?pI(d,r,s.encapsulation,c):D_(s,d),f=jl(null,l,null,512|bp(s),null,null,u,d,c,null,lp(p,c,!0));f[B]=p,Ml(f);let h=null;try{let g=zp(B,l,f,"#host",()=>[this.componentDef],!0,0);p&&(wp(d,p,g),xn(p,f)),Ri(l,f,g),Ol(l,g,f),Wp(l,g),n!==void 0&&T_(g,this.ngContentSelectors,n),h=ze(g.index,f),f[J]=h[J],zl(l,f,null)}catch(g){throw h!==null&&ya(h),ya(f),g}finally{L(23),Sl()}return new Pa(this.componentType,f)}finally{M(i)}}},Pa=class extends s_{_rootLView;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(e,n){super(),this._rootLView=n,this._tNode=Ir(n[w],B),this.location=Nn(this._tNode,n),this.instance=ze(this._tNode.index,n)[J],this.hostView=this.changeDetectorRef=new dr(n,void 0,!1),this.componentType=e}setInput(e,n){let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(e)&&Object.is(this.previousInputValues.get(e),n))return;let o=this._rootLView,i=ql(r,o[w],o,e,n);this.previousInputValues.set(e,n);let s=ze(r.index,o);Li(s,1)}get injector(){return new Rt(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}};function T_(t,e,n){let r=t.projection=[];for(let o=0;o<e.length;o++){let i=n[o];r.push(i!=null&&i.length?Array.from(i):null)}}var Jl=(()=>{class t{static __NG_ELEMENT_ID__=M_}return t})();function M_(){let t=ie();return Qp(t,I())}var S_=Jl,Gp=class extends S_{_lContainer;_hostTNode;_hostLView;constructor(e,n,r){super(),this._lContainer=e,this._hostTNode=n,this._hostLView=r}get element(){return Nn(this._hostTNode,this._hostLView)}get injector(){return new Rt(this._hostTNode,this._hostLView)}get parentInjector(){let e=Nl(this._hostTNode,this._hostLView);if(xf(e)){let n=Go(e,this._hostLView),r=Wo(e),o=n[w].data[r+8];return new Rt(o,n)}else return new Rt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let n=ld(this._lContainer);return n!==null&&n[e]||null}get length(){return this._lContainer.length-re}createEmbeddedView(e,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=_n(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,Ut(this._hostTNode,s)),a}createComponent(e,n,r,o,i){let s=e&&!Hy(e),a;if(s)a=n;else{let h=n||{};a=h.index,r=h.injector,o=h.projectableNodes,i=h.environmentInjector||h.ngModuleRef}let l=s?e:new qt(Ye(e)),c=r||this.parentInjector;if(!i&&l.ngModule==null){let g=(s?c:this.parentInjector).get(Je,null);g&&(i=g)}let u=Ye(l.componentType??{}),d=_n(this._lContainer,u?.id??null),p=d?.firstChild??null,f=l.create(c,o,p,i);return this.insertImpl(f.hostView,a,Ut(this._hostTNode,d)),f}insert(e,n){return this.insertImpl(e,n,!0)}insertImpl(e,n,r){let o=e._lView;if(Wy(o)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let l=o[te],c=new Gp(l,l[ve],l[te]);c.detach(c.indexOf(e))}}let i=this._adjustIndex(n),s=this._lContainer;return Rn(s,o,i,r),e.attachToViewContainerRef(),Kd(Ws(s),i,e),e}move(e,n){return this.insert(e,n)}indexOf(e){let n=ld(this._lContainer);return n!==null?n.indexOf(e):-1}remove(e){let n=this._adjustIndex(e,-1),r=ur(this._lContainer,n);r&&(jo(Ws(this._lContainer),n),Oi(r[w],r))}detach(e){let n=this._adjustIndex(e,-1),r=ur(this._lContainer,n);return r&&jo(Ws(this._lContainer),n)!=null?new dr(r):null}_adjustIndex(e,n=0){return e??this.length+n}};function ld(t){return t[Uo]}function Ws(t){return t[Uo]||(t[Uo]=[])}function Qp(t,e){let n,r=e[t.index];return ot(r)?n=r:(n=Hp(r,e,null,t),e[t.index]=n,Hl(e,n)),N_(n,e,t,r),new Gp(n,t,e)}function C_(t,e){let n=t[$],r=n.createComment(""),o=We(e,t),i=n.parentNode(o);return ti(n,i,r,n.nextSibling(o),!1),r}var N_=A_,x_=()=>!1;function Kp(t,e,n){return x_(t,e,n)}function A_(t,e,n,r){if(t[Vt])return;let o;n.type&8?o=qe(r):o=C_(e,n),t[Vt]=o}var Fa=class t{queryList;matches=null;constructor(e){this.queryList=e}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},La=class t{queries;constructor(e=[]){this.queries=e}createEmbeddedView(e){let n=e.queries;if(n!==null){let r=e.contentQueries!==null?e.contentQueries[0]:n.length,o=[];for(let i=0;i<r;i++){let s=n.getByIndex(i),a=this.queries[s.indexInDeclarationView];o.push(a.clone())}return new t(o)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}finishViewCreation(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let n=0;n<this.queries.length;n++)ec(e,n).matches!==null&&this.queries[n].setDirty()}},si=class{flags;read;predicate;constructor(e,n,r=null){this.flags=n,this.read=r,typeof e=="string"?this.predicate=F_(e):this.predicate=e}},Va=class t{queries;constructor(e=[]){this.queries=e}elementStart(e,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(e,n)}elementEnd(e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(e)}embeddedTView(e){let n=null;for(let r=0;r<this.length;r++){let o=n!==null?n.length:0,i=this.getByIndex(r).embeddedTView(e,o);i&&(i.indexInDeclarationView=r,n!==null?n.push(i):n=[i])}return n!==null?new t(n):null}template(e,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(e,n)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}},ja=class t{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(e,n=-1){this.metadata=e,this._declarationNodeIndex=n}elementStart(e,n){this.isApplyingToNode(n)&&this.matchTNode(e,n)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,n){this.elementStart(e,n)}embeddedTView(e,n){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,n),new t(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=e.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}matchTNode(e,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){let i=r[o];this.matchTNodeWithReadOption(e,n,k_(n,i)),this.matchTNodeWithReadOption(e,n,Ro(n,e,i,!1,!1))}else r===ri?n.type&4&&this.matchTNodeWithReadOption(e,n,-1):this.matchTNodeWithReadOption(e,n,Ro(n,e,r,!1,!1))}matchTNodeWithReadOption(e,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===Mi||o===Jl||o===ri&&n.type&4)this.addMatch(n.index,-2);else{let i=Ro(n,e,o,!1,!1);i!==null&&this.addMatch(n.index,i)}else this.addMatch(n.index,r)}}addMatch(e,n){this.matches===null?this.matches=[e,n]:this.matches.push(e,n)}};function k_(t,e){let n=t.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===e)return n[r+1]}return null}function R_(t,e){return t.type&11?Nn(t,e):t.type&4?Vi(t,e):null}function O_(t,e,n,r){return n===-1?R_(e,t):n===-2?P_(t,e,r):ar(t,t[w],n,e)}function P_(t,e,n){if(n===Mi)return Nn(e,t);if(n===ri)return Vi(e,t);if(n===Jl)return Qp(e,t)}function Zp(t,e,n,r){let o=e[et].queries[r];if(o.matches===null){let i=t.data,s=n.matches,a=[];for(let l=0;s!==null&&l<s.length;l+=2){let c=s[l];if(c<0)a.push(null);else{let u=i[c];a.push(O_(e,u,s[l+1],n.metadata.read))}}o.matches=a}return o.matches}function Ha(t,e,n,r){let o=t.queries.getByIndex(n),i=o.matches;if(i!==null){let s=Zp(t,e,o,n);for(let a=0;a<i.length;a+=2){let l=i[a];if(l>0)r.push(s[a/2]);else{let c=i[a+1],u=e[-l];for(let d=re;d<u.length;d++){let p=u[d];p[Ft]===p[te]&&Ha(p[w],p,c,r)}if(u[En]!==null){let d=u[En];for(let p=0;p<d.length;p++){let f=d[p];Ha(f[w],f,c,r)}}}}}return r}function Xl(t,e){return t[et].queries[e].queryList}function Yp(t,e,n){let r=new ma((n&4)===4);return Qy(t,e,r,r.destroy),(e[et]??=new La).queries.push(new Fa(r))-1}function Jp(t,e,n){let r=H();return r.firstCreatePass&&(eh(r,new si(t,e,n),-1),(e&2)===2&&(r.staticViewQueries=!0)),Yp(r,I(),e)}function Xp(t,e,n,r){let o=H();if(o.firstCreatePass){let i=ie();eh(o,new si(e,n,r),i.index),L_(o,t),(n&2)===2&&(o.staticContentQueries=!0)}return Yp(o,I(),n)}function F_(t){return t.split(",").map(e=>e.trim())}function eh(t,e,n){t.queries===null&&(t.queries=new Va),t.queries.track(new ja(e,n))}function L_(t,e){let n=t.contentQueries||(t.contentQueries=[]),r=n.length?n[n.length-1]:-1;e!==r&&n.push(t.queries.length-1,e)}function ec(t,e){return t.queries.getByIndex(e)}function th(t,e){let n=t[w],r=ec(n,e);return r.crossesNgTemplate?Ha(n,t,e,[]):Zp(n,t,r,e)}function nh(t,e,n){let r,o=Wr(()=>{r._dirtyCounter();let i=V_(r,t);if(e&&i===void 0)throw new m(-951,!1);return i});return r=o[ae],r._dirtyCounter=jv(0),r._flatValue=void 0,o}function rh(t){return nh(!0,!1,t)}function oh(t){return nh(!0,!0,t)}function ih(t,e){let n=t[ae];n._lView=I(),n._queryIndex=e,n._queryList=Xl(n._lView,e),n._queryList.onDirty(()=>n._dirtyCounter.update(r=>r+1))}function V_(t,e){let n=t._lView,r=t._queryIndex;if(n===void 0||r===void 0||n[T]&4)return e?void 0:ce;let o=Xl(n,r),i=th(n,r);return o.reset(i,Wf),e?o.first:o._changesDetected||t._flatValue===void 0?t._flatValue=o.toArray():t._flatValue}function cd(t,e){return rh(e)}function j_(t,e){return oh(e)}var DR=(cd.required=j_,cd);function ud(t,e){return rh(e)}function H_(t,e){return oh(e)}var TR=(ud.required=H_,ud);function sh(t,e){let n=Object.create(Pd),r=new Xo;n.value=t;function o(){return Xt(n),dd(n.value),n.value}return o[ae]=n,o.asReadonly=Gf.bind(o),o.set=i=>{n.equal(n.value,i)||(en(n,i),r.emit(i))},o.update=i=>{dd(n.value),o.set(i(n.value))},o.subscribe=r.subscribe.bind(r),o.destroyRef=r.destroyRef,o}function dd(t){if(t===mi)throw new m(952,!1)}function fd(t,e){return sh(t,e)}function B_(t){return sh(mi,t)}var MR=(fd.required=B_,fd);function $_(t){let e=[],n=new Map;function r(o){let i=n.get(o);if(!i){let s=t(o);n.set(o,i=s.then(W_))}return i}return ai.forEach((o,i)=>{let s=[];o.templateUrl&&s.push(r(o.templateUrl).then(c=>{o.template=c}));let a=typeof o.styles=="string"?[o.styles]:o.styles||[];if(o.styles=a,o.styleUrl&&o.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(o.styleUrls?.length){let c=o.styles.length,u=o.styleUrls;o.styleUrls.forEach((d,p)=>{a.push(""),s.push(r(d).then(f=>{a[c+p]=f,u.splice(u.indexOf(d),1),u.length==0&&(o.styleUrls=void 0)}))})}else o.styleUrl&&s.push(r(o.styleUrl).then(c=>{a.push(c),o.styleUrl=void 0}));let l=Promise.all(s).then(()=>G_(i));e.push(l)}),q_(),Promise.all(e).then(()=>{})}var ai=new Map,U_=new Set;function q_(){let t=ai;return ai=new Map,t}function z_(){return ai.size===0}function W_(t){return typeof t=="string"?t:t.text()}function G_(t){U_.delete(t)}var fr=class{},Q_=class{};function NR(t,e){return new pr(t,e??null,[])}var pr=class extends fr{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new ii(this);constructor(e,n,r,o=!0){super(),this.ngModuleType=e,this._parent=n;let i=Jd(e);this._bootstrapComponents=yp(i.bootstrap),this._r3Injector=jf(e,n,[{provide:fr,useValue:this},{provide:ji,useValue:this.componentFactoryResolver},...r],ye(e),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},li=class extends Q_{moduleType;constructor(e){super(),this.moduleType=e}create(e){return new pr(this.moduleType,e,[])}};function K_(t,e,n){return new pr(t,e,n,!1)}var Ba=class extends fr{injector;componentFactoryResolver=new ii(this);instance=null;constructor(e){super();let n=new or([...e.providers,{provide:fr,useValue:this},{provide:ji,useValue:this.componentFactoryResolver}],e.parent||Ei(),e.debugName,new Set(["environment"]));this.injector=n,e.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function ah(t,e,n=null){return new Ba({providers:t,parent:e,debugName:n,runEnvironmentInitializers:!0}).injector}var Z_=(()=>{class t{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=hl(!1,n.type),o=r.length>0?ah([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=q({token:t,providedIn:"environment",factory:()=>new t(we(Je))})}return t})();function xR(t){return yr(()=>{let e=lh(t),n=pe(Q({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Zf.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:e.standalone?o=>o.get(Z_).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||cr.Emulated,styles:t.styles||ce,_:null,schemas:t.schemas||null,tView:null,id:""});e.standalone&&br("NgStandalone"),ch(n);let r=t.dependencies;return n.directiveDefs=pd(r,!1),n.pipeDefs=pd(r,!0),n.id=nw(n),n})}function Y_(t){return Ye(t)||pl(t)}function J_(t){return t!==null}function X_(t){return yr(()=>({type:t.type,bootstrap:t.bootstrap||ce,declarations:t.declarations||ce,imports:t.imports||ce,exports:t.exports||ce,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function ew(t,e){if(t==null)return $e;let n={};for(let r in t)if(t.hasOwnProperty(r)){let o=t[r],i,s,a,l;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,l=o[3]||null):(i=o,s=o,a=ki.None,l=null),n[i]=[r,a,l],e[i]=s}return n}function tw(t){if(t==null)return $e;let e={};for(let n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}function AR(t){return yr(()=>{let e=lh(t);return ch(e),e})}function kR(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone??!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function lh(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,inputConfig:t.inputs||$e,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||ce,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:ew(t.inputs,e),outputs:tw(t.outputs),debugInfo:null}}function ch(t){t.features?.forEach(e=>e(t))}function pd(t,e){if(!t)return null;let n=e?Xd:Y_;return()=>(typeof t=="function"?t():t).map(r=>n(r)).filter(J_)}function nw(t){let e=0,n=typeof t.consts=="function"?"":t.consts,r=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,n,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];for(let i of r.join("|"))e=Math.imul(31,e)+i.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function rw(t){return Object.getPrototypeOf(t.prototype).constructor}function ow(t){let e=rw(t.type),n=!0,r=[t];for(;e;){let o;if(Ue(t))o=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new m(903,!1);o=e.\u0275dir}if(o){if(n){r.push(o);let s=t;s.inputs=Gs(t.inputs),s.declaredInputs=Gs(t.declaredInputs),s.outputs=Gs(t.outputs);let a=o.hostBindings;a&&cw(t,a);let l=o.viewQuery,c=o.contentQueries;if(l&&aw(t,l),c&&lw(t,c),iw(t,o),iy(t.outputs,o.outputs),Ue(o)&&o.data.animation){let u=t.data;u.animation=(u.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s<i.length;s++){let a=i[s];a&&a.ngInherit&&a(t),a===ow&&(n=!1)}}e=Object.getPrototypeOf(e)}sw(r)}function iw(t,e){for(let n in e.inputs){if(!e.inputs.hasOwnProperty(n)||t.inputs.hasOwnProperty(n))continue;let r=e.inputs[n];r!==void 0&&(t.inputs[n]=r,t.declaredInputs[n]=e.declaredInputs[n])}}function sw(t){let e=0,n=null;for(let r=t.length-1;r>=0;r--){let o=t[r];o.hostVars=e+=o.hostVars,o.hostAttrs=In(o.hostAttrs,n=In(n,o.hostAttrs))}}function Gs(t){return t===$e?{}:t===ce?[]:t}function aw(t,e){let n=t.viewQuery;n?t.viewQuery=(r,o)=>{e(r,o),n(r,o)}:t.viewQuery=e}function lw(t,e){let n=t.contentQueries;n?t.contentQueries=(r,o,i)=>{e(r,o,i),n(r,o,i)}:t.contentQueries=e}function cw(t,e){let n=t.hostBindings;n?t.hostBindings=(r,o)=>{e(r,o),n(r,o)}:t.hostBindings=e}function RR(t){let e=n=>{let r=Array.isArray(t);n.hostDirectives===null?(n.findHostDirectiveDefs=uh,n.hostDirectives=r?t.map($a):[t]):r?n.hostDirectives.unshift(...t.map($a)):n.hostDirectives.unshift(t)};return e.ngInherit=!0,e}function uh(t,e,n){if(t.hostDirectives!==null)for(let r of t.hostDirectives)if(typeof r=="function"){let o=r();for(let i of o)hd($a(i),e,n)}else hd(r,e,n)}function hd(t,e,n){let r=pl(t.directive);uw(r.declaredInputs,t.inputs),uh(r,e,n),n.set(r,t),e.push(r)}function $a(t){return typeof t=="function"?{directive:ee(t),inputs:$e,outputs:$e}:{directive:ee(t.directive),inputs:gd(t.inputs),outputs:gd(t.outputs)}}function gd(t){if(t===void 0||t.length===0)return $e;let e={};for(let n=0;n<t.length;n+=2)e[t[n]]=t[n+1];return e}function uw(t,e){for(let n in e)if(e.hasOwnProperty(n)){let r=e[n],o=t[n];t[r]=o}}function dh(t){return tc(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function dw(t,e){if(Array.isArray(t))for(let n=0;n<t.length;n++)e(t[n]);else{let n=t[Symbol.iterator](),r;for(;!(r=n.next()).done;)e(r.value)}}function tc(t){return t!==null&&(typeof t=="function"||typeof t=="object")}function Qt(t,e,n){return t[e]=n}function fh(t,e){return t[e]}function oe(t,e,n){let r=t[e];return Object.is(r,n)?!1:(t[e]=n,!0)}function hr(t,e,n,r){let o=oe(t,e,n);return oe(t,e+1,r)||o}function fw(t,e,n,r,o){let i=hr(t,e,n,r);return oe(t,e+2,o)||i}function ph(t,e,n,r,o,i){let s=hr(t,e,n,r);return hr(t,e+2,o,i)||s}function pw(t,e,n,r,o,i,s,a,l){let c=e.consts,u=On(e,t,4,s||null,a||null);_l()&&Yl(e,n,u,ht(c,l),$l),u.mergedAttrs=In(u.mergedAttrs,u.attrs),Cl(e,u);let d=u.tView=Vl(2,u,r,o,i,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c,null);return e.queries!==null&&(e.queries.template(e,u),d.queries=e.queries.embeddedTView(u)),u}function gr(t,e,n,r,o,i,s,a,l,c){let u=n+B,d=e.firstCreatePass?pw(u,e,t,r,o,i,s,a,l):e.data[u];mt(d,!1);let p=gw(e,t,d,n);Di()&&Pi(e,t,p,d),xn(p,t);let f=Hp(p,t,p,d);return t[u]=f,Hl(t,f),Kp(f,d,t),_i(d)&&Ri(e,t,d),l!=null&&Bl(t,d,c),d}function hw(t,e,n,r,o,i,s,a){let l=I(),c=H(),u=ht(c.consts,i);return gr(l,c,t,e,n,r,o,u,s,a),hw}var gw=mw;function mw(t,e,n,r){return Ti(!0),e[$].createComment("")}var yw=(()=>{class t{cachedInjectors=new Map;getOrCreateInjector(n,r,o,i){if(!this.cachedInjectors.has(n)){let s=o.length>0?ah(o,r,i):null;this.cachedInjectors.set(n,s)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=q({token:t,providedIn:"environment",factory:()=>new t})}return t})();var vw=new O("");function Qs(t,e,n){return t.get(yw).getOrCreateInjector(e,t,n,"")}function Ew(t,e,n){if(t instanceof mn){let o=t.injector,i=t.parentInjector,s=Qs(i,e,n);return new mn(o,s)}let r=t.get(Je);if(r!==t){let o=Qs(r,e,n);return new mn(t,o)}return Qs(t,e,n)}function At(t,e,n,r=!1){let o=n[te],i=o[w];if(Wt(o))return;let s=Dr(o,e),a=s[Ci],l=s[cE];if(!(l!==null&&t<l)&&md(a,t)&&md(s[iE]??-1,t)){let c=Tr(i,e),d=!r&&!0&&(gE(c)!==null||Qu(c,K.Loading)!==null||Qu(c,K.Placeholder))?bw:_w;try{d(t,s,n,e,o)}catch(p){Ul(o,p)}}}function Iw(t,e){let n=t[sr]?.findIndex(o=>o.data[np]===e[Ci])??-1;return{dehydratedView:n>-1?t[sr][n]:null,dehydratedViewIx:n}}function _w(t,e,n,r,o){L(20);let i=hE(t,o,r);if(i!==null){e[Ci]=t;let s=o[w],a=i+B,l=Ir(s,a),c=0;Zl(n,c);let u;if(t===K.Complete){let h=Tr(s,r),g=h.providers;g&&g.length>0&&(u=Ew(o[Ce],h,g))}let{dehydratedView:d,dehydratedViewIx:p}=Iw(n,e),f=kn(o,l,null,{injector:u,dehydratedView:d});if(Rn(n,f,c,Ut(l,d)),Li(f,2),p>-1&&n[sr]?.splice(p,1),(t===K.Complete||t===K.Error)&&Array.isArray(e[Us])){for(let h of e[Us])h();e[Us]=null}}L(21)}function md(t,e){return t<e}function ww(t,e){let n=t[e.index];At(K.Placeholder,e,n)}function yd(t,e,n){t.loadingPromise.then(()=>{t.loadingState===me.COMPLETE?At(K.Complete,e,n):t.loadingState===me.FAILED&&At(K.Error,e,n)})}var bw=null;var OR=(()=>{class t{log(n){console.log(n)}warn(n){console.warn(n)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=q({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();var Dw=new O(""),Tw=new O(""),PR=(()=>{class t{_ngZone;registry;_isZoneStable=!0;_callbacks=[];taskTrackingZone=null;constructor(n,r,o){this._ngZone=n,this.registry=r,nc||(Sw(o),o.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ue.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>r.updateCb&&r.updateCb(n)?(clearTimeout(r.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),n()},r)),this._callbacks.push({doneCb:n,timeoutId:i,updateCb:o})}whenStable(n,r,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,o),this._runCallbacksIfReady()}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,o){return[]}static \u0275fac=function(r){return new(r||t)(we(ue),we(Mw),we(Tw))};static \u0275prov=q({token:t,factory:t.\u0275fac})}return t})(),Mw=(()=>{class t{_applications=new Map;registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return nc?.findTestabilityInTree(this,n,r)??null}static \u0275fac=function(r){return new(r||t)};static \u0275prov=q({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function Sw(t){nc=t}var nc,hh=(()=>{class t{static \u0275prov=q({token:t,providedIn:"root",factory:()=>new Ua})}return t})(),Ua=class{queuedEffectCount=0;queues=new Map;schedule(e){this.enqueue(e)}remove(e){let n=e.zone,r=this.queues.get(n);r.has(e)&&(r.delete(e),this.queuedEffectCount--)}enqueue(e){let n=e.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(e)||(this.queuedEffectCount++,r.add(e))}flush(){for(;this.queuedEffectCount>0;)for(let[e,n]of this.queues)e===null?this.flushQueue(n):e.run(()=>this.flushQueue(n))}flushQueue(e){for(let n of e)e.delete(n),this.queuedEffectCount--,n.run()}};function gh(t){return!!t&&typeof t.then=="function"}function Cw(t){return!!t&&typeof t.subscribe=="function"}var mh=new O("");function FR(t){return Cy([{provide:mh,multi:!0,useValue:t}])}var yh=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=A(mh,{optional:!0})??[];injector=A(tt);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=of(this.injector,o);if(gh(i))n.push(i);else if(Cw(i)){let s=new Promise((a,l)=>{i.subscribe({complete:a,error:l})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||t)};static \u0275prov=q({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Nw=new O("");function xw(){vs(()=>{throw new m(600,!1)})}function Aw(t){return t.isBoundToModule}var kw=10;function vh(t,e){return Array.isArray(e)?e.reduce(vh,t):Q(Q({},t),e)}var wn=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=A(Pv);afterRenderManager=A(op);zonelessEnabled=A(Bf);rootEffectScheduler=A(hh);dirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new Me;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=A(wr).hasPendingTasks.pipe(ut(n=>!n));constructor(){A(Si,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=A(Je);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=tt.NULL){L(10);let i=n instanceof Up;if(!this._injector.get(yh).done){let f="";throw new m(405,f)}let a;i?a=n:a=this._injector.get(ji).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let l=Aw(a)?void 0:this._injector.get(fr),c=r||a.selector,u=a.create(o,[],c,l),d=u.location.nativeElement,p=u.injector.get(Dw,null);return p?.registerApplication(d),u.onDestroy(()=>{this.detachView(u.hostView),Po(this.components,u),p?.unregisterApplication(d)}),this._loadComponent(u),L(11,u),u}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){L(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(kl.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new m(101,!1);let n=M(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,M(n),this.afterTick.next(),L(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(oi,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<kw;)L(14),this.synchronizeOnce(),L(15)}synchronizeOnce(){if(this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),this.dirtyFlags&7){let n=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:r,notifyErrorHandler:o}of this.allViews)Rw(r,o,n,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}else this._rendererFactory?.begin?.(),this._rendererFactory?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>wi(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;Po(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(Nw,[]).forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Po(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new m(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||t)};static \u0275prov=q({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Po(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}function Rw(t,e,n,r){if(!n&&!wi(t))return;Fp(t,e,n&&!r?0:1)}function Ow(t,e,n){let r=e[Ce],o=e[w];if(t.loadingState!==me.NOT_STARTED)return t.loadingPromise??Promise.resolve();let i=Dr(e,n),s=mE(o,t);t.loadingState=me.IN_PROGRESS,Oo(1,i);let a=t.dependencyResolverFn,l=r.get(wr),c=l.add();return a?(t.loadingPromise=Promise.allSettled(a()).then(u=>{let d=!1,p=[],f=[];for(let h of u)if(h.status==="fulfilled"){let g=h.value,E=Ye(g)||pl(g);if(E)p.push(E);else{let y=Xd(g);y&&f.push(y)}}else{d=!0;break}if(t.loadingPromise=null,l.remove(c),d){if(t.loadingState=me.FAILED,t.errorTmplIndex===null){let h="",g=new m(-750,!1);Ul(e,g)}}else{t.loadingState=me.COMPLETE;let h=s.tView;if(p.length>0){h.directiveRegistry=Ku(h.directiveRegistry,p);let g=p.map(y=>y.type),E=hl(!1,...g);t.providers=E}f.length>0&&(h.pipeRegistry=Ku(h.pipeRegistry,f))}}),t.loadingPromise):(t.loadingPromise=Promise.resolve().then(()=>{t.loadingPromise=null,t.loadingState=me.COMPLETE,l.remove(c)}),t.loadingPromise)}function Pw(t,e){return e[Ce].get(vw,null,{optional:!0})?.behavior!==ip.Manual}function Fw(t,e,n){let r=e[w],o=e[n.index];if(!Pw(t,e))return;let i=Dr(e,n),s=Tr(r,n);switch(sp(i),s.loadingState){case me.NOT_STARTED:At(K.Loading,n,o),Ow(s,e,n),s.loadingState===me.IN_PROGRESS&&yd(s,n,o);break;case me.IN_PROGRESS:At(K.Loading,n,o),yd(s,n,o);break;case me.COMPLETE:At(K.Complete,n,o);break;case me.FAILED:At(K.Error,n,o);break;default:}}function Lw(t,e,n){return t===0?vd(e,n):t===2?!vd(e,n):!0}function vd(t,e){let n=t[Ce],r=Tr(t[w],e),o=EE(n),i=r.flags!==null&&(r.flags&1)===1,a=Dr(t,e)[lE]!==null;return!(i&&a&&o)}function LR(t,e,n,r,o,i,s,a,l,c){let u=I(),d=H(),p=t+B,f=gr(u,d,t,null,0,0),h=u[Ce];if(d.firstCreatePass){br("NgDefer");let De={primaryTmplIndex:e,loadingTmplIndex:r??null,placeholderTmplIndex:o??null,errorTmplIndex:i??null,placeholderBlockConfig:null,loadingBlockConfig:null,dependencyResolverFn:n??null,loadingState:me.NOT_STARTED,loadingPromise:null,providers:null,hydrateTriggers:null,debug:null,flags:c??0};l?.(d,De,a,s),pE(d,p,De)}let g=u[p];Kp(g,f,u);let E=null,y=null;if(g[sr]?.length>0){let De=g[sr][0].data;y=De[Kv]??null,E=De[np]}let R=[null,ei.Initial,null,null,null,null,y,E,null,null];fE(u,p,R);let W=null;y!==null&&(W=h.get(yE),W.add(y,{lView:u,tNode:f,lContainer:g}));let G=()=>{sp(R),y!==null&&W?.cleanup([y])};dE(0,R,()=>vf(u,G)),vl(u,G)}function VR(t){let e=I(),n=Gt();if(!Lw(0,e,n))return;let r=yt();if(oe(e,r,t)){let o=M(null);try{let i=!!t,a=Dr(e,n)[Ci];i===!1&&a===ei.Initial?ww(e,n):i===!0&&(a===ei.Initial||a===K.Placeholder)&&Fw(0,e,n)}finally{M(o)}}}function Vw(t,e,n,r){let o=I(),i=yt();if(oe(o,i,e)){let s=H(),a=Gt();_I(a,o,t,e,n,r)}return Vw}function rc(t,e,n,r){return oe(t,yt(),n)?e+Ot(n)+r:de}function Eh(t,e,n,r,o,i){let s=nv(),a=hr(t,s,n,o);return Dl(2),a?e+Ot(n)+r+Ot(o)+i:de}function Co(t,e){return t<<17|e<<2}function zt(t){return t>>17&32767}function jw(t){return(t&2)==2}function Hw(t,e){return t&131071|e<<17}function qa(t){return t|2}function bn(t){return(t&131068)>>2}function Ks(t,e){return t&-131069|e<<2}function Bw(t){return(t&1)===1}function za(t){return t|1}function $w(t,e,n,r,o,i){let s=i?e.classBindings:e.styleBindings,a=zt(s),l=bn(s);t[r]=n;let c=!1,u;if(Array.isArray(n)){let d=n;u=d[1],(u===null||Er(d,u)>0)&&(c=!0)}else u=n;if(o)if(l!==0){let p=zt(t[a+1]);t[r+1]=Co(p,a),p!==0&&(t[p+1]=Ks(t[p+1],r)),t[a+1]=Hw(t[a+1],r)}else t[r+1]=Co(a,0),a!==0&&(t[a+1]=Ks(t[a+1],r)),a=r;else t[r+1]=Co(l,0),a===0?a=r:t[l+1]=Ks(t[l+1],r),l=r;c&&(t[r+1]=qa(t[r+1])),Ed(t,u,r,!0),Ed(t,u,r,!1),Uw(e,u,t,r,i),s=Co(a,l),i?e.classBindings=s:e.styleBindings=s}function Uw(t,e,n,r,o){let i=o?t.residualClasses:t.residualStyles;i!=null&&typeof e=="string"&&Er(i,e)>=0&&(n[r+1]=za(n[r+1]))}function Ed(t,e,n,r){let o=t[n+1],i=e===null,s=r?zt(o):bn(o),a=!1;for(;s!==0&&(a===!1||i);){let l=t[s],c=t[s+1];qw(l,e)&&(a=!0,t[s+1]=r?za(c):qa(c)),s=r?zt(c):bn(c)}a&&(t[n+1]=r?qa(o):za(o))}function qw(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?Er(t,e)>=0:!1}var Y={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Ih(t){return t.substring(Y.key,Y.keyEnd)}function zw(t){return t.substring(Y.value,Y.valueEnd)}function Ww(t){return bh(t),_h(t,Dn(t,0,Y.textEnd))}function _h(t,e){let n=Y.textEnd;return n===e?-1:(e=Y.keyEnd=Qw(t,Y.key=e,n),Dn(t,e,n))}function Gw(t){return bh(t),wh(t,Dn(t,0,Y.textEnd))}function wh(t,e){let n=Y.textEnd,r=Y.key=Dn(t,e,n);return n===r?-1:(r=Y.keyEnd=Kw(t,r,n),r=Id(t,r,n,58),r=Y.value=Dn(t,r,n),r=Y.valueEnd=Zw(t,r,n),Id(t,r,n,59))}function bh(t){Y.key=0,Y.keyEnd=0,Y.value=0,Y.valueEnd=0,Y.textEnd=t.length}function Dn(t,e,n){for(;e<n&&t.charCodeAt(e)<=32;)e++;return e}function Qw(t,e,n){for(;e<n&&t.charCodeAt(e)>32;)e++;return e}function Kw(t,e,n){let r;for(;e<n&&((r=t.charCodeAt(e))===45||r===95||(r&-33)>=65&&(r&-33)<=90||r>=48&&r<=57);)e++;return e}function Id(t,e,n,r){return e=Dn(t,e,n),e<n&&e++,e}function Zw(t,e,n){let r=-1,o=-1,i=-1,s=e,a=s;for(;s<n;){let l=t.charCodeAt(s++);if(l===59)return a;l===34||l===39?a=s=_d(t,l,s,n):e===s-4&&i===85&&o===82&&r===76&&l===40?a=s=_d(t,41,s,n):l>32&&(a=s),i=o,o=r,r=l&-33}return a}function _d(t,e,n,r){let o=-1,i=n;for(;i<r;){let s=t.charCodeAt(i++);if(s==e&&o!==92)return i;s==92&&o===92?o=0:o=s}throw new Error}function Yw(t,e,n){let r=I(),o=yt();if(oe(r,o,e)){let i=H(),s=Gt();Sr(i,s,r,t,e,r[$],n,!1)}return Yw}function Wa(t,e,n,r,o){ql(e,t,n,o?"class":"style",r)}function Jw(t,e,n){return Th(t,e,n,!1),Jw}function Xw(t,e){return Th(t,e,null,!0),Xw}function jR(t){oc(Ch,eb,t,!1)}function eb(t,e){for(let n=Gw(e);n>=0;n=wh(e,n))Ch(t,Ih(e),zw(e))}function HR(t){oc(sb,Dh,t,!0)}function Dh(t,e){for(let n=Ww(e);n>=0;n=_h(e,n))vr(t,Ih(e),!0)}function Th(t,e,n,r){let o=I(),i=H(),s=Dl(2);if(i.firstUpdatePass&&Sh(i,t,s,r),e!==de&&oe(o,s,e)){let a=i.data[it()];Nh(i,a,o,o[$],t,o[s+1]=lb(e,n),r,s)}}function oc(t,e,n,r){let o=H(),i=Dl(2);o.firstUpdatePass&&Sh(o,null,i,r);let s=I();if(n!==de&&oe(s,i,n)){let a=o.data[it()];if(xh(a,r)&&!Mh(o,i)){let l=r?a.classesWithoutHost:a.stylesWithoutHost;l!==null&&(n=ea(l,n||"")),Wa(o,a,s,n,r)}else ab(o,a,s,s[$],s[i+1],s[i+1]=ib(t,e,n),r,i)}}function Mh(t,e){return e>=t.expandoStartIndex}function Sh(t,e,n,r){let o=t.data;if(o[n+1]===null){let i=o[it()],s=Mh(t,n);xh(i,r)&&e===null&&!s&&(e=!1),e=tb(o,i,e,r),$w(o,i,e,n,s,r)}}function tb(t,e,n,r){let o=av(t),i=r?e.residualClasses:e.residualStyles;if(o===null)(r?e.classBindings:e.styleBindings)===0&&(n=Zs(null,t,e,n,r),n=mr(n,e.attrs,r),i=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==o)if(n=Zs(o,t,e,n,r),i===null){let l=nb(t,e,r);l!==void 0&&Array.isArray(l)&&(l=Zs(null,t,e,l[1],r),l=mr(l,e.attrs,r),rb(t,e,r,l))}else i=ob(t,e,r)}return i!==void 0&&(r?e.residualClasses=i:e.residualStyles=i),n}function nb(t,e,n){let r=n?e.classBindings:e.styleBindings;if(bn(r)!==0)return t[zt(r)]}function rb(t,e,n,r){let o=n?e.classBindings:e.styleBindings;t[zt(o)]=r}function ob(t,e,n){let r,o=e.directiveEnd;for(let i=1+e.directiveStylingLast;i<o;i++){let s=t[i].hostAttrs;r=mr(r,s,n)}return mr(r,e.attrs,n)}function Zs(t,e,n,r,o){let i=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(i=e[a],r=mr(r,i.hostAttrs,o),i!==t);)a++;return t!==null&&(n.directiveStylingLast=a),r}function mr(t,e,n){let r=n?1:2,o=-1;if(e!==null)for(let i=0;i<e.length;i++){let s=e[i];typeof s=="number"?o=s:o===r&&(Array.isArray(t)||(t=t===void 0?[]:["",t]),vr(t,s,n?!0:e[++i]))}return t===void 0?null:t}function ib(t,e,n){if(n==null||n==="")return ce;let r=[],o=An(n);if(Array.isArray(o))for(let i=0;i<o.length;i++)t(r,o[i],!0);else if(typeof o=="object")for(let i in o)o.hasOwnProperty(i)&&t(r,i,o[i]);else typeof o=="string"&&e(r,o);return r}function Ch(t,e,n){vr(t,e,An(n))}function sb(t,e,n){let r=String(e);r!==""&&!r.includes(" ")&&vr(t,r,n)}function ab(t,e,n,r,o,i,s,a){o===de&&(o=ce);let l=0,c=0,u=0<o.length?o[0]:null,d=0<i.length?i[0]:null;for(;u!==null||d!==null;){let p=l<o.length?o[l+1]:void 0,f=c<i.length?i[c+1]:void 0,h=null,g;u===d?(l+=2,c+=2,p!==f&&(h=d,g=f)):d===null||u!==null&&u<d?(l+=2,h=u):(c+=2,h=d,g=f),h!==null&&Nh(t,e,n,r,h,g,s,a),u=l<o.length?o[l]:null,d=c<i.length?i[c]:null}}function Nh(t,e,n,r,o,i,s,a){if(!(e.type&3))return;let l=t.data,c=l[a+1],u=Bw(c)?wd(l,e,n,o,bn(c),s):void 0;if(!ci(u)){ci(i)||jw(c)&&(i=wd(l,null,n,o,a,s));let d=gf(it(),n);VI(r,s,d,o,i)}}function wd(t,e,n,r,o,i){let s=e===null,a;for(;o>0;){let l=t[o],c=Array.isArray(l),u=c?l[1]:l,d=u===null,p=n[o+1];p===de&&(p=d?ce:void 0);let f=d?Vs(p,r):u===r?p:void 0;if(c&&!ci(f)&&(f=Vs(l,r)),ci(f)&&(a=f,s))return a;let h=t[o+1];o=s?zt(h):bn(h)}if(e!==null){let l=i?e.residualClasses:e.residualStyles;l!=null&&(a=Vs(l,r))}return a}function ci(t){return t!==void 0}function lb(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=ye(An(t)))),t}function xh(t,e){return(t.flags&(e?8:16))!==0}function BR(t,e,n){let r=I(),o=rc(r,t,e,n);oc(vr,Dh,o,!0)}var Ga=class{destroy(e){}updateValue(e,n){}swap(e,n){let r=Math.min(e,n),o=Math.max(e,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(e,n){this.attach(n,this.detach(e))}};function Ys(t,e,n,r,o){return t===n&&Object.is(e,r)?1:Object.is(o(t,e),o(n,r))?-1:0}function cb(t,e,n){let r,o,i=0,s=t.length-1,a=void 0;if(Array.isArray(e)){let l=e.length-1;for(;i<=s&&i<=l;){let c=t.at(i),u=e[i],d=Ys(i,c,i,u,n);if(d!==0){d<0&&t.updateValue(i,u),i++;continue}let p=t.at(s),f=e[l],h=Ys(s,p,l,f,n);if(h!==0){h<0&&t.updateValue(s,f),s--,l--;continue}let g=n(i,c),E=n(s,p),y=n(i,u);if(Object.is(y,E)){let R=n(l,f);Object.is(R,g)?(t.swap(i,s),t.updateValue(s,f),l--,s--):t.move(s,i),t.updateValue(i,u),i++;continue}if(r??=new ui,o??=Dd(t,i,s,n),Qa(t,r,i,y))t.updateValue(i,u),i++,s++;else if(o.has(y))r.set(g,t.detach(i)),s--;else{let R=t.create(i,e[i]);t.attach(i,R),i++,s++}}for(;i<=l;)bd(t,r,n,i,e[i]),i++}else if(e!=null){let l=e[Symbol.iterator](),c=l.next();for(;!c.done&&i<=s;){let u=t.at(i),d=c.value,p=Ys(i,u,i,d,n);if(p!==0)p<0&&t.updateValue(i,d),i++,c=l.next();else{r??=new ui,o??=Dd(t,i,s,n);let f=n(i,d);if(Qa(t,r,i,f))t.updateValue(i,d),i++,s++,c=l.next();else if(!o.has(f))t.attach(i,t.create(i,d)),i++,s++,c=l.next();else{let h=n(i,u);r.set(h,t.detach(i)),s--}}}for(;!c.done;)bd(t,r,n,t.length,c.value),c=l.next()}for(;i<=s;)t.destroy(t.detach(s--));r?.forEach(l=>{t.destroy(l)})}function Qa(t,e,n,r){return e!==void 0&&e.has(r)?(t.attach(n,e.get(r)),e.delete(r),!0):!1}function bd(t,e,n,r,o){if(Qa(t,e,r,n(r,o)))t.updateValue(r,o);else{let i=t.create(r,o);t.attach(r,i)}}function Dd(t,e,n,r){let o=new Set;for(let i=e;i<=n;i++)o.add(r(i,t.at(i)));return o}var ui=class{kvMap=new Map;_vMap=void 0;has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let n=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(e,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,n){if(this.kvMap.has(e)){let r=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(e,n)}forEach(e){for(let[n,r]of this.kvMap)if(e(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),e(r,n)}}};function $R(t,e){br("NgControlFlow");let n=I(),r=yt(),o=n[r]!==de?n[r]:-1,i=o!==-1?di(n,B+o):void 0,s=0;if(oe(n,r,t)){let a=M(null);try{if(i!==void 0&&Zl(i,s),t!==-1){let l=B+t,c=di(n,l),u=Ja(n[w],l),d=_n(c,u.tView.ssrId),p=kn(n,u,e,{dehydratedView:d});Rn(c,p,s,Ut(u,d))}}finally{M(a)}}else if(i!==void 0){let a=Bp(i,s);a!==void 0&&(a[J]=e)}}var Ka=class{lContainer;$implicit;$index;constructor(e,n,r){this.lContainer=e,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-re}};function UR(t){return t}function qR(t,e){return e}var Za=class{hasEmptyBlock;trackByFn;liveCollection;constructor(e,n,r){this.hasEmptyBlock=e,this.trackByFn=n,this.liveCollection=r}};function zR(t,e,n,r,o,i,s,a,l,c,u,d,p){br("NgControlFlow");let f=I(),h=H(),g=l!==void 0,E=I(),y=a?s.bind(E[be][J]):s,R=new Za(g,y);E[B+t]=R,gr(f,h,t+1,e,n,r,o,ht(h.consts,i)),g&&gr(f,h,t+2,l,c,u,d,ht(h.consts,p))}var Ya=class extends Ga{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(e,n,r){super(),this.lContainer=e,this.hostLView=n,this.templateTNode=r}get length(){return this.lContainer.length-re}at(e){return this.getLView(e)[J].$implicit}attach(e,n){let r=n[vn];this.needsIndexUpdate||=e!==this.length,Rn(this.lContainer,n,e,Ut(this.templateTNode,r))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,ub(this.lContainer,e)}create(e,n){let r=_n(this.lContainer,this.templateTNode.tView.ssrId),o=kn(this.hostLView,this.templateTNode,new Ka(this.lContainer,n,e),{dehydratedView:r});return this.operationsCounter?.recordCreate(),o}destroy(e){Oi(e[w],e),this.operationsCounter?.recordDestroy()}updateValue(e,n){this.getLView(e)[J].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e<this.length;e++)this.getLView(e)[J].$index=e}getLView(e){return db(this.lContainer,e)}};function WR(t){let e=M(null),n=it();try{let r=I(),o=r[w],i=r[n],s=n+1,a=di(r,s);if(i.liveCollection===void 0){let c=Ja(o,s);i.liveCollection=new Ya(a,r,c)}else i.liveCollection.reset();let l=i.liveCollection;if(cb(l,t,i.trackByFn),l.updateIndexes(),i.hasEmptyBlock){let c=yt(),u=l.length===0;if(oe(r,c,u)){let d=n+2,p=di(r,d);if(u){let f=Ja(o,d),h=_n(p,f.tView.ssrId),g=kn(r,f,void 0,{dehydratedView:h});Rn(p,g,0,Ut(f,h))}else Zl(p,0)}}}finally{M(e)}}function di(t,e){return t[e]}function ub(t,e){return ur(t,e)}function db(t,e){return Bp(t,e)}function Ja(t,e){return Ir(t,e)}function Ah(t,e,n,r){let o=I(),i=H(),s=B+t,a=o[$],l=i.firstCreatePass?zp(s,i,o,e,$l,_l(),n,r):i.data[s],c=pb(i,o,l,a,e,t);o[s]=c;let u=_i(l);return mt(l,!0),wp(a,c,l),!Gl(l)&&Di()&&Pi(i,o,c,l),(Ky()===0||u)&&xn(c,o),Zy(),u&&(Ri(i,o,l),Ol(i,l,o)),r!==null&&Bl(o,l),Ah}function kh(){let t=ie();wl()?bl():(t=t.parent,mt(t,!1));let e=t;Jy(e)&&Xy(),Yy();let n=H();return n.firstCreatePass&&Wp(n,e),e.classesWithoutHost!=null&&pv(e)&&Wa(n,e,I(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&hv(e)&&Wa(n,e,I(),e.stylesWithoutHost,!1),kh}function fb(t,e,n,r){return Ah(t,e,n,r),kh(),fb}var pb=(t,e,n,r,o,i)=>(Ti(!0),Ip(r,o,uv()));function hb(t,e,n,r,o){let i=e.consts,s=ht(i,r),a=On(e,t,8,"ng-container",s);s!==null&&Oa(a,s,!0);let l=ht(i,o);return _l()&&Yl(e,n,a,l,$l),a.mergedAttrs=In(a.mergedAttrs,a.attrs),e.queries!==null&&e.queries.elementStart(e,a),a}function Rh(t,e,n){let r=I(),o=H(),i=t+B,s=o.firstCreatePass?hb(i,o,r,e,n):o.data[i];mt(s,!0);let a=mb(o,r,s,t);return r[i]=a,Di()&&Pi(o,r,a,s),xn(a,r),_i(s)&&(Ri(o,r,s),Ol(o,s,r)),n!=null&&Bl(r,s),Rh}function Oh(){let t=ie(),e=H();return wl()?bl():(t=t.parent,mt(t,!1)),e.firstCreatePass&&(Cl(e,t),ml(t)&&e.queries.elementEnd(t)),Oh}function gb(t,e,n){return Rh(t,e,n),Oh(),gb}var mb=(t,e,n,r)=>(Ti(!0),sI(e[$],""));function GR(){return I()}function yb(t,e,n){let r=I(),o=yt();if(oe(r,o,e)){let i=H(),s=Gt();Sr(i,s,r,t,e,r[$],n,!0)}return yb}var xt=void 0;function vb(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return e===1&&n===0?1:5}var Eb=["en",[["a","p"],["AM","PM"],xt],[["AM","PM"],xt,xt],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],xt,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],xt,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",xt,"{1} 'at' {0}",xt],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",vb],nr={};function QR(t,e,n){typeof e!="string"&&(n=e,e=t[fi.LocaleId]),e=e.toLowerCase().replace(/_/g,"-"),nr[e]=t,n&&(nr[e][fi.ExtraData]=n)}function Ib(t){let e=_b(t),n=Td(e);if(n)return n;let r=e.split("-")[0];if(n=Td(r),n)return n;if(r==="en")return Eb;throw new m(701,!1)}function KR(t){return Ib(t)[fi.PluralCase]}function Td(t){return t in nr||(nr[t]=Ze.ng&&Ze.ng.common&&Ze.ng.common.locales&&Ze.ng.common.locales[t]),nr[t]}var fi=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(fi||{});function _b(t){return t.toLowerCase().replace(/_/g,"-")}var pi="en-US",wb="USD";var bb=pi;function Db(t){typeof t=="string"&&(bb=t.toLowerCase().replace(/_/g,"-"))}function Md(t,e,n){return function r(o){if(o===Function)return n;let i=Mn(t)?ze(t.index,e):e;Li(i,5);let s=e[J],a=Sd(e,s,n,o),l=r.__ngNextListenerFn__;for(;l;)a=Sd(e,s,l,o)&&a,l=l.__ngNextListenerFn__;return a}}function Sd(t,e,n,r){let o=M(null);try{return L(6,e,n),n(r)!==!1}catch(i){return Tb(t,i),!1}finally{L(7,e,n),M(o)}}function Tb(t,e){let n=t[Ce],r=n?n.get(gt,null):null;r&&r.handleError(e)}function Cd(t,e,n,r,o,i){let s=e[n],a=e[w],c=a.data[n].outputs[r],u=s[c],d=a.firstCreatePass?Il(a):null,p=El(e),f=u.subscribe(i),h=p.length;p.push(i,f),d&&d.push(o,t.index,h,-(h+1))}var Mb=new Map;function Sb(t,e,n,r){let o=I(),i=H(),s=ie();return Ph(i,o,o[$],s,t,e,r),Sb}function Cb(t,e,n,r){let o=t.cleanup;if(o!=null)for(let i=0;i<o.length-1;i+=2){let s=o[i];if(s===n&&o[i+1]===r){let a=e[$o],l=o[i+2];return a.length>l?a[l]:null}typeof s=="string"&&(i+=2)}return null}function Ph(t,e,n,r,o,i,s){let a=_i(r),c=t.firstCreatePass?Il(t):null,u=El(e),d=!0;if(r.type&3||s){let p=We(r,e),f=s?s(p):p,h=u.length,g=s?y=>s(qe(y[r.index])):r.index,E=null;if(!s&&a&&(E=Cb(t,e,o,r.index)),E!==null){let y=E.__ngLastListenerFn__||E;y.__ngNextListenerFn__=i,E.__ngLastListenerFn__=i,d=!1}else{i=Md(r,e,i);let y=e[Ce].get(qv);Mb.get(y)?.(f,o,i);let W=n.listen(f,o,i);u.push(i,W),c&&c.push(o,g,h,h+1)}}else i=Md(r,e,i);if(d){let p=r.outputs?.[o],f=r.hostDirectiveOutputs?.[o];if(f&&f.length)for(let h=0;h<f.length;h+=2){let g=f[h],E=f[h+1];Cd(r,e,g,E,o,i)}if(p&&p.length)for(let h of p)Cd(r,e,h,o,o,i)}}function ZR(t=1){return cv(t)}function Nb(t,e){let n=null,r=YE(t);for(let o=0;o<e.length;o++){let i=e[o];if(i==="*"){n=o;continue}if(r===null?Ep(t,i,!0):eI(r,i))return o}return n}function YR(t){let e=I()[be][ve];if(!e.projection){let n=t?t.length:1,r=e.projection=Ty(n,null),o=r.slice(),i=e.child;for(;i!==null;){if(i.type!==128){let s=t?Nb(i,t):0;s!==null&&(o[s]?o[s].projectionNext=i:r[s]=i,o[s]=i)}i=i.next}}}function JR(t,e=0,n,r,o,i){let s=I(),a=H(),l=r?t+1:null;l!==null&&gr(s,a,l,r,o,i,null,n);let c=On(a,B+t,16,null,n||null);c.projection===null&&(c.projection=e),bl();let d=!s[vn]||Ef();s[be][ve].projection[c.projection]===null&&l!==null?xb(s,a,l):d&&!Gl(c)&&FI(a,s,c)}function xb(t,e,n){let r=B+n,o=e.data[r],i=t[r],s=_n(i,o.tView.ssrId),a=kn(t,o,void 0,{dehydratedView:s});Rn(i,a,0,Ut(o,s))}function Ab(t,e,n){return Fh(t,"",e,"",n),Ab}function Fh(t,e,n,r,o){let i=I(),s=rc(i,e,n,r);if(s!==de){let a=H(),l=Gt();Sr(a,l,i,t,s,i[$],o,!1)}return Fh}function kb(t,e,n,r,o,i,s){let a=I(),l=Eh(a,e,n,r,o,i);if(l!==de){let c=H(),u=Gt();Sr(c,u,a,t,l,a[$],s,!1)}return kb}function XR(t,e,n,r){Xp(t,e,n,r)}function eO(t,e,n){Jp(t,e,n)}function tO(t){let e=I(),n=H(),r=Tl();bi(r+1);let o=ec(n,r);if(t.dirty&&zy(e)===((o.metadata.flags&2)===2)){if(o.matches===null)t.reset([]);else{let i=th(e,r);t.reset(i,Wf),t.notifyOnChanges()}return!0}return!1}function nO(){return Xl(I(),Tl())}function rO(t,e,n,r,o){ih(e,Xp(t,n,r,o))}function oO(t,e,n,r){ih(t,Jp(e,n,r))}function iO(t=1){bi(Tl()+t)}function Lh(t,e,n,r){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=r}function sO(t){let e=tv();return Sn(e,B+t)}function aO(t,e=""){let n=I(),r=H(),o=t+B,i=r.firstCreatePass?On(r,o,1,e,null):r.data[o],s=Rb(r,n,i,e,t);n[o]=s,Di()&&Pi(r,n,s,i),mt(i,!1)}var Rb=(t,e,n,r,o)=>(Ti(!0),oI(e[$],r));function Ob(t){return Vh("",t,""),Ob}function Vh(t,e,n){let r=I(),o=rc(r,t,e,n);return o!==de&&jh(r,it(),o),Vh}function Pb(t,e,n,r,o){let i=I(),s=Eh(i,t,e,n,r,o);return s!==de&&jh(i,it(),s),Pb}function jh(t,e,n){let r=gf(e,t);iI(t[$],r,n)}function Fb(t,e,n){Qf(e)&&(e=e());let r=I(),o=yt();if(oe(r,o,e)){let i=H(),s=Gt();Sr(i,s,r,t,e,r[$],n,!1)}return Fb}function lO(t,e){let n=Qf(t);return n&&t.set(e),n}function Lb(t,e){let n=I(),r=H(),o=ie();return Ph(r,n,n[$],o,t,e),Lb}var Vb={};function jb(t){let e=H(),n=I(),r=t+B,o=On(e,r,128,null,null);return mt(o,!1),Lh(e,n,r,Vb),jb}function Hb(t,e,n){let r=H();if(r.firstCreatePass){let o=Ue(t);Xa(n,r.data,r.blueprint,o,!0),Xa(e,r.data,r.blueprint,o,!1)}}function Xa(t,e,n,r,o){if(t=ee(t),Array.isArray(t))for(let i=0;i<t.length;i++)Xa(t[i],e,n,r,o);else{let i=H(),s=I(),a=ie(),l=yn(t)?t:ee(t.provide),c=rf(t),u=a.providerIndexes&1048575,d=a.directiveStart,p=a.providerIndexes>>20;if(yn(t)||!t.multi){let f=new Bt(c,o,Hi),h=Xs(l,e,o?u:u+p,d);h===-1?(fa(Ko(a,s),i,l),Js(i,t,e.length),e.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[h]=f,s[h]=f)}else{let f=Xs(l,e,u+p,d),h=Xs(l,e,u,u+p),g=f>=0&&n[f],E=h>=0&&n[h];if(o&&!E||!o&&!g){fa(Ko(a,s),i,l);let y=Ub(o?$b:Bb,n.length,o,r,c);!o&&E&&(n[h].providerFactory=y),Js(i,t,e.length,0),e.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(y),s.push(y)}else{let y=Hh(n[o?h:f],c,!o&&r);Js(i,t,f>-1?f:h,y)}!o&&r&&E&&n[h].componentProviders++}}}function Js(t,e,n,r){let o=yn(e),i=Ry(e);if(o||i){let l=(i?ee(e.useClass):e).prototype.ngOnDestroy;if(l){let c=t.destroyHooks||(t.destroyHooks=[]);if(!o&&e.multi){let u=c.indexOf(n);u===-1?c.push(n,[r,l]):c[u+1].push(r,l)}else c.push(n,l)}}}function Hh(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function Xs(t,e,n,r){for(let o=n;o<r;o++)if(e[o]===t)return o;return-1}function Bb(t,e,n,r){return el(this.multi,[])}function $b(t,e,n,r){let o=this.multi,i;if(this.providerFactory){let s=this.providerFactory.componentProviders,a=ar(n,n[w],this.providerFactory.index,r);i=a.slice(0,s),el(o,i);for(let l=s;l<a.length;l++)i.push(a[l])}else i=[],el(o,i);return i}function el(t,e){for(let n=0;n<t.length;n++){let r=t[n];e.push(r())}return e}function Ub(t,e,n,r,o){let i=new Bt(t,n,Hi);return i.multi=[],i.index=e,i.componentProviders=0,Hh(i,o,r&&!n),i}function cO(t,e=[]){return n=>{n.providersResolver=(r,o)=>Hb(r,o?o(t):t,e)}}function uO(t,e,n){let r=Ne()+t,o=I();return o[r]===de?Qt(o,r,n?e.call(n):e()):fh(o,r)}function dO(t,e,n,r){return Bh(I(),Ne(),t,e,n,r)}function fO(t,e,n,r,o){return $h(I(),Ne(),t,e,n,r,o)}function pO(t,e,n,r,o,i){return Uh(I(),Ne(),t,e,n,r,o,i)}function hO(t,e,n,r,o,i,s){return qh(I(),Ne(),t,e,n,r,o,i,s)}function gO(t,e,n,r,o,i,s,a){let l=Ne()+t,c=I(),u=ph(c,l,n,r,o,i);return oe(c,l+4,s)||u?Qt(c,l+5,a?e.call(a,n,r,o,i,s):e(n,r,o,i,s)):fh(c,l+5)}function mO(t,e,n,r){return zh(I(),Ne(),t,e,n,r)}function Cr(t,e){let n=t[e];return n===de?void 0:n}function Bh(t,e,n,r,o,i){let s=e+n;return oe(t,s,o)?Qt(t,s+1,i?r.call(i,o):r(o)):Cr(t,s+1)}function $h(t,e,n,r,o,i,s){let a=e+n;return hr(t,a,o,i)?Qt(t,a+2,s?r.call(s,o,i):r(o,i)):Cr(t,a+2)}function Uh(t,e,n,r,o,i,s,a){let l=e+n;return fw(t,l,o,i,s)?Qt(t,l+3,a?r.call(a,o,i,s):r(o,i,s)):Cr(t,l+3)}function qh(t,e,n,r,o,i,s,a,l){let c=e+n;return ph(t,c,o,i,s,a)?Qt(t,c+4,l?r.call(l,o,i,s,a):r(o,i,s,a)):Cr(t,c+4)}function zh(t,e,n,r,o,i){let s=e+n,a=!1;for(let l=0;l<o.length;l++)oe(t,s++,o[l])&&(a=!0);return a?Qt(t,s,r.apply(i,o)):Cr(t,s)}function yO(t,e){let n=H(),r,o=t+B;n.firstCreatePass?(r=qb(e,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=Pt(r.type,!0)),s,a=ge(Hi);try{let l=Qo(!1),c=i();return Qo(l),Lh(n,I(),o,c),c}finally{ge(a)}}function qb(t,e){if(e)for(let n=e.length-1;n>=0;n--){let r=e[n];if(t===r.name)return r}}function vO(t,e,n){let r=t+B,o=I(),i=Sn(o,r);return Nr(o,r)?Bh(o,Ne(),e,i.transform,n,i):i.transform(n)}function EO(t,e,n,r){let o=t+B,i=I(),s=Sn(i,o);return Nr(i,o)?$h(i,Ne(),e,s.transform,n,r,s):s.transform(n,r)}function IO(t,e,n,r,o){let i=t+B,s=I(),a=Sn(s,i);return Nr(s,i)?Uh(s,Ne(),e,a.transform,n,r,o,a):a.transform(n,r,o)}function _O(t,e,n,r,o,i){let s=t+B,a=I(),l=Sn(a,s);return Nr(a,s)?qh(a,Ne(),e,l.transform,n,r,o,i,l):l.transform(n,r,o,i)}function wO(t,e,n){let r=t+B,o=I(),i=Sn(o,r);return Nr(o,r)?zh(o,Ne(),e,i.transform,n,i):i.transform.apply(i,n)}function Nr(t,e){return t[w].data[e].pure}function bO(t,e){return Vi(t,e)}var No=null;function zb(t){No!==null&&(t.defaultEncapsulation!==No.defaultEncapsulation||t.preserveWhitespaces!==No.preserveWhitespaces)||(No=t)}var tl=class{full;major;minor;patch;constructor(e){this.full=e;let n=e.split(".");this.major=n[0],this.minor=n[1],this.patch=n.slice(2).join(".")}},DO=new tl("19.2.9"),nl=class{ngModuleFactory;componentFactories;constructor(e,n){this.ngModuleFactory=e,this.componentFactories=n}},TO=(()=>{class t{compileModuleSync(n){return new li(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),o=Jd(n),i=yp(o.declarations).reduce((s,a)=>{let l=Ye(a);return l&&s.push(new qt(l)),s},[]);return new nl(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static \u0275fac=function(r){return new(r||t)};static \u0275prov=q({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Wb=new O("");function Gb(t,e,n){let r=new li(n);return Promise.resolve(r)}function Nd(t){for(let e=t.length-1;e>=0;e--)if(t[e]!==void 0)return t[e]}var Qb=(()=>{class t{zone=A(ue);changeDetectionScheduler=A($t);applicationRef=A(wn);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||t)};static \u0275prov=q({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Kb({ngZoneFactory:t,ignoreChangesOutsideZone:e,scheduleInRootZone:n}){return t??=()=>new ue(pe(Q({},Wh()),{scheduleInRootZone:n})),[{provide:ue,useFactory:t},{provide:Ho,multi:!0,useFactory:()=>{let r=A(Qb,{optional:!0});return()=>r.initialize()}},{provide:Ho,multi:!0,useFactory:()=>{let r=A(Zb);return()=>{r.initialize()}}},e===!0?{provide:$f,useValue:!0}:[],{provide:Uf,useValue:n??Hf}]}function Wh(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var Zb=(()=>{class t{subscription=new z;initialized=!1;zone=A(ue);pendingTasks=A(wr);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(()=>{ue.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ue.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||t)};static \u0275prov=q({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Yb=(()=>{class t{appRef=A(wn);taskService=A(wr);ngZone=A(ue);zonelessEnabled=A(Bf);tracing=A(Si,{optional:!0});disableScheduling=A($f,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new z;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Yo):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(A(Uf,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Jo||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{this.appRef.dirtyFlags|=16,r=!0;break}case 13:{this.appRef.dirtyFlags|=2,r=!0;break}case 11:{r=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let o=this.useMicrotaskScheduler?Bu:qf;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Yo+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Bu(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||t)};static \u0275prov=q({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Jb(){return typeof $localize<"u"&&$localize.locale||pi}var Gh=new O("",{providedIn:"root",factory:()=>A(Gh,k.Optional|k.SkipSelf)||Jb()}),MO=new O("",{providedIn:"root",factory:()=>wb});var hi=new O(""),Xb=new O("");function Jn(t){return!t.moduleRef}function eD(t){let e=Jn(t)?t.r3Injector:t.moduleRef.injector,n=e.get(ue);return n.run(()=>{Jn(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let r=e.get(gt,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),Jn(t)){let i=()=>e.destroy(),s=t.platformInjector.get(hi);s.add(i),e.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>t.moduleRef.destroy(),s=t.platformInjector.get(hi);s.add(i),t.moduleRef.onDestroy(()=>{Po(t.allPlatformModules,t.moduleRef),o.unsubscribe(),s.delete(i)})}return nD(r,n,()=>{let i=e.get(yh);return i.runInitializers(),i.donePromise.then(()=>{let s=e.get(Gh,pi);if(Db(s||pi),!e.get(Xb,!0))return Jn(t)?e.get(wn):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(Jn(t)){let l=e.get(wn);return t.rootComponent!==void 0&&l.bootstrap(t.rootComponent),l}else return tD(t.moduleRef,t.allPlatformModules),t.moduleRef})})})}function tD(t,e){let n=t.injector.get(wn);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(t.instance.ngDoBootstrap)t.instance.ngDoBootstrap(n);else throw new m(-403,!1);e.push(t)}function nD(t,e,n){try{let r=n();return gh(r)?r.catch(o=>{throw e.runOutsideAngular(()=>t.handleError(o)),o}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}var Qh=(()=>{class t{_injector;_modules=[];_destroyListeners=[];_destroyed=!1;constructor(n){this._injector=n}bootstrapModuleFactory(n,r){let o=r?.scheduleInRootZone,i=()=>Ov(r?.ngZone,pe(Q({},Wh({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing})),{scheduleInRootZone:o})),s=r?.ignoreChangesOutsideZone,a=[Kb({ngZoneFactory:i,ignoreChangesOutsideZone:s}),{provide:$t,useExisting:Yb}],l=K_(n.moduleType,this.injector,a);return eD({moduleRef:l,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(n,r=[]){let o=vh({},r);return Gb(this.injector,o,n).then(i=>this.bootstrapModuleFactory(i,o))}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new m(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());let n=this._injector.get(hi,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static \u0275fac=function(r){return new(r||t)(we(tt))};static \u0275prov=q({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})(),rr=null,Kh=new O("");function rD(t){if(rr&&!rr.get(Kh,!1))throw new m(400,!1);xw(),rr=t;let e=t.get(Qh);return aD(t),e}function oD(t,e,n=[]){let r=`Platform: ${e}`,o=new O(r);return(i=[])=>{let s=Zh();if(!s||s.injector.get(Kh,!1)){let a=[...n,...i,{provide:o,useValue:!0}];t?t(a):rD(iD(a,r))}return sD(o)}}function iD(t=[],e){return tt.create({name:e,providers:[{provide:nf,useValue:"platform"},{provide:hi,useValue:new Set([()=>rr=null])},...t]})}function sD(t){let e=Zh();if(!e)throw new m(401,!1);return e}function Zh(){return rr?.get(Qh)??null}function aD(t){let e=t.get(Wv,null);of(t,()=>{e?.forEach(n=>n())})}var SO=(()=>{class t{static __NG_ELEMENT_ID__=lD}return t})();function lD(t){return cD(ie(),I(),(t&16)===16)}function cD(t,e,n){if(Mn(t)&&!n){let r=ze(t.index,e);return new dr(r,r)}else if(t.type&175){let r=e[be];return new dr(r,e)}return null}var rl=class{constructor(){}supports(e){return dh(e)}create(e){return new ol(e)}},uD=(t,e)=>e,ol=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(e){this._trackByFn=e||uD}forEachItem(e){let n;for(n=this._itHead;n!==null;n=n._next)e(n)}forEachOperation(e){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex<xd(r,o,i)?n:r,a=xd(s,o,i),l=s.currentIndex;if(s===r)o--,r=r._nextRemoved;else if(n=n._next,s.previousIndex==null)o++;else{i||(i=[]);let c=a-o,u=l-o;if(c!=u){for(let p=0;p<c;p++){let f=p<i.length?i[p]:i[p]=0,h=f+p;u<=h&&h<c&&(i[p]=f+1)}let d=s.previousIndex;i[d]=u-c}}a!==l&&e(s,a,l)}}forEachPreviousItem(e){let n;for(n=this._previousItHead;n!==null;n=n._nextPrevious)e(n)}forEachAddedItem(e){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)e(n)}forEachMovedItem(e){let n;for(n=this._movesHead;n!==null;n=n._nextMoved)e(n)}forEachRemovedItem(e){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)e(n)}forEachIdentityChange(e){let n;for(n=this._identityChangesHead;n!==null;n=n._nextIdentityChange)e(n)}diff(e){if(e==null&&(e=[]),!dh(e))throw new m(900,!1);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let n=this._itHead,r=!1,o,i,s;if(Array.isArray(e)){this.length=e.length;for(let a=0;a<this.length;a++)i=e[a],s=this._trackByFn(a,i),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,i,s,a),r=!0):(r&&(n=this._verifyReinsertion(n,i,s,a)),Object.is(n.item,i)||this._addIdentityChange(n,i)),n=n._next}else o=0,dw(e,a=>{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,n,r,o){let i;return e===null?i=this._itTail:(i=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),e!==null?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._reinsertAfter(e,i,o)):(e=this._linkedRecords===null?null:this._linkedRecords.get(r,o),e!==null?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._moveAfter(e,i,o)):e=this._addAfter(new il(n,r),i,o)),e}_verifyReinsertion(e,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?e=this._reinsertAfter(i,e._prev,o):e.currentIndex!=o&&(e.currentIndex=o,this._addToMoves(e,o)),e}_truncate(e){for(;e!==null;){let n=e._next;this._addToRemovals(this._unlink(e)),e=n}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let o=e._prevRemoved,i=e._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(e,n,r),this._addToMoves(e,r),e}_moveAfter(e,n,r){return this._unlink(e),this._insertAfter(e,n,r),this._addToMoves(e,r),e}_addAfter(e,n,r){return this._insertAfter(e,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,n,r){let o=n===null?this._itHead:n._next;return e._next=o,e._prev=n,o===null?this._itTail=e:o._prev=e,n===null?this._itHead=e:n._next=e,this._linkedRecords===null&&(this._linkedRecords=new gi),this._linkedRecords.put(e),e.currentIndex=r,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let n=e._prev,r=e._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,e}_addToMoves(e,n){return e.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new gi),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,n){return e.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},il=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(e,n){this.item=e,this.trackById=n}},sl=class{_head=null;_tail=null;add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,e))return r;return null}remove(e){let n=e._prevDup,r=e._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},gi=class{map=new Map;put(e){let n=e.trackById,r=this.map.get(n);r||(r=new sl,this.map.set(n,r)),r.add(e)}get(e,n){let r=e,o=this.map.get(r);return o?o.get(e,n):null}remove(e){let n=e.trackById;return this.map.get(n).remove(e)&&this.map.delete(n),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function xd(t,e,n){let r=t.previousIndex;if(r===null)return r;let o=0;return n&&r<n.length&&(o=n[r]),r+e+o}var al=class{constructor(){}supports(e){return e instanceof Map||tc(e)}create(){return new ll}},ll=class{_records=new Map;_mapHead=null;_appendAfter=null;_previousMapHead=null;_changesHead=null;_changesTail=null;_additionsHead=null;_additionsTail=null;_removalsHead=null;_removalsTail=null;get isDirty(){return this._additionsHead!==null||this._changesHead!==null||this._removalsHead!==null}forEachItem(e){let n;for(n=this._mapHead;n!==null;n=n._next)e(n)}forEachPreviousItem(e){let n;for(n=this._previousMapHead;n!==null;n=n._nextPrevious)e(n)}forEachChangedItem(e){let n;for(n=this._changesHead;n!==null;n=n._nextChanged)e(n)}forEachAddedItem(e){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)e(n)}forEachRemovedItem(e){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)e(n)}diff(e){if(!e)e=new Map;else if(!(e instanceof Map||tc(e)))throw new m(900,!1);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(e,(r,o)=>{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{let i=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;r!==null;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,n){if(e){let r=e._prev;return n._next=e,n._prev=r,e._prev=n,r&&(r._next=n),e===this._mapHead&&(this._mapHead=n),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(e,n){if(this._records.has(e)){let o=this._records.get(e);this._maybeAddToChanges(o,n);let i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o}let r=new cl(e);return this._records.set(e,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;e!==null;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;e!=null;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,n){Object.is(n,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=n,this._addToChanges(e))}_addToAdditions(e){this._additionsHead===null?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){this._changesHead===null?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,n){e instanceof Map?e.forEach(n):Object.keys(e).forEach(r=>n(e[r],r))}},cl=class{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(e){this.key=e}};function Ad(){return new dD([new rl])}var dD=(()=>{class t{factories;static \u0275prov=q({token:t,providedIn:"root",factory:Ad});constructor(n){this.factories=n}static create(n,r){if(r!=null){let o=r.factories.slice();n=n.concat(o)}return new t(n)}static extend(n){return{provide:t,useFactory:r=>t.create(n,r||Ad()),deps:[[t,new Qd,new Gd]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new m(901,!1)}}return t})();function kd(){return new fD([new al])}var fD=(()=>{class t{static \u0275prov=q({token:t,providedIn:"root",factory:kd});factories;constructor(n){this.factories=n}static create(n,r){if(r){let o=r.factories.slice();n=n.concat(o)}return new t(n)}static extend(n){return{provide:t,useFactory:r=>t.create(n,r||kd()),deps:[[t,new Qd,new Gd]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r)return r;throw new m(901,!1)}}return t})();var CO=oD(null,"core",[]),NO=(()=>{class t{constructor(n){}static \u0275fac=function(r){return new(r||t)(we(wn))};static \u0275mod=X_({type:t});static \u0275inj=ay({})}return t})();function xO(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function AO(t,e=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):e}function kO(t){return _s(t)}function RO(t,e){return Wr(t,e?.equal)}var ul=class{[ae];constructor(e){this[ae]=e}destroy(){this[ae].destroy()}};function pD(t,e){!e?.injector&&af(pD);let n=e?.injector??A(tt),r=e?.manualCleanup!==!0?n.get(_r):null,o,i=n.get(Rl,null,{optional:!0}),s=n.get($t);return i!==null&&!e?.forceRoot?(o=mD(i.view,s,t),r instanceof Zo&&r._lView===i.view&&(r=null)):o=yD(t,n.get(hh),s),o.injector=n,r!==null&&(o.onDestroyFn=r.onDestroy(()=>o.destroy())),new ul(o)}var Yh=pe(Q({},Jt),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,cleanupFns:void 0,zone:null,kind:"effect",onDestroyFn:lr,run(){if(this.dirty=!1,this.hasRun&&!Ur(this))return;this.hasRun=!0;let t=r=>(this.cleanupFns??=[]).push(r),e=Bn(this),n=zo(!1);try{this.maybeCleanup(),this.fn(t)}finally{zo(n),$r(this,e)}},maybeCleanup(){if(this.cleanupFns?.length)try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[]}}}),hD=pe(Q({},Yh),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){$n(this),this.onDestroyFn(),this.maybeCleanup(),this.scheduler.remove(this)}}),gD=pe(Q({},Yh),{consumerMarkedDirty(){this.view[T]|=8192,Cn(this.view),this.notifier.notify(13)},destroy(){$n(this),this.onDestroyFn(),this.maybeCleanup(),this.view[Lt]?.delete(this)}});function mD(t,e,n){let r=Object.create(gD);return r.view=t,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=e,r.fn=n,t[Lt]??=new Set,t[Lt].add(r),r.consumerMarkedDirty(r),r}function yD(t,e,n){let r=Object.create(hD);return r.fn=t,r.scheduler=e,r.notifier=n,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.schedule(r),r.notifier.notify(12),r}function OO(t,e){let n=Ye(t),r=e.elementInjector||Ei();return new qt(n).create(r,e.projectableNodes,e.hostElement,e.environmentInjector)}function PO(t){let e=Ye(t);if(!e)return null;let n=new qt(e);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return e.standalone},get isSignal(){return e.signals}}}var D=function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t}(D||{}),Oe="*";function LO(t,e){return{type:D.Trigger,name:t,definitions:e,options:{}}}function VO(t,e=null){return{type:D.Animate,styles:e,timings:t}}function Jh(t,e=null){return{type:D.Sequence,steps:t,options:e}}function ic(t){return{type:D.Style,styles:t,offset:null}}function jO(t,e,n){return{type:D.State,name:t,styles:e,options:n}}function HO(t,e,n=null){return{type:D.Transition,expr:t,animation:e,options:n}}function BO(t,e=null){return{type:D.Reference,animation:t,options:e}}function $O(t=null){return{type:D.AnimateChild,options:t}}function UO(t,e=null){return{type:D.AnimateRef,animation:t,options:e}}function qO(t,e,n=null){return{type:D.Query,selector:t,animation:e,options:n}}var at=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(e=0,n=0){this.totalTime=e+n}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let n=e=="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},Pn=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(e){this.players=e;let n=0,r=0,o=0,i=this.players.length;i==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++n==i&&this._onFinish()}),s.onDestroy(()=>{++r==i&&this._onDestroy()}),s.onStart(()=>{++o==i&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let n=e*this.totalTime;this.players.forEach(r=>{let o=r.totalTime?Math.min(1,n/r.totalTime):1;r.setPosition(o)})}getPosition(){let e=this.players.reduce((n,r)=>n===null||r.totalTime>n.totalTime?r:n,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let n=e=="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},xr="!";function Xh(t){return new m(3e3,!1)}function ED(){return new m(3100,!1)}function ID(){return new m(3101,!1)}function _D(t){return new m(3001,!1)}function wD(t){return new m(3003,!1)}function bD(t){return new m(3004,!1)}function tg(t,e){return new m(3005,!1)}function ng(){return new m(3006,!1)}function rg(){return new m(3007,!1)}function og(t,e){return new m(3008,!1)}function ig(t){return new m(3002,!1)}function sg(t,e,n,r,o){return new m(3010,!1)}function ag(){return new m(3011,!1)}function lg(){return new m(3012,!1)}function cg(){return new m(3200,!1)}function ug(){return new m(3202,!1)}function dg(){return new m(3013,!1)}function fg(t){return new m(3014,!1)}function pg(t){return new m(3015,!1)}function hg(t){return new m(3016,!1)}function gg(t){return new m(3500,!1)}function mg(t){return new m(3501,!1)}function yg(t,e){return new m(3404,!1)}function DD(t){return new m(3502,!1)}function vg(t){return new m(3503,!1)}function Eg(){return new m(3300,!1)}function Ig(t){return new m(3504,!1)}function _g(t){return new m(3301,!1)}function wg(t,e){return new m(3302,!1)}function bg(t){return new m(3303,!1)}function Dg(t,e){return new m(3400,!1)}function Tg(t){return new m(3401,!1)}function Mg(t){return new m(3402,!1)}function Sg(t,e){return new m(3505,!1)}var TD=new Set(["-moz-outline-radius","-moz-outline-radius-bottomleft","-moz-outline-radius-bottomright","-moz-outline-radius-topleft","-moz-outline-radius-topright","-ms-grid-columns","-ms-grid-rows","-webkit-line-clamp","-webkit-text-fill-color","-webkit-text-stroke","-webkit-text-stroke-color","accent-color","all","backdrop-filter","background","background-color","background-position","background-size","block-size","border","border-block-end","border-block-end-color","border-block-end-width","border-block-start","border-block-start-color","border-block-start-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-width","border-color","border-end-end-radius","border-end-start-radius","border-image-outset","border-image-slice","border-image-width","border-inline-end","border-inline-end-color","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-width","border-left","border-left-color","border-left-width","border-radius","border-right","border-right-color","border-right-width","border-start-end-radius","border-start-start-radius","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-width","border-width","bottom","box-shadow","caret-color","clip","clip-path","color","column-count","column-gap","column-rule","column-rule-color","column-rule-width","column-width","columns","filter","flex","flex-basis","flex-grow","flex-shrink","font","font-size","font-size-adjust","font-stretch","font-variation-settings","font-weight","gap","grid-column-gap","grid-gap","grid-row-gap","grid-template-columns","grid-template-rows","height","inline-size","input-security","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","left","letter-spacing","line-clamp","line-height","margin","margin-block-end","margin-block-start","margin-bottom","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","mask","mask-border","mask-position","mask-size","max-block-size","max-height","max-inline-size","max-lines","max-width","min-block-size","min-height","min-inline-size","min-width","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","outline","outline-color","outline-offset","outline-width","padding","padding-block-end","padding-block-start","padding-bottom","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","perspective","perspective-origin","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-coordinate","scroll-snap-destination","scrollbar-color","shape-image-threshold","shape-margin","shape-outside","tab-size","text-decoration","text-decoration-color","text-decoration-thickness","text-emphasis","text-emphasis-color","text-indent","text-shadow","text-underline-offset","top","transform","transform-origin","translate","vertical-align","visibility","width","word-spacing","z-index","zoom"]);function lt(t){switch(t.length){case 0:return new at;case 1:return t[0];default:return new Pn(t)}}function cc(t,e,n=new Map,r=new Map){let o=[],i=[],s=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),u=c==s,d=u&&a||new Map;l.forEach((p,f)=>{let h=f,g=p;if(f!=="offset")switch(h=t.normalizePropertyName(h,o),g){case xr:g=n.get(f);break;case Oe:g=r.get(f);break;default:g=t.normalizeStyleValue(f,h,g,o);break}d.set(h,g)}),u||i.push(d),a=d,s=c}),o.length)throw DD(o);return i}function Bi(t,e,n,r){switch(e){case"start":t.onStart(()=>r(n&&sc(n,"start",t)));break;case"done":t.onDone(()=>r(n&&sc(n,"done",t)));break;case"destroy":t.onDestroy(()=>r(n&&sc(n,"destroy",t)));break}}function sc(t,e,n){let r=n.totalTime,o=!!n.disabled,i=$i(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,r??t.totalTime,o),s=t._data;return s!=null&&(i._data=s),i}function $i(t,e,n,r,o="",i=0,s){return{element:t,triggerName:e,fromState:n,toState:r,phaseName:o,totalTime:i,disabled:!!s}}function Ee(t,e,n){let r=t.get(e);return r||t.set(e,r=n),r}function uc(t){let e=t.indexOf(":"),n=t.substring(1,e),r=t.slice(e+1);return[n,r]}var MD=typeof document>"u"?null:document.documentElement;function Ui(t){let e=t.parentNode||t.host||null;return e===MD?null:e}function SD(t){return t.substring(1,6)=="ebkit"}var Kt=null,eg=!1;function Cg(t){Kt||(Kt=ND()||{},eg=Kt.style?"WebkitAppearance"in Kt.style:!1);let e=!0;return Kt.style&&!SD(t)&&(e=t in Kt.style,!e&&eg&&(e="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Kt.style)),e}function CD(t){return TD.has(t)}function ND(){return typeof document<"u"?document.body:null}function dc(t,e){for(;e;){if(e===t)return!0;e=Ui(e)}return!1}function fc(t,e,n){if(n)return Array.from(t.querySelectorAll(e));let r=t.querySelector(e);return r?[r]:[]}var xD=1e3,pc="{{",AD="}}",qi="ng-enter",Ar="ng-leave",kr="ng-trigger",Rr=".ng-trigger",hc="ng-animating",zi=".ng-animating";function Ge(t){if(typeof t=="number")return t;let e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:ac(parseFloat(e[1]),e[2])}function ac(t,e){switch(e){case"s":return t*xD;default:return t}}function Or(t,e,n){return t.hasOwnProperty("duration")?t:kD(t,e,n)}function kD(t,e,n){let r=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,o,i=0,s="";if(typeof t=="string"){let a=t.match(r);if(a===null)return e.push(Xh(t)),{duration:0,delay:0,easing:""};o=ac(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(i=ac(parseFloat(l),a[4]));let c=a[5];c&&(s=c)}else o=t;if(!n){let a=!1,l=e.length;o<0&&(e.push(ED()),a=!0),i<0&&(e.push(ID()),a=!0),a&&e.splice(l,0,Xh(t))}return{duration:o,delay:i,easing:s}}function Ng(t){return t.length?t[0]instanceof Map?t:t.map(e=>new Map(Object.entries(e))):[]}function gc(t){return Array.isArray(t)?new Map(...t):new Map(t)}function Pe(t,e,n){e.forEach((r,o)=>{let i=Wi(o);n&&!n.has(o)&&n.set(o,t.style[i]),t.style[i]=r})}function vt(t,e){e.forEach((n,r)=>{let o=Wi(r);t.style[o]=""})}function Fn(t){return Array.isArray(t)?t.length==1?t[0]:Jh(t):t}function xg(t,e,n){let r=e.params||{},o=mc(t);o.length&&o.forEach(i=>{r.hasOwnProperty(i)||n.push(_D(i))})}var lc=new RegExp(`${pc}\\s*(.+?)\\s*${AD}`,"g");function mc(t){let e=[];if(typeof t=="string"){let n;for(;n=lc.exec(t);)e.push(n[1]);lc.lastIndex=0}return e}function Ln(t,e,n){let r=`${t}`,o=r.replace(lc,(i,s)=>{let a=e[s];return a==null&&(n.push(wD(s)),a=""),a.toString()});return o==r?t:o}var RD=/-+([a-z0-9])/g;function Wi(t){return t.replace(RD,(...e)=>e[1].toUpperCase())}function OD(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Ag(t,e){return t===0||e===0}function kg(t,e,n){if(n.size&&e.length){let r=e[0],o=[];if(n.forEach((i,s)=>{r.has(s)||o.push(s),r.set(s,i)}),o.length)for(let i=1;i<e.length;i++){let s=e[i];o.forEach(a=>s.set(a,Gi(t,a)))}}return e}function Ie(t,e,n){switch(e.type){case D.Trigger:return t.visitTrigger(e,n);case D.State:return t.visitState(e,n);case D.Transition:return t.visitTransition(e,n);case D.Sequence:return t.visitSequence(e,n);case D.Group:return t.visitGroup(e,n);case D.Animate:return t.visitAnimate(e,n);case D.Keyframes:return t.visitKeyframes(e,n);case D.Style:return t.visitStyle(e,n);case D.Reference:return t.visitReference(e,n);case D.AnimateChild:return t.visitAnimateChild(e,n);case D.AnimateRef:return t.visitAnimateRef(e,n);case D.Query:return t.visitQuery(e,n);case D.Stagger:return t.visitStagger(e,n);default:throw bD(e.type)}}function Gi(t,e){return window.getComputedStyle(t)[e]}var Wg=(()=>{class t{validateStyleProperty(n){return Cg(n)}containsElement(n,r){return dc(n,r)}getParentElement(n){return Ui(n)}query(n,r,o){return fc(n,r,o)}computeStyle(n,r,o){return o||""}animate(n,r,o,i,s,a=[],l){return new at(o,i)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=q({token:t,factory:t.\u0275fac})}return t})(),Rg=class{static NOOP=new Wg},wc=class{},bc=class{normalizePropertyName(e,n){return e}normalizeStyleValue(e,n,r,o){return r}},PD=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Dc=class extends wc{normalizePropertyName(e,n){return Wi(e)}normalizeStyleValue(e,n,r,o){let i="",s=r.toString().trim();if(PD.has(n)&&r!==0&&r!=="0")if(typeof r=="number")i="px";else{let a=r.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&o.push(tg(e,r))}return s+i}};var Ji="*";function FD(t,e){let n=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(r=>LD(r,n,e)):n.push(t),n}function LD(t,e,n){if(t[0]==":"){let l=VD(t,n);if(typeof l=="function"){e.push(l);return}t=l}let r=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(r==null||r.length<4)return n.push(pg(t)),e;let o=r[1],i=r[2],s=r[3];e.push(Og(o,s));let a=o==Ji&&s==Ji;i[0]=="<"&&!a&&e.push(Og(s,o))}function VD(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(n,r)=>parseFloat(r)>parseFloat(n);case":decrement":return(n,r)=>parseFloat(r)<parseFloat(n);default:return e.push(hg(t)),"* => *"}}var Qi=new Set(["true","1"]),Ki=new Set(["false","0"]);function Og(t,e){let n=Qi.has(t)||Ki.has(t),r=Qi.has(e)||Ki.has(e);return(o,i)=>{let s=t==Ji||t==o,a=e==Ji||e==i;return!s&&n&&typeof o=="boolean"&&(s=o?Qi.has(t):Ki.has(t)),!a&&r&&typeof i=="boolean"&&(a=i?Qi.has(e):Ki.has(e)),s&&a}}var Gg=":self",jD=new RegExp(`s*${Gg}s*,?`,"g");function Lc(t,e,n,r){return new Tc(t).build(e,n,r)}var Pg="",Tc=class{_driver;constructor(e){this._driver=e}build(e,n,r){let o=new Mc(n);return this._resetContextStyleTimingState(o),Ie(this,Fn(e),o)}_resetContextStyleTimingState(e){e.currentQuerySelector=Pg,e.collectedStyles=new Map,e.collectedStyles.set(Pg,new Map),e.currentTime=0}visitTrigger(e,n){let r=n.queryCount=0,o=n.depCount=0,i=[],s=[];return e.name.charAt(0)=="@"&&n.errors.push(ng()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(n),a.type==D.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,i.push(this.visitState(l,n))}),l.name=c}else if(a.type==D.Transition){let l=this.visitTransition(a,n);r+=l.queryCount,o+=l.depCount,s.push(l)}else n.errors.push(rg())}),{type:D.Trigger,name:e.name,states:i,transitions:s,queryCount:r,depCount:o,options:null}}visitState(e,n){let r=this.visitStyle(e.styles,n),o=e.options&&e.options.params||null;if(r.containsDynamicStyles){let i=new Set,s=o||{};r.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{mc(l).forEach(c=>{s.hasOwnProperty(c)||i.add(c)})})}),i.size&&n.errors.push(og(e.name,[...i.values()]))}return{type:D.State,name:e.name,style:r,options:o?{params:o}:null}}visitTransition(e,n){n.queryCount=0,n.depCount=0;let r=Ie(this,Fn(e.animation),n),o=FD(e.expr,n.errors);return{type:D.Transition,matchers:o,animation:r,queryCount:n.queryCount,depCount:n.depCount,options:Zt(e.options)}}visitSequence(e,n){return{type:D.Sequence,steps:e.steps.map(r=>Ie(this,r,n)),options:Zt(e.options)}}visitGroup(e,n){let r=n.currentTime,o=0,i=e.steps.map(s=>{n.currentTime=r;let a=Ie(this,s,n);return o=Math.max(o,n.currentTime),a});return n.currentTime=o,{type:D.Group,steps:i,options:Zt(e.options)}}visitAnimate(e,n){let r=UD(e.timings,n.errors);n.currentAnimateTimings=r;let o,i=e.styles?e.styles:ic({});if(i.type==D.Keyframes)o=this.visitKeyframes(i,n);else{let s=e.styles,a=!1;if(!s){a=!0;let c={};r.easing&&(c.easing=r.easing),s=ic(c)}n.currentTime+=r.duration+r.delay;let l=this.visitStyle(s,n);l.isEmptyStep=a,o=l}return n.currentAnimateTimings=null,{type:D.Animate,timings:r,style:o,options:null}}visitStyle(e,n){let r=this._makeStyleAst(e,n);return this._validateStyleAst(r,n),r}_makeStyleAst(e,n){let r=[],o=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of o)typeof a=="string"?a===Oe?r.push(a):n.errors.push(ig(a)):r.push(new Map(Object.entries(a)));let i=!1,s=null;return r.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!i)){for(let l of a.values())if(l.toString().indexOf(pc)>=0){i=!0;break}}}),{type:D.Style,styles:r,easing:s,offset:e.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(e,n){let r=n.currentAnimateTimings,o=n.currentTime,i=n.currentTime;r&&i>0&&(i-=r.duration+r.delay),e.styles.forEach(s=>{typeof s!="string"&&s.forEach((a,l)=>{let c=n.collectedStyles.get(n.currentQuerySelector),u=c.get(l),d=!0;u&&(i!=o&&i>=u.startTime&&o<=u.endTime&&(n.errors.push(sg(l,u.startTime,u.endTime,i,o)),d=!1),i=u.startTime),d&&c.set(l,{startTime:i,endTime:o}),n.options&&xg(a,n.options,n.errors)})})}visitKeyframes(e,n){let r={type:D.Keyframes,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push(ag()),r;let o=1,i=0,s=[],a=!1,l=!1,c=0,u=e.steps.map(y=>{let R=this._makeStyleAst(y,n),W=R.offset!=null?R.offset:$D(R.styles),G=0;return W!=null&&(i++,G=R.offset=W),l=l||G<0||G>1,a=a||G<c,c=G,s.push(G),R});l&&n.errors.push(lg()),a&&n.errors.push(cg());let d=e.steps.length,p=0;i>0&&i<d?n.errors.push(ug()):i==0&&(p=o/(d-1));let f=d-1,h=n.currentTime,g=n.currentAnimateTimings,E=g.duration;return u.forEach((y,R)=>{let W=p>0?R==f?1:p*R:s[R],G=W*E;n.currentTime=h+g.delay+G,g.duration=G,this._validateStyleAst(y,n),y.offset=W,r.styles.push(y)}),r}visitReference(e,n){return{type:D.Reference,animation:Ie(this,Fn(e.animation),n),options:Zt(e.options)}}visitAnimateChild(e,n){return n.depCount++,{type:D.AnimateChild,options:Zt(e.options)}}visitAnimateRef(e,n){return{type:D.AnimateRef,animation:this.visitReference(e.animation,n),options:Zt(e.options)}}visitQuery(e,n){let r=n.currentQuerySelector,o=e.options||{};n.queryCount++,n.currentQuery=e;let[i,s]=HD(e.selector);n.currentQuerySelector=r.length?r+" "+i:i,Ee(n.collectedStyles,n.currentQuerySelector,new Map);let a=Ie(this,Fn(e.animation),n);return n.currentQuery=null,n.currentQuerySelector=r,{type:D.Query,selector:i,limit:o.limit||0,optional:!!o.optional,includeSelf:s,animation:a,originalSelector:e.selector,options:Zt(e.options)}}visitStagger(e,n){n.currentQuery||n.errors.push(dg());let r=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Or(e.timings,n.errors,!0);return{type:D.Stagger,animation:Ie(this,Fn(e.animation),n),timings:r,options:null}}};function HD(t){let e=!!t.split(/\s*,\s*/).find(n=>n==Gg);return e&&(t=t.replace(jD,"")),t=t.replace(/@\*/g,Rr).replace(/@\w+/g,n=>Rr+"-"+n.slice(1)).replace(/:animating/g,zi),[t,e]}function BD(t){return t?Q({},t):null}var Mc=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(e){this.errors=e}};function $D(t){if(typeof t=="string")return null;let e=null;if(Array.isArray(t))t.forEach(n=>{if(n instanceof Map&&n.has("offset")){let r=n;e=parseFloat(r.get("offset")),r.delete("offset")}});else if(t instanceof Map&&t.has("offset")){let n=t;e=parseFloat(n.get("offset")),n.delete("offset")}return e}function UD(t,e){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let i=Or(t,e).duration;return yc(i,0,"")}let n=t;if(n.split(/\s+/).some(i=>i.charAt(0)=="{"&&i.charAt(1)=="{")){let i=yc(0,0,"");return i.dynamic=!0,i.strValue=n,i}let o=Or(n,e);return yc(o.duration,o.delay,o.easing)}function Zt(t){return t?(t=Q({},t),t.params&&(t.params=BD(t.params))):t={},t}function yc(t,e,n){return{duration:t,delay:e,easing:n}}function Vc(t,e,n,r,o,i,s=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:o,delay:i,totalTime:o+i,easing:s,subTimeline:a}}var jn=class{_map=new Map;get(e){return this._map.get(e)||[]}append(e,n){let r=this._map.get(e);r||this._map.set(e,r=[]),r.push(...n)}has(e){return this._map.has(e)}clear(){this._map.clear()}},qD=1,zD=":enter",WD=new RegExp(zD,"g"),GD=":leave",QD=new RegExp(GD,"g");function jc(t,e,n,r,o,i=new Map,s=new Map,a,l,c=[]){return new Sc().buildKeyframes(t,e,n,r,o,i,s,a,l,c)}var Sc=class{buildKeyframes(e,n,r,o,i,s,a,l,c,u=[]){c=c||new jn;let d=new Cc(e,n,c,o,i,u,[]);d.options=l;let p=l.delay?Ge(l.delay):0;d.currentTimeline.delayNextStep(p),d.currentTimeline.setStyles([s],null,d.errors,l),Ie(this,r,d);let f=d.timelines.filter(h=>h.containsAnimation());if(f.length&&a.size){let h;for(let g=f.length-1;g>=0;g--){let E=f[g];if(E.element===n){h=E;break}}h&&!h.allowOnlyTimelineStyles()&&h.setStyles([a],null,d.errors,l)}return f.length?f.map(h=>h.buildKeyframes()):[Vc(n,[],[],[],0,p,"",!1)]}visitTrigger(e,n){}visitState(e,n){}visitTransition(e,n){}visitAnimateChild(e,n){let r=n.subInstructions.get(n.element);if(r){let o=n.createSubContext(e.options),i=n.currentTimeline.currentTime,s=this._visitSubInstructions(r,o,o.options);i!=s&&n.transformIntoNewTimeline(s)}n.previousNode=e}visitAnimateRef(e,n){let r=n.createSubContext(e.options);r.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],n,r),this.visitReference(e.animation,r),n.transformIntoNewTimeline(r.currentTimeline.currentTime),n.previousNode=e}_applyAnimationRefDelays(e,n,r){for(let o of e){let i=o?.delay;if(i){let s=typeof i=="number"?i:Ge(Ln(i,o?.params??{},n.errors));r.delayNextStep(s)}}}_visitSubInstructions(e,n,r){let i=n.currentTimeline.currentTime,s=r.duration!=null?Ge(r.duration):null,a=r.delay!=null?Ge(r.delay):null;return s!==0&&e.forEach(l=>{let c=n.appendInstructionToTimeline(l,s,a);i=Math.max(i,c.duration+c.delay)}),i}visitReference(e,n){n.updateOptions(e.options,!0),Ie(this,e.animation,n),n.previousNode=e}visitSequence(e,n){let r=n.subContextCount,o=n,i=e.options;if(i&&(i.params||i.delay)&&(o=n.createSubContext(i),o.transformIntoNewTimeline(),i.delay!=null)){o.previousNode.type==D.Style&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Xi);let s=Ge(i.delay);o.delayNextStep(s)}e.steps.length&&(e.steps.forEach(s=>Ie(this,s,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>r&&o.transformIntoNewTimeline()),n.previousNode=e}visitGroup(e,n){let r=[],o=n.currentTimeline.currentTime,i=e.options&&e.options.delay?Ge(e.options.delay):0;e.steps.forEach(s=>{let a=n.createSubContext(e.options);i&&a.delayNextStep(i),Ie(this,s,a),o=Math.max(o,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(s=>n.currentTimeline.mergeTimelineCollectedStyles(s)),n.transformIntoNewTimeline(o),n.previousNode=e}_visitTiming(e,n){if(e.dynamic){let r=e.strValue,o=n.params?Ln(r,n.params,n.errors):r;return Or(o,n.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,n){let r=n.currentAnimateTimings=this._visitTiming(e.timings,n),o=n.currentTimeline;r.delay&&(n.incrementTime(r.delay),o.snapshotCurrentStyles());let i=e.style;i.type==D.Keyframes?this.visitKeyframes(i,n):(n.incrementTime(r.duration),this.visitStyle(i,n),o.applyStylesToKeyframe()),n.currentAnimateTimings=null,n.previousNode=e}visitStyle(e,n){let r=n.currentTimeline,o=n.currentAnimateTimings;!o&&r.hasCurrentStyleProperties()&&r.forwardFrame();let i=o&&o.easing||e.easing;e.isEmptyStep?r.applyEmptyStep(i):r.setStyles(e.styles,i,n.errors,n.options),n.previousNode=e}visitKeyframes(e,n){let r=n.currentAnimateTimings,o=n.currentTimeline.duration,i=r.duration,a=n.createSubContext().currentTimeline;a.easing=r.easing,e.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*i),a.setStyles(l.styles,l.easing,n.errors,n.options),a.applyStylesToKeyframe()}),n.currentTimeline.mergeTimelineCollectedStyles(a),n.transformIntoNewTimeline(o+i),n.previousNode=e}visitQuery(e,n){let r=n.currentTimeline.currentTime,o=e.options||{},i=o.delay?Ge(o.delay):0;i&&(n.previousNode.type===D.Style||r==0&&n.currentTimeline.hasCurrentStyleProperties())&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=Xi);let s=r,a=n.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!o.optional,n.errors);n.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{n.currentQueryIndex=u;let d=n.createSubContext(e.options,c);i&&d.delayNextStep(i),c===n.element&&(l=d.currentTimeline),Ie(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe();let p=d.currentTimeline.currentTime;s=Math.max(s,p)}),n.currentQueryIndex=0,n.currentQueryTotal=0,n.transformIntoNewTimeline(s),l&&(n.currentTimeline.mergeTimelineCollectedStyles(l),n.currentTimeline.snapshotCurrentStyles()),n.previousNode=e}visitStagger(e,n){let r=n.parentContext,o=n.currentTimeline,i=e.timings,s=Math.abs(i.duration),a=s*(n.currentQueryTotal-1),l=s*n.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":l=a-l;break;case"full":l=r.currentStaggerTime;break}let u=n.currentTimeline;l&&u.delayNextStep(l);let d=u.currentTime;Ie(this,e.animation,n),n.previousNode=e,r.currentStaggerTime=o.currentTime-d+(o.startTime-r.currentTimeline.startTime)}},Xi={},Cc=class t{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=Xi;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(e,n,r,o,i,s,a,l){this._driver=e,this.element=n,this.subInstructions=r,this._enterClassName=o,this._leaveClassName=i,this.errors=s,this.timelines=a,this.currentTimeline=l||new es(this._driver,n,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,n){if(!e)return;let r=e,o=this.options;r.duration!=null&&(o.duration=Ge(r.duration)),r.delay!=null&&(o.delay=Ge(r.delay));let i=r.params;if(i){let s=o.params;s||(s=this.options.params={}),Object.keys(i).forEach(a=>{(!n||!s.hasOwnProperty(a))&&(s[a]=Ln(i[a],s,this.errors))})}}_copyOptions(){let e={};if(this.options){let n=this.options.params;if(n){let r=e.params={};Object.keys(n).forEach(o=>{r[o]=n[o]})}}return e}createSubContext(e=null,n,r){let o=n||this.element,i=new t(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,r||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(e),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i}transformIntoNewTimeline(e){return this.previousNode=Xi,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,n,r){let o={duration:n??e.duration,delay:this.currentTimeline.currentTime+(r??0)+e.delay,easing:""},i=new Nc(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,o,e.stretchStartingKeyframe);return this.timelines.push(i),o}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,n,r,o,i,s){let a=[];if(o&&a.push(this.element),e.length>0){e=e.replace(WD,"."+this._enterClassName),e=e.replace(QD,"."+this._leaveClassName);let l=r!=1,c=this._driver.query(this.element,e,l);r!==0&&(c=r<0?c.slice(c.length+r,c.length):c.slice(0,r)),a.push(...c)}return!i&&a.length==0&&s.push(fg(n)),a}},es=class t{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(e,n,r,o){this._driver=e,this.element=n,this.startTime=r,this._elementTimelineStylesLookup=o,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let n=this._keyframes.size===1&&this._pendingStyles.size;this.duration||n?(this.forwardTime(this.currentTime+e),n&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,n){return this.applyStylesToKeyframe(),new t(this._driver,e,n||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=qD,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,n){this._localTimelineStyles.set(e,n),this._globalTimelineStyles.set(e,n),this._styleSummary.set(e,{time:this.currentTime,value:n})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[n,r]of this._globalTimelineStyles)this._backFill.set(n,r||Oe),this._currentKeyframe.set(n,Oe);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,n,r,o){n&&this._previousKeyframe.set("easing",n);let i=o&&o.params||{},s=KD(e,this._globalTimelineStyles);for(let[a,l]of s){let c=Ln(l,i,r);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Oe),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,n)=>{this._currentKeyframe.set(n,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,n)=>{this._currentKeyframe.has(n)||this._currentKeyframe.set(n,e)}))}snapshotCurrentStyles(){for(let[e,n]of this._localTimelineStyles)this._pendingStyles.set(e,n),this._updateStyle(e,n)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let n in this._currentKeyframe)e.push(n);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((n,r)=>{let o=this._styleSummary.get(r);(!o||n.time>o.time)&&this._updateStyle(r,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,n=new Set,r=this._keyframes.size===1&&this.duration===0,o=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((u,d)=>{u===xr?e.add(d):u===Oe&&n.add(d)}),r||c.set("offset",l/this.duration),o.push(c)});let i=[...e.values()],s=[...n.values()];if(r){let a=o[0],l=new Map(a);a.set("offset",0),l.set("offset",1),o=[a,l]}return Vc(this.element,o,i,s,this.duration,this.startTime,this.easing,!1)}},Nc=class extends es{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(e,n,r,o,i,s,a=!1){super(e,n,s.delay),this.keyframes=r,this.preStyleProps=o,this.postStyleProps=i,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:n,duration:r,easing:o}=this.timings;if(this._stretchStartingKeyframe&&n){let i=[],s=r+n,a=n/s,l=new Map(e[0]);l.set("offset",0),i.push(l);let c=new Map(e[0]);c.set("offset",Fg(a)),i.push(c);let u=e.length-1;for(let d=1;d<=u;d++){let p=new Map(e[d]),f=p.get("offset"),h=n+f*r;p.set("offset",Fg(h/s)),i.push(p)}r=s,n=0,o="",e=i}return Vc(this.element,e,this.preStyleProps,this.postStyleProps,r,n,o,!0)}};function Fg(t,e=3){let n=Math.pow(10,e-1);return Math.round(t*n)/n}function KD(t,e){let n=new Map,r;return t.forEach(o=>{if(o==="*"){r??=e.keys();for(let i of r)n.set(i,Oe)}else for(let[i,s]of o)n.set(i,s)}),n}function Lg(t,e,n,r,o,i,s,a,l,c,u,d,p){return{type:0,element:t,triggerName:e,isRemovalTransition:o,fromState:n,fromStyles:i,toState:r,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:p}}var vc={},ts=class{_triggerName;ast;_stateStyles;constructor(e,n,r){this._triggerName=e,this.ast=n,this._stateStyles=r}match(e,n,r,o){return ZD(this.ast.matchers,e,n,r,o)}buildStyles(e,n,r){let o=this._stateStyles.get("*");return e!==void 0&&(o=this._stateStyles.get(e?.toString())||o),o?o.buildStyles(n,r):new Map}build(e,n,r,o,i,s,a,l,c,u){let d=[],p=this.ast.options&&this.ast.options.params||vc,f=a&&a.params||vc,h=this.buildStyles(r,f,d),g=l&&l.params||vc,E=this.buildStyles(o,g,d),y=new Set,R=new Map,W=new Map,G=o==="void",De={params:Qg(g,p),delay:this.ast.options?.delay},Le=u?[]:jc(e,n,this.ast.animation,i,s,h,E,De,c,d),se=0;return Le.forEach(fe=>{se=Math.max(fe.duration+fe.delay,se)}),d.length?Lg(n,this._triggerName,r,o,G,h,E,[],[],R,W,se,d):(Le.forEach(fe=>{let Et=fe.element,Yt=Ee(R,Et,new Set);fe.preStyleProps.forEach(It=>Yt.add(It));let Hc=Ee(W,Et,new Set);fe.postStyleProps.forEach(It=>Hc.add(It)),Et!==n&&y.add(Et)}),Lg(n,this._triggerName,r,o,G,h,E,Le,[...y.values()],R,W,se))}};function ZD(t,e,n,r,o){return t.some(i=>i(e,n,r,o))}function Qg(t,e){let n=Q({},e);return Object.entries(t).forEach(([r,o])=>{o!=null&&(n[r]=o)}),n}var xc=class{styles;defaultParams;normalizer;constructor(e,n,r){this.styles=e,this.defaultParams=n,this.normalizer=r}buildStyles(e,n){let r=new Map,o=Qg(e,this.defaultParams);return this.styles.styles.forEach(i=>{typeof i!="string"&&i.forEach((s,a)=>{s&&(s=Ln(s,o,n));let l=this.normalizer.normalizePropertyName(a,n);s=this.normalizer.normalizeStyleValue(a,l,s,n),r.set(a,s)})}),r}};function YD(t,e,n){return new Ac(t,e,n)}var Ac=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(e,n,r){this.name=e,this.ast=n,this._normalizer=r,n.states.forEach(o=>{let i=o.options&&o.options.params||{};this.states.set(o.name,new xc(o.style,i,r))}),Vg(this.states,"true","1"),Vg(this.states,"false","0"),n.transitions.forEach(o=>{this.transitionFactories.push(new ts(e,o,this.states))}),this.fallbackTransition=JD(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,n,r,o){return this.transitionFactories.find(s=>s.match(e,n,r,o))||null}matchStyles(e,n,r){return this.fallbackTransition.buildStyles(e,n,r)}};function JD(t,e,n){let r=[(s,a)=>!0],o={type:D.Sequence,steps:[],options:null},i={type:D.Transition,animation:o,matchers:r,options:null,queryCount:0,depCount:0};return new ts(t,i,e)}function Vg(t,e,n){t.has(e)?t.has(n)||t.set(n,t.get(e)):t.has(n)&&t.set(e,t.get(n))}var XD=new jn,kc=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(e,n,r){this.bodyNode=e,this._driver=n,this._normalizer=r}register(e,n){let r=[],o=[],i=Lc(this._driver,n,r,o);if(r.length)throw vg(r);this._animations.set(e,i)}_buildPlayer(e,n,r){let o=e.element,i=cc(this._normalizer,e.keyframes,n,r);return this._driver.animate(o,i,e.duration,e.delay,e.easing,[],!0)}create(e,n,r={}){let o=[],i=this._animations.get(e),s,a=new Map;if(i?(s=jc(this._driver,n,i,qi,Ar,new Map,new Map,r,XD,o),s.forEach(u=>{let d=Ee(a,u.element,new Map);u.postStyleProps.forEach(p=>d.set(p,null))})):(o.push(Eg()),s=[]),o.length)throw Ig(o);a.forEach((u,d)=>{u.forEach((p,f)=>{u.set(f,this._driver.computeStyle(d,f,Oe))})});let l=s.map(u=>{let d=a.get(u.element);return this._buildPlayer(u,new Map,d)}),c=lt(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let n=this._getPlayer(e);n.destroy(),this._playersById.delete(e);let r=this.players.indexOf(n);r>=0&&this.players.splice(r,1)}_getPlayer(e){let n=this._playersById.get(e);if(!n)throw _g(e);return n}listen(e,n,r,o){let i=$i(n,"","","");return Bi(this._getPlayer(e),r,i,o),()=>{}}command(e,n,r,o){if(r=="register"){this.register(e,o[0]);return}if(r=="create"){let s=o[0]||{};this.create(e,n,s);return}let i=this._getPlayer(e);switch(r){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(e);break}}},jg="ng-animate-queued",eT=".ng-animate-queued",Ec="ng-animate-disabled",tT=".ng-animate-disabled",nT="ng-star-inserted",rT=".ng-star-inserted",oT=[],Kg={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},iT={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Fe="__ng_removed",Fr=class{namespaceId;value;options;get params(){return this.options.params}constructor(e,n=""){this.namespaceId=n;let r=e&&e.hasOwnProperty("value"),o=r?e.value:e;if(this.value=aT(o),r){let i=e,{value:s}=i,a=Wc(i,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let n=e.params;if(n){let r=this.options.params;Object.keys(n).forEach(o=>{r[o]==null&&(r[o]=n[o])})}}},Pr="void",Ic=new Fr(Pr),Rc=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(e,n,r){this.id=e,this.hostElement=n,this._engine=r,this._hostClassName="ng-tns-"+e,xe(n,this._hostClassName)}listen(e,n,r,o){if(!this._triggers.has(n))throw wg(r,n);if(r==null||r.length==0)throw bg(n);if(!lT(r))throw Dg(r,n);let i=Ee(this._elementListeners,e,[]),s={name:n,phase:r,callback:o};i.push(s);let a=Ee(this._engine.statesByElement,e,new Map);return a.has(n)||(xe(e,kr),xe(e,kr+"-"+n),a.set(n,Ic)),()=>{this._engine.afterFlush(()=>{let l=i.indexOf(s);l>=0&&i.splice(l,1),this._triggers.has(n)||a.delete(n)})}}register(e,n){return this._triggers.has(e)?!1:(this._triggers.set(e,n),!0)}_getTrigger(e){let n=this._triggers.get(e);if(!n)throw Tg(e);return n}trigger(e,n,r,o=!0){let i=this._getTrigger(n),s=new Lr(this.id,n,e),a=this._engine.statesByElement.get(e);a||(xe(e,kr),xe(e,kr+"-"+n),this._engine.statesByElement.set(e,a=new Map));let l=a.get(n),c=new Fr(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(n,c),l||(l=Ic),!(c.value===Pr)&&l.value===c.value){if(!dT(l.params,c.params)){let g=[],E=i.matchStyles(l.value,l.params,g),y=i.matchStyles(c.value,c.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{vt(e,E),Pe(e,y)})}return}let p=Ee(this._engine.playersByElement,e,[]);p.forEach(g=>{g.namespaceId==this.id&&g.triggerName==n&&g.queued&&g.destroy()});let f=i.matchTransition(l.value,c.value,e,c.params),h=!1;if(!f){if(!o)return;f=i.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:n,transition:f,fromState:l,toState:c,player:s,isFallbackTransition:h}),h||(xe(e,jg),s.onStart(()=>{Vn(e,jg)})),s.onDone(()=>{let g=this.players.indexOf(s);g>=0&&this.players.splice(g,1);let E=this._engine.playersByElement.get(e);if(E){let y=E.indexOf(s);y>=0&&E.splice(y,1)}}),this.players.push(s),p.push(s),s}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(n=>n.delete(e)),this._elementListeners.forEach((n,r)=>{this._elementListeners.set(r,n.filter(o=>o.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let n=this._engine.playersByElement.get(e);n&&(n.forEach(r=>r.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,n){let r=this._engine.driver.query(e,Rr,!0);r.forEach(o=>{if(o[Fe])return;let i=this._engine.fetchNamespacesByElement(o);i.size?i.forEach(s=>s.triggerLeaveAnimation(o,n,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(e,n,r,o){let i=this._engine.statesByElement.get(e),s=new Map;if(i){let a=[];if(i.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){let u=this.trigger(e,c,Pr,o);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,n,s),r&<(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let n=this._elementListeners.get(e),r=this._engine.statesByElement.get(e);if(n&&r){let o=new Set;n.forEach(i=>{let s=i.name;if(o.has(s))return;o.add(s);let l=this._triggers.get(s).fallbackTransition,c=r.get(s)||Ic,u=new Fr(Pr),d=new Lr(this.id,s,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:s,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(e,n){let r=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,n),this.triggerLeaveAnimation(e,n,!0))return;let o=!1;if(r.totalAnimations){let i=r.players.length?r.playersByQueriedElement.get(e):[];if(i&&i.length)o=!0;else{let s=e;for(;s=s.parentNode;)if(r.statesByElement.get(s)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(e),o)r.markElementAsRemoved(this.id,e,!1,n);else{let i=e[Fe];(!i||i===Kg)&&(r.afterFlush(()=>this.clearElementCache(e)),r.destroyInnerAnimations(e),r._onRemovalComplete(e,n))}}insertNode(e,n){xe(e,this._hostClassName)}drainQueuedTransitions(e){let n=[];return this._queue.forEach(r=>{let o=r.player;if(o.destroyed)return;let i=r.element,s=this._elementListeners.get(i);s&&s.forEach(a=>{if(a.name==r.triggerName){let l=$i(i,r.triggerName,r.fromState.value,r.toState.value);l._data=e,Bi(r.player,a.phase,l,a.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):n.push(r)}),this._queue=[],n.sort((r,o)=>{let i=r.transition.ast.depCount,s=o.transition.ast.depCount;return i==0||s==0?i-s:this._engine.driver.containsElement(r.element,o.element)?1:-1})}destroy(e){this.players.forEach(n=>n.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Oc=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(e,n)=>{};_onRemovalComplete(e,n){this.onRemovalComplete(e,n)}constructor(e,n,r){this.bodyNode=e,this.driver=n,this._normalizer=r}get queuedPlayers(){let e=[];return this._namespaceList.forEach(n=>{n.players.forEach(r=>{r.queued&&e.push(r)})}),e}createNamespace(e,n){let r=new Rc(e,n,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,n)?this._balanceNamespaceList(r,n):(this.newHostElements.set(n,r),this.collectEnterElement(n)),this._namespaceLookup[e]=r}_balanceNamespaceList(e,n){let r=this._namespaceList,o=this.namespacesByHostElement;if(r.length-1>=0){let s=!1,a=this.driver.getParentElement(n);for(;a;){let l=o.get(a);if(l){let c=r.indexOf(l);r.splice(c+1,0,e),s=!0;break}a=this.driver.getParentElement(a)}s||r.unshift(e)}else r.push(e);return o.set(n,e),e}register(e,n){let r=this._namespaceLookup[e];return r||(r=this.createNamespace(e,n)),r}registerTrigger(e,n,r){let o=this._namespaceLookup[e];o&&o.register(n,r)&&this.totalAnimations++}destroy(e,n){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let r=this._fetchNamespace(e);this.namespacesByHostElement.delete(r.hostElement);let o=this._namespaceList.indexOf(r);o>=0&&this._namespaceList.splice(o,1),r.destroy(n),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let n=new Set,r=this.statesByElement.get(e);if(r){for(let o of r.values())if(o.namespaceId){let i=this._fetchNamespace(o.namespaceId);i&&n.add(i)}}return n}trigger(e,n,r,o){if(Zi(n)){let i=this._fetchNamespace(e);if(i)return i.trigger(n,r,o),!0}return!1}insertNode(e,n,r,o){if(!Zi(n))return;let i=n[Fe];if(i&&i.setForRemoval){i.setForRemoval=!1,i.setForMove=!0;let s=this.collectedLeaveElements.indexOf(n);s>=0&&this.collectedLeaveElements.splice(s,1)}if(e){let s=this._fetchNamespace(e);s&&s.insertNode(n,r)}o&&this.collectEnterElement(n)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,n){n?this.disabledNodes.has(e)||(this.disabledNodes.add(e),xe(e,Ec)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Vn(e,Ec))}removeNode(e,n,r){if(Zi(n)){let o=e?this._fetchNamespace(e):null;o?o.removeNode(n,r):this.markElementAsRemoved(e,n,!1,r);let i=this.namespacesByHostElement.get(n);i&&i.id!==e&&i.removeNode(n,r)}else this._onRemovalComplete(n,r)}markElementAsRemoved(e,n,r,o,i){this.collectedLeaveElements.push(n),n[Fe]={namespaceId:e,setForRemoval:o,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:i}}listen(e,n,r,o,i){return Zi(n)?this._fetchNamespace(e).listen(n,r,o,i):()=>{}}_buildInstruction(e,n,r,o,i){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,r,o,e.fromState.options,e.toState.options,n,i)}destroyInnerAnimations(e){let n=this.driver.query(e,Rr,!0);n.forEach(r=>this.destroyActiveAnimationsForElement(r)),this.playersByQueriedElement.size!=0&&(n=this.driver.query(e,zi,!0),n.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(e){let n=this.playersByElement.get(e);n&&n.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(e){let n=this.playersByQueriedElement.get(e);n&&n.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return lt(this.players).onDone(()=>e());e()})}processLeaveNode(e){let n=e[Fe];if(n&&n.setForRemoval){if(e[Fe]=Kg,n.namespaceId){this.destroyInnerAnimations(e);let r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}e.classList?.contains(Ec)&&this.markElementAsDisabled(e,!1),this.driver.query(e,tT,!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(e=-1){let n=[];if(this.newHostElements.size&&(this.newHostElements.forEach((r,o)=>this._balanceNamespaceList(r,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;r<this.collectedEnterElements.length;r++){let o=this.collectedEnterElements[r];xe(o,nT)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let r=[];try{n=this._flushAnimations(r,e)}finally{for(let o=0;o<r.length;o++)r[o]()}}else for(let r=0;r<this.collectedLeaveElements.length;r++){let o=this.collectedLeaveElements[r];this.processLeaveNode(o)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(r=>r()),this._flushFns=[],this._whenQuietFns.length){let r=this._whenQuietFns;this._whenQuietFns=[],n.length?lt(n).onDone(()=>{r.forEach(o=>o())}):r.forEach(o=>o())}}reportError(e){throw Mg(e)}_flushAnimations(e,n){let r=new jn,o=[],i=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(v=>{u.add(v);let _=this.driver.query(v,eT,!0);for(let b=0;b<_.length;b++)u.add(_[b])});let d=this.bodyNode,p=Array.from(this.statesByElement.keys()),f=$g(p,this.collectedEnterElements),h=new Map,g=0;f.forEach((v,_)=>{let b=qi+g++;h.set(_,b),v.forEach(P=>xe(P,b))});let E=[],y=new Set,R=new Set;for(let v=0;v<this.collectedLeaveElements.length;v++){let _=this.collectedLeaveElements[v],b=_[Fe];b&&b.setForRemoval&&(E.push(_),y.add(_),b.hasAnimation?this.driver.query(_,rT,!0).forEach(P=>y.add(P)):R.add(_))}let W=new Map,G=$g(p,Array.from(y));G.forEach((v,_)=>{let b=Ar+g++;W.set(_,b),v.forEach(P=>xe(P,b))}),e.push(()=>{f.forEach((v,_)=>{let b=h.get(_);v.forEach(P=>Vn(P,b))}),G.forEach((v,_)=>{let b=W.get(_);v.forEach(P=>Vn(P,b))}),E.forEach(v=>{this.processLeaveNode(v)})});let De=[],Le=[];for(let v=this._namespaceList.length-1;v>=0;v--)this._namespaceList[v].drainQueuedTransitions(n).forEach(b=>{let P=b.player,X=b.element;if(De.push(P),this.collectedEnterElements.length){let ne=X[Fe];if(ne&&ne.setForMove){if(ne.previousTriggersValues&&ne.previousTriggersValues.has(b.triggerName)){let _t=ne.previousTriggersValues.get(b.triggerName),Te=this.statesByElement.get(b.element);if(Te&&Te.has(b.triggerName)){let Vr=Te.get(b.triggerName);Vr.value=_t,Te.set(b.triggerName,Vr)}}P.destroy();return}}let Ve=!d||!this.driver.containsElement(d,X),_e=W.get(X),ct=h.get(X),U=this._buildInstruction(b,r,ct,_e,Ve);if(U.errors&&U.errors.length){Le.push(U);return}if(Ve){P.onStart(()=>vt(X,U.fromStyles)),P.onDestroy(()=>Pe(X,U.toStyles)),o.push(P);return}if(b.isFallbackTransition){P.onStart(()=>vt(X,U.fromStyles)),P.onDestroy(()=>Pe(X,U.toStyles)),o.push(P);return}let Uc=[];U.timelines.forEach(ne=>{ne.stretchStartingKeyframe=!0,this.disabledNodes.has(ne.element)||Uc.push(ne)}),U.timelines=Uc,r.append(X,U.timelines);let Jg={instruction:U,player:P,element:X};s.push(Jg),U.queriedElements.forEach(ne=>Ee(a,ne,[]).push(P)),U.preStyleProps.forEach((ne,_t)=>{if(ne.size){let Te=l.get(_t);Te||l.set(_t,Te=new Set),ne.forEach((Vr,ss)=>Te.add(ss))}}),U.postStyleProps.forEach((ne,_t)=>{let Te=c.get(_t);Te||c.set(_t,Te=new Set),ne.forEach((Vr,ss)=>Te.add(ss))})});if(Le.length){let v=[];Le.forEach(_=>{v.push(Sg(_.triggerName,_.errors))}),De.forEach(_=>_.destroy()),this.reportError(v)}let se=new Map,fe=new Map;s.forEach(v=>{let _=v.element;r.has(_)&&(fe.set(_,_),this._beforeAnimationBuild(v.player.namespaceId,v.instruction,se))}),o.forEach(v=>{let _=v.element;this._getPreviousPlayers(_,!1,v.namespaceId,v.triggerName,null).forEach(P=>{Ee(se,_,[]).push(P),P.destroy()})});let Et=E.filter(v=>Ug(v,l,c)),Yt=new Map;Bg(Yt,this.driver,R,c,Oe).forEach(v=>{Ug(v,l,c)&&Et.push(v)});let It=new Map;f.forEach((v,_)=>{Bg(It,this.driver,new Set(v),l,xr)}),Et.forEach(v=>{let _=Yt.get(v),b=It.get(v);Yt.set(v,new Map([..._?.entries()??[],...b?.entries()??[]]))});let is=[],Bc=[],$c={};s.forEach(v=>{let{element:_,player:b,instruction:P}=v;if(r.has(_)){if(u.has(_)){b.onDestroy(()=>Pe(_,P.toStyles)),b.disabled=!0,b.overrideTotalTime(P.totalTime),o.push(b);return}let X=$c;if(fe.size>1){let _e=_,ct=[];for(;_e=_e.parentNode;){let U=fe.get(_e);if(U){X=U;break}ct.push(_e)}ct.forEach(U=>fe.set(U,X))}let Ve=this._buildAnimation(b.namespaceId,P,se,i,It,Yt);if(b.setRealPlayer(Ve),X===$c)is.push(b);else{let _e=this.playersByElement.get(X);_e&&_e.length&&(b.parentPlayer=lt(_e)),o.push(b)}}else vt(_,P.fromStyles),b.onDestroy(()=>Pe(_,P.toStyles)),Bc.push(b),u.has(_)&&o.push(b)}),Bc.forEach(v=>{let _=i.get(v.element);if(_&&_.length){let b=lt(_);v.setRealPlayer(b)}}),o.forEach(v=>{v.parentPlayer?v.syncPlayerEvents(v.parentPlayer):v.destroy()});for(let v=0;v<E.length;v++){let _=E[v],b=_[Fe];if(Vn(_,Ar),b&&b.hasAnimation)continue;let P=[];if(a.size){let Ve=a.get(_);Ve&&Ve.length&&P.push(...Ve);let _e=this.driver.query(_,zi,!0);for(let ct=0;ct<_e.length;ct++){let U=a.get(_e[ct]);U&&U.length&&P.push(...U)}}let X=P.filter(Ve=>!Ve.destroyed);X.length?cT(this,_,X):this.processLeaveNode(_)}return E.length=0,is.forEach(v=>{this.players.push(v),v.onDone(()=>{v.destroy();let _=this.players.indexOf(v);this.players.splice(_,1)}),v.play()}),is}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,n,r,o,i){let s=[];if(n){let a=this.playersByQueriedElement.get(e);a&&(s=a)}else{let a=this.playersByElement.get(e);if(a){let l=!i||i==Pr;a.forEach(c=>{c.queued||!l&&c.triggerName!=o||s.push(c)})}}return(r||o)&&(s=s.filter(a=>!(r&&r!=a.namespaceId||o&&o!=a.triggerName))),s}_beforeAnimationBuild(e,n,r){let o=n.triggerName,i=n.element,s=n.isRemovalTransition?void 0:e,a=n.isRemovalTransition?void 0:o;for(let l of n.timelines){let c=l.element,u=c!==i,d=Ee(r,c,[]);this._getPreviousPlayers(c,u,s,a,n.toState).forEach(f=>{let h=f.getRealPlayer();h.beforeDestroy&&h.beforeDestroy(),f.destroy(),d.push(f)})}vt(i,n.fromStyles)}_buildAnimation(e,n,r,o,i,s){let a=n.triggerName,l=n.element,c=[],u=new Set,d=new Set,p=n.timelines.map(h=>{let g=h.element;u.add(g);let E=g[Fe];if(E&&E.removedBeforeQueried)return new at(h.duration,h.delay);let y=g!==l,R=uT((r.get(g)||oT).map(se=>se.getRealPlayer())).filter(se=>{let fe=se;return fe.element?fe.element===g:!1}),W=i.get(g),G=s.get(g),De=cc(this._normalizer,h.keyframes,W,G),Le=this._buildPlayer(h,De,R);if(h.subTimeline&&o&&d.add(g),y){let se=new Lr(e,a,g);se.setRealPlayer(Le),c.push(se)}return Le});c.forEach(h=>{Ee(this.playersByQueriedElement,h.element,[]).push(h),h.onDone(()=>sT(this.playersByQueriedElement,h.element,h))}),u.forEach(h=>xe(h,hc));let f=lt(p);return f.onDestroy(()=>{u.forEach(h=>Vn(h,hc)),Pe(l,n.toStyles)}),d.forEach(h=>{Ee(o,h,[]).push(f)}),f}_buildPlayer(e,n,r){return n.length>0?this.driver.animate(e.element,n,e.duration,e.delay,e.easing,r):new at(e.duration,e.delay)}},Lr=class{namespaceId;triggerName;element;_player=new at;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(e,n,r){this.namespaceId=e,this.triggerName=n,this.element=r}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((n,r)=>{n.forEach(o=>Bi(e,r,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let n=this._player;n.triggerCallback&&e.onStart(()=>n.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,n){Ee(this._queuedCallbacks,e,[]).push(n)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let n=this._player;n.triggerCallback&&n.triggerCallback(e)}};function sT(t,e,n){let r=t.get(e);if(r){if(r.length){let o=r.indexOf(n);r.splice(o,1)}r.length==0&&t.delete(e)}return r}function aT(t){return t??null}function Zi(t){return t&&t.nodeType===1}function lT(t){return t=="start"||t=="done"}function Hg(t,e){let n=t.style.display;return t.style.display=e??"none",n}function Bg(t,e,n,r,o){let i=[];n.forEach(l=>i.push(Hg(l)));let s=[];r.forEach((l,c)=>{let u=new Map;l.forEach(d=>{let p=e.computeStyle(c,d,o);u.set(d,p),(!p||p.length==0)&&(c[Fe]=iT,s.push(c))}),t.set(c,u)});let a=0;return n.forEach(l=>Hg(l,i[a++])),s}function $g(t,e){let n=new Map;if(t.forEach(a=>n.set(a,[])),e.length==0)return n;let r=1,o=new Set(e),i=new Map;function s(a){if(!a)return r;let l=i.get(a);if(l)return l;let c=a.parentNode;return n.has(c)?l=c:o.has(c)?l=r:l=s(c),i.set(a,l),l}return e.forEach(a=>{let l=s(a);l!==r&&n.get(l).push(a)}),n}function xe(t,e){t.classList?.add(e)}function Vn(t,e){t.classList?.remove(e)}function cT(t,e,n){lt(n).onDone(()=>t.processLeaveNode(e))}function uT(t){let e=[];return Zg(t,e),e}function Zg(t,e){for(let n=0;n<t.length;n++){let r=t[n];r instanceof Pn?Zg(r.players,e):e.push(r)}}function dT(t,e){let n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(let o=0;o<n.length;o++){let i=n[o];if(!e.hasOwnProperty(i)||t[i]!==e[i])return!1}return!0}function Ug(t,e,n){let r=n.get(t);if(!r)return!1;let o=e.get(t);return o?r.forEach(i=>o.add(i)):e.set(t,r),n.delete(t),!0}var ns=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,n)=>{};constructor(e,n,r){this._driver=n,this._normalizer=r,this._transitionEngine=new Oc(e.body,n,r),this._timelineEngine=new kc(e.body,n,r),this._transitionEngine.onRemovalComplete=(o,i)=>this.onRemovalComplete(o,i)}registerTrigger(e,n,r,o,i){let s=e+"-"+o,a=this._triggerCache[s];if(!a){let l=[],c=[],u=Lc(this._driver,i,l,c);if(l.length)throw yg(o,l);a=YD(o,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(n,o,a)}register(e,n){this._transitionEngine.register(e,n)}destroy(e,n){this._transitionEngine.destroy(e,n)}onInsert(e,n,r,o){this._transitionEngine.insertNode(e,n,r,o)}onRemove(e,n,r){this._transitionEngine.removeNode(e,n,r)}disableAnimations(e,n){this._transitionEngine.markElementAsDisabled(e,n)}process(e,n,r,o){if(r.charAt(0)=="@"){let[i,s]=uc(r),a=o;this._timelineEngine.command(i,n,s,a)}else this._transitionEngine.trigger(e,n,r,o)}listen(e,n,r,o,i){if(r.charAt(0)=="@"){let[s,a]=uc(r);return this._timelineEngine.listen(s,n,a,i)}return this._transitionEngine.listen(e,n,r,o,i)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function fT(t,e){let n=null,r=null;return Array.isArray(e)&&e.length?(n=_c(e[0]),e.length>1&&(r=_c(e[e.length-1]))):e instanceof Map&&(n=_c(e)),n||r?new pT(t,n,r):null}var pT=(()=>{class t{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(n,r,o){this._element=n,this._startStyles=r,this._endStyles=o;let i=t.initialStylesByElement.get(n);i||t.initialStylesByElement.set(n,i=new Map),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&Pe(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Pe(this._element,this._initialStyles),this._endStyles&&(Pe(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(vt(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(vt(this._element,this._endStyles),this._endStyles=null),Pe(this._element,this._initialStyles),this._state=3)}}return t})();function _c(t){let e=null;return t.forEach((n,r)=>{hT(r)&&(e=e||new Map,e.set(r,n))}),e}function hT(t){return t==="display"||t==="position"}var rs=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(e,n,r,o){this.element=e,this.keyframes=n,this.options=r,this._specialStyles=o,this._duration=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let n=()=>this._onFinish();this.domPlayer.addEventListener("finish",n),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",n)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let n=[];return e.forEach(r=>{n.push(Object.fromEntries(r))}),n}_triggerWebAnimation(e,n,r){return e.animate(this._convertKeyframesToObject(n),r)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((r,o)=>{o!=="offset"&&e.set(o,this._finished?r:Gi(this.element,o))}),this.currentSnapshot=e}triggerCallback(e){let n=e==="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},Pc=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,n){return dc(e,n)}getParentElement(e){return Ui(e)}query(e,n,r){return fc(e,n,r)}computeStyle(e,n,r){return Gi(e,n)}animate(e,n,r,o,i,s=[]){let a=o==0?"both":"forwards",l={duration:r,delay:o,fill:a};i&&(l.easing=i);let c=new Map,u=s.filter(f=>f instanceof rs);Ag(r,o)&&u.forEach(f=>{f.currentSnapshot.forEach((h,g)=>c.set(g,h))});let d=Ng(n).map(f=>new Map(f));d=kg(e,d,c);let p=fT(e,d);return new rs(e,d,l,p)}};function YO(t,e){return t==="noop"?new ns(e,new Wg,new bc):new ns(e,new Pc,new Dc)}var qg=class{_driver;_animationAst;constructor(e,n){this._driver=e;let r=[],i=Lc(e,n,r,[]);if(r.length)throw gg(r);this._animationAst=i}buildTimelines(e,n,r,o,i){let s=Array.isArray(n)?gc(n):n,a=Array.isArray(r)?gc(r):r,l=[];i=i||new jn;let c=jc(this._driver,e,this._animationAst,qi,Ar,s,a,o,i,l);if(l.length)throw mg(l);return c}},Yi="@",Yg="@.disabled",os=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(e,n,r,o){this.namespaceId=e,this.delegate=n,this.engine=r,this._onDestroy=o}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,n){return this.delegate.createElement(e,n)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,n){this.delegate.appendChild(e,n),this.engine.onInsert(this.namespaceId,n,e,!1)}insertBefore(e,n,r,o=!0){this.delegate.insertBefore(e,n,r),this.engine.onInsert(this.namespaceId,n,e,o)}removeChild(e,n,r){this.parentNode(n)&&this.engine.onRemove(this.namespaceId,n,this.delegate)}selectRootElement(e,n){return this.delegate.selectRootElement(e,n)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,n,r,o){this.delegate.setAttribute(e,n,r,o)}removeAttribute(e,n,r){this.delegate.removeAttribute(e,n,r)}addClass(e,n){this.delegate.addClass(e,n)}removeClass(e,n){this.delegate.removeClass(e,n)}setStyle(e,n,r,o){this.delegate.setStyle(e,n,r,o)}removeStyle(e,n,r){this.delegate.removeStyle(e,n,r)}setProperty(e,n,r){n.charAt(0)==Yi&&n==Yg?this.disableAnimations(e,!!r):this.delegate.setProperty(e,n,r)}setValue(e,n){this.delegate.setValue(e,n)}listen(e,n,r,o){return this.delegate.listen(e,n,r,o)}disableAnimations(e,n){this.engine.disableAnimations(e,n)}},Fc=class extends os{factory;constructor(e,n,r,o,i){super(n,r,o,i),this.factory=e,this.namespaceId=n}setProperty(e,n,r){n.charAt(0)==Yi?n.charAt(1)=="."&&n==Yg?(r=r===void 0?!0:!!r,this.disableAnimations(e,r)):this.engine.process(this.namespaceId,e,n.slice(1),r):this.delegate.setProperty(e,n,r)}listen(e,n,r,o){if(n.charAt(0)==Yi){let i=gT(e),s=n.slice(1),a="";return s.charAt(0)!=Yi&&([s,a]=mT(s)),this.engine.listen(this.namespaceId,i,s,a,l=>{let c=l._data||-1;this.factory.scheduleListenerCallback(c,r,l)})}return this.delegate.listen(e,n,r,o)}};function gT(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function mT(t){let e=t.indexOf("."),n=t.substring(0,e),r=t.slice(e+1);return[n,r]}var zg=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(e,n,r){this.delegate=e,this.engine=n,this._zone=r,n.onRemovalComplete=(o,i)=>{i?.removeChild(null,o)}}createRenderer(e,n){let r="",o=this.delegate.createRenderer(e,n);if(!e||!n?.data?.animation){let c=this._rendererCache,u=c.get(o);if(!u){let d=()=>c.delete(o);u=new os(r,o,this.engine,d),c.set(o,u)}return u}let i=n.id,s=n.id+"-"+this._currentId;this._currentId++,this.engine.register(s,e);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(i,s,e,c.name,c)};return n.data.animation.forEach(a),new Fc(this,s,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,n,r){if(e>=0&&e<this._microtaskId){this._zone.run(()=>n(r));return}let o=this._animationCallbacksBuffer;o.length==0&&queueMicrotask(()=>{this._zone.run(()=>{o.forEach(i=>{let[s,a]=i;s(a)}),this._animationCallbacksBuffer=[]})}),o.push([n,r])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}componentReplaced(e){this.engine.flush(),this.delegate.componentReplaced?.(e)}};export{Q as a,pe as b,yT as c,vT as d,Wc as e,ET as f,IT as g,z as h,ym as i,F as j,As as k,ks as l,Me as m,zn as n,Im as o,Mt as p,He as q,Cm as r,Nm as s,xm as t,Ct as u,ut as v,Vm as w,Nt as x,Qn as y,wo as z,Hm as A,Bm as B,Kn as C,$m as D,Um as E,Zn as F,qm as G,Os as H,zm as I,Wm as J,Yn as K,Ps as L,Gm as M,Zm as N,Ym as O,Fs as P,Jm as Q,Xm as R,ey as S,ty as T,Mu as U,ny as V,Su as W,m as X,Ze as Y,Vd as Z,q as _,ay as $,Wk as aa,O as ba,k as ca,we as da,A as ea,Cy as fa,nf as ga,Je as ha,of as ia,af as ja,Gk as ka,Qk as la,Kk as ma,Zk as na,Yk as oa,Jk as pa,Xk as qa,tt as ra,_r as sa,$t as ta,wr as ua,dt as va,ue as wa,Jo as xa,gt as ya,eR as za,tR as Aa,Mi as Ba,jv as Ca,nR as Da,qv as Ea,Wv as Fa,rR as Ga,oR as Ha,iR as Ia,Si as Ja,br as Ka,tE as La,cr as Ma,An as Na,Pl as Oa,sR as Pa,aR as Qa,lR as Ra,cR as Sa,uR as Ta,dp as Ua,LE as Va,Ai as Wa,dR as Xa,jE as Ya,fR as Za,pR as _a,hR as $a,xa as ab,ri as bb,s_ as cb,oi as db,_R as eb,Hi as fb,wR as gb,Jl as hb,DR as ib,TR as jb,MR as kb,fr as lb,Q_ as mb,NR as nb,ah as ob,xR as pb,X_ as qb,AR as rb,kR as sb,ow as tb,RR as ub,hw as vb,OR as wb,Dw as xb,Tw as yb,PR as zb,Mw as Ab,gh as Bb,Cw as Cb,FR as Db,Nw as Eb,wn as Fb,LR as Gb,VR as Hb,Vw as Ib,Yw as Jb,Jw as Kb,Xw as Lb,jR as Mb,HR as Nb,BR as Ob,$R as Pb,UR as Qb,qR as Rb,zR as Sb,WR as Tb,Ah as Ub,kh as Vb,fb as Wb,Rh as Xb,Oh as Yb,gb as Zb,GR as _b,yb as $b,QR as ac,Ib as bc,KR as cc,fi as dc,Sb as ec,ZR as fc,YR as gc,JR as hc,Ab as ic,Fh as jc,kb as kc,XR as lc,eO as mc,tO as nc,nO as oc,rO as pc,oO as qc,iO as rc,sO as sc,aO as tc,Ob as uc,Vh as vc,Pb as wc,Fb as xc,lO as yc,Lb as zc,jb as Ac,cO as Bc,uO as Cc,dO as Dc,fO as Ec,pO as Fc,hO as Gc,gO as Hc,mO as Ic,yO as Jc,vO as Kc,EO as Lc,IO as Mc,_O as Nc,wO as Oc,bO as Pc,DO as Qc,TO as Rc,Gh as Sc,MO as Tc,oD as Uc,SO as Vc,dD as Wc,fD as Xc,CO as Yc,NO as Zc,xO as _c,AO as $c,kO as ad,RO as bd,pD as cd,OO as dd,PO as ed,LO as fd,VO as gd,ic as hd,jO as id,HO as jd,BO as kd,$O as ld,UO as md,qO as nd,Ui as od,Cg as pd,CD as qd,dc as rd,fc as sd,Ng as td,OD as ud,Ag as vd,Wg as wd,Rg as xd,wc as yd,bc as zd,Dc as Ad,ns as Bd,rs as Cd,Pc as Dd,YO as Ed,qg as Fd,os as Gd,Fc as Hd,zg as Id};