UNPKG

@rero/rero-ils-ui

Version:

User interface for RERO integrated library system (RERO ILS).

8 lines 244 kB
var _g=Object.create;var qi=Object.defineProperty,wg=Object.defineProperties,bg=Object.getOwnPropertyDescriptor,Dg=Object.getOwnPropertyDescriptors,Tg=Object.getOwnPropertyNames,Tr=Object.getOwnPropertySymbols,Mg=Object.getPrototypeOf,zi=Object.prototype.hasOwnProperty,Sc=Object.prototype.propertyIsEnumerable;var Mc=(t,e,n)=>e in t?qi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,W=(t,e)=>{for(var n in e||={})zi.call(e,n)&&Mc(t,n,e[n]);if(Tr)for(var n of Tr(e))Sc.call(e,n)&&Mc(t,n,e[n]);return t},fe=(t,e)=>wg(t,Dg(e));var pD=(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 hD=t=>typeof t=="symbol"?t:t+"",Cc=(t,e)=>{var n={};for(var r in t)zi.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Tr)for(var r of Tr(t))e.indexOf(r)<0&&Sc.call(t,r)&&(n[r]=t[r]);return n};var gD=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Sg=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Tg(e))!zi.call(t,o)&&o!==n&&qi(t,o,{get:()=>e[o],enumerable:!(r=bg(e,o))||r.enumerable});return t};var mD=(t,e,n)=>(n=t!=null?_g(Mg(t)):{},Sg(e||!t||!t.__esModule?qi(n,"default",{value:t,enumerable:!0}):n,t));function Ki(t,e){return Object.is(t,e)}var G=null,Mr=!1,Zi=1,ie=Symbol("SIGNAL");function C(t){let e=G;return G=t,e}function Yi(){return G}var qt={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 zt(t){if(Mr)throw new Error("");if(G===null)return;G.consumerOnSignalRead(t);let e=G.nextProducerIndex++;if(Ar(G),e<G.producerNode.length&&G.producerNode[e]!==t&&kn(G)){let n=G.producerNode[e];xr(n,G.producerIndexOfThis[e])}G.producerNode[e]!==t&&(G.producerNode[e]=t,G.producerIndexOfThis[e]=kn(G)?xc(t,G,e):0),G.producerLastReadVersion[e]=t.version}function Nc(){Zi++}function Ji(t){if(!(kn(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===Zi)){if(!t.producerMustRecompute(t)&&!Nr(t)){Qi(t);return}t.producerRecomputeValue(t),Qi(t)}}function Xi(t){if(t.liveConsumerNode===void 0)return;let e=Mr;Mr=!0;try{for(let n of t.liveConsumerNode)n.dirty||Cg(n)}finally{Mr=e}}function es(){return G?.consumerAllowSignalWrites!==!1}function Cg(t){t.dirty=!0,Xi(t),t.consumerMarkedDirty?.(t)}function Qi(t){t.dirty=!1,t.lastCleanEpoch=Zi}function Rn(t){return t&&(t.nextProducerIndex=0),C(t)}function Cr(t,e){if(C(e),!(!t||t.producerNode===void 0||t.producerIndexOfThis===void 0||t.producerLastReadVersion===void 0)){if(kn(t))for(let n=t.nextProducerIndex;n<t.producerNode.length;n++)xr(t.producerNode[n],t.producerIndexOfThis[n]);for(;t.producerNode.length>t.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function Nr(t){Ar(t);for(let e=0;e<t.producerNode.length;e++){let n=t.producerNode[e],r=t.producerLastReadVersion[e];if(r!==n.version||(Ji(n),r!==n.version))return!0}return!1}function On(t){if(Ar(t),kn(t))for(let e=0;e<t.producerNode.length;e++)xr(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 xc(t,e,n){if(Ac(t),t.liveConsumerNode.length===0&&kc(t))for(let r=0;r<t.producerNode.length;r++)t.producerIndexOfThis[r]=xc(t.producerNode[r],t,r);return t.liveConsumerIndexOfThis.push(n),t.liveConsumerNode.push(e)-1}function xr(t,e){if(Ac(t),t.liveConsumerNode.length===1&&kc(t))for(let r=0;r<t.producerNode.length;r++)xr(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];Ar(o),o.producerIndexOfThis[r]=e}}function kn(t){return t.consumerIsAlwaysLive||(t?.liveConsumerNode?.length??0)>0}function Ar(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function Ac(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function kc(t){return t.producerNode!==void 0}function kr(t,e){let n=Object.create(Ng);n.computation=t,e!==void 0&&(n.equal=e);let r=()=>{if(Ji(n),zt(n),n.value===Sr)throw n.error;return n.value};return r[ie]=n,r}var Wi=Symbol("UNSET"),Gi=Symbol("COMPUTING"),Sr=Symbol("ERRORED"),Ng=fe(W({},qt),{value:Wi,dirty:!0,error:null,equal:Ki,kind:"computed",producerMustRecompute(t){return t.value===Wi||t.value===Gi},producerRecomputeValue(t){if(t.value===Gi)throw new Error("Detected cycle in computations.");let e=t.value;t.value=Gi;let n=Rn(t),r,o=!1;try{r=t.computation(),C(null),o=e!==Wi&&e!==Sr&&r!==Sr&&t.equal(e,r)}catch(i){r=Sr,t.error=i}finally{Cr(t,n)}if(o){t.value=e;return}t.value=r,t.version++}});function xg(){throw new Error}var Rc=xg;function Oc(t){Rc(t)}function ts(t){Rc=t}var Ag=null;function ns(t,e){let n=Object.create(Rr);n.value=t,e!==void 0&&(n.equal=e);let r=()=>(zt(n),n.value);return r[ie]=n,r}function Wt(t,e){es()||Oc(t),t.equal(t.value,e)||(t.value=e,kg(t))}function rs(t,e){es()||Oc(t),Wt(t,e(t.value))}var Rr=fe(W({},qt),{equal:Ki,value:void 0,kind:"signal"});function kg(t){t.version++,Nc(),Xi(t),Ag?.()}function os(t){let e=C(null);try{return t()}finally{C(e)}}var is;function Pn(){return is}function qe(t){let e=is;return is=t,e}var Or=Symbol("NotFound");function T(t){return typeof t=="function"}function Gt(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 Pr=Gt(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 mt(t,e){if(t){let n=t.indexOf(e);0<=n&&t.splice(n,1)}}var U=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(T(r))try{r()}catch(i){e=i instanceof Pr?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Pc(i)}catch(s){e=e??[],s instanceof Pr?e=[...e,...s.errors]:e.push(s)}}if(e)throw new Pr(e)}}add(e){var n;if(e&&e!==this)if(this.closed)Pc(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)&&mt(n,e)}remove(e){let{_finalizers:n}=this;n&&mt(n,e),e instanceof t&&e._removeParent(this)}};U.EMPTY=(()=>{let t=new U;return t.closed=!0,t})();var ss=U.EMPTY;function Fr(t){return t instanceof U||t&&"closed"in t&&T(t.remove)&&T(t.add)&&T(t.unsubscribe)}function Pc(t){T(t)?t():t.unsubscribe()}var Me={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Qt={setTimeout(t,e,...n){let{delegate:r}=Qt;return r?.setTimeout?r.setTimeout(t,e,...n):setTimeout(t,e,...n)},clearTimeout(t){let{delegate:e}=Qt;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Lr(t){Qt.setTimeout(()=>{let{onUnhandledError:e}=Me;if(e)e(t);else throw t})}function Fn(){}var Fc=as("C",void 0,void 0);function Lc(t){return as("E",void 0,t)}function Vc(t){return as("N",t,void 0)}function as(t,e,n){return{kind:t,value:e,error:n}}var yt=null;function Kt(t){if(Me.useDeprecatedSynchronousErrorHandling){let e=!yt;if(e&&(yt={errorThrown:!1,error:null}),t(),e){let{errorThrown:n,error:r}=yt;if(yt=null,n)throw r}}else t()}function jc(t){Me.useDeprecatedSynchronousErrorHandling&&yt&&(yt.errorThrown=!0,yt.error=t)}var vt=class extends U{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,Fr(e)&&e.add(this)):this.destination=Vg}static create(e,n,r){return new ze(e,n,r)}next(e){this.isStopped?cs(Vc(e),this):this._next(e)}error(e){this.isStopped?cs(Lc(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?cs(Fc,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()}}},Fg=Function.prototype.bind;function ls(t,e){return Fg.call(t,e)}var us=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:n}=this;if(n.next)try{n.next(e)}catch(r){Vr(r)}}error(e){let{partialObserver:n}=this;if(n.error)try{n.error(e)}catch(r){Vr(r)}else Vr(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(n){Vr(n)}}},ze=class extends vt{constructor(e,n,r){super();let o;if(T(e)||!e)o={next:e??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Me.useDeprecatedNextContext?(i=Object.create(e),i.unsubscribe=()=>this.unsubscribe(),o={next:e.next&&ls(e.next,i),error:e.error&&ls(e.error,i),complete:e.complete&&ls(e.complete,i)}):o=e}this.destination=new us(o)}};function Vr(t){Me.useDeprecatedSynchronousErrorHandling?jc(t):Lr(t)}function Lg(t){throw t}function cs(t,e){let{onStoppedNotification:n}=Me;n&&Qt.setTimeout(()=>n(t,e))}var Vg={closed:!0,next:Fn,error:Lg,complete:Fn};var Zt=typeof Symbol=="function"&&Symbol.observable||"@@observable";function se(t){return t}function jg(...t){return ds(t)}function ds(t){return t.length===0?se:t.length===1?t[0]:function(n){return t.reduce((r,o)=>o(r),n)}}var O=(()=>{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=Bg(n)?n:new ze(n,r,o);return Kt(()=>{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=Hc(r),new r((o,i)=>{let s=new ze({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)}[Zt](){return this}pipe(...n){return ds(n)(this)}toPromise(n){return n=Hc(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 Hc(t){var e;return(e=t??Me.Promise)!==null&&e!==void 0?e:Promise}function Hg(t){return t&&T(t.next)&&T(t.error)&&T(t.complete)}function Bg(t){return t&&t instanceof vt||Hg(t)&&Fr(t)}function fs(t){return T(t?.lift)}function N(t){return e=>{if(fs(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 M(t,e,n,r,o){return new ps(t,e,n,r,o)}var ps=class extends vt{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 hs(){return N((t,e)=>{let n=null;t._refCount++;let r=M(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 gs=class extends O{constructor(e,n){super(),this.source=e,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,fs(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 U;let n=this.getSubject();e.add(this.source.subscribe(M(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),e.closed&&(this._connection=null,e=U.EMPTY)}return e}refCount(){return hs()(this)}};var Yt={schedule(t){let e=requestAnimationFrame,n=cancelAnimationFrame,{delegate:r}=Yt;r&&(e=r.requestAnimationFrame,n=r.cancelAnimationFrame);let o=e(i=>{n=void 0,t(i)});return new U(()=>n?.(o))},requestAnimationFrame(...t){let{delegate:e}=Yt;return(e?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){let{delegate:e}=Yt;return(e?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0};var Bc=Gt(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var be=(()=>{class t extends O{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new jr(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Bc}next(n){Kt(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Kt(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Kt(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?ss:(this.currentObservers=null,i.push(n),new U(()=>{this.currentObservers=null,mt(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new O;return n.source=this,n}}return t.create=(e,n)=>new jr(e,n),t})(),jr=class extends be{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:ss}};var Ln=class extends be{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 Vn={now(){return(Vn.delegate||Date).now()},delegate:void 0};var jn=class extends be{constructor(e=1/0,n=1/0,r=Vn){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 Hr=class extends U{constructor(e,n){super()}schedule(e,n=0){return this}};var Hn={setInterval(t,e,...n){let{delegate:r}=Hn;return r?.setInterval?r.setInterval(t,e,...n):setInterval(t,e,...n)},clearInterval(t){let{delegate:e}=Hn;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var Jt=class extends Hr{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 Hn.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&&Hn.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,mt(r,this),e!=null&&(this.id=this.recycleAsyncId(n,e,null)),this.delay=null,super.unsubscribe()}}};var Xt=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)}};Xt.now=Vn.now;var en=class extends Xt{constructor(e,n=Xt.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 Et=new en(Jt),$c=Et;var Br=class extends Jt{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=Yt.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&&(Yt.cancelAnimationFrame(n),e._scheduled=void 0)}};var $r=class extends en{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 $g=new $r(Br);var It=new O(t=>t.complete());function Ur(t){return t&&T(t.schedule)}function ms(t){return t[t.length-1]}function qr(t){return T(ms(t))?t.pop():void 0}function Oe(t){return Ur(ms(t))?t.pop():void 0}function Uc(t,e){return typeof ms(t)=="number"?t.pop():e}function zc(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 qc(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 _t(t){return this instanceof _t?(this.v=t,this):new _t(t)}function Wc(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){i.push([f,g,_,E])>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 _t?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 Gc(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 qc=="function"?qc(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 zr=t=>t&&typeof t.length=="number"&&typeof t!="function";function Wr(t){return T(t?.then)}function Gr(t){return T(t[Zt])}function Qr(t){return Symbol.asyncIterator&&T(t?.[Symbol.asyncIterator])}function Kr(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 Ug(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Zr=Ug();function Yr(t){return T(t?.[Zr])}function Jr(t){return Wc(this,arguments,function*(){let n=t.getReader();try{for(;;){let{value:r,done:o}=yield _t(n.read());if(o)return yield _t(void 0);yield yield _t(r)}}finally{n.releaseLock()}})}function Xr(t){return T(t?.getReader)}function L(t){if(t instanceof O)return t;if(t!=null){if(Gr(t))return qg(t);if(zr(t))return zg(t);if(Wr(t))return Wg(t);if(Qr(t))return Qc(t);if(Yr(t))return Gg(t);if(Xr(t))return Qg(t)}throw Kr(t)}function qg(t){return new O(e=>{let n=t[Zt]();if(T(n.subscribe))return n.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function zg(t){return new O(e=>{for(let n=0;n<t.length&&!e.closed;n++)e.next(t[n]);e.complete()})}function Wg(t){return new O(e=>{t.then(n=>{e.closed||(e.next(n),e.complete())},n=>e.error(n)).then(null,Lr)})}function Gg(t){return new O(e=>{for(let n of t)if(e.next(n),e.closed)return;e.complete()})}function Qc(t){return new O(e=>{Kg(t,e).catch(n=>e.error(n))})}function Qg(t){return Qc(Jr(t))}function Kg(t,e){var n,r,o,i;return zc(this,void 0,void 0,function*(){try{for(n=Gc(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 pe(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 eo(t,e=0){return N((n,r)=>{n.subscribe(M(r,o=>pe(r,t,()=>r.next(o),e),()=>pe(r,t,()=>r.complete(),e),o=>pe(r,t,()=>r.error(o),e)))})}function to(t,e=0){return N((n,r)=>{r.add(t.schedule(()=>n.subscribe(r),e))})}function Kc(t,e){return L(t).pipe(to(e),eo(e))}function Zc(t,e){return L(t).pipe(to(e),eo(e))}function Yc(t,e){return new O(n=>{let r=0;return e.schedule(function(){r===t.length?n.complete():(n.next(t[r++]),n.closed||this.schedule())})})}function Jc(t,e){return new O(n=>{let r;return pe(n,e,()=>{r=t[Zr](),pe(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)}),()=>T(r?.return)&&r.return()})}function no(t,e){if(!t)throw new Error("Iterable cannot be null");return new O(n=>{pe(n,e,()=>{let r=t[Symbol.asyncIterator]();pe(n,e,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Xc(t,e){return no(Jr(t),e)}function eu(t,e){if(t!=null){if(Gr(t))return Kc(t,e);if(zr(t))return Yc(t,e);if(Wr(t))return Zc(t,e);if(Qr(t))return no(t,e);if(Yr(t))return Jc(t,e);if(Xr(t))return Xc(t,e)}throw Kr(t)}function Pe(t,e){return e?eu(t,e):L(t)}function Zg(...t){let e=Oe(t);return Pe(t,e)}function Yg(t,e){let n=T(t)?t:()=>t,r=o=>o.error(n());return new O(e?o=>e.schedule(r,0,o):r)}function Jg(t){return!!t&&(t instanceof O||T(t.lift)&&T(t.subscribe))}var wt=Gt(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function tu(t){return t instanceof Date&&!isNaN(t)}function rt(t,e){return N((n,r)=>{let o=0;n.subscribe(M(r,i=>{r.next(t.call(e,i,o++))}))})}var{isArray:Xg}=Array;function em(t,e){return Xg(e)?t(...e):t(e)}function ro(t){return rt(e=>em(t,e))}var{isArray:tm}=Array,{getPrototypeOf:nm,prototype:rm,keys:om}=Object;function oo(t){if(t.length===1){let e=t[0];if(tm(e))return{args:e,keys:null};if(im(e)){let n=om(e);return{args:n.map(r=>e[r]),keys:n}}}return{args:t,keys:null}}function im(t){return t&&typeof t=="object"&&nm(t)===rm}function io(t,e){return t.reduce((n,r,o)=>(n[r]=e[o],n),{})}function sm(...t){let e=Oe(t),n=qr(t),{args:r,keys:o}=oo(t);if(r.length===0)return Pe([],e);let i=new O(am(r,e,o?s=>io(o,s):se));return n?i.pipe(ro(n)):i}function am(t,e,n=se){return r=>{nu(e,()=>{let{length:o}=t,i=new Array(o),s=o,a=o;for(let l=0;l<o;l++)nu(e,()=>{let c=Pe(t[l],e),u=!1;c.subscribe(M(r,d=>{i[l]=d,u||(u=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function nu(t,e,n){t?pe(n,t,e):e()}function ru(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 _=!1;L(n(g,u++)).subscribe(M(e,E=>{o?.(E),i?f(E):e.next(E)},()=>{_=!0},void 0,()=>{if(_)try{for(c--;l.length&&c<r;){let E=l.shift();s?pe(e,s,()=>h(E)):h(E)}p()}catch(E){e.error(E)}}))};return t.subscribe(M(e,f,()=>{d=!0,p()})),()=>{a?.()}}function bt(t,e,n=1/0){return T(e)?bt((r,o)=>rt((i,s)=>e(r,i,o,s))(L(t(r,o))),n):(typeof e=="number"&&(n=e),N((r,o)=>ru(r,o,t,n)))}function Bn(t=1/0){return bt(se,t)}function ou(){return Bn(1)}function so(...t){return ou()(Pe(t,Oe(t)))}function lm(t){return new O(e=>{L(t()).subscribe(e)})}function cm(...t){let e=qr(t),{args:n,keys:r}=oo(t),o=new O(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;L(n[u]).subscribe(M(i,p=>{d||(d=!0,c--),a[u]=p},()=>l--,void 0,()=>{(!l||!d)&&(c||i.next(r?io(r,a):a),i.complete())}))}});return e?o.pipe(ro(e)):o}function ao(t=0,e,n=$c){let r=-1;return e!=null&&(Ur(e)?n=e:r=e),new O(o=>{let i=tu(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 um(t=0,e=Et){return t<0&&(t=0),ao(t,t,e)}function dm(...t){let e=Oe(t),n=Uc(t,1/0),r=t;return r.length?r.length===1?L(r[0]):Bn(n)(Pe(r,e)):It}function tn(t,e){return N((n,r)=>{let o=0;n.subscribe(M(r,i=>t.call(e,i,o++)&&r.next(i)))})}function iu(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(M(n,c=>{r=!0,o=c,i||L(t(c)).subscribe(i=M(n,a,l))},()=>{s=!0,(!r||!i||i.closed)&&n.complete()}))})}function fm(t,e=Et){return iu(()=>ao(t,e))}function ys(t){return N((e,n)=>{let r=null,o=!1,i;r=e.subscribe(M(n,void 0,void 0,s=>{i=L(t(s,ys(t)(e))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function su(t,e,n,r,o){return(i,s)=>{let a=n,l=e,c=0;i.subscribe(M(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 pm(t,e){return T(e)?bt(t,e,1):bt(t,1)}function hm(t,e=Et){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(M(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 $n(t){return N((e,n)=>{let r=!1;e.subscribe(M(n,o=>{r=!0,n.next(o)},()=>{r||n.next(t),n.complete()}))})}function vs(t){return t<=0?()=>It:N((e,n)=>{let r=0;e.subscribe(M(n,o=>{++r<=t&&(n.next(o),t<=r&&n.complete())}))})}function gm(t,e=se){return t=t??mm,N((n,r)=>{let o,i=!0;n.subscribe(M(r,s=>{let a=e(s);(i||!t(o,a))&&(i=!1,o=a,r.next(s))}))})}function mm(t,e){return t===e}function lo(t=ym){return N((e,n)=>{let r=!1;e.subscribe(M(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(t())))})}function ym(){return new wt}function vm(t){return N((e,n)=>{try{e.subscribe(n)}finally{n.add(t)}})}function Em(t,e){let n=arguments.length>=2;return r=>r.pipe(t?tn((o,i)=>t(o,i,r)):se,vs(1),n?$n(e):lo(()=>new wt))}function Es(t){return t<=0?()=>It:N((e,n)=>{let r=[];e.subscribe(M(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 Im(t,e){let n=arguments.length>=2;return r=>r.pipe(t?tn((o,i)=>t(o,i,r)):se,Es(1),n?$n(e):lo(()=>new wt))}function _m(t,e){return N(su(t,e,arguments.length>=2,!0))}function au(t={}){let{connector:e=()=>new be,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,_)=>{c++,!d&&!u&&p();let E=l=l??e();_.add(()=>{c--,c===0&&!d&&!u&&(a=Is(h,o))}),E.subscribe(_),!s&&c>0&&(s=new ze({next:P=>E.next(P),error:P=>{d=!0,p(),a=Is(f,n,P),E.error(P)},complete:()=>{u=!0,p(),a=Is(f,r),E.complete()}}),L(g).subscribe(s))})(i)}}function Is(t,e,...n){if(e===!0){t();return}if(e===!1)return;let r=new ze({next:()=>{r.unsubscribe(),t()}});return L(e(...n)).subscribe(r)}function wm(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,au({connector:()=>new jn(r,e,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function bm(...t){let e=Oe(t);return N((n,r)=>{(e?so(t,n,e):so(t,n)).subscribe(r)})}function lu(t,e){return N((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(M(r,l=>{o?.unsubscribe();let c=0,u=i++;L(t(l,u)).subscribe(o=M(r,d=>r.next(e?e(l,d,u,c++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Dm(t){return N((e,n)=>{L(t).subscribe(M(n,()=>n.complete(),Fn)),!n.closed&&e.subscribe(n)})}function cu(t,e,n){let r=T(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(M(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)}))}):se}var cd="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",m=class extends Error{code;constructor(e,n){super(ud(e,n)),this.code=e}};function Tm(t){return`NG0${Math.abs(t)}`}function ud(t,e){return`${Tm(t)}${e?": "+e:""}`}var ei=Symbol("InputSignalNode#UNSET"),dd=fe(W({},Rr),{transformFn:void 0,applyValueToInputSignal(t,e){Wt(t,e)}});function fd(t,e){let n=Object.create(dd);n.value=t,n.transformFn=e?.transform;function r(){if(zt(n),n.value===ei){let o=null;throw new m(-950,o)}return n.value}return r[ie]=n,r}function sr(t){return{toString:t}.toString()}var co="__parameters__";function Mm(t){return function(...n){if(t){let r=t(...n);for(let o in r)this[o]=r[o]}}}function pd(t,e,n){return sr(()=>{let r=Mm(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(co)?l[co]:Object.defineProperty(l,co,{value:[]})[co];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 Qn=globalThis;function V(t){for(let e in t)if(t[e]===V)return e;throw Error("Could not find renamed property on target object.")}function Sm(t,e){for(let n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function ge(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(ge).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 Ps(t,e){return t?e?`${t} ${e}`:t:e||""}var Cm=V({__forward_ref__:V});function hd(t){return t.__forward_ref__=hd,t.toString=function(){return ge(this())},t}function X(t){return gd(t)?t():t}function gd(t){return typeof t=="function"&&t.hasOwnProperty(Cm)&&t.__forward_ref__===hd}function q(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Nm(t){return{providers:t.providers||[],imports:t.imports||[]}}function ti(t){return uu(t,md)||uu(t,yd)}function UA(t){return ti(t)!==null}function uu(t,e){return t.hasOwnProperty(e)?t[e]:null}function xm(t){let e=t&&(t[md]||t[yd]);return e||null}function du(t){return t&&(t.hasOwnProperty(fu)||t.hasOwnProperty(Am))?t[fu]:null}var md=V({\u0275prov:V}),fu=V({\u0275inj:V}),yd=V({ngInjectableDef:V}),Am=V({ngInjectorDef:V}),F=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 vd(t){return t&&!!t.\u0275providers}var km=V({\u0275cmp:V}),Rm=V({\u0275dir:V}),Om=V({\u0275pipe:V}),Pm=V({\u0275mod:V}),_o=V({\u0275fac:V}),Wn=V({__NG_ELEMENT_ID__:V}),pu=V({__NG_ENV_ID__:V});function Mt(t){return typeof t=="string"?t:t==null?"":String(t)}function Fm(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():Mt(t)}function Ed(t,e){throw new m(-200,t)}function Qa(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||{}),Fs;function Id(){return Fs}function he(t){let e=Fs;return Fs=t,e}function _d(t,e,n){let r=ti(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;Qa(t,"Injector")}var Lm={},Dt=Lm,Ls="__NG_DI_FLAG__",wo=class{injector;constructor(e){this.injector=e}retrieve(e,n){let r=n;return this.injector.get(e,r.optional?Or:Dt,r)}},bo="ngTempTokenPath",Vm="ngTokenPath",jm=/\n/gm,Hm="\u0275",hu="__source";function Bm(t,e=k.Default){if(Pn()===void 0)throw new m(-203,!1);if(Pn()===null)return _d(t,void 0,e);{let n=Pn(),r;return n instanceof wo?r=n.injector:r=n,r.get(t,e&k.Optional?null:void 0,e)}}function Ie(t,e=k.Default){return(Id()||Bm)(X(t),e)}function A(t,e=k.Default){return Ie(t,ni(e))}function ni(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Vs(t){let e=[];for(let n=0;n<t.length;n++){let r=X(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=$m(a);typeof l=="number"?l===-1?o=a.token:i|=l:o=a}e.push(Ie(o,i))}else e.push(Ie(r))}return e}function wd(t,e){return t[Ls]=e,t.prototype[Ls]=e,t}function $m(t){return t[Ls]}function Um(t,e,n,r){let o=t[bo];throw e[hu]&&o.unshift(e[hu]),t.message=qm(`
`+t.message,o,n,r),t[Vm]=o,t[bo]=null,t}function qm(t,e,n,r=null){t=t&&t.charAt(0)===`
`&&t.charAt(1)==Hm?t.slice(2):t;let o=ge(e);if(Array.isArray(e))o=e.map(ge).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):ge(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${t.replace(jm,`
  `)}`}var bd=wd(pd("Optional"),8);var Dd=wd(pd("SkipSelf"),4);function St(t,e){let n=t.hasOwnProperty(_o);return n?t[_o]:null}function zm(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 Wm(t){return t.flat(Number.POSITIVE_INFINITY)}function Ka(t,e){t.forEach(n=>Array.isArray(n)?Ka(n,e):e(n))}function Td(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Do(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Gm(t,e){let n=[];for(let r=0;r<t;r++)n.push(e);return n}function Qm(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 ar(t,e,n){let r=lr(t,e);return r>=0?t[r|1]=n:(r=~r,Qm(t,r,e,n)),r}function _s(t,e){let n=lr(t,e);if(n>=0)return t[n|1]}function lr(t,e){return Km(t,e,1)}function Km(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 Le={},ae=[],To=new F(""),Md=new F("",-1),Sd=new F(""),Mo=class{get(e,n=Dt){if(n===Dt){let r=new Error(`NullInjectorError: No provider for ${ge(e)}!`);throw r.name="NullInjectorError",r}return n}};function Cd(t,e){let n=t[Pm]||null;if(!n&&e===!0)throw new Error(`Type ${ge(t)} does not have '\u0275mod' property.`);return n}function at(t){return t[km]||null}function Nd(t){return t[Rm]||null}function Zm(t){return t[Om]||null}function Ym(t){return{\u0275providers:t}}function Jm(...t){return{\u0275providers:xd(!0,t),\u0275fromNgModule:!0}}function xd(t,...e){let n=[],r=new Set,o,i=s=>{n.push(s)};return Ka(e,s=>{let a=s;js(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Ad(o,i),n}function Ad(t,e){for(let n=0;n<t.length;n++){let{ngModule:r,providers:o}=t[n];Za(o,i=>{e(i,r)})}}function js(t,e,n,r){if(t=X(t),!t)return!1;let o=null,i=du(t),s=!i&&at(t);if(!i&&!s){let l=t.ngModule;if(i=du(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)js(c,e,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let c;try{Ka(i.imports,u=>{js(u,e,n,r)&&(c||=[],c.push(u))})}finally{}c!==void 0&&Ad(c,e)}if(!a){let c=St(o)||(()=>new o);e({provide:o,useFactory:c,deps:ae},o),e({provide:Sd,useValue:o,multi:!0},o),e({provide:To,useValue:()=>Ie(o),multi:!0},o)}let l=i.providers;if(l!=null&&!a){let c=t;Za(l,u=>{e(u,c)})}}else return!1;return o!==t&&t.providers!==void 0}function Za(t,e){for(let n of t)vd(n)&&(n=n.\u0275providers),Array.isArray(n)?Za(n,e):e(n)}var Xm=V({provide:String,useValue:V});function kd(t){return t!==null&&typeof t=="object"&&Xm in t}function ey(t){return!!(t&&t.useExisting)}function ty(t){return!!(t&&t.useFactory)}function cn(t){return typeof t=="function"}function ny(t){return!!t.useClass}var Rd=new F(""),mo={},gu={},ws;function ri(){return ws===void 0&&(ws=new Mo),ws}var lt=class{},Kn=class extends lt{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,Bs(e,s=>this.processProvider(s)),this.records.set(Md,nn(void 0,this)),o.has("environment")&&this.records.set(lt,nn(void 0,this));let i=this.records.get(Rd);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Sd,ae,k.Self))}retrieve(e,n){let r=n;return this.get(e,r.optional?Or:Dt,r)}destroy(){qn(this),this._destroyed=!0;let e=C(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(),C(e)}}onDestroy(e){return qn(this),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){qn(this);let n=qe(this),r=he(void 0),o;try{return e()}finally{qe(n),he(r)}}get(e,n=Dt,r=k.Default){if(qn(this),e.hasOwnProperty(pu))return e[pu](this);r=ni(r);let o,i=qe(this),s=he(void 0);try{if(!(r&k.SkipSelf)){let l=this.records.get(e);if(l===void 0){let c=ay(e)&&ti(e);c&&this.injectableDefInScope(c)?l=nn(Hs(e),mo):l=null,this.records.set(e,l)}if(l!=null)return this.hydrate(e,l)}let a=r&k.Self?ri():this.parent;return n=r&k.Optional&&n===Dt?null:n,a.get(e,n)}catch(a){if(a.name==="NullInjectorError"){if((a[bo]=a[bo]||[]).unshift(ge(e)),i)throw a;return Um(a,e,"R3InjectorError",this.source)}else throw a}finally{he(s),qe(i)}}resolveInjectorInitializers(){let e=C(null),n=qe(this),r=he(void 0),o;try{let i=this.get(To,ae,k.Self);for(let s of i)s()}finally{qe(n),he(r),C(e)}}toString(){let e=[],n=this.records;for(let r of n.keys())e.push(ge(r));return`R3Injector[${e.join(", ")}]`}processProvider(e){e=X(e);let n=cn(e)?e:X(e&&e.provide),r=oy(e);if(!cn(e)&&e.multi===!0){let o=this.records.get(n);o||(o=nn(void 0,mo,!0),o.factory=()=>Vs(o.multi),this.records.set(n,o)),n=e,o.multi.push(e)}this.records.set(n,r)}hydrate(e,n){let r=C(null);try{return n.value===gu?Ed(ge(e)):n.value===mo&&(n.value=gu,n.value=n.factory()),typeof n.value=="object"&&n.value&&sy(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{C(r)}}injectableDefInScope(e){if(!e.providedIn)return!1;let n=X(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 Hs(t){let e=ti(t),n=e!==null?e.factory:St(t);if(n!==null)return n;if(t instanceof F)throw new m(204,!1);if(t instanceof Function)return ry(t);throw new m(204,!1)}function ry(t){if(t.length>0)throw new m(204,!1);let n=xm(t);return n!==null?()=>n.factory(t):()=>new t}function oy(t){if(kd(t))return nn(void 0,t.useValue);{let e=Od(t);return nn(e,mo)}}function Od(t,e,n){let r;if(cn(t)){let o=X(t);return St(o)||Hs(o)}else if(kd(t))r=()=>X(t.useValue);else if(ty(t))r=()=>t.useFactory(...Vs(t.deps||[]));else if(ey(t))r=()=>Ie(X(t.useExisting));else{let o=X(t&&(t.useClass||t.provide));if(iy(t))r=()=>new o(...Vs(t.deps));else return St(o)||Hs(o)}return r}function qn(t){if(t.destroyed)throw new m(205,!1)}function nn(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function iy(t){return!!t.deps}function sy(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function ay(t){return typeof t=="function"||typeof t=="object"&&t instanceof F}function Bs(t,e){for(let n of t)Array.isArray(n)?Bs(n,e):n&&vd(n)?Bs(n.\u0275providers,e):e(n)}function Pd(t,e){let n;t instanceof Kn?(qn(t),n=t):n=new wo(t);let r,o=qe(n),i=he(void 0);try{return e()}finally{qe(o),he(i)}}function Fd(){return Id()!==void 0||Pn()!=null}function Ld(t){if(!Fd())throw new m(-203,!1)}function ly(t){let e=Qn.ng;if(e&&e.\u0275compilerFacade)return e.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}var qA=Function;function cy(t){return typeof t=="function"}var Ze=0,S=1,b=2,ne=3,Ce=4,me=5,un=6,So=7,K=8,Ct=9,We=10,B=11,Zn=12,mu=13,vn=14,_e=15,Nt=16,rn=17,Ge=18,oi=19,Vd=20,it=21,bs=22,xt=23,De=24,an=25,z=26,jd=1;var At=7,Co=8,dn=9,te=10;function st(t){return Array.isArray(t)&&typeof t[jd]=="object"}function Ye(t){return Array.isArray(t)&&t[jd]===!0}function Ya(t){return(t.flags&4)!==0}function En(t){return t.componentOffset>-1}function ii(t){return(t.flags&1)===1}function Ve(t){return!!t.template}function No(t){return(t[b]&512)!==0}function In(t){return(t[b]&256)===256}var $s=class{previousValue;currentValue;firstChange;constructor(e,n,r){this.previousValue=e,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Hd(t,e,n,r){e!==null?e.applyValueToInputSignal(e,r):t[n]=r}var zA=(()=>{let t=()=>Bd;return t.ngInherit=!0,t})();function Bd(t){return t.type.prototype.ngOnChanges&&(t.setInput=dy),uy}function uy(){let t=Ud(this),e=t?.current;if(e){let n=t.previous;if(n===Le)t.previous=e;else for(let r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e)}}function dy(t,e,n,r,o){let i=this.declaredInputs[r],s=Ud(t)||fy(t,{previous:Le,current:null}),a=s.current||(s.current={}),l=s.previous,c=l[i];a[i]=new $s(c&&c.currentValue,n,l===Le),Hd(t,e,o,n)}var $d="__ngSimpleChanges__";function Ud(t){return t[$d]||null}function fy(t,e){return t[$d]=e}var yu=null;var j=function(t,e=null,n){yu?.(t,e,n)},qd="svg",py="math";function je(t){for(;Array.isArray(t);)t=t[Ze];return t}function zd(t,e){return je(e[t])}function Be(t,e){return je(e[t.index])}function Ja(t,e){return t.data[e]}function si(t,e){return t[e]}function He(t,e){let n=e[t];return st(n)?n:n[Ze]}function hy(t){return(t[b]&4)===4}function Xa(t){return(t[b]&128)===128}function gy(t){return Ye(t[ne])}function ct(t,e){return e==null?null:t[e]}function Wd(t){t[rn]=0}function el(t){t[b]&1024||(t[b]|=1024,Xa(t)&&_n(t))}function my(t,e){for(;t>0;)e=e[vn],t--;return e}function cr(t){return!!(t[b]&9216||t[De]?.dirty)}function Us(t){t[We].changeDetectionScheduler?.notify(8),t[b]&64&&(t[b]|=1024),cr(t)&&_n(t)}function _n(t){t[We].changeDetectionScheduler?.notify(0);let e=kt(t);for(;e!==null&&!(e[b]&8192||(e[b]|=8192,!Xa(e)));)e=kt(e)}function Gd(t,e){if(In(t))throw new m(911,!1);t[it]===null&&(t[it]=[]),t[it].push(e)}function yy(t,e){if(t[it]===null)return;let n=t[it].indexOf(e);n!==-1&&t[it].splice(n,1)}function kt(t){let e=t[ne];return Ye(e)?e[ne]:e}function tl(t){return t[So]??=[]}function nl(t){return t.cleanup??=[]}function vy(t,e,n,r){let o=tl(e);o.push(n),t.firstCreatePass&&nl(t).push(r,o.length-1)}var x={lFrame:Xd(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var qs=!1;function Ey(){return x.lFrame.elementDepthCount}function Iy(){x.lFrame.elementDepthCount++}function _y(){x.lFrame.elementDepthCount--}function rl(){return x.bindingsEnabled}function Qd(){return x.skipHydrationRootTNode!==null}function wy(t){return x.skipHydrationRootTNode===t}function by(){x.skipHydrationRootTNode=null}function v(){return x.lFrame.lView}function H(){return x.lFrame.tView}function WA(t){return x.lFrame.contextLView=t,t[K]}function GA(t){return x.lFrame.contextLView=null,t}function re(){let t=Kd();for(;t!==null&&t.type===64;)t=t.parent;return t}function Kd(){return x.lFrame.currentTNode}function Dy(){let t=x.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function dt(t,e){let n=x.lFrame;n.currentTNode=t,n.isParent=e}function ol(){return x.lFrame.isParent}function il(){x.lFrame.isParent=!1}function Ty(){return x.lFrame.contextLView}function Zd(){return qs}function xo(t){let e=qs;return qs=t,e}function $e(){let t=x.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function My(){return x.lFrame.bindingIndex}function Sy(t){return x.lFrame.bindingIndex=t}function Vt(){return x.lFrame.bindingIndex++}function sl(t){let e=x.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function Cy(){return x.lFrame.inI18n}function Ny(t,e){let n=x.lFrame;n.bindingIndex=n.bindingRootIndex=t,zs(e)}function xy(){return x.lFrame.currentDirectiveIndex}function zs(t){x.lFrame.currentDirectiveIndex=t}function Ay(t){let e=x.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function al(){return x.lFrame.currentQueryIndex}function ai(t){x.lFrame.currentQueryIndex=t}function ky(t){let e=t[S];return e.type===2?e.declTNode:e.type===1?t[me]:null}function Yd(t,e,n){if(n&k.SkipSelf){let o=e,i=t;for(;o=o.parent,o===null&&!(n&k.Host);)if(o=ky(i),o===null||(i=i[vn],o.type&10))break;if(o===null)return!1;e=o,t=i}let r=x.lFrame=Jd();return r.currentTNode=e,r.lView=t,!0}function ll(t){let e=Jd(),n=t[S];x.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function Jd(){let t=x.lFrame,e=t===null?null:t.child;return e===null?Xd(t):e}function Xd(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 ef(){let t=x.lFrame;return x.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var tf=ef;function cl(){let t=ef();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 Ry(t){return(x.lFrame.contextLView=my(t,x.lFrame.contextLView))[K]}function Je(){return x.lFrame.selectedIndex}function Rt(t){x.lFrame.selectedIndex=t}function wn(){let t=x.lFrame;return Ja(t.tView,t.selectedIndex)}function QA(){x.lFrame.currentNamespace=qd}function Oy(){return x.lFrame.currentNamespace}var nf=!0;function li(){return nf}function ci(t){nf=t}function Py(t,e,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=e.type.prototype;if(r){let s=Bd(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 ul(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 yo(t,e,n){rf(t,e,3,n)}function vo(t,e,n,r){(t[b]&3)===n&&rf(t,e,n,r)}function Ds(t,e){let n=t[b];(n&3)===e&&(n&=16383,n+=1,t[b]=n)}function rf(t,e,n,r){let o=r!==void 0?t[rn]&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[rn]+=65536),(a<i||i==-1)&&(Fy(t,n,e,l),t[rn]=(t[rn]&4294901760)+l+2),l++}function vu(t,e){j(4,t,e);let n=C(null);try{e.call(t)}finally{C(n),j(5,t,e)}}function Fy(t,e,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=t[s];o?t[b]>>14<t[rn]>>16&&(t[b]&3)===e&&(t[b]+=16384,vu(a,i)):vu(a,i)}var ln=-1,Ot=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(e,n,r){this.factory=e,this.canSeeViewProviders=n,this.injectImpl=r}};function Ly(t){return(t.flags&8)!==0}function Vy(t){return(t.flags&16)!==0}function jy(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];Hy(i)?t.setProperty(e,i,s):t.setAttribute(e,i,s),r++}}return r}function of(t){return t===3||t===4||t===6}function Hy(t){return t.charCodeAt(0)===64}function fn(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?Eu(t,n,o,null,e[++r]):Eu(t,n,o,null,null))}}return t}function Eu(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 sf(t){return t!==ln}function Ao(t){return t&32767}function By(t){return t>>16}function ko(t,e){let n=By(t),r=e;for(;n>0;)r=r[vn],n--;return r}var Ws=!0;function Ro(t){let e=Ws;return Ws=t,e}var $y=256,af=$y-1,lf=5,Uy=0,Fe={};function qy(t,e,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Wn)&&(r=n[Wn]),r==null&&(r=n[Wn]=Uy++);let o=r&af,i=1<<o;e.data[t+(o>>lf)]|=i}function Oo(t,e){let n=cf(t,e);if(n!==-1)return n;let r=e[S];r.firstCreatePass&&(t.injectorIndex=e.length,Ts(r.data,t),Ts(e,null),Ts(r.blueprint,null));let o=dl(t,e),i=t.injectorIndex;if(sf(o)){let s=Ao(o),a=ko(o,e),l=a[S].data;for(let c=0;c<8;c++)e[i+c]=a[s+c]|l[s+c]}return e[i+8]=o,i}function Ts(t,e){t.push(0,0,0,0,0,0,0,0,e)}function cf(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function dl(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=hf(o),r===null)return ln;if(n++,o=o[vn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return ln}function Gs(t,e,n){qy(t,e,n)}function zy(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(of(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 uf(t,e,n){if(n&k.Optional||t!==void 0)return t;Qa(e,"NodeInjector")}function df(t,e,n,r){if(n&k.Optional&&r===void 0&&(r=null),(n&(k.Self|k.Host))===0){let o=t[Ct],i=he(void 0);try{return o?o.get(e,r,n&k.Optional):_d(e,r,n&k.Optional)}finally{he(i)}}return uf(r,e,n)}function ff(t,e,n,r=k.Default,o){if(t!==null){if(e[b]&2048&&!(r&k.Self)){let s=Ky(t,e,n,r,Fe);if(s!==Fe)return s}let i=pf(t,e,n,r,Fe);if(i!==Fe)return i}return df(e,n,r,o)}function pf(t,e,n,r,o){let i=Gy(n);if(typeof i=="function"){if(!Yd(e,t,r))return r&k.Host?uf(o,n,r):df(e,n,r,o);try{let s;if(s=i(r),s==null&&!(r&k.Optional))Qa(n);else return s}finally{tf()}}else if(typeof i=="number"){let s=null,a=cf(t,e),l=ln,c=r&k.Host?e[_e][me]:null;for((a===-1||r&k.SkipSelf)&&(l=a===-1?dl(t,e):e[a+8],l===ln||!_u(r,!1)?a=-1:(s=e[S],a=Ao(l),e=ko(l,e)));a!==-1;){let u=e[S];if(Iu(i,a,u.data)){let d=Wy(a,e,n,s,r,c);if(d!==Fe)return d}l=e[a+8],l!==ln&&_u(r,e[S].data[a+8]===c)&&Iu(i,a,e)?(s=u,a=Ao(l),e=ko(l,e)):a=-1}}return o}function Wy(t,e,n,r,o,i){let s=e[S],a=s.data[t+8],l=r==null?En(a)&&Ws:r!=s&&(a.type&3)!==0,c=o&k.Host&&i===a,u=Eo(a,s,n,l,c);return u!==null?Yn(e,s,u,a):Fe}function Eo(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&&Ve(f)&&f.type===n)return l}return null}function Yn(t,e,n,r){let o=t[n],i=e.data;if(o instanceof Ot){let s=o;s.resolving&&Ed(Fm(i[n]));let a=Ro(s.canSeeViewProviders);s.resolving=!0;let l,c=s.injectImpl?he(s.injectImpl):null,u=Yd(t,r,k.Default);try{o=t[n]=s.factory(void 0,i,t,r),e.firstCreatePass&&n>=r.directiveStart&&Py(n,i[n],e)}finally{c!==null&&he(c),Ro(a),s.resolving=!1,tf()}}return o}function Gy(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(Wn)?t[Wn]:void 0;return typeof e=="number"?e>=0?e&af:Qy:e}function Iu(t,e,n){let r=1<<t;return!!(n[e+(t>>lf)]&r)}function _u(t,e){return!(t&k.Self)&&!(t&k.Host&&e)}var Tt=class{_tNode;_lView;constructor(e,n){this._tNode=e,this._lView=n}get(e,n,r){return ff(this._tNode,this._lView,e,ni(r),n)}};function Qy(){return new Tt(re(),v())}function KA(t){return sr(()=>{let e=t.prototype.constructor,n=e[_o]||Qs(e),r=Object.prototype,o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==r;){let i=o[_o]||Qs(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Qs(t){return gd(t)?()=>{let e=Qs(X(t));return e&&e()}:St(t)}function Ky(t,e,n,r,o){let i=t,s=e;for(;i!==null&&s!==null&&s[b]&2048&&!No(s);){let a=pf(i,s,n,r|k.Self,Fe);if(a!==Fe)return a;let l=i.parent;if(!l){let c=s[Vd];if(c){let u=c.get(n,Fe,r);if(u!==Fe)return u}l=hf(s),s=s[vn]}i=l}return o}function hf(t){let e=t[S],n=e.type;return n===2?e.declTNode:n===1?t[me]:null}function ZA(t){return zy(re(),t)}function wu(t,e=null,n=null,r){let o=gf(t,e,n,r);return o.resolveInjectorInitializers(),o}function gf(t,e=null,n=null,r,o=new Set){let i=[n||ae,Jm(t)];return r=r||(typeof t=="object"?void 0:ge(t)),new Kn(i,e||ri(),r||null,o)}var Qe=class t{static THROW_IF_NOT_FOUND=Dt;static NULL=new Mo;static create(e,n){if(Array.isArray(e))return wu({name:""},n,e,"");{let r=e.name??"";return wu({name:r},e.parent,e.providers,r)}}static \u0275prov=q({token:t,providedIn:"any",factory:()=>Ie(Md)});static __NG_ELEMENT_ID__=-1};var Zy=new F("");Zy.__NG_ELEMENT_ID__=t=>{let e=re();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 mf=!1,ur=(()=>{class t{static __NG_ELEMENT_ID__=Yy;static __NG_ENV_ID__=n=>n}return t})(),Po=class extends ur{_lView;constructor(e){super(),this._lView=e}onDestroy(e){let n=this._lView;return In(n)?(e(),()=>{}):(Gd(n,e),()=>yy(n,e))}};function Yy(){return new Po(v())}var Pt=class{},yf=new F("",{providedIn:"root",factory:()=>!1});var vf=new F(""),Ef=new F(""),ui=(()=>{class t{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new Ln(!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 Ks=class extends be{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(e=!1){super(),this.__isAsync=e,Fd()&&(this.destroyRef=A(ur,{optional:!0})??void 0,this.pendingTasks=A(ui,{optional:!0})??void 0)}emit(e){let n=C(null);try{super.next(e)}finally{C(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 U&&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)}})}}},ot=Ks;function Jn(...t){}function If(t){let e,n;function r(){t=Jn;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=Jn}}var fl="isAngularZone",Fo=fl+"_ID",Jy=0,le=class t{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new ot(!1);onMicrotaskEmpty=new ot(!1);onStable=new ot(!1);onError=new ot(!1);constructor(e){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=mf}=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,tv(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(fl)===!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,Xy,Jn,Jn);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)}},Xy={};function pl(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 ev(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function e(){If(()=>{t.callbackScheduled=!1,Zs(t),t.isCheckStableRunning=!0,pl(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{e()}):t._outer.run(()=>{e()}),Zs(t)}function tv(t){let e=()=>{ev(t)},n=Jy++;t._inner=t._inner.fork({name:"angular",properties:{[fl]:!0,[Fo]:n,[Fo+n]:!0},onInvokeTask:(r,o,i,s,a,l)=>{if(nv(l))return r.invokeTask(i,s,a,l);try{return Du(t),r.invokeTask(i,s,a,l)}finally{(t.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),Tu(t)}},onInvoke:(r,o,i,s,a,l,c)=>{try{return Du(t),r.invoke(i,s,a,l,c)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!rv(l)&&e(),Tu(t)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(t._hasPendingMicrotasks=s.microTask,Zs(t),pl(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 Zs(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function Du(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Tu(t){t._nesting--,pl(t)}var Lo=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new ot;onMicrotaskEmpty=new ot;onStable=new ot;onError=new ot;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 nv(t){return _f(t,"__ignore_ng_zone__")}function rv(t){return _f(t,"__scheduler_tick__")}function _f(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 Lo:t==="zone.js"?new le(e):t}var ut=class{_console=console;handleError(e){this._console.error("ERROR",e)}},iv=new F("",{providedIn:"root",factory:()=>{let t=A(le),e=A(ut);return n=>t.runOutsideAngular(()=>e.handleError(n))}}),Vo=class{destroyed=!1;listeners=null;errorHandler=A(ut,{optional:!0});destroyRef=A(ur);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(ud(953,!1));return}if(this.listeners===null)return;let n=C(null);try{for(let r of this.listeners)try{r(e)}catch(o){this.errorHandler?.handleError(o)}}finally{C(n)}}};function YA(t){return new Vo}function Mu(t,e){return fd(t,e)}function sv(t){return fd(ei,t)}var JA=(Mu.required=sv,Mu);function av(){return bn(re(),v())}function bn(t,e){return new di(Be(t,e))}var di=(()=>{class t{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=av}return t})();function wf(t){return t instanceof di?t.nativeElement:t}function lv(t){return typeof t=="function"&&t[ie]!==void 0}function cv(t,e){let n=ns(t,e?.equal),r=n[ie];return n.set=o=>Wt(r,o),n.update=o=>rs(r,o),n.asReadonly=bf.bind(n),n}function bf(){let t=this[ie];if(t.readonlyFn===void 0){let e=()=>this();e[ie]=t,t.readonlyFn=e}return t.readonlyFn}function Df(t){return lv(t)&&typeof t.set=="function"}function uv(){return this._results[Symbol.iterator]()}var Ys=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 be}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=Wm(e);(this._changesDetected=!zm(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]=uv};function Tf(t){return(t.flags&128)===128}var Mf=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(Mf||{}),Sf=new Map,dv=0;function fv(){return dv++}function pv(t){Sf.set(t[oi],t)}function Js(t){Sf.delete(t[oi])}var Su="__ngContext__";function Dn(t,e){st(e)?(t[Su]=e[oi],pv(e)):t[Su]=e}function Cf(t){return xf(t[Zn])}function Nf(t){return xf(t[Ce])}function xf(t){for(;t!==null&&!Ye(t);)t=t[Ce];return t}var Xs;function XA(t){Xs=t}function Af(){if(Xs!==void 0)return Xs;if(typeof document<"u")return document;throw new m(210,!1)}var hv=new F("",{providedIn:"root",factory:()=>gv}),gv="ng",mv=new F(""),ek=new F("",{providedIn:"platform",factory:()=>"unknown"});var tk=new F(""),nk=new F("",{providedIn:"root",factory:()=>Af().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var yv="h",vv="b";var kf=!1,Ev=new F("",{providedIn:"root",factory:()=>kf});var hl=function(t){return t[t.CHANGE_DETECTION=0]="CHANGE_DETECTION",t[t.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",t}(hl||{}),fi=new F(""),Cu=new Set;function pi(t){Cu.has(t)||(Cu.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}var gl=(()=>{class t{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=Iv}return t})();function Iv(){return new gl(v(),re())}var on=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(on||{}),Rf=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=q({token:t,providedIn:"root",factory:()=>new t})}return t})(),_v=[on.EarlyRead,on.Write,on.MixedReadWrite,on.Read],wv=(()=>{class t{ngZone=A(le);scheduler=A(Pt);errorHandler=A(ut,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){A(fi,{optional:!0})}execute(){let n=this.sequences.size>0;n&&j(16),this.executing=!0;for(let r of _v)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&&j(17)}register(n){let{view:r}=n;r!==void 0?((r[an]??=[]).push(n),_n(r),r[b]|=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(hl.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?.[an];e&&(this.view[an]=e.filter(n=>n!==this))}};function bv(t,e){!e?.injector&&Ld(bv);let n=e?.injector??A(Qe);return pi("NgAfterNextRender"),Tv(t,n,e,!0)}function Dv(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 Tv(t,e,n,r){let o=e.get(Rf);o.impl??=e.get(wv);let i=e.get(fi,null,{optional:!0}),s=n?.phase??on.MixedReadWrite,a=n?.manualCleanup!==!0?e.get(ur):null,l=e.get(gl,null,{optional:!0}),c=new ea(o.impl,Dv(t,s),l?.view,r,a,i?.snapshot(null));return o.impl.register(c),c}var Mv=()=>null;function Of(t,e,n=!1){return Mv(t,e,n)}function Pf(t,e){let n=t.contentQueries;if(n!==null){let r=C(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];ai(i),a.contentQueries(2,e[s],s)}}}finally{C(r)}}}function ta(t,e,n){ai(0);let r=C(null);try{e(t,n)}finally{C(r)}}function ml(t,e,n){if(Ya(e)){let r=C(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{C(r)}}}var Xn=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(Xn||{}),uo;function Sv(){if(uo===void 0&&(uo=null,Qn.trustedTypes))try{uo=Qn.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return uo}function hi(t){return Sv()?.createHTML(t)||t}var fo;function Ff(){if(fo===void 0&&(fo=null,Qn.trustedTypes))try{fo=Qn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return fo}function Nu(t){return Ff()?.createHTML(t)||t}function xu(t){return Ff()?.createScriptURL(t)||t}var Ke=class{changingThisBreaksApplicationSecurity;constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${cd})`}},na=class extends Ke{getTypeName(){return"HTML"}},ra=class extends Ke{getTypeName(){return"Style"}},oa=class extends Ke{getTypeName(){return"Script"}},ia=class extends Ke{getTypeName(){return"URL"}},sa=class extends Ke{getTypeName(){return"ResourceURL"}};function Tn(t){return t instanceof Ke?t.changingThisBreaksApplicationSecurity:t}function yl(t,e){let n=Cv(t);if(n!=null&&n!==e){if(n==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${n} (see ${cd})`)}return n===e}function Cv(t){return t instanceof Ke&&t.getTypeName()||null}function rk(t){return new na(t)}function ok(t){return new ra(t)}function ik(t){return new oa(t)}function sk(t){return new ia(t)}function ak(t){return new sa(t)}function Nv(t){let e=new la(t);return xv()?new aa(e):e}var aa=class{inertDocumentHelper;constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{let n=new window.DOMParser().parseFromString(hi(e),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(e):(n.firstChild?.remove(),n)}catch{return null}}},la=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=hi(e),n}};function xv(){try{return!!new window.DOMParser().parseFromString(hi(""),"text/html")}catch{return!1}}var Av=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Lf(t){return t=String(t),t.match(Av)?t:"unsafe:"+t}function Xe(t){let e={};for(let n of t.split(","))e[n]=!0;return e}function dr(...t){let e={};for(let n of t)for(let r in n)n.hasOwnProperty(r)&&(e[r]=!0);return e}var Vf=Xe("area,br,col,hr,img,wbr"),jf=Xe("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Hf=Xe("rp,rt"),kv=dr(Hf,jf),Rv=dr(jf,Xe("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")),Ov=dr(Hf,Xe("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")),Au=dr(Vf,Rv,Ov,kv),Bf=Xe("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Pv=Xe("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"),Fv=Xe("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"),Lv=dr(Bf,Pv,Fv),Vv=Xe("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=Bv(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=Hv(n);if(i){n=i;break}n=o.pop()}}return this.buf.join("")}startElement(e){let n=ku(e).toLowerCase();if(!Au.hasOwnProperty(n))return this.sanitizedSomething=!0,!Vv.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(!Lv.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=i.value;Bf[a]&&(l=Lf(l)),this.buf.push(" ",s,'="',Ru(l),'"')}return this.buf.push(">"),!0}endElement(e){let n=ku(e).toLowerCase();Au.hasOwnProperty(n)&&!Vf.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(e){this.buf.push(Ru(e))}};function jv(t,e){return(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function Hv(t){let e=t.nextSibling;if(e&&t!==e.previousSibling)throw $f(e);return e}function Bv(t){let e=t.firstChild;if(e&&jv(t,e))throw $f(e);return e}function ku(t){let e=t.nodeName;return typeof e=="string"?e:"FORM"}function $f(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var $v=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Uv=/([^\#-~ |!])/g;function Ru(t){return t.replace(/&/g,"&amp;").replace($v,function(e){let n=e.charCodeAt(0),r=e.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(Uv,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var po;function qv(t,e){let n=null;try{po=po||Nv(t);let r=e?String(e):"";n=po.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=po.getInertBodyElement(r)}while(r!==i);let a=new ca().sanitizeChildren(Ou(n)||n);return hi(a)}finally{if(n){let r=Ou(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function Ou(t){return"content"in t&&zv(t)?t.content:null}function zv(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var gi=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}(gi||{});function lk(t){let e=vl();return e?Nu(e.sanitize(gi.HTML,t)||""):yl(t,"HTML")?Nu(Tn(t)):qv(Af(),Mt(t))}function Wv(t){let e=vl();return e?e.sanitize(gi.URL,t)||"":yl(t,"URL")?Tn(t):Lf(Mt(t))}function Gv(t){let e=vl();if(e)return xu(e.sanitize(gi.RESOURCE_URL,t)||"");if(yl(t,"ResourceURL"))return xu(Tn(t));throw new m(904,!1)}function Qv(t,e){return e==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||e==="href"&&(t==="base"||t==="link")?Gv:Wv}function ck(t,e,n){return Qv(e,n)(t)}function vl(){let t=v();return t&&t[We].sanitizer}var Kv=/^>|^->|<!--|-->|--!>|<!-$/g,Zv=/(<|>)/g,Yv="\u200B$1\u200B";function Jv(t){return t.replace(Kv,e=>e.replace(Zv,Yv))}function uk(t){return t.ownerDocument.defaultView}function Uf(t){return t instanceof Function?t():t}function Xv(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 qf="ng-template";function eE(t,e,n,r){let o=0;if(r){for(;o<e.length&&typeof e[o]=="string";o+=2)if(e[o]==="class"&&Xv(e[o+1].toLowerCase(),n,0)!==-1)return!0}else if(El(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 El(t){return t.type===4&&t.value!==qf}function tE(t,e,n){let r=t.type===4&&!n?qf:t.value;return e===r}function nE(t,e,n){let r=4,o=t.attrs,i=o!==null?iE(o):0,s=!1;for(let a=0;a<e.length;a++){let l=e[a];if(typeof l=="number"){if(!s&&!Se(r)&&!Se(l))return!1;if(s&&Se(l))continue;s=!1,r=l|r&1;continue}if(!s)if(r&4){if(r=2|r&1,l!==""&&!tE(t,l,n)||l===""&&e.length===1){if(Se(r))return!1;s=!0}}else if(r&8){if(o===null||!eE(t,o,l,n)){if(Se(r))return!1;s=!0}}else{let c=e[++a],u=rE(l,o,El(t),n);if(u===-1){if(Se(r))return!1;s=!0;continue}if(c!==""){let d;if(u>i?d="":d=o[u+1].toLowerCase(),r&2&&c!==d){if(Se(r))return!1;s=!0}}}}return Se(r)||s}function Se(t){return(t&1)===0}function rE(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 sE(e,t)}function zf(t,e,n=!1){for(let r=0;r<e.length;r++)if(nE(t,e[r],n))return!0;return!1}function oE(t){let e=t.attrs;if(e!=null){let n=e.indexOf(5);if((n&1)===0)return e[n+1]}return null}function iE(t){for(let e=0;e<t.length;e++){let n=t[e];if(of(n))return e}return t.length}function sE(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 aE(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 Pu(t,e){return t?":not("+e.trim()+")":e}function lE(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!==""&&!Se(s)&&(e+=Pu(i,o),o=""),r=s,i=i||!Se(r);n++}return o!==""&&(e+=Pu(i,o)),e}function cE(t){return t.map(lE).join(",")}function uE(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(!Se(o))break;o=i}r++}return n.length&&e.push(1,...n),e}var ue={};function dE(t,e){return t.createText(e)}function fE(t,e,n){t.setValue(e,n)}function pE(t,e){return t.createComment(Jv(e))}function Wf(t,e,n){return t.createElement(e,n)}function jo(t,e,n,r,o){t.insertBefore(e,n,r,o)}function Gf(t,e,n){t.appendChild(e,n)}function Fu(t,e,n,r,o){r!==null?jo(t,e,n,r,o):Gf(t,e,n)}function hE(t,e,n){t.removeChild(null,e,n)}function gE(t,e,n){t.setAttribute(e,"style",n)}function mE(t,e,n){n===""?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n)}function Qf(t,e,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&jy(t,e,r),o!==null&&mE(t,e,o),i!==null&&gE(t,e,i)}function Il(t,e,n,r,o,i,s,a,l,c,u){let d=z+r,p=d+o,f=yE(d,p),h=typeof c=="function"?c():c;return f[S]={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 yE(t,e){let n=[];for(let r=0;r<e;r++)n.push(r<t?null:ue);return n}function vE(t){let e=t.tView;return e===null||e.incompleteFirstPass?t.tView=Il(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):e}function _l(t,e,n,r,o,i,s,a,l,c,u){let d=e.blueprint.slice();return d[Ze]=o,d[b]=r|4|128|8|64|1024,(c!==null||t&&t[b]&2048)&&(d[b]|=2048),Wd(d),d[ne]=d[vn]=t,d[K]=n,d[We]=s||t&&t[We],d[B]=a||t&&t[B],d[Ct]=l||t&&t[Ct]||null,d[me]=i,d[oi]=fv(),d[un]=u,d[Vd]=c,d[_e]=e.type==2?t[_e]:d,d}function EE(t,e,n){let r=Be(e,t),o=vE(n),i=t[We].rendererFactory,s=wl(t,_l(t,o,null,Kf(n),r,e,null,i.createRenderer(r,n),null,null,null));return t[e.index]=s}function Kf(t){let e=16;return t.signals?e=4096:t.onPush&&(e=64),e}function Zf(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 wl(t,e){return t[Zn]?t[mu][Ce]=e:t[Zn]=e,t[mu]=e,e}function dk(t=1){Yf(H(),v(),Je()+t,!1)}function Yf(t,e,n,r){if(!r)if((e[b]&3)===3){let i=t.preOrderCheckHooks;i!==null&&yo(e,i,n)}else{let i=t.preOrderHooks;i!==null&&vo(e,i,0,n)}Rt(n)}var mi=function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t}(mi||{});function ua(t,e,n,r){let o=C(null);try{let[i,s,a]=t.inputs[n],l=null;(s&mi.SignalBased)!==0&&(l=e[i][ie]),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):Hd(e,l,i,r)}finally{C(o)}}function Jf(t,e,n,r,o){let i=Je(),s=r&2;try{Rt(-1),s&&e.length>z&&Yf(t,e,z,!1),j(s?2:0,o),n(r,o)}finally{Rt(i),j(s?3:1,o)}}function yi(t,e,n){TE(t,e,n),(n.flags&64)===64&&ME(t,e,n)}function bl(t,e,n=Be){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 IE(t,e,n,r){let i=r.get(Ev,kf)||n===Xn.ShadowDom,s=t.selectRootElement(e,i);return _E(s),s}function _E(t){wE(t)}var wE=()=>null;function bE(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function fr(t,e,n,r,o,i,s,a){if(!a&&Tl(e,t,n,r,o)){En(e)&&DE(n,e.index);return}if(e.type&3){let l=Be(e,n);r=bE(r),o=s!=null?s(o,e.value||"",r):o,i.setProperty(l,r,o)}else e.type&12}function DE(t,e){let n=He(e,t);n[b]&16||(n[b]|=64)}function TE(t,e,n){let r=n.directiveStart,o=n.directiveEnd;En(n)&&EE(e,n,t.data[r+n.componentOffset]),t.firstCreatePass||Oo(n,e);let i=n.initialInputs;for(let s=r;s<o;s++){let a=t.data[s],l=Yn(e,t,s,n);if(Dn(l,e),i!==null&&xE(e,s-r,l,a,n,i),Ve(a)){let c=He(n.index,e);c[K]=Yn(e,t,s,n)}}}function ME(t,e,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=xy();try{Rt(i);for(let a=r;a<o;a++){let l=t.data[a],c=e[a];zs(a),(l.hostBindings!==null||l.hostVars!==0||l.hostAttrs!==null)&&SE(l,c)}}finally{Rt(-1),zs(s)}}function SE(t,e){t.hostBindings!==null&&t.hostBindings(1,e)}function Dl(t,e){let n=t.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];zf(e,i.selectors,!1)&&(r??=[],Ve(i)?r.unshift(i):r.push(i))}return r}function CE(t,e,n,r,o,i){let s=Be(t,e);NE(e[B],s,i,t.value,n,r,o)}function NE(t,e,n,r,o,i,s){if(i==null)t.removeAttribute(e,o,n);else{let a=s==null?Mt(i):s(i,r||"",o);t.setAttribute(e,o,a,n)}}function xE(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];ua(r,n,l,c)}}function AE(t,e){let n=t[Ct],r=n?n.get(ut,null):null;r&&r.handleError(e)}function Tl(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];ua(d,n[c],u,o),a=!0}if(i)for(let l of i){let c=n[l],u=e.data[l];ua(u,c,r,o),a=!0}return a}function kE(t,e){let n=He(e,t),r=n[S];RE(r,n);let o=n[Ze];o!==null&&n[un]===null&&(n[un]=Of(o,n[Ct])),j(18),Ml(r,n,n[K]),j(19,n[K])}function RE(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}function Ml(t,e,n){ll(e);try{let r=t.viewQuery;r!==null&&ta(1,r,n);let o=t.template;o!==null&&Jf(t,e,o,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),e[Ge]?.finishViewCreation(t),t.staticContentQueries&&Pf(t,e),t.staticViewQueries&&ta(2,t.viewQuery,n);let i=t.components;i!==null&&OE(e,i)}catch(r){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),r}finally{e[b]&=-5,cl()}}function OE(t,e){for(let n=0;n<e.length;n++)kE(t,e[n])}function pr(t,e,n,r){let o=C(null);try{let i=e.tView,a=t[b]&4096?4096:16,l=_l(t,i,n,a,null,e,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),c=t[e.index];l[Nt]=c;let u=t[Ge];return u!==null&&(l[Ge]=u.createEmbeddedView(i)),Ml(i,l,n),l}finally{C(o)}}function pn(t,e){return!e||e.firstChild===null||Tf(t)}var PE;function Sl(t,e){return PE(t,e)}var da=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(da||{});function Cl(t){return(t.flags&32)===32}function sn(t,e,n,r,o){if(r!=null){let i,s=!1;Ye(r)?i=r:st(r)&&(s=!0,r=r[Ze]);let a=je(r);t===0&&n!==null?o==null?Gf(e,n,a):jo(e,n,a,o||null,!0):t===1&&n!==null?jo(e,n,a,o||null,!0):t===2?hE(e,a,s):t===3&&e.destroyNode(a),i!=null&&zE(e,t,i,n,o)}}function FE(t,e){Xf(t,e),e[Ze]=null,e[me]=null}function LE(t,e,n,r,o,i){r[Ze]=o,r[me]=e,Ii(t,r,n,1,o,i)}function Xf(t,e){e[We].changeDetectionScheduler?.notify(9),Ii(t,e,e[B],2,null,null)}function VE(t){let e=t[Zn];if(!e)return Ms(t[S],t);for(;e;){let n=null;if(st(e))n=e[Zn];else{let r=e[te];r&&(n=r)}if(!n){for(;e&&!e[Ce]&&e!==t;)st(e)&&Ms(e[S],e),e=e[ne];e===null&&(e=t),st(e)&&Ms(e[S],e),n=e&&e[Ce]}e=n}}function Nl(t,e){let n=t[dn],r=n.indexOf(e);n.splice(r,1)}function vi(t,e){if(In(e))return;let n=e[B];n.destroyNode&&Ii(t,e,n,3,null,null),VE(e)}function Ms(t,e){if(In(e))return;let n=C(null);try{e[b]&=-129,e[b]|=256,e[De]&&On(e[De]),HE(t,e),jE(t,e),e[S].type===1&&e[B].destroy();let r=e[Nt];if(r!==null&&Ye(e[ne])){r!==e[ne]&&Nl(r,e);let o=e[Ge];o!==null&&o.detachView(t)}Js(e)}finally{C(n)}}function jE(t,e){let n=t.cleanup,r=e[So];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[So]=null);let o=e[it];if(o!==null){e[it]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=e[xt];if(i!==null){e[xt]=null;for(let s of i)s.destroy()}}function HE(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 Ot)){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];j(4,a,l);try{l.call(a)}finally{j(5,a,l)}}else{j(4,o,i);try{i.call(o)}finally{j(5,o,i)}}}}}function ep(t,e,n){return BE(t,e.parent,n)}function BE(t,e,n){let r=e;for(;r!==null&&r.type&168;)e=r,r=e.parent;if(r===null)return n[Ze];if(En(r)){let{encapsulation:o}=t.data[r.directiveStart+r.componentOffset];if(o===Xn.None||o===Xn.Emulated)return null}return Be(r,n)}function tp(t,e,n){return UE(t,e,n)}function $E(t,e,n){return t.type&40?Be(t,n):null}var UE=$E,Lu;function Ei(t,e,n,r){let o=ep(t,r,e),i=e[B],s=r.parent||e[me],a=tp(s,r,e);if(o!=null)if(Array.isArray(n))for(let l=0;l<n.length;l++)Fu(i,o,n[l],a,!1);else Fu(i,o,n,a,!1);Lu!==void 0&&Lu(i,r,e,n,o)}function zn(t,e){if(e!==null){let n=e.type;if(n&3)return Be(e,t);if(n&4)return fa(-1,t[e.index]);if(n&8){let r=e.child;if(r!==null)return zn(t,r);{let o=t[e.index];return Ye(o)?fa(-1,o):je(o)}}else{if(n&128)return zn(t,e.next);if(n&32)return Sl(e,t)()||je(t[e.index]);{let r=np(t,e);if(r!==null){if(Array.isArray(r))return r[0];let o=kt(t[_e]);return zn(o,r)}else return zn(t,e.next)}}}return null}function np(t,e){if(e!==null){let r=t[_e][me],o=e.projection;return r.projection[o]}return null}function fa(t,e){let n=te+t+1;if(n<e.length){let r=e[n],o=r[S].firstChild;if(o!==null)return zn(r,o)}return e[At]}function xl(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&&Dn(je(a),r),n.flags|=2),!Cl(n))if(l&8)xl(t,e,n.child,r,o,i,!1),sn(e,t,o,a,i);else if(l&32){let c=Sl(n,r),u;for(;u=c();)sn(e,t,o,u,i);sn(e,t,o,a,i)}else l&16?rp(t,e,r,n,o,i):sn(e,t,o,a,i);n=s?n.projectionNext:n.next}}function Ii(t,e,n,r,o,i){xl(n,r,t.firstChild,e,o,i,!1)}function qE(t,e,n){let r=e[B],o=ep(t,n,e),i=n.parent||e[me],s=tp(i,n,e);rp(r,0,e,n,o,s)}function rp(t,e,n,r,o,i){let s=n[_e],l=s[me].projection[r.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++){let u=l[c];sn(e,t,o,u,i)}else{let c=l,u=s[ne];Tf(r)&&(c.flags|=128),xl(t,e,c,u,o,i,!0)}}function zE(t,e,n,r,o){let i=n[At],s=je(n);i!==s&&sn(e,t,r,i,o);for(let a=te;a<n.length;a++){let l=n[a];Ii(l[S],l,t,e,r,i)}}function WE(t,e,n,r,o){if(e)o?t.addClass(n,r):t.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:da.DashCase;o==null?t.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=da.Important),t.setStyle(n,r,o,i))}}function Ho(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(je(i)),Ye(i)&&GE(i,r);let s=n.type;if(s&8)Ho(t,e,n.child,r);else if(s&32){let a=Sl(n,e),l;for(;l=a();)r.push(l)}else if(s&16){let a=np(e,n);if(Array.isArray(a))r.push(...a);else{let l=kt(e[_e]);Ho(l[S],l,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function GE(t,e){for(let n=te;n<t.length;n++){let r=t[n],o=r[S].firstChild;o!==null&&Ho(r[S],r,o,e)}t[At]!==t[Ze]&&e.push(t[At])}function op(t){if(t[an]!==null){for(let e of t[an])e.impl.addSequence(e);t[an].length=0}}var ip=[];function QE(t){return t[De]??KE(t)}function KE(t){let e=ip.pop()??Object.create(YE);return e.lView=t,e}function ZE(t){t.lView[De]!==t&&(t.lView=null,ip.push(t))}var YE=fe(W({},qt),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{_n(t.lView)},consumerOnSignalRead(){this.lView[De]=this}});function JE(t){let e=t[De]??Object.create(XE);return e.lView=t,e}var XE=fe(W({},qt),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let e=kt(t.lView);for(;e&&!sp(e[S]);)e=kt(e);e&&el(e)},consumerOnSignalRead(){this.lView[De]=this}});function sp(t){return t.type!==2}function ap(t){if(t[xt]===null)return;let e=!0;for(;e;){let n=!1;for(let r of t[xt])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));e=n&&!!(t[b]&8192)}}var eI=100;function lp(t,e=!0,n=0){let o=t[We].rendererFactory,i=!1;i||o.begin?.();try{tI(t,n)}catch(s){throw e&&AE(t,s),s}finally{i||o.end?.()}}function tI(t,e){let n=Zd();try{xo(!0),pa(t,e);let r=0;for(;cr(t);){if(r===eI)throw new m(103,!1);r++,pa(t,1)}}finally{xo(n)}}function nI(t,e,n,r){if(In(e))return;let o=e[b],i=!1,s=!1;ll(e);let a=!0,l=null,c=null;i||(sp(t)?(c=QE(e),l=Rn(c)):Yi()===null?(a=!1,c=JE(e),l=Rn(c)):e[De]&&(On(e[De]),e[De]=null));try{Wd(e),Sy(t.bindingStartIndex),n!==null&&Jf(t,e,n,2,r);let u=(o&3)===3;if(!i)if(u){let f=t.preOrderCheckHooks;f!==null&&yo(e,f,null)}else{let f=t.preOrderHooks;f!==null&&vo(e,f,0,null),Ds(e,0)}if(s||rI(e),ap(e),cp(e,0),t.contentQueries!==null&&Pf(t,e),!i)if(u){let f=t.contentCheckHooks;f!==null&&yo(e,f)}else{let f=t.contentHooks;f!==null&&vo(e,f,1),Ds(e,1)}iI(t,e);let d=t.components;d!==null&&dp(e,d,0);let p=t.viewQuery;if(p!==null&&ta(2,p,r),!i)if(u){let f=t.viewCheckHooks;f!==null&&yo(e,f)}else{let f=t.viewHooks;f!==null&&vo(e,f,2),Ds(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[bs]){for(let f of e[bs])f();e[bs]=null}i||(op(e),e[b]&=-73)}catch(u){throw i||_n(e),u}finally{c!==null&&(Cr(c,l),a&&ZE(c)),cl()}}function cp(t,e){for(let n=Cf(t);n!==null;n=Nf(n))for(let r=te;r<n.length;r++){let o=n[r];up(o,e)}}function rI(t){for(let e=Cf(t);e!==null;e=Nf(e)){if(!(e[b]&2))continue;let n=e[dn];for(let r=0;r<n.length;r++){let o=n[r];el(o)}}}function oI(t,e,n){j(18);let r=He(e,t);up(r,n),j(19,r[K])}function up(t,e){Xa(t)&&pa(t,e)}function pa(t,e){let r=t[S],o=t[b],i=t[De],s=!!(e===0&&o&16);if(s||=!!(o&64&&e===0),s||=!!(o&1024),s||=!!(i?.dirty&&Nr(i)),s||=!1,i&&(i.dirty=!1),t[b]&=-9217,s)nI(r,t,r.template,t[K]);else if(o&8192){ap(t),cp(t,1);let a=r.components;a!==null&&dp(t,a,1),op(t)}}function dp(t,e,n){for(let r=0;r<e.length;r++)oI(t,e[r],n)}function iI(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)Rt(~o);else{let i=o,s=n[++r],a=n[++r];Ny(s,i);let l=e[i];j(24,l),a(2,l),j(25,l)}}}finally{Rt(-1)}}function Al(t,e){let n=Zd()?64:1088;for(t[We].changeDetectionScheduler?.notify(e);t;){t[b]|=n;let r=kt(t);if(No(t)&&!r)return t;t=r}return null}function fp(t,e,n,r){return[t,!0,0,e,null,r,null,n,null,null]}function pp(t,e){let n=te+e;if(n<t.length)return t[n]}function hr(t,e,n,r=!0){let o=e[S];if(sI(o,e,t,n),r){let s=fa(n,t),a=e[B],l=a.parentNode(t[At]);l!==null&&LE(o,t[me],a,e,l,s)}let i=e[un];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function hp(t,e){let n=er(t,e);return n!==void 0&&vi(n[S],n),n}function er(t,e){if(t.length<=te)return;let n=te+e,r=t[n];if(r){let o=r[Nt];o!==null&&o!==t&&Nl(o,r),e>0&&(t[n-1][Ce]=r[Ce]);let i=Do(t,te+e);FE(r[S],r);let s=i[Ge];s!==null&&s.detachView(i[S]),r[ne]=null,r[Ce]=null,r[b]&=-129}return r}function sI(t,e,n,r){let o=te+r,i=n.length;r>0&&(n[o-1][Ce]=e),r<i-te?(e[Ce]=n[o],Td(n,te+r,e)):(n.push(e),e[Ce]=null),e[ne]=n;let s=e[Nt];s!==null&&n!==s&&gp(s,e);let a=e[Ge];a!==null&&a.insertView(t),Us(e),e[b]|=128}function gp(t,e){let n=t[dn],r=e[ne];if(st(r))t[b]|=2;else{let o=r[ne][_e];e[_e]!==o&&(t[b]|=2)}n===null?t[dn]=[e]:n.push(e)}var tr=class{_lView;_cdRefInjectingView;notifyErrorHandler;_appRef=null;_attachedToViewContainer=!1;get rootNodes(){let e=this._lView,n=e[S];return Ho(n,e,n.firstChild,[])}constructor(e,n,r=!0){this._lView=e,this._cdRefInjectingView=n,this.notifyErrorHandler=r}get context(){return this._lView[K]}set context(e){this._lView[K]=e}get destroyed(){return In(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let e=this._lView[ne];if(Ye(e)){let n=e[Co],r=n?n.indexOf(this):-1;r>-1&&(er(e,r),Do(n,r))}this._attachedToViewContainer=!1}vi(this._lView[S],this._lView)}onDestroy(e){Gd(this._lView,e)}markForCheck(){Al(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[b]&=-129}reattach(){Us(this._lView),this._lView[b]|=128}detectChanges(){this._lView[b]|=1024,lp(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new m(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=No(this._lView),n=this._lView[Nt];n!==null&&!e&&Nl(n,this._lView),Xf(this._lView[S],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new m(902,!1);this._appRef=e;let n=No(this._lView),r=this._lView[Nt];r!==null&&!n&&gp(r,this._lView),Us(this._lView)}};function pk(t){return cr(t._lView)||!!(t._lView[b]&64)}function hk(t){el(t._cdRefInjectingView||t._lView)}var Bo=(()=>{class t{static __NG_ELEMENT_ID__=cI}return t})(),aI=Bo,lI=class extends aI{_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=pr(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:n,dehydratedView:r});return new tr(o)}};function cI(){return _i(re(),v())}function _i(t,e){return t.type&4?new lI(e,t,bn(t,e)):null}function Mn(t,e,n,r,o){let i=t.data[e];if(i===null)i=uI(t,e,n,r,o),Cy()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=Dy();i.injectorIndex=s===null?-1:s.injectorIndex}return dt(i,!0),i}function uI(t,e,n,r,o){let i=Kd(),s=ol(),a=s?i:i&&i.parent,l=t.data[e]=fI(t,a,n,e,r,o);return dI(t,l,i,s),l}function dI(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 fI(t,e,n,r,o,i){let s=e?e.injectorIndex:-1,a=0;return Qd()&&(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 mk=new RegExp(`^(\\d+)*(${vv}|${yv})*(.*)`);var pI=()=>null;function hn(t,e){return pI(t,e)}var hI=class{},mp=class{},ha=class{resolveComponentFactory(e){throw Error(`No component factory found for ${ge(e)}.`)}},wi=class{static NULL=new ha},$o=class{},Ik=(()=>{class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>gI()}return t})();function gI(){let t=v(),e=re(),n=He(e.index,t);return(st(n)?n:t)[B]}var mI=(()=>{class t{static \u0275prov=q({token:t,providedIn:"root",factory:()=>null})}return t})();var Ss={},ga=class{injector;parentInjector;constructor(e,n){this.injector=e,this.parentInjector=n}get(e,n,r){r=ni(r);let o=this.injector.get(e,Ss,r);return o!==Ss||n===Ss?o:this.parentInjector.get(e,n,r)}};function ma(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=Ps(o,a);else if(i==2){let l=a,c=e[++s];r=Ps(r,l+": "+c+";")}}n?t.styles=r:t.stylesWithoutHost=r,n?t.classes=o:t.classesWithoutHost=o}function bi(t,e=k.Default){let n=v();if(n===null)return Ie(t,e);let r=re();return ff(r,n,X(t),e)}function _k(){let t="invalid";throw new Error(t)}function kl(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=vI(s);u===null?a=s:[a,l,c]=u,_I(t,e,n,a,i,l,c)}i!==null&&r!==null&&yI(n,r,i)}function yI(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 vI(t){let e=null,n=!1;for(let s=0;s<t.length;s++){let a=t[s];if(s===0&&Ve(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,EI(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 EI(t,e,n,r){let o=e.length;t.findHostDirectiveDefs(t,e,r),n.set(t,[o,e.length-1])}function II(t,e,n){e.componentOffset=n,(t.components??=[]).push(e.index)}function _I(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&&Ve(f)&&(l=!0,II(t,n,p)),Gs(Oo(n,e),t,f.type)}SI(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=Zf(t,e,a,null);a>0&&(n.directiveToIndex=new Map);for(let p=0;p<a;p++){let f=r[p];if(n.mergedAttrs=fn(n.mergedAttrs,f.hostAttrs),bI(t,n,e,d,f),MI(d,f,o),s!==null&&s.has(f)){let[g,_]=s.get(f);n.directiveToIndex.set(f.type,[d,g+n.directiveStart,_+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++}wI(t,n,i)}function wI(t,e,n){for(let r=e.directiveStart;r<e.directiveEnd;r++){let o=t.data[r];if(n===null||!n.has(o))Vu(0,e,o,r),Vu(1,e,o,r),Hu(e,r,!1);else{let i=n.get(o);ju(0,e,i,r),ju(1,e,i,r),Hu(e,r,!0)}}}function Vu(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),yp(e,i)}}function ju(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),yp(e,s)}}function yp(t,e){e==="class"?t.flags|=8:e==="style"&&(t.flags|=16)}function Hu(t,e,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=t;if(r===null||!n&&o===null||n&&i===null||El(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 bI(t,e,n,r,o){t.data[r]=o;let i=o.factory||(o.factory=St(o.type,!0)),s=new Ot(i,Ve(o),bi);t.blueprint[r]=s,n[r]=s,DI(t,e,r,Zf(t,n,o.hostVars,ue),o)}function DI(t,e,n,r,o){let i=o.hostBindings;if(i){let s=t.hostBindingOpCodes;s===null&&(s=t.hostBindingOpCodes=[]);let a=~e.index;TI(s)!=a&&s.push(a),s.push(n,r,i)}}function TI(t){let e=t.length;for(;e>0;){let n=t[--e];if(typeof n=="number"&&n<0)return n}return 0}function MI(t,e,n){if(n){if(e.exportAs)for(let r=0;r<e.exportAs.length;r++)n[e.exportAs[r]]=t;Ve(e)&&(n[""]=t)}}function SI(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function vp(t,e,n,r,o,i,s,a){let l=e.consts,c=ct(l,s),u=Mn(e,t,2,r,c);return i&&kl(e,n,u,ct(l,a),o),u.mergedAttrs=fn(u.mergedAttrs,u.attrs),u.attrs!==null&&ma(u,u.attrs,!1),u.mergedAttrs!==null&&ma(u,u.mergedAttrs,!0),e.queries!==null&&e.queries.elementStart(e,u),u}function Ep(t,e){ul(t,e),Ya(e)&&t.queries.elementEnd(e)}var Uo=class extends wi{ngModule;constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){let n=at(e);return new Ft(n,this.ngModule)}};function CI(t){return Object.keys(t).map(e=>{let[n,r,o]=t[e],i={propName:n,templateName:e,isSignal:(r&mi.SignalBased)!==0};return o&&(i.transform=o),i})}function NI(t){return Object.keys(t).map(e=>({propName:t[e],templateName:e}))}function xI(t,e,n){let r=e instanceof lt?e:e?.injector;return r&&t.getStandaloneInjector!==null&&(r=t.getStandaloneInjector(r)||r),r?new ga(n,r):n}function AI(t){let e=t.get($o,null);if(e===null)throw new m(407,!1);let n=t.get(mI,null),r=t.get(Pt,null);return{rendererFactory:e,sanitizer:n,changeDetectionScheduler:r}}function kI(t,e){let n=(t.selectors[0][0]||"div").toLowerCase();return Wf(e,n,n==="svg"?qd:n==="math"?py:null)}var Ft=class extends mp{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=CI(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=NI(this.componentDef.outputs),this.cachedOutputs}constructor(e,n){super(),this.componentDef=e,this.ngModule=n,this.componentType=e.type,this.selector=cE(e.selectors),this.ngContentSelectors=e.ngContentSelectors??[],this.isBoundToModule=!!n}create(e,n,r,o){j(22);let i=C(null);try{let s=this.componentDef,a=r?["ng-version","19.2.9"]:uE(this.componentDef.selectors[0]),l=Il(0,null,null,1,0,null,null,null,null,[a],null),c=xI(s,o||this.ngModule,e),u=AI(c),d=u.rendererFactory.createRenderer(null,s),p=r?IE(d,r,s.encapsulation,c):kI(s,d),f=_l(null,l,null,512|Kf(s),null,null,u,d,c,null,Of(p,c,!0));f[z]=p,ll(f);let h=null;try{let g=vp(z,l,f,"#host",()=>[this.componentDef],!0,0);p&&(Qf(d,p,g),Dn(p,f)),yi(l,f,g),ml(l,g,f),Ep(l,g),n!==void 0&&RI(g,this.ngContentSelectors,n),h=He(g.index,f),f[K]=h[K],Ml(l,f,null)}catch(g){throw h!==null&&Js(h),Js(f),g}finally{j(23),cl()}return new ya(this.componentType,f)}finally{C(i)}}},ya=class extends hI{_rootLView;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(e,n){super(),this._rootLView=n,this._tNode=Ja(n[S],z),this.location=bn(this._tNode,n),this.instance=He(this._tNode.index,n)[K],this.hostView=this.changeDetectorRef=new tr(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=Tl(r,o[S],o,e,n);this.previousInputValues.set(e,n);let s=He(r.index,o);Al(s,1)}get injector(){return new Tt(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}};function RI(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 Rl=(()=>{class t{static __NG_ELEMENT_ID__=OI}return t})();function OI(){let t=re();return _p(t,v())}var PI=Rl,Ip=class extends PI{_lContainer;_hostTNode;_hostLView;constructor(e,n,r){super(),this._lContainer=e,this._hostTNode=n,this._hostLView=r}get element(){return bn(this._hostTNode,this._hostLView)}get injector(){return new Tt(this._hostTNode,this._hostLView)}get parentInjector(){let e=dl(this._hostTNode,this._hostLView);if(sf(e)){let n=ko(e,this._hostLView),r=Ao(e),o=n[S].data[r+8];return new Tt(o,n)}else return new Tt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let n=Bu(this._lContainer);return n!==null&&n[e]||null}get length(){return this._lContainer.length-te}createEmbeddedView(e,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=hn(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,pn(this._hostTNode,s)),a}createComponent(e,n,r,o,i){let s=e&&!cy(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 Ft(at(e)),c=r||this.parentInjector;if(!i&&l.ngModule==null){let g=(s?c:this.parentInjector).get(lt,null);g&&(i=g)}let u=at(l.componentType??{}),d=hn(this._lContainer,u?.id??null),p=d?.firstChild??null,f=l.create(c,o,p,i);return this.insertImpl(f.hostView,a,pn(this._hostTNode,d)),f}insert(e,n){return this.insertImpl(e,n,!0)}insertImpl(e,n,r){let o=e._lView;if(gy(o)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let l=o[ne],c=new Ip(l,l[me],l[ne]);c.detach(c.indexOf(e))}}let i=this._adjustIndex(n),s=this._lContainer;return hr(s,o,i,r),e.attachToViewContainerRef(),Td(Cs(s),i,e),e}move(e,n){return this.insert(e,n)}indexOf(e){let n=Bu(this._lContainer);return n!==null?n.indexOf(e):-1}remove(e){let n=this._adjustIndex(e,-1),r=er(this._lContainer,n);r&&(Do(Cs(this._lContainer),n),vi(r[S],r))}detach(e){let n=this._adjustIndex(e,-1),r=er(this._lContainer,n);return r&&Do(Cs(this._lContainer),n)!=null?new tr(r):null}_adjustIndex(e,n=0){return e??this.length+n}};function Bu(t){return t[Co]}function Cs(t){return t[Co]||(t[Co]=[])}function _p(t,e){let n,r=e[t.index];return Ye(r)?n=r:(n=fp(r,e,null,t),e[t.index]=n,wl(e,n)),LI(n,e,t,r),new Ip(n,t,e)}function FI(t,e){let n=t[B],r=n.createComment(""),o=Be(e,t),i=n.parentNode(o);return jo(n,i,r,n.nextSibling(o),!1),r}var LI=HI,VI=()=>!1;function jI(t,e,n){return VI(t,e,n)}function HI(t,e,n,r){if(t[At])return;let o;n.type&8?o=je(r):o=FI(e,n),t[At]=o}var va=class t{queryList;matches=null;constructor(e){this.queryList=e}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},Ea=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++)Pl(e,n).matches!==null&&this.queries[n].setDirty()}},qo=class{flags;read;predicate;constructor(e,n,r=null){this.flags=n,this.read=r,typeof e=="string"?this.predicate=zI(e):this.predicate=e}},Ia=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)}},_a=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,BI(n,i)),this.matchTNodeWithReadOption(e,n,Eo(n,e,i,!1,!1))}else r===Bo?n.type&4&&this.matchTNodeWithReadOption(e,n,-1):this.matchTNodeWithReadOption(e,n,Eo(n,e,r,!1,!1))}matchTNodeWithReadOption(e,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===di||o===Rl||o===Bo&&n.type&4)this.addMatch(n.index,-2);else{let i=Eo(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 BI(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 $I(t,e){return t.type&11?bn(t,e):t.type&4?_i(t,e):null}function UI(t,e,n,r){return n===-1?$I(e,t):n===-2?qI(t,e,r):Yn(t,t[S],n,e)}function qI(t,e,n){if(n===di)return bn(e,t);if(n===Bo)return _i(e,t);if(n===Rl)return _p(e,t)}function wp(t,e,n,r){let o=e[Ge].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(UI(e,u,s[l+1],n.metadata.read))}}o.matches=a}return o.matches}function wa(t,e,n,r){let o=t.queries.getByIndex(n),i=o.matches;if(i!==null){let s=wp(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=te;d<u.length;d++){let p=u[d];p[Nt]===p[ne]&&wa(p[S],p,c,r)}if(u[dn]!==null){let d=u[dn];for(let p=0;p<d.length;p++){let f=d[p];wa(f[S],f,c,r)}}}}}return r}function Ol(t,e){return t[Ge].queries[e].queryList}function bp(t,e,n){let r=new Ys((n&4)===4);return vy(t,e,r,r.destroy),(e[Ge]??=new Ea).queries.push(new va(r))-1}function Dp(t,e,n){let r=H();return r.firstCreatePass&&(Mp(r,new qo(t,e,n),-1),(e&2)===2&&(r.staticViewQueries=!0)),bp(r,v(),e)}function Tp(t,e,n,r){let o=H();if(o.firstCreatePass){let i=re();Mp(o,new qo(e,n,r),i.index),WI(o,t),(n&2)===2&&(o.staticContentQueries=!0)}return bp(o,v(),n)}function zI(t){return t.split(",").map(e=>e.trim())}function Mp(t,e,n){t.queries===null&&(t.queries=new Ia),t.queries.track(new _a(e,n))}function WI(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 Pl(t,e){return t.queries.getByIndex(e)}function Sp(t,e){let n=t[S],r=Pl(n,e);return r.crossesNgTemplate?wa(n,t,e,[]):wp(n,t,r,e)}function Cp(t,e,n){let r,o=kr(()=>{r._dirtyCounter();let i=GI(r,t);if(e&&i===void 0)throw new m(-951,!1);return i});return r=o[ie],r._dirtyCounter=cv(0),r._flatValue=void 0,o}function Np(t){return Cp(!0,!1,t)}function xp(t){return Cp(!0,!0,t)}function Ap(t,e){let n=t[ie];n._lView=v(),n._queryIndex=e,n._queryList=Ol(n._lView,e),n._queryList.onDirty(()=>n._dirtyCounter.update(r=>r+1))}function GI(t,e){let n=t._lView,r=t._queryIndex;if(n===void 0||r===void 0||n[b]&4)return e?void 0:ae;let o=Ol(n,r),i=Sp(n,r);return o.reset(i,wf),e?o.first:o._changesDetected||t._flatValue===void 0?t._flatValue=o.toArray():t._flatValue}function $u(t,e){return Np(e)}function QI(t,e){return xp(e)}var bk=($u.required=QI,$u);function Uu(t,e){return Np(e)}function KI(t,e){return xp(e)}var Dk=(Uu.required=KI,Uu);function kp(t,e){let n=Object.create(dd),r=new Vo;n.value=t;function o(){return zt(n),qu(n.value),n.value}return o[ie]=n,o.asReadonly=bf.bind(o),o.set=i=>{n.equal(n.value,i)||(Wt(n,i),r.emit(i))},o.update=i=>{qu(n.value),o.set(i(n.value))},o.subscribe=r.subscribe.bind(r),o.destroyRef=r.destroyRef,o}function qu(t){if(t===ei)throw new m(952,!1)}function zu(t,e){return kp(t,e)}function ZI(t){return kp(ei,t)}var Tk=(zu.required=ZI,zu);function YI(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(t_))}return i}return zo.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(()=>n_(i));e.push(l)}),XI(),Promise.all(e).then(()=>{})}var zo=new Map,JI=new Set;function XI(){let t=zo;return zo=new Map,t}function e_(){return zo.size===0}function t_(t){return typeof t=="string"?t:t.text()}function n_(t){JI.delete(t)}var nr=class{},r_=class{};function Ck(t,e){return new rr(t,e??null,[])}var rr=class extends nr{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new Uo(this);constructor(e,n,r,o=!0){super(),this.ngModuleType=e,this._parent=n;let i=Cd(e);this._bootstrapComponents=Uf(i.bootstrap),this._r3Injector=gf(e,n,[{provide:nr,useValue:this},{provide:wi,useValue:this.componentFactoryResolver},...r],ge(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)}},Wo=class extends r_{moduleType;constructor(e){super(),this.moduleType=e}create(e){return new rr(this.moduleType,e,[])}};function o_(t,e,n){return new rr(t,e,n,!1)}var ba=class extends nr{injector;componentFactoryResolver=new Uo(this);instance=null;constructor(e){super();let n=new Kn([...e.providers,{provide:nr,useValue:this},{provide:wi,useValue:this.componentFactoryResolver}],e.parent||ri(),e.debugName,new Set(["environment"]));this.injector=n,e.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function i_(t,e,n=null){return new ba({providers:t,parent:e,debugName:n,runEnvironmentInitializers:!0}).injector}var s_=(()=>{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=xd(!1,n.type),o=r.length>0?i_([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(Ie(lt))})}return t})();function Nk(t){return sr(()=>{let e=Rp(t),n=fe(W({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Mf.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:e.standalone?o=>o.get(s_).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Xn.Emulated,styles:t.styles||ae,_:null,schemas:t.schemas||null,tView:null,id:""});e.standalone&&pi("NgStandalone"),Op(n);let r=t.dependencies;return n.directiveDefs=Wu(r,!1),n.pipeDefs=Wu(r,!0),n.id=f_(n),n})}function a_(t){return at(t)||Nd(t)}function l_(t){return t!==null}function c_(t){return sr(()=>({type:t.type,bootstrap:t.bootstrap||ae,declarations:t.declarations||ae,imports:t.imports||ae,exports:t.exports||ae,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function u_(t,e){if(t==null)return Le;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=mi.None,l=null),n[i]=[r,a,l],e[i]=s}return n}function d_(t){if(t==null)return Le;let e={};for(let n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}function xk(t){return sr(()=>{let e=Rp(t);return Op(e),e})}function Ak(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 Rp(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||Le,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||ae,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:u_(t.inputs,e),outputs:d_(t.outputs),debugInfo:null}}function Op(t){t.features?.forEach(e=>e(t))}function Wu(t,e){if(!t)return null;let n=e?Zm:a_;return()=>(typeof t=="function"?t():t).map(r=>n(r)).filter(l_)}function f_(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 p_(t){return Object.getPrototypeOf(t.prototype).constructor}function h_(t){let e=p_(t.type),n=!0,r=[t];for(;e;){let o;if(Ve(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=Ns(t.inputs),s.declaredInputs=Ns(t.declaredInputs),s.outputs=Ns(t.outputs);let a=o.hostBindings;a&&E_(t,a);let l=o.viewQuery,c=o.contentQueries;if(l&&y_(t,l),c&&v_(t,c),g_(t,o),Sm(t.outputs,o.outputs),Ve(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===h_&&(n=!1)}}e=Object.getPrototypeOf(e)}m_(r)}function g_(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 m_(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=fn(o.hostAttrs,n=fn(n,o.hostAttrs))}}function Ns(t){return t===Le?{}:t===ae?[]:t}function y_(t,e){let n=t.viewQuery;n?t.viewQuery=(r,o)=>{e(r,o),n(r,o)}:t.viewQuery=e}function v_(t,e){let n=t.contentQueries;n?t.contentQueries=(r,o,i)=>{e(r,o,i),n(r,o,i)}:t.contentQueries=e}function E_(t,e){let n=t.hostBindings;n?t.hostBindings=(r,o)=>{e(r,o),n(r,o)}:t.hostBindings=e}function kk(t){let e=n=>{let r=Array.isArray(t);n.hostDirectives===null?(n.findHostDirectiveDefs=Pp,n.hostDirectives=r?t.map(Da):[t]):r?n.hostDirectives.unshift(...t.map(Da)):n.hostDirectives.unshift(t)};return e.ngInherit=!0,e}function Pp(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)Gu(Da(i),e,n)}else Gu(r,e,n)}function Gu(t,e,n){let r=Nd(t.directive);I_(r.declaredInputs,t.inputs),Pp(r,e,n),n.set(r,t),e.push(r)}function Da(t){return typeof t=="function"?{directive:X(t),inputs:Le,outputs:Le}:{directive:X(t.directive),inputs:Qu(t.inputs),outputs:Qu(t.outputs)}}function Qu(t){if(t===void 0||t.length===0)return Le;let e={};for(let n=0;n<t.length;n+=2)e[t[n]]=t[n+1];return e}function I_(t,e){for(let n in e)if(e.hasOwnProperty(n)){let r=e[n],o=t[n];t[r]=o}}function Fp(t){return Fl(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function __(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 Fl(t){return t!==null&&(typeof t=="function"||typeof t=="object")}function jt(t,e,n){return t[e]=n}function Lp(t,e){return t[e]}function ce(t,e,n){let r=t[e];return Object.is(r,n)?!1:(t[e]=n,!0)}function or(t,e,n,r){let o=ce(t,e,n);return ce(t,e+1,r)||o}function w_(t,e,n,r,o){let i=or(t,e,n,r);return ce(t,e+2,o)||i}function Vp(t,e,n,r,o,i){let s=or(t,e,n,r);return or(t,e+2,o,i)||s}function b_(t,e,n,r,o,i,s,a,l){let c=e.consts,u=Mn(e,t,4,s||null,a||null);rl()&&kl(e,n,u,ct(c,l),Dl),u.mergedAttrs=fn(u.mergedAttrs,u.attrs),ul(e,u);let d=u.tView=Il(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 Go(t,e,n,r,o,i,s,a,l,c){let u=n+z,d=e.firstCreatePass?b_(u,e,t,r,o,i,s,a,l):e.data[u];dt(d,!1);let p=T_(e,t,d,n);li()&&Ei(e,t,p,d),Dn(p,t);let f=fp(p,t,p,d);return t[u]=f,wl(t,f),jI(f,d,t),ii(d)&&yi(e,t,d),l!=null&&bl(t,d,c),d}function D_(t,e,n,r,o,i,s,a){let l=v(),c=H(),u=ct(c.consts,i);return Go(l,c,t,e,n,r,o,u,s,a),D_}var T_=M_;function M_(t,e,n,r){return ci(!0),e[B].createComment("")}var Rk=(()=>{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 S_=new F(""),C_=new F(""),Ok=(()=>{class t{_ngZone;registry;_isZoneStable=!0;_callbacks=[];taskTrackingZone=null;constructor(n,r,o){this._ngZone=n,this.registry=r,Ll||(x_(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:()=>{le.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)(Ie(le),Ie(N_),Ie(C_))};static \u0275prov=q({token:t,factory:t.\u0275fac})}return t})(),N_=(()=>{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 Ll?.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 x_(t){Ll=t}var Ll,jp=(()=>{class t{static \u0275prov=q({token:t,providedIn:"root",factory:()=>new Ta})}return t})(),Ta=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 Hp(t){return!!t&&typeof t.then=="function"}function A_(t){return!!t&&typeof t.subscribe=="function"}var Bp=new F("");function Pk(t){return Ym([{provide:Bp,multi:!0,useValue:t}])}var $p=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=A(Bp,{optional:!0})??[];injector=A(Qe);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Pd(this.injector,o);if(Hp(i))n.push(i);else if(A_(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})(),k_=new F("");function R_(){ts(()=>{throw new m(600,!1)})}function O_(t){return t.isBoundToModule}var P_=10;function Up(t,e){return Array.isArray(e)?e.reduce(Up,t):W(W({},t),e)}var gn=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=A(iv);afterRenderManager=A(Rf);zonelessEnabled=A(yf);rootEffectScheduler=A(jp);dirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new be;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=A(ui).hasPendingTasks.pipe(rt(n=>!n));constructor(){A(fi,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=A(lt);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=Qe.NULL){j(10);let i=n instanceof mp;if(!this._injector.get($p).done){let f="";throw new m(405,f)}let a;i?a=n:a=this._injector.get(wi).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let l=O_(a)?void 0:this._injector.get(nr),c=r||a.selector,u=a.create(o,[],c,l),d=u.location.nativeElement,p=u.injector.get(S_,null);return p?.registerApplication(d),u.onDestroy(()=>{this.detachView(u.hostView),Io(this.components,u),p?.unregisterApplication(d)}),this._loadComponent(u),j(11,u),u}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){j(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(hl.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new m(101,!1);let n=C(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,C(n),this.afterTick.next(),j(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get($o,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<P_;)j(14),this.synchronizeOnce(),j(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)F_(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})=>cr(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;Io(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(k_,[]).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),()=>Io(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 Io(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}function F_(t,e,n,r){if(!n&&!cr(t))return;lp(t,e,n&&!r?0:1)}function L_(t,e,n,r){let o=v(),i=Vt();if(ce(o,i,e)){let s=H(),a=wn();CE(a,o,t,e,n,r)}return L_}function Vl(t,e,n,r){return ce(t,Vt(),n)?e+Mt(n)+r:ue}function qp(t,e,n,r,o,i){let s=My(),a=or(t,s,n,o);return sl(2),a?e+Mt(n)+r+Mt(o)+i:ue}function ho(t,e){return t<<17|e<<2}function Lt(t){return t>>17&32767}function V_(t){return(t&2)==2}function j_(t,e){return t&131071|e<<17}function Ma(t){return t|2}function mn(t){return(t&131068)>>2}function xs(t,e){return t&-131069|e<<2}function H_(t){return(t&1)===1}function Sa(t){return t|1}function B_(t,e,n,r,o,i){let s=i?e.classBindings:e.styleBindings,a=Lt(s),l=mn(s);t[r]=n;let c=!1,u;if(Array.isArray(n)){let d=n;u=d[1],(u===null||lr(d,u)>0)&&(c=!0)}else u=n;if(o)if(l!==0){let p=Lt(t[a+1]);t[r+1]=ho(p,a),p!==0&&(t[p+1]=xs(t[p+1],r)),t[a+1]=j_(t[a+1],r)}else t[r+1]=ho(a,0),a!==0&&(t[a+1]=xs(t[a+1],r)),a=r;else t[r+1]=ho(l,0),a===0?a=r:t[l+1]=xs(t[l+1],r),l=r;c&&(t[r+1]=Ma(t[r+1])),Ku(t,u,r,!0),Ku(t,u,r,!1),$_(e,u,t,r,i),s=ho(a,l),i?e.classBindings=s:e.styleBindings=s}function $_(t,e,n,r,o){let i=o?t.residualClasses:t.residualStyles;i!=null&&typeof e=="string"&&lr(i,e)>=0&&(n[r+1]=Sa(n[r+1]))}function Ku(t,e,n,r){let o=t[n+1],i=e===null,s=r?Lt(o):mn(o),a=!1;for(;s!==0&&(a===!1||i);){let l=t[s],c=t[s+1];U_(l,e)&&(a=!0,t[s+1]=r?Sa(c):Ma(c)),s=r?Lt(c):mn(c)}a&&(t[n+1]=r?Ma(o):Sa(o))}function U_(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?lr(t,e)>=0:!1}var Q={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function zp(t){return t.substring(Q.key,Q.keyEnd)}function q_(t){return t.substring(Q.value,Q.valueEnd)}function z_(t){return Qp(t),Wp(t,yn(t,0,Q.textEnd))}function Wp(t,e){let n=Q.textEnd;return n===e?-1:(e=Q.keyEnd=G_(t,Q.key=e,n),yn(t,e,n))}function W_(t){return Qp(t),Gp(t,yn(t,0,Q.textEnd))}function Gp(t,e){let n=Q.textEnd,r=Q.key=yn(t,e,n);return n===r?-1:(r=Q.keyEnd=Q_(t,r,n),r=Zu(t,r,n,58),r=Q.value=yn(t,r,n),r=Q.valueEnd=K_(t,r,n),Zu(t,r,n,59))}function Qp(t){Q.key=0,Q.keyEnd=0,Q.value=0,Q.valueEnd=0,Q.textEnd=t.length}function yn(t,e,n){for(;e<n&&t.charCodeAt(e)<=32;)e++;return e}function G_(t,e,n){for(;e<n&&t.charCodeAt(e)>32;)e++;return e}function Q_(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 Zu(t,e,n,r){return e=yn(t,e,n),e<n&&e++,e}function K_(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=Yu(t,l,s,n):e===s-4&&i===85&&o===82&&r===76&&l===40?a=s=Yu(t,41,s,n):l>32&&(a=s),i=o,o=r,r=l&-33}return a}function Yu(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 Z_(t,e,n){let r=v(),o=Vt();if(ce(r,o,e)){let i=H(),s=wn();fr(i,s,r,t,e,r[B],n,!1)}return Z_}function Ca(t,e,n,r,o){Tl(e,t,n,o?"class":"style",r)}function Y_(t,e,n){return Zp(t,e,n,!1),Y_}function J_(t,e){return Zp(t,e,null,!0),J_}function Fk(t){jl(Xp,X_,t,!1)}function X_(t,e){for(let n=W_(e);n>=0;n=Gp(e,n))Xp(t,zp(e),q_(e))}function Lk(t){jl(iw,Kp,t,!0)}function Kp(t,e){for(let n=z_(e);n>=0;n=Wp(e,n))ar(t,zp(e),!0)}function Zp(t,e,n,r){let o=v(),i=H(),s=sl(2);if(i.firstUpdatePass&&Jp(i,t,s,r),e!==ue&&ce(o,s,e)){let a=i.data[Je()];eh(i,a,o,o[B],t,o[s+1]=aw(e,n),r,s)}}function jl(t,e,n,r){let o=H(),i=sl(2);o.firstUpdatePass&&Jp(o,null,i,r);let s=v();if(n!==ue&&ce(s,i,n)){let a=o.data[Je()];if(th(a,r)&&!Yp(o,i)){let l=r?a.classesWithoutHost:a.stylesWithoutHost;l!==null&&(n=Ps(l,n||"")),Ca(o,a,s,n,r)}else sw(o,a,s,s[B],s[i+1],s[i+1]=ow(t,e,n),r,i)}}function Yp(t,e){return e>=t.expandoStartIndex}function Jp(t,e,n,r){let o=t.data;if(o[n+1]===null){let i=o[Je()],s=Yp(t,n);th(i,r)&&e===null&&!s&&(e=!1),e=ew(o,i,e,r),B_(o,i,e,n,s,r)}}function ew(t,e,n,r){let o=Ay(t),i=r?e.residualClasses:e.residualStyles;if(o===null)(r?e.classBindings:e.styleBindings)===0&&(n=As(null,t,e,n,r),n=ir(n,e.attrs,r),i=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==o)if(n=As(o,t,e,n,r),i===null){let l=tw(t,e,r);l!==void 0&&Array.isArray(l)&&(l=As(null,t,e,l[1],r),l=ir(l,e.attrs,r),nw(t,e,r,l))}else i=rw(t,e,r)}return i!==void 0&&(r?e.residualClasses=i:e.residualStyles=i),n}function tw(t,e,n){let r=n?e.classBindings:e.styleBindings;if(mn(r)!==0)return t[Lt(r)]}function nw(t,e,n,r){let o=n?e.classBindings:e.styleBindings;t[Lt(o)]=r}function rw(t,e,n){let r,o=e.directiveEnd;for(let i=1+e.directiveStylingLast;i<o;i++){let s=t[i].hostAttrs;r=ir(r,s,n)}return ir(r,e.attrs,n)}function As(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=ir(r,i.hostAttrs,o),i!==t);)a++;return t!==null&&(n.directiveStylingLast=a),r}function ir(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]),ar(t,s,n?!0:e[++i]))}return t===void 0?null:t}function ow(t,e,n){if(n==null||n==="")return ae;let r=[],o=Tn(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 Xp(t,e,n){ar(t,e,Tn(n))}function iw(t,e,n){let r=String(e);r!==""&&!r.includes(" ")&&ar(t,r,n)}function sw(t,e,n,r,o,i,s,a){o===ue&&(o=ae);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&&eh(t,e,n,r,h,g,s,a),u=l<o.length?o[l]:null,d=c<i.length?i[c]:null}}function eh(t,e,n,r,o,i,s,a){if(!(e.type&3))return;let l=t.data,c=l[a+1],u=H_(c)?Ju(l,e,n,o,mn(c),s):void 0;if(!Qo(u)){Qo(i)||V_(c)&&(i=Ju(l,null,n,o,a,s));let d=zd(Je(),n);WE(r,s,d,o,i)}}function Ju(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===ue&&(p=d?ae:void 0);let f=d?_s(p,r):u===r?p:void 0;if(c&&!Qo(f)&&(f=_s(l,r)),Qo(f)&&(a=f,s))return a;let h=t[o+1];o=s?Lt(h):mn(h)}if(e!==null){let l=i?e.residualClasses:e.residualStyles;l!=null&&(a=_s(l,r))}return a}function Qo(t){return t!==void 0}function aw(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=ge(Tn(t)))),t}function th(t,e){return(t.flags&(e?8:16))!==0}function Vk(t,e,n){let r=v(),o=Vl(r,t,e,n);jl(ar,Kp,o,!0)}var Na=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 ks(t,e,n,r,o){return t===n&&Object.is(e,r)?1:Object.is(o(t,e),o(n,r))?-1:0}function lw(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=ks(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=ks(s,p,l,f,n);if(h!==0){h<0&&t.updateValue(s,f),s--,l--;continue}let g=n(i,c),_=n(s,p),E=n(i,u);if(Object.is(E,_)){let P=n(l,f);Object.is(P,g)?(t.swap(i,s),t.updateValue(s,f),l--,s--):t.move(s,i),t.updateValue(i,u),i++;continue}if(r??=new Ko,o??=ed(t,i,s,n),xa(t,r,i,E))t.updateValue(i,u),i++,s++;else if(o.has(E))r.set(g,t.detach(i)),s--;else{let P=t.create(i,e[i]);t.attach(i,P),i++,s++}}for(;i<=l;)Xu(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=ks(i,u,i,d,n);if(p!==0)p<0&&t.updateValue(i,d),i++,c=l.next();else{r??=new Ko,o??=ed(t,i,s,n);let f=n(i,d);if(xa(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;)Xu(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 xa(t,e,n,r){return e!==void 0&&e.has(r)?(t.attach(n,e.get(r)),e.delete(r),!0):!1}function Xu(t,e,n,r,o){if(xa(t,e,r,n(r,o)))t.updateValue(r,o);else{let i=t.create(r,o);t.attach(r,i)}}function ed(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 Ko=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 jk(t,e){pi("NgControlFlow");let n=v(),r=Vt(),o=n[r]!==ue?n[r]:-1,i=o!==-1?Zo(n,z+o):void 0,s=0;if(ce(n,r,t)){let a=C(null);try{if(i!==void 0&&hp(i,s),t!==-1){let l=z+t,c=Zo(n,l),u=Oa(n[S],l),d=hn(c,u.tView.ssrId),p=pr(n,u,e,{dehydratedView:d});hr(c,p,s,pn(u,d))}}finally{C(a)}}else if(i!==void 0){let a=pp(i,s);a!==void 0&&(a[K]=e)}}var Aa=class{lContainer;$implicit;$index;constructor(e,n,r){this.lContainer=e,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-te}};function Hk(t,e){return e}var ka=class{hasEmptyBlock;trackByFn;liveCollection;constructor(e,n,r){this.hasEmptyBlock=e,this.trackByFn=n,this.liveCollection=r}};function Bk(t,e,n,r,o,i,s,a,l,c,u,d,p){pi("NgControlFlow");let f=v(),h=H(),g=l!==void 0,_=v(),E=a?s.bind(_[_e][K]):s,P=new ka(g,E);_[z+t]=P,Go(f,h,t+1,e,n,r,o,ct(h.consts,i)),g&&Go(f,h,t+2,l,c,u,d,ct(h.consts,p))}var Ra=class extends Na{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-te}at(e){return this.getLView(e)[K].$implicit}attach(e,n){let r=n[un];this.needsIndexUpdate||=e!==this.length,hr(this.lContainer,n,e,pn(this.templateTNode,r))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,cw(this.lContainer,e)}create(e,n){let r=hn(this.lContainer,this.templateTNode.tView.ssrId),o=pr(this.hostLView,this.templateTNode,new Aa(this.lContainer,n,e),{dehydratedView:r});return this.operationsCounter?.recordCreate(),o}destroy(e){vi(e[S],e),this.operationsCounter?.recordDestroy()}updateValue(e,n){this.getLView(e)[K].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e<this.length;e++)this.getLView(e)[K].$index=e}getLView(e){return uw(this.lContainer,e)}};function $k(t){let e=C(null),n=Je();try{let r=v(),o=r[S],i=r[n],s=n+1,a=Zo(r,s);if(i.liveCollection===void 0){let c=Oa(o,s);i.liveCollection=new Ra(a,r,c)}else i.liveCollection.reset();let l=i.liveCollection;if(lw(l,t,i.trackByFn),l.updateIndexes(),i.hasEmptyBlock){let c=Vt(),u=l.length===0;if(ce(r,c,u)){let d=n+2,p=Zo(r,d);if(u){let f=Oa(o,d),h=hn(p,f.tView.ssrId),g=pr(r,f,void 0,{dehydratedView:h});hr(p,g,0,pn(f,h))}else hp(p,0)}}}finally{C(e)}}function Zo(t,e){return t[e]}function cw(t,e){return er(t,e)}function uw(t,e){return pp(t,e)}function Oa(t,e){return Ja(t,e)}function nh(t,e,n,r){let o=v(),i=H(),s=z+t,a=o[B],l=i.firstCreatePass?vp(s,i,o,e,Dl,rl(),n,r):i.data[s],c=fw(i,o,l,a,e,t);o[s]=c;let u=ii(l);return dt(l,!0),Qf(a,c,l),!Cl(l)&&li()&&Ei(i,o,c,l),(Ey()===0||u)&&Dn(c,o),Iy(),u&&(yi(i,o,l),ml(i,l,o)),r!==null&&bl(o,l),nh}function rh(){let t=re();ol()?il():(t=t.parent,dt(t,!1));let e=t;wy(e)&&by(),_y();let n=H();return n.firstCreatePass&&Ep(n,e),e.classesWithoutHost!=null&&Ly(e)&&Ca(n,e,v(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&Vy(e)&&Ca(n,e,v(),e.stylesWithoutHost,!1),rh}function dw(t,e,n,r){return nh(t,e,n,r),rh(),dw}var fw=(t,e,n,r,o,i)=>(ci(!0),Wf(r,o,Oy()));function pw(t,e,n,r,o){let i=e.consts,s=ct(i,r),a=Mn(e,t,8,"ng-container",s);s!==null&&ma(a,s,!0);let l=ct(i,o);return rl()&&kl(e,n,a,l,Dl),a.mergedAttrs=fn(a.mergedAttrs,a.attrs),e.queries!==null&&e.queries.elementStart(e,a),a}function oh(t,e,n){let r=v(),o=H(),i=t+z,s=o.firstCreatePass?pw(i,o,r,e,n):o.data[i];dt(s,!0);let a=gw(o,r,s,t);return r[i]=a,li()&&Ei(o,r,a,s),Dn(a,r),ii(s)&&(yi(o,r,s),ml(o,s,r)),n!=null&&bl(r,s),oh}function ih(){let t=re(),e=H();return ol()?il():(t=t.parent,dt(t,!1)),e.firstCreatePass&&(ul(e,t),Ya(t)&&e.queries.elementEnd(t)),ih}function hw(t,e,n){return oh(t,e,n),ih(),hw}var gw=(t,e,n,r)=>(ci(!0),pE(e[B],""));function Uk(){return v()}function mw(t,e,n){let r=v(),o=Vt();if(ce(r,o,e)){let i=H(),s=wn();fr(i,s,r,t,e,r[B],n,!0)}return mw}var td={};function qk(t,e,n){typeof e!="string"&&(n=e,e=t[Pa.LocaleId]),e=e.toLowerCase().replace(/_/g,"-"),td[e]=t,n&&(td[e][Pa.ExtraData]=n)}var Pa=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}(Pa||{});var Yo="en-US";var yw=Yo;function vw(t){typeof t=="string"&&(yw=t.toLowerCase().replace(/_/g,"-"))}function nd(t,e,n){return function r(o){if(o===Function)return n;let i=En(t)?He(t.index,e):e;Al(i,5);let s=e[K],a=rd(e,s,n,o),l=r.__ngNextListenerFn__;for(;l;)a=rd(e,s,l,o)&&a,l=l.__ngNextListenerFn__;return a}}function rd(t,e,n,r){let o=C(null);try{return j(6,e,n),n(r)!==!1}catch(i){return Ew(t,i),!1}finally{j(7,e,n),C(o)}}function Ew(t,e){let n=t[Ct],r=n?n.get(ut,null):null;r&&r.handleError(e)}function od(t,e,n,r,o,i){let s=e[n],a=e[S],c=a.data[n].outputs[r],u=s[c],d=a.firstCreatePass?nl(a):null,p=tl(e),f=u.subscribe(i),h=p.length;p.push(i,f),d&&d.push(o,t.index,h,-(h+1))}var Iw=new Map;function _w(t,e,n,r){let o=v(),i=H(),s=re();return sh(i,o,o[B],s,t,e,r),_w}function ww(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[So],l=o[i+2];return a.length>l?a[l]:null}typeof s=="string"&&(i+=2)}return null}function sh(t,e,n,r,o,i,s){let a=ii(r),c=t.firstCreatePass?nl(t):null,u=tl(e),d=!0;if(r.type&3||s){let p=Be(r,e),f=s?s(p):p,h=u.length,g=s?E=>s(je(E[r.index])):r.index,_=null;if(!s&&a&&(_=ww(t,e,o,r.index)),_!==null){let E=_.__ngLastListenerFn__||_;E.__ngNextListenerFn__=i,_.__ngLastListenerFn__=i,d=!1}else{i=nd(r,e,i);let E=e[Ct].get(hv);Iw.get(E)?.(f,o,i);let Y=n.listen(f,o,i);u.push(i,Y),c&&c.push(o,g,h,h+1)}}else i=nd(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],_=f[h+1];od(r,e,g,_,o,i)}if(p&&p.length)for(let h of p)od(r,e,h,o,o,i)}}function zk(t=1){return Ry(t)}function bw(t,e){let n=null,r=oE(t);for(let o=0;o<e.length;o++){let i=e[o];if(i==="*"){n=o;continue}if(r===null?zf(t,i,!0):aE(r,i))return o}return n}function Wk(t){let e=v()[_e][me];if(!e.projection){let n=t?t.length:1,r=e.projection=Gm(n,null),o=r.slice(),i=e.child;for(;i!==null;){if(i.type!==128){let s=t?bw(i,t):0;s!==null&&(o[s]?o[s].projectionNext=i:r[s]=i,o[s]=i)}i=i.next}}}function Gk(t,e=0,n,r,o,i){let s=v(),a=H(),l=r?t+1:null;l!==null&&Go(s,a,l,r,o,i,null,n);let c=Mn(a,z+t,16,null,n||null);c.projection===null&&(c.projection=e),il();let d=!s[un]||Qd();s[_e][me].projection[c.projection]===null&&l!==null?Dw(s,a,l):d&&!Cl(c)&&qE(a,s,c)}function Dw(t,e,n){let r=z+n,o=e.data[r],i=t[r],s=hn(i,o.tView.ssrId),a=pr(t,o,void 0,{dehydratedView:s});hr(i,a,0,pn(o,s))}function Tw(t,e,n,r,o){let i=v(),s=Vl(i,e,n,r);if(s!==ue){let a=H(),l=wn();fr(a,l,i,t,s,i[B],o,!1)}return Tw}function Mw(t,e,n,r,o,i,s){let a=v(),l=qp(a,e,n,r,o,i);if(l!==ue){let c=H(),u=wn();fr(c,u,a,t,l,a[B],s,!1)}return Mw}function Qk(t,e,n,r){Tp(t,e,n,r)}function Kk(t,e,n){Dp(t,e,n)}function Zk(t){let e=v(),n=H(),r=al();ai(r+1);let o=Pl(n,r);if(t.dirty&&hy(e)===((o.metadata.flags&2)===2)){if(o.matches===null)t.reset([]);else{let i=Sp(e,r);t.reset(i,wf),t.notifyOnChanges()}return!0}return!1}function Yk(){return Ol(v(),al())}function Jk(t,e,n,r,o){Ap(e,Tp(t,n,r,o))}function Xk(t,e,n,r){Ap(t,Dp(e,n,r))}function eR(t=1){ai(al()+t)}function ah(t,e,n,r){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=r}function tR(t){let e=Ty();return si(e,z+t)}function nR(t,e=""){let n=v(),r=H(),o=t+z,i=r.firstCreatePass?Mn(r,o,1,e,null):r.data[o],s=Sw(r,n,i,e,t);n[o]=s,li()&&Ei(r,n,s,i),dt(i,!1)}var Sw=(t,e,n,r,o)=>(ci(!0),dE(e[B],r));function Cw(t){return lh("",t,""),Cw}function lh(t,e,n){let r=v(),o=Vl(r,t,e,n);return o!==ue&&ch(r,Je(),o),lh}function Nw(t,e,n,r,o){let i=v(),s=qp(i,t,e,n,r,o);return s!==ue&&ch(i,Je(),s),Nw}function ch(t,e,n){let r=zd(e,t);fE(t[B],r,n)}function xw(t,e,n){Df(e)&&(e=e());let r=v(),o=Vt();if(ce(r,o,e)){let i=H(),s=wn();fr(i,s,r,t,e,r[B],n,!1)}return xw}function rR(t,e){let n=Df(t);return n&&t.set(e),n}function Aw(t,e){let n=v(),r=H(),o=re();return sh(r,n,n[B],o,t,e),Aw}var kw={};function Rw(t){let e=H(),n=v(),r=t+z,o=Mn(e,r,128,null,null);return dt(o,!1),ah(e,n,r,kw),Rw}function Ow(t,e,n){let r=H();if(r.firstCreatePass){let o=Ve(t);Fa(n,r.data,r.blueprint,o,!0),Fa(e,r.data,r.blueprint,o,!1)}}function Fa(t,e,n,r,o){if(t=X(t),Array.isArray(t))for(let i=0;i<t.length;i++)Fa(t[i],e,n,r,o);else{let i=H(),s=v(),a=re(),l=cn(t)?t:X(t.provide),c=Od(t),u=a.providerIndexes&1048575,d=a.directiveStart,p=a.providerIndexes>>20;if(cn(t)||!t.multi){let f=new Ot(c,o,bi),h=Os(l,e,o?u:u+p,d);h===-1?(Gs(Oo(a,s),i,l),Rs(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=Os(l,e,u+p,d),h=Os(l,e,u,u+p),g=f>=0&&n[f],_=h>=0&&n[h];if(o&&!_||!o&&!g){Gs(Oo(a,s),i,l);let E=Lw(o?Fw:Pw,n.length,o,r,c);!o&&_&&(n[h].providerFactory=E),Rs(i,t,e.length,0),e.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(E),s.push(E)}else{let E=uh(n[o?h:f],c,!o&&r);Rs(i,t,f>-1?f:h,E)}!o&&r&&_&&n[h].componentProviders++}}}function Rs(t,e,n,r){let o=cn(e),i=ny(e);if(o||i){let l=(i?X(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 uh(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function Os(t,e,n,r){for(let o=n;o<r;o++)if(e[o]===t)return o;return-1}function Pw(t,e,n,r){return La(this.multi,[])}function Fw(t,e,n,r){let o=this.multi,i;if(this.providerFactory){let s=this.providerFactory.componentProviders,a=Yn(n,n[S],this.providerFactory.index,r);i=a.slice(0,s),La(o,i);for(let l=s;l<a.length;l++)i.push(a[l])}else i=[],La(o,i);return i}function La(t,e){for(let n=0;n<t.length;n++){let r=t[n];e.push(r())}return e}function Lw(t,e,n,r,o){let i=new Ot(t,n,bi);return i.multi=[],i.index=e,i.componentProviders=0,uh(i,o,r&&!n),i}function oR(t,e=[]){return n=>{n.providersResolver=(r,o)=>Ow(r,o?o(t):t,e)}}function iR(t,e,n){let r=$e()+t,o=v();return o[r]===ue?jt(o,r,n?e.call(n):e()):Lp(o,r)}function sR(t,e,n,r){return dh(v(),$e(),t,e,n,r)}function aR(t,e,n,r,o){return fh(v(),$e(),t,e,n,r,o)}function lR(t,e,n,r,o,i){return ph(v(),$e(),t,e,n,r,o,i)}function cR(t,e,n,r,o,i,s){return Vw(v(),$e(),t,e,n,r,o,i,s)}function uR(t,e,n,r,o,i,s,a){let l=$e()+t,c=v(),u=Vp(c,l,n,r,o,i);return ce(c,l+4,s)||u?jt(c,l+5,a?e.call(a,n,r,o,i,s):e(n,r,o,i,s)):Lp(c,l+5)}function dR(t,e,n,r){return jw(v(),$e(),t,e,n,r)}function gr(t,e){let n=t[e];return n===ue?void 0:n}function dh(t,e,n,r,o,i){let s=e+n;return ce(t,s,o)?jt(t,s+1,i?r.call(i,o):r(o)):gr(t,s+1)}function fh(t,e,n,r,o,i,s){let a=e+n;return or(t,a,o,i)?jt(t,a+2,s?r.call(s,o,i):r(o,i)):gr(t,a+2)}function ph(t,e,n,r,o,i,s,a){let l=e+n;return w_(t,l,o,i,s)?jt(t,l+3,a?r.call(a,o,i,s):r(o,i,s)):gr(t,l+3)}function Vw(t,e,n,r,o,i,s,a,l){let c=e+n;return Vp(t,c,o,i,s,a)?jt(t,c+4,l?r.call(l,o,i,s,a):r(o,i,s,a)):gr(t,c+4)}function jw(t,e,n,r,o,i){let s=e+n,a=!1;for(let l=0;l<o.length;l++)ce(t,s++,o[l])&&(a=!0);return a?jt(t,s,r.apply(i,o)):gr(t,s)}function fR(t,e){let n=H(),r,o=t+z;n.firstCreatePass?(r=Hw(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=St(r.type,!0)),s,a=he(bi);try{let l=Ro(!1),c=i();return Ro(l),ah(n,v(),o,c),c}finally{he(a)}}function Hw(t,e){if(e)for(let n=e.length-1;n>=0;n--){let r=e[n];if(t===r.name)return r}}function pR(t,e,n){let r=t+z,o=v(),i=si(o,r);return Hl(o,r)?dh(o,$e(),e,i.transform,n,i):i.transform(n)}function hR(t,e,n,r){let o=t+z,i=v(),s=si(i,o);return Hl(i,o)?fh(i,$e(),e,s.transform,n,r,s):s.transform(n,r)}function gR(t,e,n,r,o){let i=t+z,s=v(),a=si(s,i);return Hl(s,i)?ph(s,$e(),e,a.transform,n,r,o,a):a.transform(n,r,o)}function Hl(t,e){return t[S].data[e].pure}function mR(t,e){return _i(t,e)}var go=null;function Bw(t){go!==null&&(t.defaultEncapsulation!==go.defaultEncapsulation||t.preserveWhitespaces!==go.preserveWhitespaces)||(go=t)}var Va=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(".")}},yR=new Va("19.2.9"),ja=class{ngModuleFactory;componentFactories;constructor(e,n){this.ngModuleFactory=e,this.componentFactories=n}},vR=(()=>{class t{compileModuleSync(n){return new Wo(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),o=Cd(n),i=Uf(o.declarations).reduce((s,a)=>{let l=at(a);return l&&s.push(new Ft(l)),s},[]);return new ja(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})(),$w=new F("");function Uw(t,e,n){let r=new Wo(n);return Promise.resolve(r)}function id(t){for(let e=t.length-1;e>=0;e--)if(t[e]!==void 0)return t[e]}var qw=(()=>{class t{zone=A(le);changeDetectionScheduler=A(Pt);applicationRef=A(gn);_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 zw({ngZoneFactory:t,ignoreChangesOutsideZone:e,scheduleInRootZone:n}){return t??=()=>new le(fe(W({},hh()),{scheduleInRootZone:n})),[{provide:le,useFactory:t},{provide:To,multi:!0,useFactory:()=>{let r=A(qw,{optional:!0});return()=>r.initialize()}},{provide:To,multi:!0,useFactory:()=>{let r=A(Ww);return()=>{r.initialize()}}},e===!0?{provide:vf,useValue:!0}:[],{provide:Ef,useValue:n??mf}]}function hh(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var Ww=(()=>{class t{subscription=new U;initialized=!1;zone=A(le);pendingTasks=A(ui);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(()=>{le.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{le.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 Gw=(()=>{class t{appRef=A(gn);taskService=A(ui);ngZone=A(le);zonelessEnabled=A(yf);tracing=A(fi,{optional:!0});disableScheduling=A(vf,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new U;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Fo):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(A(Ef,{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 Lo||!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:If;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(Fo+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 Qw(){return typeof $localize<"u"&&$localize.locale||Yo}var gh=new F("",{providedIn:"root",factory:()=>A(gh,k.Optional|k.SkipSelf)||Qw()});var Jo=new F(""),Kw=new F("");function Un(t){return!t.moduleRef}function Zw(t){let e=Un(t)?t.r3Injector:t.moduleRef.injector,n=e.get(le);return n.run(()=>{Un(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let r=e.get(ut,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),Un(t)){let i=()=>e.destroy(),s=t.platformInjector.get(Jo);s.add(i),e.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>t.moduleRef.destroy(),s=t.platformInjector.get(Jo);s.add(i),t.moduleRef.onDestroy(()=>{Io(t.allPlatformModules,t.moduleRef),o.unsubscribe(),s.delete(i)})}return Jw(r,n,()=>{let i=e.get($p);return i.runInitializers(),i.donePromise.then(()=>{let s=e.get(gh,Yo);if(vw(s||Yo),!e.get(Kw,!0))return Un(t)?e.get(gn):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(Un(t)){let l=e.get(gn);return t.rootComponent!==void 0&&l.bootstrap(t.rootComponent),l}else return Yw(t.moduleRef,t.allPlatformModules),t.moduleRef})})})}function Yw(t,e){let n=t.injector.get(gn);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 Jw(t,e,n){try{let r=n();return Hp(r)?r.catch(o=>{throw e.runOutsideAngular(()=>t.handleError(o)),o}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}var mh=(()=>{class t{_injector;_modules=[];_destroyListeners=[];_destroyed=!1;constructor(n){this._injector=n}bootstrapModuleFactory(n,r){let o=r?.scheduleInRootZone,i=()=>ov(r?.ngZone,fe(W({},hh({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing})),{scheduleInRootZone:o})),s=r?.ignoreChangesOutsideZone,a=[zw({ngZoneFactory:i,ignoreChangesOutsideZone:s}),{provide:Pt,useExisting:Gw}],l=o_(n.moduleType,this.injector,a);return Zw({moduleRef:l,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(n,r=[]){let o=Up({},r);return Uw(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(Jo,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static \u0275fac=function(r){return new(r||t)(Ie(Qe))};static \u0275prov=q({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})(),Gn=null,yh=new F("");function Xw(t){if(Gn&&!Gn.get(yh,!1))throw new m(400,!1);R_(),Gn=t;let e=t.get(mh);return rb(t),e}function eb(t,e,n=[]){let r=`Platform: ${e}`,o=new F(r);return(i=[])=>{let s=vh();if(!s||s.injector.get(yh,!1)){let a=[...n,...i,{provide:o,useValue:!0}];t?t(a):Xw(tb(a,r))}return nb(o)}}function tb(t=[],e){return Qe.create({name:e,providers:[{provide:Rd,useValue:"platform"},{provide:Jo,useValue:new Set([()=>Gn=null])},...t]})}function nb(t){let e=vh();if(!e)throw new m(401,!1);return e}function vh(){return Gn?.get(mh)??null}function rb(t){let e=t.get(mv,null);Pd(t,()=>{e?.forEach(n=>n())})}var ER=(()=>{class t{static __NG_ELEMENT_ID__=ob}return t})();function ob(t){return ib(re(),v(),(t&16)===16)}function ib(t,e,n){if(En(t)&&!n){let r=He(t.index,e);return new tr(r,r)}else if(t.type&175){let r=e[_e];return new tr(r,e)}return null}var Ha=class{constructor(){}supports(e){return Fp(e)}create(e){return new Ba(e)}},sb=(t,e)=>e,Ba=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||sb}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<sd(r,o,i)?n:r,a=sd(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=[]),!Fp(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,__(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 $a(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 Xo),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 Xo),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}},$a=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}},Ua=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}},Xo=class{map=new Map;put(e){let n=e.trackById,r=this.map.get(n);r||(r=new Ua,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 sd(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 qa=class{constructor(){}supports(e){return e instanceof Map||Fl(e)}create(){return new za}},za=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||Fl(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 Wa(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))}},Wa=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 ab([new Ha])}var ab=(()=>{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 Dd,new bd]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new m(901,!1)}}return t})();function ld(){return new lb([new qa])}var lb=(()=>{class t{static \u0275prov=q({token:t,providedIn:"root",factory:ld});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||ld()),deps:[[t,new Dd,new bd]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r)return r;throw new m(901,!1)}}return t})();var IR=eb(null,"core",[]),_R=(()=>{class t{constructor(n){}static \u0275fac=function(r){return new(r||t)(Ie(gn))};static \u0275mod=c_({type:t});static \u0275inj=Nm({})}return t})();function wR(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function bR(t,e=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):e}function DR(t){return os(t)}function TR(t,e){return kr(t,e?.equal)}var Ga=class{[ie];constructor(e){this[ie]=e}destroy(){this[ie].destroy()}};function cb(t,e){!e?.injector&&Ld(cb);let n=e?.injector??A(Qe),r=e?.manualCleanup!==!0?n.get(ur):null,o,i=n.get(gl,null,{optional:!0}),s=n.get(Pt);return i!==null&&!e?.forceRoot?(o=fb(i.view,s,t),r instanceof Po&&r._lView===i.view&&(r=null)):o=pb(t,n.get(jp),s),o.injector=n,r!==null&&(o.onDestroyFn=r.onDestroy(()=>o.destroy())),new Ga(o)}var Eh=fe(W({},qt),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,cleanupFns:void 0,zone:null,kind:"effect",onDestroyFn:Jn,run(){if(this.dirty=!1,this.hasRun&&!Nr(this))return;this.hasRun=!0;let t=r=>(this.cleanupFns??=[]).push(r),e=Rn(this),n=xo(!1);try{this.maybeCleanup(),this.fn(t)}finally{xo(n),Cr(this,e)}},maybeCleanup(){if(this.cleanupFns?.length)try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[]}}}),ub=fe(W({},Eh),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){On(this),this.onDestroyFn(),this.maybeCleanup(),this.scheduler.remove(this)}}),db=fe(W({},Eh),{consumerMarkedDirty(){this.view[b]|=8192,_n(this.view),this.notifier.notify(13)},destroy(){On(this),this.onDestroyFn(),this.maybeCleanup(),this.view[xt]?.delete(this)}});function fb(t,e,n){let r=Object.create(db);return r.view=t,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=e,r.fn=n,t[xt]??=new Set,t[xt].add(r),r.consumerMarkedDirty(r),r}function pb(t,e,n){let r=Object.create(ub);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 MR(t,e){let n=at(t),r=e.elementInjector||ri();return new Ft(n).create(r,e.projectableNodes,e.hostElement,e.environmentInjector)}function SR(t){let e=at(t);if(!e)return null;let n=new Ft(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||{}),Ne="*";function NR(t,e){return{type:D.Trigger,name:t,definitions:e,options:{}}}function xR(t,e=null){return{type:D.Animate,styles:e,timings:t}}function Ih(t,e=null){return{type:D.Sequence,steps:t,options:e}}function Bl(t){return{type:D.Style,styles:t,offset:null}}function AR(t,e,n){return{type:D.State,name:t,styles:e,options:n}}function kR(t,e,n=null){return{type:D.Transition,expr:t,animation:e,options:n}}function RR(t,e=null){return{type:D.Reference,animation:t,options:e}}function OR(t=null){return{type:D.AnimateChild,options:t}}function PR(t,e=null){return{type:D.AnimateRef,animation:t,options:e}}function FR(t,e,n=null){return{type:D.Query,selector:t,animation:e,options:n}}var et=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}},Sn=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}},mr="!";function _h(t){return new m(3e3,!1)}function gb(){return new m(3100,!1)}function mb(){return new m(3101,!1)}function yb(t){return new m(3001,!1)}function vb(t){return new m(3003,!1)}function Eb(t){return new m(3004,!1)}function bh(t,e){return new m(3005,!1)}function Dh(){return new m(3006,!1)}function Th(){return new m(3007,!1)}function Mh(t,e){return new m(3008,!1)}function Sh(t){return new m(3002,!1)}function Ch(t,e,n,r,o){return new m(3010,!1)}function Nh(){return new m(3011,!1)}function xh(){return new m(3012,!1)}function Ah(){return new m(3200,!1)}function kh(){return new m(3202,!1)}function Rh(){return new m(3013,!1)}function Oh(t){return new m(3014,!1)}function Ph(t){return new m(3015,!1)}function Fh(t){return new m(3016,!1)}function Lh(t){return new m(3500,!1)}function Vh(t){return new m(3501,!1)}function jh(t,e){return new m(3404,!1)}function Ib(t){return new m(3502,!1)}function Hh(t){return new m(3503,!1)}function Bh(){return new m(3300,!1)}function $h(t){return new m(3504,!1)}function Uh(t){return new m(3301,!1)}function qh(t,e){return new m(3302,!1)}function zh(t){return new m(3303,!1)}function Wh(t,e){return new m(3400,!1)}function Gh(t){return new m(3401,!1)}function Qh(t){return new m(3402,!1)}function Kh(t,e){return new m(3505,!1)}var _b=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 tt(t){switch(t.length){case 0:return new et;case 1:return t[0];default:return new Sn(t)}}function zl(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 mr:g=n.get(f);break;case Ne: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 Ib(o);return i}function Di(t,e,n,r){switch(e){case"start":t.onStart(()=>r(n&&$l(n,"start",t)));break;case"done":t.onDone(()=>r(n&&$l(n,"done",t)));break;case"destroy":t.onDestroy(()=>r(n&&$l(n,"destroy",t)));break}}function $l(t,e,n){let r=n.totalTime,o=!!n.disabled,i=Ti(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 Ti(t,e,n,r,o="",i=0,s){return{element:t,triggerName:e,fromState:n,toState:r,phaseName:o,totalTime:i,disabled:!!s}}function ye(t,e,n){let r=t.get(e);return r||t.set(e,r=n),r}function Wl(t){let e=t.indexOf(":"),n=t.substring(1,e),r=t.slice(e+1);return[n,r]}var wb=typeof document>"u"?null:document.documentElement;function Mi(t){let e=t.parentNode||t.host||null;return e===wb?null:e}function bb(t){return t.substring(1,6)=="ebkit"}var Ht=null,wh=!1;function Zh(t){Ht||(Ht=Tb()||{},wh=Ht.style?"WebkitAppearance"in Ht.style:!1);let e=!0;return Ht.style&&!bb(t)&&(e=t in Ht.style,!e&&wh&&(e="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Ht.style)),e}function Db(t){return _b.has(t)}function Tb(){return typeof document<"u"?document.body:null}function Gl(t,e){for(;e;){if(e===t)return!0;e=Mi(e)}return!1}function Ql(t,e,n){if(n)return Array.from(t.querySelectorAll(e));let r=t.querySelector(e);return r?[r]:[]}var Mb=1e3,Kl="{{",Sb="}}",Si="ng-enter",yr="ng-leave",vr="ng-trigger",Er=".ng-trigger",Zl="ng-animating",Ci=".ng-animating";function Ue(t){if(typeof t=="number")return t;let e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Ul(parseFloat(e[1]),e[2])}function Ul(t,e){switch(e){case"s":return t*Mb;default:return t}}function Ir(t,e,n){return t.hasOwnProperty("duration")?t:Cb(t,e,n)}function Cb(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(_h(t)),{duration:0,delay:0,easing:""};o=Ul(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(i=Ul(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(gb()),a=!0),i<0&&(e.push(mb()),a=!0),a&&e.splice(l,0,_h(t))}return{duration:o,delay:i,easing:s}}function Yh(t){return t.length?t[0]instanceof Map?t:t.map(e=>new Map(Object.entries(e))):[]}function Yl(t){return Array.isArray(t)?new Map(...t):new Map(t)}function xe(t,e,n){e.forEach((r,o)=>{let i=Ni(o);n&&!n.has(o)&&n.set(o,t.style[i]),t.style[i]=r})}function ft(t,e){e.forEach((n,r)=>{let o=Ni(r);t.style[o]=""})}function Cn(t){return Array.isArray(t)?t.length==1?t[0]:Ih(t):t}function Jh(t,e,n){let r=e.params||{},o=Jl(t);o.length&&o.forEach(i=>{r.hasOwnProperty(i)||n.push(yb(i))})}var ql=new RegExp(`${Kl}\\s*(.+?)\\s*${Sb}`,"g");function Jl(t){let e=[];if(typeof t=="string"){let n;for(;n=ql.exec(t);)e.push(n[1]);ql.lastIndex=0}return e}function Nn(t,e,n){let r=`${t}`,o=r.replace(ql,(i,s)=>{let a=e[s];return a==null&&(n.push(vb(s)),a=""),a.toString()});return o==r?t:o}var Nb=/-+([a-z0-9])/g;function Ni(t){return t.replace(Nb,(...e)=>e[1].toUpperCase())}function xb(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Xh(t,e){return t===0||e===0}function eg(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,xi(t,a)))}}return e}function ve(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 Eb(e.type)}}function xi(t,e){return window.getComputedStyle(t)[e]}var hg=(()=>{class t{validateStyleProperty(n){return Zh(n)}containsElement(n,r){return Gl(n,r)}getParentElement(n){return Mi(n)}query(n,r,o){return Ql(n,r,o)}computeStyle(n,r,o){return o||""}animate(n,r,o,i,s,a=[],l){return new et(o,i)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=q({token:t,factory:t.\u0275fac})}return t})(),tg=class{static NOOP=new hg},oc=class{},ic=class{normalizePropertyName(e,n){return e}normalizeStyleValue(e,n,r,o){return r}},Ab=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"]),sc=class extends oc{normalizePropertyName(e,n){return Ni(e)}normalizeStyleValue(e,n,r,o){let i="",s=r.toString().trim();if(Ab.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(bh(e,r))}return s+i}};var Pi="*";function kb(t,e){let n=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(r=>Rb(r,n,e)):n.push(t),n}function Rb(t,e,n){if(t[0]==":"){let l=Ob(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(Ph(t)),e;let o=r[1],i=r[2],s=r[3];e.push(ng(o,s));let a=o==Pi&&s==Pi;i[0]=="<"&&!a&&e.push(ng(s,o))}function Ob(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(Fh(t)),"* => *"}}var Ai=new Set(["true","1"]),ki=new Set(["false","0"]);function ng(t,e){let n=Ai.has(t)||ki.has(t),r=Ai.has(e)||ki.has(e);return(o,i)=>{let s=t==Pi||t==o,a=e==Pi||e==i;return!s&&n&&typeof o=="boolean"&&(s=o?Ai.has(t):ki.has(t)),!a&&r&&typeof i=="boolean"&&(a=i?Ai.has(e):ki.has(e)),s&&a}}var gg=":self",Pb=new RegExp(`s*${gg}s*,?`,"g");function Ec(t,e,n,r){return new ac(t).build(e,n,r)}var rg="",ac=class{_driver;constructor(e){this._driver=e}build(e,n,r){let o=new lc(n);return this._resetContextStyleTimingState(o),ve(this,Cn(e),o)}_resetContextStyleTimingState(e){e.currentQuerySelector=rg,e.collectedStyles=new Map,e.collectedStyles.set(rg,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(Dh()),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(Th())}),{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=>{Jl(l).forEach(c=>{s.hasOwnProperty(c)||i.add(c)})})}),i.size&&n.errors.push(Mh(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=ve(this,Cn(e.animation),n),o=kb(e.expr,n.errors);return{type:D.Transition,matchers:o,animation:r,queryCount:n.queryCount,depCount:n.depCount,options:Bt(e.options)}}visitSequence(e,n){return{type:D.Sequence,steps:e.steps.map(r=>ve(this,r,n)),options:Bt(e.options)}}visitGroup(e,n){let r=n.currentTime,o=0,i=e.steps.map(s=>{n.currentTime=r;let a=ve(this,s,n);return o=Math.max(o,n.currentTime),a});return n.currentTime=o,{type:D.Group,steps:i,options:Bt(e.options)}}visitAnimate(e,n){let r=jb(e.timings,n.errors);n.currentAnimateTimings=r;let o,i=e.styles?e.styles:Bl({});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=Bl(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===Ne?r.push(a):n.errors.push(Sh(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(Kl)>=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(Ch(l,u.startTime,u.endTime,i,o)),d=!1),i=u.startTime),d&&c.set(l,{startTime:i,endTime:o}),n.options&&Jh(a,n.options,n.errors)})})}visitKeyframes(e,n){let r={type:D.Keyframes,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push(Nh()),r;let o=1,i=0,s=[],a=!1,l=!1,c=0,u=e.steps.map(E=>{let P=this._makeStyleAst(E,n),Y=P.offset!=null?P.offset:Vb(P.styles),J=0;return Y!=null&&(i++,J=P.offset=Y),l=l||J<0||J>1,a=a||J<c,c=J,s.push(J),P});l&&n.errors.push(xh()),a&&n.errors.push(Ah());let d=e.steps.length,p=0;i>0&&i<d?n.errors.push(kh()):i==0&&(p=o/(d-1));let f=d-1,h=n.currentTime,g=n.currentAnimateTimings,_=g.duration;return u.forEach((E,P)=>{let Y=p>0?P==f?1:p*P:s[P],J=Y*_;n.currentTime=h+g.delay+J,g.duration=J,this._validateStyleAst(E,n),E.offset=Y,r.styles.push(E)}),r}visitReference(e,n){return{type:D.Reference,animation:ve(this,Cn(e.animation),n),options:Bt(e.options)}}visitAnimateChild(e,n){return n.depCount++,{type:D.AnimateChild,options:Bt(e.options)}}visitAnimateRef(e,n){return{type:D.AnimateRef,animation:this.visitReference(e.animation,n),options:Bt(e.options)}}visitQuery(e,n){let r=n.currentQuerySelector,o=e.options||{};n.queryCount++,n.currentQuery=e;let[i,s]=Fb(e.selector);n.currentQuerySelector=r.length?r+" "+i:i,ye(n.collectedStyles,n.currentQuerySelector,new Map);let a=ve(this,Cn(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:Bt(e.options)}}visitStagger(e,n){n.currentQuery||n.errors.push(Rh());let r=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Ir(e.timings,n.errors,!0);return{type:D.Stagger,animation:ve(this,Cn(e.animation),n),timings:r,options:null}}};function Fb(t){let e=!!t.split(/\s*,\s*/).find(n=>n==gg);return e&&(t=t.replace(Pb,"")),t=t.replace(/@\*/g,Er).replace(/@\w+/g,n=>Er+"-"+n.slice(1)).replace(/:animating/g,Ci),[t,e]}function Lb(t){return t?W({},t):null}var lc=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 Vb(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 jb(t,e){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let i=Ir(t,e).duration;return Xl(i,0,"")}let n=t;if(n.split(/\s+/).some(i=>i.charAt(0)=="{"&&i.charAt(1)=="{")){let i=Xl(0,0,"");return i.dynamic=!0,i.strValue=n,i}let o=Ir(n,e);return Xl(o.duration,o.delay,o.easing)}function Bt(t){return t?(t=W({},t),t.params&&(t.params=Lb(t.params))):t={},t}function Xl(t,e,n){return{duration:t,delay:e,easing:n}}function Ic(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 An=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()}},Hb=1,Bb=":enter",$b=new RegExp(Bb,"g"),Ub=":leave",qb=new RegExp(Ub,"g");function _c(t,e,n,r,o,i=new Map,s=new Map,a,l,c=[]){return new cc().buildKeyframes(t,e,n,r,o,i,s,a,l,c)}var cc=class{buildKeyframes(e,n,r,o,i,s,a,l,c,u=[]){c=c||new An;let d=new uc(e,n,c,o,i,u,[]);d.options=l;let p=l.delay?Ue(l.delay):0;d.currentTimeline.delayNextStep(p),d.currentTimeline.setStyles([s],null,d.errors,l),ve(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 _=f[g];if(_.element===n){h=_;break}}h&&!h.allowOnlyTimelineStyles()&&h.setStyles([a],null,d.errors,l)}return f.length?f.map(h=>h.buildKeyframes()):[Ic(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:Ue(Nn(i,o?.params??{},n.errors));r.delayNextStep(s)}}}_visitSubInstructions(e,n,r){let i=n.currentTimeline.currentTime,s=r.duration!=null?Ue(r.duration):null,a=r.delay!=null?Ue(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),ve(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=Fi);let s=Ue(i.delay);o.delayNextStep(s)}e.steps.length&&(e.steps.forEach(s=>ve(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?Ue(e.options.delay):0;e.steps.forEach(s=>{let a=n.createSubContext(e.options);i&&a.delayNextStep(i),ve(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?Nn(r,n.params,n.errors):r;return Ir(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?Ue(o.delay):0;i&&(n.previousNode.type===D.Style||r==0&&n.currentTimeline.hasCurrentStyleProperties())&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=Fi);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),ve(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;ve(this,e.animation,n),n.previousNode=e,r.currentStaggerTime=o.currentTime-d+(o.startTime-r.currentTimeline.startTime)}},Fi={},uc=class t{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=Fi;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 Li(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=Ue(r.duration)),r.delay!=null&&(o.delay=Ue(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]=Nn(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=Fi,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 dc(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($b,"."+this._enterClassName),e=e.replace(qb,"."+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(Oh(n)),a}},Li=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+=Hb,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||Ne),this._currentKeyframe.set(n,Ne);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,n,r,o){n&&this._previousKeyframe.set("easing",n);let i=o&&o.params||{},s=zb(e,this._globalTimelineStyles);for(let[a,l]of s){let c=Nn(l,i,r);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Ne),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===mr?e.add(d):u===Ne&&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 Ic(this.element,o,i,s,this.duration,this.startTime,this.easing,!1)}},dc=class extends Li{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",og(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",og(h/s)),i.push(p)}r=s,n=0,o="",e=i}return Ic(this.element,e,this.preStyleProps,this.postStyleProps,r,n,o,!0)}};function og(t,e=3){let n=Math.pow(10,e-1);return Math.round(t*n)/n}function zb(t,e){let n=new Map,r;return t.forEach(o=>{if(o==="*"){r??=e.keys();for(let i of r)n.set(i,Ne)}else for(let[i,s]of o)n.set(i,s)}),n}function ig(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 ec={},Vi=class{_triggerName;ast;_stateStyles;constructor(e,n,r){this._triggerName=e,this.ast=n,this._stateStyles=r}match(e,n,r,o){return Wb(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||ec,f=a&&a.params||ec,h=this.buildStyles(r,f,d),g=l&&l.params||ec,_=this.buildStyles(o,g,d),E=new Set,P=new Map,Y=new Map,J=o==="void",$t={params:mg(g,p),delay:this.ast.options?.delay},ke=u?[]:_c(e,n,this.ast.animation,i,s,h,_,$t,c,d),oe=0;return ke.forEach(de=>{oe=Math.max(de.duration+de.delay,oe)}),d.length?ig(n,this._triggerName,r,o,J,h,_,[],[],P,Y,oe,d):(ke.forEach(de=>{let pt=de.element,Ut=ye(P,pt,new Set);de.preStyleProps.forEach(ht=>Ut.add(ht));let wc=ye(Y,pt,new Set);de.postStyleProps.forEach(ht=>wc.add(ht)),pt!==n&&E.add(pt)}),ig(n,this._triggerName,r,o,J,h,_,ke,[...E.values()],P,Y,oe))}};function Wb(t,e,n,r,o){return t.some(i=>i(e,n,r,o))}function mg(t,e){let n=W({},e);return Object.entries(t).forEach(([r,o])=>{o!=null&&(n[r]=o)}),n}var fc=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=mg(e,this.defaultParams);return this.styles.styles.forEach(i=>{typeof i!="string"&&i.forEach((s,a)=>{s&&(s=Nn(s,o,n));let l=this.normalizer.normalizePropertyName(a,n);s=this.normalizer.normalizeStyleValue(a,l,s,n),r.set(a,s)})}),r}};function Gb(t,e,n){return new pc(t,e,n)}var pc=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 fc(o.style,i,r))}),sg(this.states,"true","1"),sg(this.states,"false","0"),n.transitions.forEach(o=>{this.transitionFactories.push(new Vi(e,o,this.states))}),this.fallbackTransition=Qb(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 Qb(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 Vi(t,i,e)}function sg(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 Kb=new An,hc=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=Ec(this._driver,n,r,o);if(r.length)throw Hh(r);this._animations.set(e,i)}_buildPlayer(e,n,r){let o=e.element,i=zl(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=_c(this._driver,n,i,Si,yr,new Map,new Map,r,Kb,o),s.forEach(u=>{let d=ye(a,u.element,new Map);u.postStyleProps.forEach(p=>d.set(p,null))})):(o.push(Bh()),s=[]),o.length)throw $h(o);a.forEach((u,d)=>{u.forEach((p,f)=>{u.set(f,this._driver.computeStyle(d,f,Ne))})});let l=s.map(u=>{let d=a.get(u.element);return this._buildPlayer(u,new Map,d)}),c=tt(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 Uh(e);return n}listen(e,n,r,o){let i=Ti(n,"","","");return Di(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}}},ag="ng-animate-queued",Zb=".ng-animate-queued",tc="ng-animate-disabled",Yb=".ng-animate-disabled",Jb="ng-star-inserted",Xb=".ng-star-inserted",eD=[],yg={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},tD={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ae="__ng_removed",wr=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=rD(o),r){let i=e,{value:s}=i,a=Cc(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])})}}},_r="void",nc=new wr(_r),gc=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,Te(n,this._hostClassName)}listen(e,n,r,o){if(!this._triggers.has(n))throw qh(r,n);if(r==null||r.length==0)throw zh(n);if(!oD(r))throw Wh(r,n);let i=ye(this._elementListeners,e,[]),s={name:n,phase:r,callback:o};i.push(s);let a=ye(this._engine.statesByElement,e,new Map);return a.has(n)||(Te(e,vr),Te(e,vr+"-"+n),a.set(n,nc)),()=>{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 Gh(e);return n}trigger(e,n,r,o=!0){let i=this._getTrigger(n),s=new br(this.id,n,e),a=this._engine.statesByElement.get(e);a||(Te(e,vr),Te(e,vr+"-"+n),this._engine.statesByElement.set(e,a=new Map));let l=a.get(n),c=new wr(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(n,c),l||(l=nc),!(c.value===_r)&&l.value===c.value){if(!aD(l.params,c.params)){let g=[],_=i.matchStyles(l.value,l.params,g),E=i.matchStyles(c.value,c.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{ft(e,_),xe(e,E)})}return}let p=ye(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||(Te(e,ag),s.onStart(()=>{xn(e,ag)})),s.onDone(()=>{let g=this.players.indexOf(s);g>=0&&this.players.splice(g,1);let _=this._engine.playersByElement.get(e);if(_){let E=_.indexOf(s);E>=0&&_.splice(E,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,Er,!0);r.forEach(o=>{if(o[Ae])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,_r,o);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,n,s),r&&tt(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)||nc,u=new wr(_r),d=new br(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[Ae];(!i||i===yg)&&(r.afterFlush(()=>this.clearElementCache(e)),r.destroyInnerAnimations(e),r._onRemovalComplete(e,n))}}insertNode(e,n){Te(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=Ti(i,r.triggerName,r.fromState.value,r.toState.value);l._data=e,Di(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)}},mc=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 gc(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(Ri(n)){let i=this._fetchNamespace(e);if(i)return i.trigger(n,r,o),!0}return!1}insertNode(e,n,r,o){if(!Ri(n))return;let i=n[Ae];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),Te(e,tc)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),xn(e,tc))}removeNode(e,n,r){if(Ri(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[Ae]={namespaceId:e,setForRemoval:o,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:i}}listen(e,n,r,o,i){return Ri(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,Er,!0);n.forEach(r=>this.destroyActiveAnimationsForElement(r)),this.playersByQueriedElement.size!=0&&(n=this.driver.query(e,Ci,!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 tt(this.players).onDone(()=>e());e()})}processLeaveNode(e){let n=e[Ae];if(n&&n.setForRemoval){if(e[Ae]=yg,n.namespaceId){this.destroyInnerAnimations(e);let r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}e.classList?.contains(tc)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Yb,!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];Te(o,Jb)}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?tt(n).onDone(()=>{r.forEach(o=>o())}):r.forEach(o=>o())}}reportError(e){throw Qh(e)}_flushAnimations(e,n){let r=new An,o=[],i=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(y=>{u.add(y);let I=this.driver.query(y,Zb,!0);for(let w=0;w<I.length;w++)u.add(I[w])});let d=this.bodyNode,p=Array.from(this.statesByElement.keys()),f=ug(p,this.collectedEnterElements),h=new Map,g=0;f.forEach((y,I)=>{let w=Si+g++;h.set(I,w),y.forEach(R=>Te(R,w))});let _=[],E=new Set,P=new Set;for(let y=0;y<this.collectedLeaveElements.length;y++){let I=this.collectedLeaveElements[y],w=I[Ae];w&&w.setForRemoval&&(_.push(I),E.add(I),w.hasAnimation?this.driver.query(I,Xb,!0).forEach(R=>E.add(R)):P.add(I))}let Y=new Map,J=ug(p,Array.from(E));J.forEach((y,I)=>{let w=yr+g++;Y.set(I,w),y.forEach(R=>Te(R,w))}),e.push(()=>{f.forEach((y,I)=>{let w=h.get(I);y.forEach(R=>xn(R,w))}),J.forEach((y,I)=>{let w=Y.get(I);y.forEach(R=>xn(R,w))}),_.forEach(y=>{this.processLeaveNode(y)})});let $t=[],ke=[];for(let y=this._namespaceList.length-1;y>=0;y--)this._namespaceList[y].drainQueuedTransitions(n).forEach(w=>{let R=w.player,Z=w.element;if($t.push(R),this.collectedEnterElements.length){let ee=Z[Ae];if(ee&&ee.setForMove){if(ee.previousTriggersValues&&ee.previousTriggersValues.has(w.triggerName)){let gt=ee.previousTriggersValues.get(w.triggerName),we=this.statesByElement.get(w.element);if(we&&we.has(w.triggerName)){let Dr=we.get(w.triggerName);Dr.value=gt,we.set(w.triggerName,Dr)}}R.destroy();return}}let Re=!d||!this.driver.containsElement(d,Z),Ee=Y.get(Z),nt=h.get(Z),$=this._buildInstruction(w,r,nt,Ee,Re);if($.errors&&$.errors.length){ke.push($);return}if(Re){R.onStart(()=>ft(Z,$.fromStyles)),R.onDestroy(()=>xe(Z,$.toStyles)),o.push(R);return}if(w.isFallbackTransition){R.onStart(()=>ft(Z,$.fromStyles)),R.onDestroy(()=>xe(Z,$.toStyles)),o.push(R);return}let Tc=[];$.timelines.forEach(ee=>{ee.stretchStartingKeyframe=!0,this.disabledNodes.has(ee.element)||Tc.push(ee)}),$.timelines=Tc,r.append(Z,$.timelines);let Ig={instruction:$,player:R,element:Z};s.push(Ig),$.queriedElements.forEach(ee=>ye(a,ee,[]).push(R)),$.preStyleProps.forEach((ee,gt)=>{if(ee.size){let we=l.get(gt);we||l.set(gt,we=new Set),ee.forEach((Dr,Ui)=>we.add(Ui))}}),$.postStyleProps.forEach((ee,gt)=>{let we=c.get(gt);we||c.set(gt,we=new Set),ee.forEach((Dr,Ui)=>we.add(Ui))})});if(ke.length){let y=[];ke.forEach(I=>{y.push(Kh(I.triggerName,I.errors))}),$t.forEach(I=>I.destroy()),this.reportError(y)}let oe=new Map,de=new Map;s.forEach(y=>{let I=y.element;r.has(I)&&(de.set(I,I),this._beforeAnimationBuild(y.player.namespaceId,y.instruction,oe))}),o.forEach(y=>{let I=y.element;this._getPreviousPlayers(I,!1,y.namespaceId,y.triggerName,null).forEach(R=>{ye(oe,I,[]).push(R),R.destroy()})});let pt=_.filter(y=>dg(y,l,c)),Ut=new Map;cg(Ut,this.driver,P,c,Ne).forEach(y=>{dg(y,l,c)&&pt.push(y)});let ht=new Map;f.forEach((y,I)=>{cg(ht,this.driver,new Set(y),l,mr)}),pt.forEach(y=>{let I=Ut.get(y),w=ht.get(y);Ut.set(y,new Map([...I?.entries()??[],...w?.entries()??[]]))});let $i=[],bc=[],Dc={};s.forEach(y=>{let{element:I,player:w,instruction:R}=y;if(r.has(I)){if(u.has(I)){w.onDestroy(()=>xe(I,R.toStyles)),w.disabled=!0,w.overrideTotalTime(R.totalTime),o.push(w);return}let Z=Dc;if(de.size>1){let Ee=I,nt=[];for(;Ee=Ee.parentNode;){let $=de.get(Ee);if($){Z=$;break}nt.push(Ee)}nt.forEach($=>de.set($,Z))}let Re=this._buildAnimation(w.namespaceId,R,oe,i,ht,Ut);if(w.setRealPlayer(Re),Z===Dc)$i.push(w);else{let Ee=this.playersByElement.get(Z);Ee&&Ee.length&&(w.parentPlayer=tt(Ee)),o.push(w)}}else ft(I,R.fromStyles),w.onDestroy(()=>xe(I,R.toStyles)),bc.push(w),u.has(I)&&o.push(w)}),bc.forEach(y=>{let I=i.get(y.element);if(I&&I.length){let w=tt(I);y.setRealPlayer(w)}}),o.forEach(y=>{y.parentPlayer?y.syncPlayerEvents(y.parentPlayer):y.destroy()});for(let y=0;y<_.length;y++){let I=_[y],w=I[Ae];if(xn(I,yr),w&&w.hasAnimation)continue;let R=[];if(a.size){let Re=a.get(I);Re&&Re.length&&R.push(...Re);let Ee=this.driver.query(I,Ci,!0);for(let nt=0;nt<Ee.length;nt++){let $=a.get(Ee[nt]);$&&$.length&&R.push(...$)}}let Z=R.filter(Re=>!Re.destroyed);Z.length?iD(this,I,Z):this.processLeaveNode(I)}return _.length=0,$i.forEach(y=>{this.players.push(y),y.onDone(()=>{y.destroy();let I=this.players.indexOf(y);this.players.splice(I,1)}),y.play()}),$i}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==_r;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=ye(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)})}ft(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 _=g[Ae];if(_&&_.removedBeforeQueried)return new et(h.duration,h.delay);let E=g!==l,P=sD((r.get(g)||eD).map(oe=>oe.getRealPlayer())).filter(oe=>{let de=oe;return de.element?de.element===g:!1}),Y=i.get(g),J=s.get(g),$t=zl(this._normalizer,h.keyframes,Y,J),ke=this._buildPlayer(h,$t,P);if(h.subTimeline&&o&&d.add(g),E){let oe=new br(e,a,g);oe.setRealPlayer(ke),c.push(oe)}return ke});c.forEach(h=>{ye(this.playersByQueriedElement,h.element,[]).push(h),h.onDone(()=>nD(this.playersByQueriedElement,h.element,h))}),u.forEach(h=>Te(h,Zl));let f=tt(p);return f.onDestroy(()=>{u.forEach(h=>xn(h,Zl)),xe(l,n.toStyles)}),d.forEach(h=>{ye(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 et(e.duration,e.delay)}},br=class{namespaceId;triggerName;element;_player=new et;_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=>Di(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){ye(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 nD(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 rD(t){return t??null}function Ri(t){return t&&t.nodeType===1}function oD(t){return t=="start"||t=="done"}function lg(t,e){let n=t.style.display;return t.style.display=e??"none",n}function cg(t,e,n,r,o){let i=[];n.forEach(l=>i.push(lg(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[Ae]=tD,s.push(c))}),t.set(c,u)});let a=0;return n.forEach(l=>lg(l,i[a++])),s}function ug(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 Te(t,e){t.classList?.add(e)}function xn(t,e){t.classList?.remove(e)}function iD(t,e,n){tt(n).onDone(()=>t.processLeaveNode(e))}function sD(t){let e=[];return vg(t,e),e}function vg(t,e){for(let n=0;n<t.length;n++){let r=t[n];r instanceof Sn?vg(r.players,e):e.push(r)}}function aD(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 dg(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 ji=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,n)=>{};constructor(e,n,r){this._driver=n,this._normalizer=r,this._transitionEngine=new mc(e.body,n,r),this._timelineEngine=new hc(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=Ec(this._driver,i,l,c);if(l.length)throw jh(o,l);a=Gb(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]=Wl(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]=Wl(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 lD(t,e){let n=null,r=null;return Array.isArray(e)&&e.length?(n=rc(e[0]),e.length>1&&(r=rc(e[e.length-1]))):e instanceof Map&&(n=rc(e)),n||r?new cD(t,n,r):null}var cD=(()=>{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&&xe(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(xe(this._element,this._initialStyles),this._endStyles&&(xe(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(ft(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ft(this._element,this._endStyles),this._endStyles=null),xe(this._element,this._initialStyles),this._state=3)}}return t})();function rc(t){let e=null;return t.forEach((n,r)=>{uD(r)&&(e=e||new Map,e.set(r,n))}),e}function uD(t){return t==="display"||t==="position"}var Hi=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:xi(this.element,o))}),this.currentSnapshot=e}triggerCallback(e){let n=e==="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},yc=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,n){return Gl(e,n)}getParentElement(e){return Mi(e)}query(e,n,r){return Ql(e,n,r)}computeStyle(e,n,r){return xi(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 Hi);Xh(r,o)&&u.forEach(f=>{f.currentSnapshot.forEach((h,g)=>c.set(g,h))});let d=Yh(n).map(f=>new Map(f));d=eg(e,d,c);let p=lD(e,d);return new Hi(e,d,l,p)}};function UR(t,e){return t==="noop"?new ji(e,new hg,new ic):new ji(e,new yc,new sc)}var fg=class{_driver;_animationAst;constructor(e,n){this._driver=e;let r=[],i=Ec(e,n,r,[]);if(r.length)throw Lh(r);this._animationAst=i}buildTimelines(e,n,r,o,i){let s=Array.isArray(n)?Yl(n):n,a=Array.isArray(r)?Yl(r):r,l=[];i=i||new An;let c=_c(this._driver,e,this._animationAst,Si,yr,s,a,o,i,l);if(l.length)throw Vh(l);return c}},Oi="@",Eg="@.disabled",Bi=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)==Oi&&n==Eg?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)}},vc=class extends Bi{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)==Oi?n.charAt(1)=="."&&n==Eg?(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)==Oi){let i=dD(e),s=n.slice(1),a="";return s.charAt(0)!=Oi&&([s,a]=fD(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 dD(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function fD(t){let e=t.indexOf("."),n=t.substring(0,e),r=t.slice(e+1);return[n,r]}var pg=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 Bi(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 vc(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{W as a,fe as b,pD as c,hD as d,Cc as e,gD as f,mD as g,U as h,jg as i,O as j,hs as k,gs as l,be as m,Ln as n,jn as o,$g as p,It as q,Pe as r,Zg as s,Yg as t,Jg as u,wt as v,rt as w,sm as x,bt as y,Bn as z,so as A,lm as B,cm as C,um as D,dm as E,tn as F,fm as G,ys as H,pm as I,hm as J,$n as K,vs as L,gm as M,vm as N,Em as O,Es as P,Im as Q,_m as R,wm as S,bm as T,lu as U,Dm as V,cu as W,m as X,Qn as Y,hd as Z,q as _,Nm as $,UA as aa,F as ba,k as ca,Ie as da,A as ea,Ym as fa,Rd as ga,lt as ha,Pd as ia,Ld as ja,qA as ka,zA as la,WA as ma,GA as na,QA as oa,KA as pa,ZA as qa,Qe as ra,ur as sa,Pt as ta,ui as ua,ot as va,le as wa,Lo as xa,ut as ya,YA as za,JA as Aa,di as Ba,cv as Ca,XA as Da,hv as Ea,mv as Fa,ek as Ga,tk as Ha,nk as Ia,fi as Ja,pi as Ka,bv as La,Xn as Ma,Tn as Na,yl as Oa,rk as Pa,ok as Qa,ik as Ra,sk as Sa,ak as Ta,Lf as Ua,qv as Va,gi as Wa,lk as Xa,Wv as Ya,ck as Za,uk as _a,dk as $a,da as ab,pk as bb,hk as cb,Bo as db,hI as eb,wi as fb,$o as gb,Ik as hb,bi as ib,_k as jb,Rl as kb,bk as lb,Dk as mb,Tk as nb,nr as ob,r_ as pb,Ck as qb,i_ as rb,Nk as sb,c_ as tb,xk as ub,Ak as vb,h_ as wb,kk as xb,D_ as yb,Rk as zb,S_ as Ab,C_ as Bb,Ok as Cb,N_ as Db,Hp as Eb,A_ as Fb,Pk as Gb,k_ as Hb,gn as Ib,L_ as Jb,Z_ as Kb,Y_ as Lb,J_ as Mb,Fk as Nb,Lk as Ob,Vk as Pb,jk as Qb,Hk as Rb,Bk as Sb,$k as Tb,nh as Ub,rh as Vb,dw as Wb,oh as Xb,ih as Yb,hw as Zb,Uk as _b,mw as $b,qk as ac,_w as bc,zk as cc,Wk as dc,Gk as ec,Tw as fc,Mw as gc,Qk as hc,Kk as ic,Zk as jc,Yk as kc,Jk as lc,Xk as mc,eR as nc,tR as oc,nR as pc,Cw as qc,lh as rc,Nw as sc,xw as tc,rR as uc,Aw as vc,Rw as wc,oR as xc,iR as yc,sR as zc,aR as Ac,lR as Bc,cR as Cc,uR as Dc,dR as Ec,fR as Fc,pR as Gc,hR as Hc,gR as Ic,mR as Jc,yR as Kc,vR as Lc,gh as Mc,eb as Nc,ER as Oc,ab as Pc,lb as Qc,IR as Rc,_R as Sc,wR as Tc,bR as Uc,DR as Vc,TR as Wc,cb as Xc,MR as Yc,SR as Zc,NR as _c,xR as $c,Bl as ad,AR as bd,kR as cd,RR as dd,OR as ed,PR as fd,FR as gd,Mi as hd,Zh as id,Db as jd,Gl as kd,Ql as ld,Yh as md,xb as nd,Xh as od,hg as pd,tg as qd,oc as rd,ic as sd,sc as td,ji as ud,Hi as vd,yc as wd,UR as xd,fg as yd,Bi as zd,vc as Ad,pg as Bd};