aiservermanager 0.6.6 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/backend/dist/files/grantLogonServiceRight.ps1 +171 -0
- package/backend/dist/files/winsw/LICENSE-WinSW.txt +21 -0
- package/backend/dist/files/winsw/WinSW-x64.exe +0 -0
- package/backend/dist/helpers/ExecTools.js +22 -5
- package/backend/dist/helpers/ExecTools.js.map +1 -1
- package/backend/dist/helpers/ServerIdentity.js +64 -0
- package/backend/dist/helpers/ServerIdentity.js.map +1 -0
- package/backend/dist/index.js +18 -4
- package/backend/dist/index.js.map +1 -1
- package/backend/dist/models/ServiceConfig.js +54 -6
- package/backend/dist/models/ServiceConfig.js.map +1 -1
- package/backend/dist/routes/serviceRoutes.js +11 -3
- package/backend/dist/routes/serviceRoutes.js.map +1 -1
- package/backend/dist/routes/systemRoutes.js +3 -1
- package/backend/dist/routes/systemRoutes.js.map +1 -1
- package/backend/dist/services/controllers/systemctlController.js +29 -3
- package/backend/dist/services/controllers/systemctlController.js.map +1 -1
- package/backend/dist/services/controllers/windowsServiceController.js +419 -93
- package/backend/dist/services/controllers/windowsServiceController.js.map +1 -1
- package/backend/dist/services/helpers/winswConfig.js +248 -0
- package/backend/dist/services/helpers/winswConfig.js.map +1 -0
- package/backend/dist/services/helpers/winswLog.js +28 -0
- package/backend/dist/services/helpers/winswLog.js.map +1 -0
- package/backend/dist/services/serviceConfigController.js +25 -6
- package/backend/dist/services/serviceConfigController.js.map +1 -1
- package/backend/dist/services/serviceManager.js +11 -4
- package/backend/dist/services/serviceManager.js.map +1 -1
- package/backend/public/browser/{chunk-XHW7OYSF.js → chunk-P5KEWYS5.js} +1 -1
- package/backend/public/browser/chunk-QZRO6WVW.js +4 -0
- package/backend/public/browser/index.html +1 -1
- package/backend/public/browser/{main-FY4VDMXL.js → main-2RRTWG2U.js} +48 -48
- package/package.json +1 -1
- package/backend/public/browser/chunk-3RZETQM3.js +0 -4
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var Yg=Object.defineProperty,Jg=Object.defineProperties;var Xg=Object.getOwnPropertyDescriptors;var ro=Object.getOwnPropertySymbols;var ku=Object.prototype.hasOwnProperty,Ru=Object.prototype.propertyIsEnumerable;var Au=(t,e,n)=>e in t?Yg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,G=(t,e)=>{for(var n in e||={})ku.call(e,n)&&Au(t,n,e[n]);if(ro)for(var n of ro(e))Ru.call(e,n)&&Au(t,n,e[n]);return t},ee=(t,e)=>Jg(t,Xg(e));var Ns=(t,e)=>{var n={};for(var r in t)ku.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&ro)for(var r of ro(t))e.indexOf(r)<0&&Ru.call(t,r)&&(n[r]=t[r]);return n};var xs=(t,e,n)=>new Promise((r,o)=>{var i=c=>{try{a(n.next(c))}catch(l){o(l)}},s=c=>{try{a(n.throw(c))}catch(l){o(l)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(i,s);a((n=n.apply(t,e)).next())});var ce=null,oo=!1,Ft=1,ey=null,Z=Symbol("SIGNAL");function D(t){let e=ce;return ce=t,e}function co(){return ce}var jt={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Vt(t){if(oo)throw new Error("");if(ce===null)return;ce.consumerOnSignalRead(t);let e=ce.producersTail;if(e!==void 0&&e.producer===t)return;let n,r=ce.recomputing;if(r&&(n=e!==void 0?e.nextProducer:ce.producers,n!==void 0&&n.producer===t)){ce.producersTail=n,n.lastReadVersion=t.version,n.knownValidAtEpoch=Ft;return}let o=t.consumersTail;if(o!==void 0&&o.consumer===ce&&(!r||o.knownValidAtEpoch===Ft))return;let i=En(ce),s={producer:t,consumer:ce,nextProducer:n,prevConsumer:void 0,knownValidAtEpoch:Ft,lastReadVersion:t.version,nextConsumer:void 0};ce.producersTail=s,e!==void 0?e.nextProducer=s:ce.producers=s,i&&Fu(t,s)}function Ou(){Ft++}function lo(t){if(!(En(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===Ft)){if(!t.producerMustRecompute(t)&&!vn(t)){ao(t);return}t.producerRecomputeValue(t),ao(t)}}function As(t){if(t.consumers===void 0)return;let e=oo;oo=!0;try{for(let n=t.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||ty(r)}}finally{oo=e}}function ks(){return ce?.consumerAllowSignalWrites!==!1}function ty(t){t.dirty=!0,As(t),t.consumerMarkedDirty?.(t)}function ao(t){t.dirty=!1,t.lastCleanEpoch=Ft}function ht(t){return t&&Pu(t),D(t)}function Pu(t){if(t.producersTail?.knownValidAtEpoch===Ft){let e=t.producers;for(;e!==void 0;)e.knownValidAtEpoch=null,e=e.nextProducer}t.producersTail=void 0,t.recomputing=!0}function Ht(t,e){D(e),t&&Lu(t)}function Lu(t){t.recomputing=!1;let e=t.producersTail,n=e!==void 0?e.nextProducer:t.producers;if(n!==void 0){if(En(t))do n=Rs(n);while(n!==void 0);e!==void 0?e.nextProducer=void 0:t.producers=void 0}}function vn(t){for(let e=t.producers;e!==void 0;e=e.nextProducer){let n=e.producer,r=e.lastReadVersion;if(r!==n.version||(lo(n),r!==n.version))return!0}return!1}function mt(t){if(En(t)){let e=t.producers;for(;e!==void 0;)e=Rs(e)}t.producers=void 0,t.producersTail=void 0,t.consumers=void 0,t.consumersTail=void 0}function Fu(t,e){let n=t.consumersTail,r=En(t);if(n!==void 0?(e.nextConsumer=n.nextConsumer,n.nextConsumer=e):(e.nextConsumer=void 0,t.consumers=e),e.prevConsumer=n,t.consumersTail=e,!r)for(let o=t.producers;o!==void 0;o=o.nextProducer)Fu(o.producer,o)}function Rs(t){let e=t.producer,n=t.nextProducer,r=t.nextConsumer,o=t.prevConsumer;if(t.nextConsumer=void 0,t.prevConsumer=void 0,r!==void 0?r.prevConsumer=o:e.consumersTail=o,o!==void 0)o.nextConsumer=r;else if(e.consumers=r,!En(e)){let i=e.producers;for(;i!==void 0;)i=Rs(i)}return n}function En(t){return t.consumerIsAlwaysLive||t.consumers!==void 0}function uo(t){ey?.(t)}function fo(t,e){return Object.is(t,e)}function ir(t,e){let n=Object.create(ny);n.computation=t,e!==void 0&&(n.equal=e);let r=()=>{if(lo(n),Vt(n),n.value===or)throw n.error;return n.value};return r[Z]=n,uo(n),r}var io=Symbol("UNSET"),so=Symbol("COMPUTING"),or=Symbol("ERRORED"),ny=ee(G({},jt),{value:io,dirty:!0,error:null,equal:fo,kind:"computed",producerMustRecompute(t){return t.value===io||t.value===so},producerRecomputeValue(t){if(t.value===so)throw new Error("");let e=t.value;t.value=so;let n=ht(t),r,o=!1;try{r=t.computation(),D(null),o=e!==io&&e!==or&&r!==or&&t.equal(e,r)}catch(i){r=or,t.error=i}finally{Ht(t,n)}if(o){t.value=e;return}t.value=r,t.version++}});function ry(){throw new Error}var ju=ry;function Vu(t){ju(t)}function Os(t){ju=t}var oy=null;function Ps(t,e){let n=Object.create(sr);n.value=t,e!==void 0&&(n.equal=e);let r=()=>Hu(n);return r[Z]=n,uo(n),[r,s=>In(n,s),s=>Ls(n,s)]}function Hu(t){return Vt(t),t.value}function In(t,e){ks()||Vu(t),t.equal(t.value,e)||(t.value=e,iy(t))}function Ls(t,e){ks()||Vu(t),In(t,e(t.value))}var sr=ee(G({},jt),{equal:fo,value:void 0,kind:"signal"});function iy(t){t.version++,Ou(),As(t),oy?.(t)}var Fs=ee(G({},jt),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function js(t){if(t.dirty=!1,t.version>0&&!vn(t))return;t.version++;let e=ht(t);try{t.cleanup(),t.fn()}finally{Ht(t,e)}}var Vs;function po(){return Vs}function Ue(t){let e=Vs;return Vs=t,e}var Bu=Symbol("NotFound");function Dn(t){return t===Bu||t?.name==="\u0275NotFound"}function $u(t){let e=D(null);try{return t()}finally{D(e)}}function C(t){return typeof t=="function"}function _n(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 ho=_n(t=>function(n){t(this),this.message=n?`${n.length} errors occurred during unsubscription:
|
|
2
|
+
${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
|
|
3
|
+
`)}`:"",this.name="UnsubscriptionError",this.errors=n});function Bt(t,e){if(t){let n=t.indexOf(e);0<=n&&t.splice(n,1)}}var $=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(C(r))try{r()}catch(i){e=i instanceof ho?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Uu(i)}catch(s){e=e??[],s instanceof ho?e=[...e,...s.errors]:e.push(s)}}if(e)throw new ho(e)}}add(e){var n;if(e&&e!==this)if(this.closed)Uu(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)&&Bt(n,e)}remove(e){let{_finalizers:n}=this;n&&Bt(n,e),e instanceof t&&e._removeParent(this)}};$.EMPTY=(()=>{let t=new $;return t.closed=!0,t})();var Hs=$.EMPTY;function mo(t){return t instanceof $||t&&"closed"in t&&C(t.remove)&&C(t.add)&&C(t.unsubscribe)}function Uu(t){C(t)?t():t.unsubscribe()}var Me={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Tn={setTimeout(t,e,...n){let{delegate:r}=Tn;return r?.setTimeout?r.setTimeout(t,e,...n):setTimeout(t,e,...n)},clearTimeout(t){let{delegate:e}=Tn;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function go(t){Tn.setTimeout(()=>{let{onUnhandledError:e}=Me;if(e)e(t);else throw t})}function $t(){}var qu=Bs("C",void 0,void 0);function zu(t){return Bs("E",void 0,t)}function Gu(t){return Bs("N",t,void 0)}function Bs(t,e,n){return{kind:t,value:e,error:n}}var Ut=null;function wn(t){if(Me.useDeprecatedSynchronousErrorHandling){let e=!Ut;if(e&&(Ut={errorThrown:!1,error:null}),t(),e){let{errorThrown:n,error:r}=Ut;if(Ut=null,n)throw r}}else t()}function Wu(t){Me.useDeprecatedSynchronousErrorHandling&&Ut&&(Ut.errorThrown=!0,Ut.error=t)}var qt=class extends ${constructor(e){super(),this.isStopped=!1,e?(this.destination=e,mo(e)&&e.add(this)):this.destination=cy}static create(e,n,r){return new Ne(e,n,r)}next(e){this.isStopped?Us(Gu(e),this):this._next(e)}error(e){this.isStopped?Us(zu(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Us(qu,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()}}},sy=Function.prototype.bind;function $s(t,e){return sy.call(t,e)}var qs=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:n}=this;if(n.next)try{n.next(e)}catch(r){yo(r)}}error(e){let{partialObserver:n}=this;if(n.error)try{n.error(e)}catch(r){yo(r)}else yo(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(n){yo(n)}}},Ne=class extends qt{constructor(e,n,r){super();let o;if(C(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&&$s(e.next,i),error:e.error&&$s(e.error,i),complete:e.complete&&$s(e.complete,i)}):o=e}this.destination=new qs(o)}};function yo(t){Me.useDeprecatedSynchronousErrorHandling?Wu(t):go(t)}function ay(t){throw t}function Us(t,e){let{onStoppedNotification:n}=Me;n&&Tn.setTimeout(()=>n(t,e))}var cy={closed:!0,next:$t,error:ay,complete:$t};var bn=typeof Symbol=="function"&&Symbol.observable||"@@observable";function xe(t){return t}function Qu(t){return t.length===0?xe:t.length===1?t[0]:function(n){return t.reduce((r,o)=>o(r),n)}}var k=(()=>{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=uy(n)?n:new Ne(n,r,o);return wn(()=>{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=Ku(r),new r((o,i)=>{let s=new Ne({next:a=>{try{n(a)}catch(c){i(c),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)}[bn](){return this}pipe(...n){return Qu(n)(this)}toPromise(n){return n=Ku(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 Ku(t){var e;return(e=t??Me.Promise)!==null&&e!==void 0?e:Promise}function ly(t){return t&&C(t.next)&&C(t.error)&&C(t.complete)}function uy(t){return t&&t instanceof qt||ly(t)&&mo(t)}function zs(t){return C(t?.lift)}function x(t){return e=>{if(zs(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 N(t,e,n,r,o){return new Gs(t,e,n,r,o)}var Gs=class extends qt{constructor(e,n,r,o,i,s){super(e),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){e.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){e.error(c)}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 Zu(){return x((t,e)=>{let n=null;t._refCount++;let r=N(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 Ws=class extends k{constructor(e,n){super(),this.source=e,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,zs(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 $;let n=this.getSubject();e.add(this.source.subscribe(N(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),e.closed&&(this._connection=null,e=$.EMPTY)}return e}refCount(){return Zu()(this)}};var Sn={schedule(t){let e=requestAnimationFrame,n=cancelAnimationFrame,{delegate:r}=Sn;r&&(e=r.requestAnimationFrame,n=r.cancelAnimationFrame);let o=e(i=>{n=void 0,t(i)});return new $(()=>n?.(o))},requestAnimationFrame(...t){let{delegate:e}=Sn;return(e?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){let{delegate:e}=Sn;return(e?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0};var Yu=_n(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ye=(()=>{class t extends k{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new vo(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Yu}next(n){wn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){wn(()=>{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(){wn(()=>{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?Hs:(this.currentObservers=null,i.push(n),new $(()=>{this.currentObservers=null,Bt(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new k;return n.source=this,n}}return t.create=(e,n)=>new vo(e,n),t})(),vo=class extends ye{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:Hs}};var ar=class extends ye{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 cr={now(){return(cr.delegate||Date).now()},delegate:void 0};var lr=class extends ye{constructor(e=1/0,n=1/0,r=cr){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 c=1;c<r.length&&r[c]<=s;c+=2)a=c;a&&r.splice(0,a+1)}}};var Eo=class extends ${constructor(e,n){super()}schedule(e,n=0){return this}};var ur={setInterval(t,e,...n){let{delegate:r}=ur;return r?.setInterval?r.setInterval(t,e,...n):setInterval(t,e,...n)},clearInterval(t){let{delegate:e}=ur;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var gt=class extends Eo{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 ur.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&&ur.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,Bt(r,this),e!=null&&(this.id=this.recycleAsyncId(n,e,null)),this.delay=null,super.unsubscribe()}}};var dy=1,Qs,Ks={};function Ju(t){return t in Ks?(delete Ks[t],!0):!1}var Xu={setImmediate(t){let e=dy++;return Ks[e]=!0,Qs||(Qs=Promise.resolve()),Qs.then(()=>Ju(e)&&t()),e},clearImmediate(t){Ju(t)}};var{setImmediate:fy,clearImmediate:py}=Xu,dr={setImmediate(...t){let{delegate:e}=dr;return(e?.setImmediate||fy)(...t)},clearImmediate(t){let{delegate:e}=dr;return(e?.clearImmediate||py)(t)},delegate:void 0};var Io=class extends gt{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=dr.setImmediate(e.flush.bind(e,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&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(dr.clearImmediate(n),e._scheduled===n&&(e._scheduled=void 0))}};var Cn=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)}};Cn.now=cr.now;var yt=class extends Cn{constructor(e,n=Cn.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 Do=class extends yt{flush(e){this._active=!0;let 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 hy=new Do(Io);var zt=new yt(gt),ed=zt;var _o=class extends gt{constructor(e,n){super(e,n),this.scheduler=e,this.work=n}requestAsyncId(e,n,r=0){return r!==null&&r>0?super.requestAsyncId(e,n,r):(e.actions.push(this),e._scheduled||(e._scheduled=Sn.requestAnimationFrame(()=>e.flush(void 0))))}recycleAsyncId(e,n,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(e,n,r);let{actions:i}=e;n!=null&&n===e._scheduled&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(Sn.cancelAnimationFrame(n),e._scheduled=void 0)}};var To=class extends yt{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 my=new To(_o);var fr=new k(t=>t.complete());function wo(t){return t&&C(t.schedule)}function Zs(t){return t[t.length-1]}function bo(t){return C(Zs(t))?t.pop():void 0}function qe(t){return wo(Zs(t))?t.pop():void 0}function td(t,e){return typeof Zs(t)=="number"?t.pop():e}function rd(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{l(r.next(u))}catch(d){s(d)}}function c(u){try{l(r.throw(u))}catch(d){s(d)}}function l(u){u.done?i(u.value):o(u.value).then(a,c)}l((r=r.apply(t,e||[])).next())})}function nd(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 Gt(t){return this instanceof Gt?(this.v=t,this):new Gt(t)}function od(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(m){return new Promise(function(v,_){i.push([f,m,v,_])>1||c(f,m)})},h&&(o[f]=h(o[f])))}function c(f,h){try{l(r[f](h))}catch(m){p(i[0][3],m)}}function l(f){f.value instanceof Gt?Promise.resolve(f.value.v).then(u,d):p(i[0][2],f)}function u(f){c("next",f)}function d(f){c("throw",f)}function p(f,h){f(h),i.shift(),i.length&&c(i[0][0],i[0][1])}}function id(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 nd=="function"?nd(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,c){s=t[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(l){i({value:l,done:a})},s)}}var So=t=>t&&typeof t.length=="number"&&typeof t!="function";function Co(t){return C(t?.then)}function Mo(t){return C(t[bn])}function No(t){return Symbol.asyncIterator&&C(t?.[Symbol.asyncIterator])}function xo(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 gy(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Ao=gy();function ko(t){return C(t?.[Ao])}function Ro(t){return od(this,arguments,function*(){let n=t.getReader();try{for(;;){let{value:r,done:o}=yield Gt(n.read());if(o)return yield Gt(void 0);yield yield Gt(r)}}finally{n.releaseLock()}})}function Oo(t){return C(t?.getReader)}function j(t){if(t instanceof k)return t;if(t!=null){if(Mo(t))return yy(t);if(So(t))return vy(t);if(Co(t))return Ey(t);if(No(t))return sd(t);if(ko(t))return Iy(t);if(Oo(t))return Dy(t)}throw xo(t)}function yy(t){return new k(e=>{let n=t[bn]();if(C(n.subscribe))return n.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function vy(t){return new k(e=>{for(let n=0;n<t.length&&!e.closed;n++)e.next(t[n]);e.complete()})}function Ey(t){return new k(e=>{t.then(n=>{e.closed||(e.next(n),e.complete())},n=>e.error(n)).then(null,go)})}function Iy(t){return new k(e=>{for(let n of t)if(e.next(n),e.closed)return;e.complete()})}function sd(t){return new k(e=>{_y(t,e).catch(n=>e.error(n))})}function Dy(t){return sd(Ro(t))}function _y(t,e){var n,r,o,i;return rd(this,void 0,void 0,function*(){try{for(n=id(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 fe(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 Po(t,e=0){return x((n,r)=>{n.subscribe(N(r,o=>fe(r,t,()=>r.next(o),e),()=>fe(r,t,()=>r.complete(),e),o=>fe(r,t,()=>r.error(o),e)))})}function Lo(t,e=0){return x((n,r)=>{r.add(t.schedule(()=>n.subscribe(r),e))})}function ad(t,e){return j(t).pipe(Lo(e),Po(e))}function cd(t,e){return j(t).pipe(Lo(e),Po(e))}function ld(t,e){return new k(n=>{let r=0;return e.schedule(function(){r===t.length?n.complete():(n.next(t[r++]),n.closed||this.schedule())})})}function ud(t,e){return new k(n=>{let r;return fe(n,e,()=>{r=t[Ao](),fe(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)}),()=>C(r?.return)&&r.return()})}function Fo(t,e){if(!t)throw new Error("Iterable cannot be null");return new k(n=>{fe(n,e,()=>{let r=t[Symbol.asyncIterator]();fe(n,e,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function dd(t,e){return Fo(Ro(t),e)}function fd(t,e){if(t!=null){if(Mo(t))return ad(t,e);if(So(t))return ld(t,e);if(Co(t))return cd(t,e);if(No(t))return Fo(t,e);if(ko(t))return ud(t,e);if(Oo(t))return dd(t,e)}throw xo(t)}function ze(t,e){return e?fd(t,e):j(t)}function Ty(...t){let e=qe(t);return ze(t,e)}function wy(t,e){let n=C(t)?t:()=>t,r=o=>o.error(n());return new k(e?o=>e.schedule(r,0,o):r)}function by(t){return!!t&&(t instanceof k||C(t.lift)&&C(t.subscribe))}var pd=_n(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function Sy(t,e){let n=typeof e=="object";return new Promise((r,o)=>{let i=new Ne({next:s=>{r(s),i.unsubscribe()},error:o,complete:()=>{n?r(e.defaultValue):o(new pd)}});t.subscribe(i)})}function hd(t){return t instanceof Date&&!isNaN(t)}function tt(t,e){return x((n,r)=>{let o=0;n.subscribe(N(r,i=>{r.next(t.call(e,i,o++))}))})}var{isArray:Cy}=Array;function My(t,e){return Cy(e)?t(...e):t(e)}function jo(t){return tt(e=>My(t,e))}var{isArray:Ny}=Array,{getPrototypeOf:xy,prototype:Ay,keys:ky}=Object;function Vo(t){if(t.length===1){let e=t[0];if(Ny(e))return{args:e,keys:null};if(Ry(e)){let n=ky(e);return{args:n.map(r=>e[r]),keys:n}}}return{args:t,keys:null}}function Ry(t){return t&&typeof t=="object"&&xy(t)===Ay}function Ho(t,e){return t.reduce((n,r,o)=>(n[r]=e[o],n),{})}function Oy(...t){let e=qe(t),n=bo(t),{args:r,keys:o}=Vo(t);if(r.length===0)return ze([],e);let i=new k(Py(r,e,o?s=>Ho(o,s):xe));return n?i.pipe(jo(n)):i}function Py(t,e,n=xe){return r=>{md(e,()=>{let{length:o}=t,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)md(e,()=>{let l=ze(t[c],e),u=!1;l.subscribe(N(r,d=>{i[c]=d,u||(u=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function md(t,e,n){t?fe(n,t,e):e()}function gd(t,e,n,r,o,i,s,a){let c=[],l=0,u=0,d=!1,p=()=>{d&&!c.length&&!l&&e.complete()},f=m=>l<r?h(m):c.push(m),h=m=>{i&&e.next(m),l++;let v=!1;j(n(m,u++)).subscribe(N(e,_=>{o?.(_),i?f(_):e.next(_)},()=>{v=!0},void 0,()=>{if(v)try{for(l--;c.length&&l<r;){let _=c.shift();s?fe(e,s,()=>h(_)):h(_)}p()}catch(_){e.error(_)}}))};return t.subscribe(N(e,f,()=>{d=!0,p()})),()=>{a?.()}}function vt(t,e,n=1/0){return C(e)?vt((r,o)=>tt((i,s)=>e(r,i,o,s))(j(t(r,o))),n):(typeof e=="number"&&(n=e),x((r,o)=>gd(r,o,t,n)))}function Bo(t=1/0){return vt(xe,t)}function yd(){return Bo(1)}function Mn(...t){return yd()(ze(t,qe(t)))}function Ly(t){return new k(e=>{j(t()).subscribe(e)})}function Fy(...t){let e=bo(t),{args:n,keys:r}=Vo(t),o=new k(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,l=s;for(let u=0;u<s;u++){let d=!1;j(n[u]).subscribe(N(i,p=>{d||(d=!0,l--),a[u]=p},()=>c--,void 0,()=>{(!c||!d)&&(l||i.next(r?Ho(r,a):a),i.complete())}))}});return e?o.pipe(jo(e)):o}function pr(t=0,e,n=ed){let r=-1;return e!=null&&(wo(e)?n=e:r=e),new k(o=>{let i=hd(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 jy(...t){let e=qe(t),n=td(t,1/0),r=t;return r.length?r.length===1?j(r[0]):Bo(n)(ze(r,e)):fr}function Ys(t,e){return x((n,r)=>{let o=0;n.subscribe(N(r,i=>t.call(e,i,o++)&&r.next(i)))})}function vd(t){return x((e,n)=>{let r=!1,o=null,i=null,s=!1,a=()=>{if(i?.unsubscribe(),i=null,r){r=!1;let l=o;o=null,n.next(l)}s&&n.complete()},c=()=>{i=null,s&&n.complete()};e.subscribe(N(n,l=>{r=!0,o=l,i||j(t(l)).subscribe(i=N(n,a,c))},()=>{s=!0,(!r||!i||i.closed)&&n.complete()}))})}function Vy(t,e=zt){return vd(()=>pr(t,e))}function Js(t){return x((e,n)=>{let r=null,o=!1,i;r=e.subscribe(N(n,void 0,void 0,s=>{i=j(t(s,Js(t)(e))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function Hy(t,e){return C(e)?vt(t,e,1):vt(t,1)}function Ed(t,e=zt){return x((n,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let l=i;i=null,r.next(l)}};function c(){let l=s+t,u=e.now();if(u<l){o=this.schedule(void 0,l-u),r.add(o);return}a()}n.subscribe(N(r,l=>{i=l,s=e.now(),o||(o=e.schedule(c,t),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}function $o(t){return t<=0?()=>fr:x((e,n)=>{let r=0;e.subscribe(N(n,o=>{++r<=t&&(n.next(o),t<=r&&n.complete())}))})}function Id(){return x((t,e)=>{t.subscribe(N(e,$t))})}function Dd(t){return tt(()=>t)}function Xs(t,e){return e?n=>Mn(e.pipe($o(1),Id()),n.pipe(Xs(t))):vt((n,r)=>j(t(n,r)).pipe($o(1),Dd(n)))}function By(t,e=zt){let n=pr(t,e);return Xs(()=>n)}function _d(t,e=xe){return t=t??$y,x((n,r)=>{let o,i=!0;n.subscribe(N(r,s=>{let a=e(s);(i||!t(o,a))&&(i=!1,o=a,r.next(s))}))})}function $y(t,e){return t===e}function Uy(t){return x((e,n)=>{try{e.subscribe(n)}finally{n.add(t)}})}function qy(){return x((t,e)=>{let n,r=!1;t.subscribe(N(e,o=>{let i=n;n=o,r&&e.next([i,o]),r=!0}))})}function ta(t={}){let{connector:e=()=>new ye,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=t;return i=>{let s,a,c,l=0,u=!1,d=!1,p=()=>{a?.unsubscribe(),a=void 0},f=()=>{p(),s=c=void 0,u=d=!1},h=()=>{let m=s;f(),m?.unsubscribe()};return x((m,v)=>{l++,!d&&!u&&p();let _=c=c??e();v.add(()=>{l--,l===0&&!d&&!u&&(a=ea(h,o))}),_.subscribe(v),!s&&l>0&&(s=new Ne({next:L=>_.next(L),error:L=>{d=!0,p(),a=ea(f,n,L),_.error(L)},complete:()=>{u=!0,p(),a=ea(f,r),_.complete()}}),j(m).subscribe(s))})(i)}}function ea(t,e,...n){if(e===!0){t();return}if(e===!1)return;let r=new Ne({next:()=>{r.unsubscribe(),t()}});return j(e(...n)).subscribe(r)}function zy(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,ta({connector:()=>new lr(r,e,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function Gy(t){return Ys((e,n)=>t<=n)}function Td(...t){let e=qe(t);return x((n,r)=>{(e?Mn(t,n,e):Mn(t,n)).subscribe(r)})}function wd(t,e){return x((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(N(r,c=>{o?.unsubscribe();let l=0,u=i++;j(t(c,u)).subscribe(o=N(r,d=>r.next(e?e(c,d,u,l++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Wy(t){return x((e,n)=>{j(t).subscribe(N(n,()=>n.complete(),$t)),!n.closed&&e.subscribe(n)})}function Qy(t,e=!1){return x((n,r)=>{let o=0;n.subscribe(N(r,i=>{let s=t(i,o++);(s||e)&&r.next(i),!s&&r.complete()}))})}function Ky(t,e,n){let r=C(t)||e||n?{next:t,error:e,complete:n}:t;return r?x((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(N(i,c=>{var l;(l=r.next)===null||l===void 0||l.call(r,c),i.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete()},c=>{var l;a=!1,(l=r.error)===null||l===void 0||l.call(r,c),i.error(c)},()=>{var c,l;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(l=r.finalize)===null||l===void 0||l.call(r)}))}):xe}var Ko="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",g=class extends Error{code;constructor(e,n){super(ha(e,n)),this.code=e}};function Zy(t){return`NG0${Math.abs(t)}`}function ha(t,e){return`${Zy(t)}${e?": "+e:""}`}function H(t){for(let e in t)if(t[e]===H)return e;throw Error("")}function Nd(t,e){for(let n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function Zo(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(Zo).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(`
|
|
4
|
+
`);return r>=0?n.slice(0,r):n}function Yo(t,e){return t?e?`${t} ${e}`:t:e||""}var Yy=H({__forward_ref__:H});function Jo(t){return t.__forward_ref__=Jo,t}function Y(t){return ma(t)?t():t}function ma(t){return typeof t=="function"&&t.hasOwnProperty(Yy)&&t.__forward_ref__===Jo}function pe(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function xd(t){return{providers:t.providers||[],imports:t.imports||[]}}function Xo(t){return Jy(t,ei)}function Jy(t,e){return t.hasOwnProperty(e)&&t[e]||null}function Xy(t){let e=t?.[ei]??null;return e||null}function ra(t){return t&&t.hasOwnProperty(qo)?t[qo]:null}var ei=H({\u0275prov:H}),qo=H({\u0275inj:H}),P=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=pe({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function ga(t){return t&&!!t.\u0275providers}var ya=H({\u0275cmp:H}),va=H({\u0275dir:H}),Ea=H({\u0275pipe:H});var mr=H({\u0275fac:H}),Jt=H({__NG_ELEMENT_ID__:H}),bd=H({__NG_ENV_ID__:H});function Dt(t){return Ia(t,"@Component"),t[ya]||null}function ti(t){return Ia(t,"@Directive"),t[va]||null}function Ad(t){return Ia(t,"@Pipe"),t[Ea]||null}function Ia(t,e){if(t==null)throw new g(-919,!1)}function it(t){return typeof t=="string"?t:t==null?"":String(t)}var kd=H({ngErrorCode:H}),ev=H({ngErrorMessage:H}),tv=H({ngTokenPath:H});function Da(t,e){return Rd("",-200,e)}function ni(t,e){throw new g(-201,!1)}function Rd(t,e,n){let r=new g(e,t);return r[kd]=e,r[ev]=t,n&&(r[tv]=n),r}function nv(t){return t[kd]}var oa;function Od(){return oa}function le(t){let e=oa;return oa=t,e}function _a(t,e,n){let r=Xo(t);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&8)return null;if(e!==void 0)return e;ni(t,"")}var _t=globalThis;var rv={},Wt=rv,ov="__NG_DI_FLAG__",ia=class{injector;constructor(e){this.injector=e}retrieve(e,n){let r=Qt(n)||0;try{return this.injector.get(e,r&8?null:Wt,r)}catch(o){if(Dn(o))return o;throw o}}};function iv(t,e=0){let n=po();if(n===void 0)throw new g(-203,!1);if(n===null)return _a(t,void 0,e);{let r=sv(e),o=n.retrieve(t,r);if(Dn(o)){if(r.optional)return null;throw o}return o}}function Ge(t,e=0){return(Od()||iv)(Y(t),e)}function S(t,e){return Ge(t,Qt(e))}function Qt(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function sv(t){return{optional:!!(t&8),host:!!(t&1),self:!!(t&2),skipSelf:!!(t&4)}}function sa(t){let e=[];for(let n=0;n<t.length;n++){let r=Y(t[n]);if(Array.isArray(r)){if(r.length===0)throw new g(900,!1);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=av(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}e.push(Ge(o,i))}else e.push(Ge(r))}return e}function av(t){return t[ov]}function Et(t,e){let n=t.hasOwnProperty(mr);return n?t[mr]:null}function Pd(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 Ld(t){return t.flat(Number.POSITIVE_INFINITY)}function ri(t,e){t.forEach(n=>Array.isArray(n)?ri(n,e):e(n))}function Ta(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Er(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Fd(t,e){let n=[];for(let r=0;r<t;r++)n.push(e);return n}function jd(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 oi(t,e,n){let r=An(t,e);return r>=0?t[r|1]=n:(r=~r,jd(t,r,e,n)),r}function ii(t,e){let n=An(t,e);if(n>=0)return t[n|1]}function An(t,e){return cv(t,e,1)}function cv(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 Tt={},oe=[],Xt=new P(""),Ir=new P("",-1),wa=new P(""),xn=class{get(e,n=Wt){if(n===Wt){let o=Rd("",-201);throw o.name="\u0275NotFound",o}return n}};function ba(t){return{\u0275providers:t}}function Vd(...t){return{\u0275providers:Sa(!0,t),\u0275fromNgModule:!0}}function Sa(t,...e){let n=[],r=new Set,o,i=s=>{n.push(s)};return ri(e,s=>{let a=s;zo(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Hd(o,i),n}function Hd(t,e){for(let n=0;n<t.length;n++){let{ngModule:r,providers:o}=t[n];Ca(o,i=>{e(i,r)})}}function zo(t,e,n,r){if(t=Y(t),!t)return!1;let o=null,i=ra(t),s=!i&&Dt(t);if(!i&&!s){let c=t.ngModule;if(i=ra(c),i)o=c;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 c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let l of c)zo(l,e,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let l;ri(i.imports,u=>{zo(u,e,n,r)&&(l||=[],l.push(u))}),l!==void 0&&Hd(l,e)}if(!a){let l=Et(o)||(()=>new o);e({provide:o,useFactory:l,deps:oe},o),e({provide:wa,useValue:o,multi:!0},o),e({provide:Xt,useValue:()=>Ge(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let l=t;Ca(c,u=>{e(u,l)})}}else return!1;return o!==t&&t.providers!==void 0}function Ca(t,e){for(let n of t)ga(n)&&(n=n.\u0275providers),Array.isArray(n)?Ca(n,e):e(n)}var lv=H({provide:String,useValue:H});function Bd(t){return t!==null&&typeof t=="object"&&lv in t}function uv(t){return!!(t&&t.useExisting)}function dv(t){return!!(t&&t.useFactory)}function Kt(t){return typeof t=="function"}function $d(t){return!!t.useClass}var Ma=new P(""),Uo={},Sd={},na;function kn(){return na===void 0&&(na=new xn),na}var De=class{},Zt=class extends De{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,ca(e,s=>this.processProvider(s)),this.records.set(Ir,Nn(void 0,this)),o.has("environment")&&this.records.set(De,Nn(void 0,this));let i=this.records.get(Ma);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(wa,oe,{self:!0}))}retrieve(e,n){let r=Qt(n)||0;try{return this.get(e,Wt,r)}catch(o){if(Dn(o))return o;throw o}}destroy(){hr(this),this._destroyed=!0;let e=D(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(),D(e)}}onDestroy(e){return hr(this),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){hr(this);let n=Ue(this),r=le(void 0),o;try{return e()}finally{Ue(n),le(r)}}get(e,n=Wt,r){if(hr(this),e.hasOwnProperty(bd))return e[bd](this);let o=Qt(r),i,s=Ue(this),a=le(void 0);try{if(!(o&4)){let l=this.records.get(e);if(l===void 0){let u=gv(e)&&Xo(e);u&&this.injectableDefInScope(u)?l=Nn(aa(e),Uo):l=null,this.records.set(e,l)}if(l!=null)return this.hydrate(e,l,o)}let c=o&2?kn():this.parent;return n=o&8&&n===Wt?null:n,c.get(e,n)}catch(c){let l=nv(c);throw l===-200||l===-201?new g(l,null):c}finally{le(a),Ue(s)}}resolveInjectorInitializers(){let e=D(null),n=Ue(this),r=le(void 0),o;try{let i=this.get(Xt,oe,{self:!0});for(let s of i)s()}finally{Ue(n),le(r),D(e)}}toString(){return"R3Injector[...]"}processProvider(e){e=Y(e);let n=Kt(e)?e:Y(e&&e.provide),r=pv(e);if(!Kt(e)&&e.multi===!0){let o=this.records.get(n);o||(o=Nn(void 0,Uo,!0),o.factory=()=>sa(o.multi),this.records.set(n,o)),n=e,o.multi.push(e)}this.records.set(n,r)}hydrate(e,n,r){let o=D(null);try{if(n.value===Sd)throw Da("");return n.value===Uo&&(n.value=Sd,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&mv(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{D(o)}}injectableDefInScope(e){if(!e.providedIn)return!1;let n=Y(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 aa(t){let e=Xo(t),n=e!==null?e.factory:Et(t);if(n!==null)return n;if(t instanceof P)throw new g(-204,!1);if(t instanceof Function)return fv(t);throw new g(-204,!1)}function fv(t){if(t.length>0)throw new g(-204,!1);let n=Xy(t);return n!==null?()=>n.factory(t):()=>new t}function pv(t){if(Bd(t))return Nn(void 0,t.useValue);{let e=Na(t);return Nn(e,Uo)}}function Na(t,e,n){let r;if(Kt(t)){let o=Y(t);return Et(o)||aa(o)}else if(Bd(t))r=()=>Y(t.useValue);else if(dv(t))r=()=>t.useFactory(...sa(t.deps||[]));else if(uv(t))r=(o,i)=>Ge(Y(t.useExisting),i!==void 0&&i&8?8:void 0);else{let o=Y(t&&(t.useClass||t.provide));if(hv(t))r=()=>new o(...sa(t.deps));else return Et(o)||aa(o)}return r}function hr(t){if(t.destroyed)throw new g(-205,!1)}function Nn(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function hv(t){return!!t.deps}function mv(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function gv(t){return typeof t=="function"||typeof t=="object"&&t.ngMetadataName==="InjectionToken"}function ca(t,e){for(let n of t)Array.isArray(n)?ca(n,e):n&&ga(n)?ca(n.\u0275providers,e):e(n)}function si(t,e){let n;t instanceof Zt?(hr(t),n=t):n=new ia(t);let r,o=Ue(n),i=le(void 0);try{return e()}finally{Ue(o),le(i)}}function Ud(){return Od()!==void 0||po()!=null}var ke=0,E=1,b=2,J=3,_e=4,ie=5,en=6,Rn=7,W=8,Qe=9,Ke=10,V=11,On=12,xa=13,wt=14,ue=15,bt=16,tn=17,Ze=18,Ye=19,Aa=20,rt=21,ai=22,It=23,ve=24,nn=25,Je=26,U=27,qd=1,ka=6,St=7,Dr=8,rn=9,z=10;function st(t){return Array.isArray(t)&&typeof t[qd]=="object"}function Te(t){return Array.isArray(t)&&t[qd]===!0}function Ra(t){return(t.flags&4)!==0}function at(t){return t.componentOffset>-1}function Pn(t){return(t.flags&1)===1}function Re(t){return!!t.template}function Ln(t){return(t[b]&512)!==0}function on(t){return(t[b]&256)===256}var Oa="svg",zd="math";function we(t){for(;Array.isArray(t);)t=t[ke];return t}function Pa(t,e){return we(e[t])}function be(t,e){return we(e[t.index])}function ci(t,e){return t.data[e]}function La(t,e){return t[e]}function Fa(t,e,n,r){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=r}function Se(t,e){let n=e[t];return st(n)?n:n[ke]}function Gd(t){return(t[b]&4)===4}function li(t){return(t[b]&128)===128}function Wd(t){return Te(t[J])}function Ee(t,e){return e==null?null:t[e]}function ja(t){t[tn]=0}function Va(t){t[b]&1024||(t[b]|=1024,li(t)&&sn(t))}function Qd(t,e){for(;t>0;)e=e[wt],t--;return e}function _r(t){return!!(t[b]&9216||t[ve]?.dirty)}function ui(t){t[Ke].changeDetectionScheduler?.notify(8),t[b]&64&&(t[b]|=1024),_r(t)&&sn(t)}function sn(t){t[Ke].changeDetectionScheduler?.notify(0);let e=ot(t);for(;e!==null&&!(e[b]&8192||(e[b]|=8192,!li(e)));)e=ot(e)}function di(t,e){if(on(t))throw new g(911,!1);t[rt]===null&&(t[rt]=[]),t[rt].push(e)}function Kd(t,e){if(t[rt]===null)return;let n=t[rt].indexOf(e);n!==-1&&t[rt].splice(n,1)}function ot(t){let e=t[J];return Te(e)?e[J]:e}function Ha(t){return t[Rn]??=[]}function Ba(t){return t.cleanup??=[]}function Zd(t,e,n,r){let o=Ha(e);o.push(n),t.firstCreatePass&&Ba(t).push(r,o.length-1)}var M={lFrame:df(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var la=!1;function Yd(){return M.lFrame.elementDepthCount}function Jd(){M.lFrame.elementDepthCount++}function $a(){M.lFrame.elementDepthCount--}function fi(){return M.bindingsEnabled}function Ua(){return M.skipHydrationRootTNode!==null}function qa(t){return M.skipHydrationRootTNode===t}function za(){M.skipHydrationRootTNode=null}function T(){return M.lFrame.lView}function B(){return M.lFrame.tView}function Xd(t){return M.lFrame.contextLView=t,t[W]}function ef(t){return M.lFrame.contextLView=null,t}function Q(){let t=Ga();for(;t!==null&&t.type===64;)t=t.parent;return t}function Ga(){return M.lFrame.currentTNode}function tf(){let t=M.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function Fn(t,e){let n=M.lFrame;n.currentTNode=t,n.isParent=e}function Wa(){return M.lFrame.isParent}function Qa(){M.lFrame.isParent=!1}function nf(){return M.lFrame.contextLView}function Ka(){return la}function gr(t){let e=la;return la=t,e}function rf(){let t=M.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Za(){return M.lFrame.bindingIndex}function of(t){return M.lFrame.bindingIndex=t}function Ct(){return M.lFrame.bindingIndex++}function Tr(t){let e=M.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function sf(){return M.lFrame.inI18n}function af(t,e){let n=M.lFrame;n.bindingIndex=n.bindingRootIndex=t,pi(e)}function cf(){return M.lFrame.currentDirectiveIndex}function pi(t){M.lFrame.currentDirectiveIndex=t}function lf(t){let e=M.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function hi(){return M.lFrame.currentQueryIndex}function wr(t){M.lFrame.currentQueryIndex=t}function yv(t){let e=t[E];return e.type===2?e.declTNode:e.type===1?t[ie]:null}function Ya(t,e,n){if(n&4){let o=e,i=t;for(;o=o.parent,o===null&&!(n&1);)if(o=yv(i),o===null||(i=i[wt],o.type&10))break;if(o===null)return!1;e=o,t=i}let r=M.lFrame=uf();return r.currentTNode=e,r.lView=t,!0}function mi(t){let e=uf(),n=t[E];M.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function uf(){let t=M.lFrame,e=t===null?null:t.child;return e===null?df(t):e}function df(t){let e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function ff(){let t=M.lFrame;return M.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Ja=ff;function gi(){let t=ff();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 pf(t){return(M.lFrame.contextLView=Qd(t,M.lFrame.contextLView))[W]}function Oe(){return M.lFrame.selectedIndex}function Mt(t){M.lFrame.selectedIndex=t}function jn(){let t=M.lFrame;return ci(t.tView,t.selectedIndex)}function hf(){M.lFrame.currentNamespace=Oa}function mf(){vv()}function vv(){M.lFrame.currentNamespace=null}function Xa(){return M.lFrame.currentNamespace}var gf=!0;function yi(){return gf}function br(t){gf=t}function ua(t,e=null,n=null,r){let o=yf(t,e,n,r);return o.resolveInjectorInitializers(),o}function yf(t,e=null,n=null,r,o=new Set){let i=[n||oe,Vd(t)],s;return new Zt(i,e||kn(),s||null,o)}var We=class t{static THROW_IF_NOT_FOUND=Wt;static NULL=new xn;static create(e,n){if(Array.isArray(e))return ua({name:""},n,e,"");{let r=e.name??"";return ua({name:r},e.parent,e.providers,r)}}static \u0275prov=pe({token:t,providedIn:"any",factory:()=>Ge(Ir)});static __NG_ELEMENT_ID__=-1},vi=new P(""),an=(()=>{class t{static __NG_ELEMENT_ID__=Ev;static __NG_ENV_ID__=n=>n}return t})(),Go=class extends an{_lView;constructor(e){super(),this._lView=e}get destroyed(){return on(this._lView)}onDestroy(e){let n=this._lView;return di(n,e),()=>Kd(n,e)}};function Ev(){return new Go(T())}var ec=!1,vf=new P(""),Nt=(()=>{class t{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new ar(!1);debugTaskTracker=S(vf,{optional:!0});get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new k(n=>{n.next(!1),n.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),this.debugTaskTracker?.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.debugTaskTracker?.remove(n),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=pe({token:t,providedIn:"root",factory:()=>new t})}return t})(),da=class extends ye{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(e=!1){super(),this.__isAsync=e,Ud()&&(this.destroyRef=S(an,{optional:!0})??void 0,this.pendingTasks=S(Nt,{optional:!0})??void 0)}emit(e){let n=D(null);try{super.next(e)}finally{D(n)}}subscribe(e,n,r){let o=e,i=n||(()=>null),s=r;if(e&&typeof e=="object"){let c=e;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}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 $&&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)}})}}},nt=da;function Wo(...t){}function tc(t){let e,n;function r(){t=Wo;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),e!==void 0&&clearTimeout(e)}catch(o){}}return e=setTimeout(()=>{t(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{t(),r()})),()=>r()}function Ef(t){return queueMicrotask(()=>t()),()=>{t=Wo}}var nc="isAngularZone",yr=nc+"_ID",Iv=0,ne=class t{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new nt(!1);onMicrotaskEmpty=new nt(!1);onStable=new nt(!1);onError=new nt(!1);constructor(e){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=ec}=e;if(typeof Zone>"u")throw new g(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(nc)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new g(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new g(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,Dv,Wo,Wo);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)}},Dv={};function rc(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 _v(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function e(){tc(()=>{t.callbackScheduled=!1,fa(t),t.isCheckStableRunning=!0,rc(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{e()}):t._outer.run(()=>{e()}),fa(t)}function Tv(t){let e=()=>{_v(t)},n=Iv++;t._inner=t._inner.fork({name:"angular",properties:{[nc]:!0,[yr]:n,[yr+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(wv(c))return r.invokeTask(i,s,a,c);try{return Cd(t),r.invokeTask(i,s,a,c)}finally{(t.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),Md(t)}},onInvoke:(r,o,i,s,a,c,l)=>{try{return Cd(t),r.invoke(i,s,a,c,l)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!bv(c)&&e(),Md(t)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(t._hasPendingMicrotasks=s.microTask,fa(t),rc(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 fa(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function Cd(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Md(t){t._nesting--,rc(t)}var vr=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new nt;onMicrotaskEmpty=new nt;onStable=new nt;onError=new nt;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 wv(t){return If(t,"__ignore_ng_zone__")}function bv(t){return If(t,"__scheduler_tick__")}function If(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}var Yt=class{_console=console;handleError(e){this._console.error("ERROR",e)}},xt=new P("",{factory:()=>{let t=S(ne),e=S(De),n;return r=>{t.runOutsideAngular(()=>{e.destroyed&&!n?setTimeout(()=>{throw r}):(n??=e.get(Yt),n.handleError(r))})}}}),Df={provide:Xt,useValue:()=>{let t=S(Yt,{optional:!0})},multi:!0};function oc(t,e){let[n,r,o]=Ps(t,e?.equal),i=n,s=i[Z];return i.set=r,i.update=o,i.asReadonly=_f.bind(i),i}function _f(){let t=this[Z];if(t.readonlyFn===void 0){let e=()=>this();e[Z]=t,t.readonlyFn=e}return t.readonlyFn}var Tf=new P("",{factory:()=>Sv}),Sv="ng";var wf=new P(""),Cv=new P("",{providedIn:"platform",factory:()=>"unknown"}),Mv=new P(""),Nv=new P("",{factory:()=>S(vi).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Vn=(()=>{class t{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=xv}return t})();function xv(){return new Vn(T(),Q())}var Ae=class{},Hn=new P("",{factory:()=>!0});var Ei=new P(""),Ii=(()=>{class t{static \u0275prov=pe({token:t,providedIn:"root",factory:()=>new pa})}return t})(),pa=class{dirtyEffectCount=0;queues=new Map;add(e){this.enqueue(e),this.schedule(e)}schedule(e){e.dirty&&this.dirtyEffectCount++}remove(e){let n=e.zone,r=this.queues.get(n);r.has(e)&&(r.delete(e),e.dirty&&this.dirtyEffectCount--)}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)||r.add(e)}flush(){for(;this.dirtyEffectCount>0;){let e=!1;for(let[n,r]of this.queues)n===null?e||=this.flushQueue(r):e||=n.run(()=>this.flushQueue(r));e||(this.dirtyEffectCount=0)}}flushQueue(e){let n=!1;for(let r of e)r.dirty&&(this.dirtyEffectCount--,n=!0,r.run());return n}},Qo=class{[Z];constructor(e){this[Z]=e}destroy(){this[Z].destroy()}};function Av(t,e){let n=e?.injector??S(We),r=e?.manualCleanup!==!0?n.get(an):null,o,i=n.get(Vn,null,{optional:!0}),s=n.get(Ae);return i!==null?(o=Ov(i.view,s,t),r instanceof Go&&r._lView===i.view&&(r=null)):o=Pv(t,n.get(Ii),s),o.injector=n,r!==null&&(o.onDestroyFns=[r.onDestroy(()=>o.destroy())]),new Qo(o)}var bf=ee(G({},Fs),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let t=gr(!1);try{js(this)}finally{gr(t)}},cleanup(){if(!this.cleanupFns?.length)return;let t=D(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],D(t)}}}),kv=ee(G({},bf),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){if(mt(this),this.onDestroyFns!==null)for(let t of this.onDestroyFns)t();this.cleanup(),this.scheduler.remove(this)}}),Rv=ee(G({},bf),{consumerMarkedDirty(){this.view[b]|=8192,sn(this.view),this.notifier.notify(13)},destroy(){if(mt(this),this.onDestroyFns!==null)for(let t of this.onDestroyFns)t();this.cleanup(),this.view[It]?.delete(this)}});function Ov(t,e,n){let r=Object.create(Rv);return r.view=t,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=e,r.fn=Sf(r,n),t[It]??=new Set,t[It].add(r),r.consumerMarkedDirty(r),r}function Pv(t,e,n){let r=Object.create(kv);return r.fn=Sf(r,t),r.scheduler=e,r.notifier=n,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.add(r),r.notifier.notify(12),r}function Sf(t,e){return()=>{e(n=>(t.cleanupFns??=[]).push(n))}}function ic(t){return typeof t=="function"&&t[Z]!==void 0}function Di(t){return ic(t)&&typeof t.set=="function"}var Cf=(()=>{class t{internalPendingTasks=S(Nt);scheduler=S(Ae);errorHandler=S(xt);add(){let n=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(n)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(n))}}run(n){let r=this.add();try{n().catch(this.errorHandler).finally(r)}catch(o){this.errorHandler(o),r()}}static \u0275prov=pe({token:t,providedIn:"root",factory:()=>new t})}return t})();function jr(t){return{toString:t}.toString()}var O=(function(t){return t[t.TemplateCreateStart=0]="TemplateCreateStart",t[t.TemplateCreateEnd=1]="TemplateCreateEnd",t[t.TemplateUpdateStart=2]="TemplateUpdateStart",t[t.TemplateUpdateEnd=3]="TemplateUpdateEnd",t[t.LifecycleHookStart=4]="LifecycleHookStart",t[t.LifecycleHookEnd=5]="LifecycleHookEnd",t[t.OutputStart=6]="OutputStart",t[t.OutputEnd=7]="OutputEnd",t[t.BootstrapApplicationStart=8]="BootstrapApplicationStart",t[t.BootstrapApplicationEnd=9]="BootstrapApplicationEnd",t[t.BootstrapComponentStart=10]="BootstrapComponentStart",t[t.BootstrapComponentEnd=11]="BootstrapComponentEnd",t[t.ChangeDetectionStart=12]="ChangeDetectionStart",t[t.ChangeDetectionEnd=13]="ChangeDetectionEnd",t[t.ChangeDetectionSyncStart=14]="ChangeDetectionSyncStart",t[t.ChangeDetectionSyncEnd=15]="ChangeDetectionSyncEnd",t[t.AfterRenderHooksStart=16]="AfterRenderHooksStart",t[t.AfterRenderHooksEnd=17]="AfterRenderHooksEnd",t[t.ComponentStart=18]="ComponentStart",t[t.ComponentEnd=19]="ComponentEnd",t[t.DeferBlockStateStart=20]="DeferBlockStateStart",t[t.DeferBlockStateEnd=21]="DeferBlockStateEnd",t[t.DynamicComponentStart=22]="DynamicComponentStart",t[t.DynamicComponentEnd=23]="DynamicComponentEnd",t[t.HostBindingsUpdateStart=24]="HostBindingsUpdateStart",t[t.HostBindingsUpdateEnd=25]="HostBindingsUpdateEnd",t})(O||{}),Ni=class{previousValue;currentValue;firstChange;constructor(e,n,r){this.previousValue=e,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function fp(t,e,n,r){e!==null?e.applyValueToInputSignal(e,r):t[n]=r}var pp=null,Qv=(()=>{pp=Mf;let t=()=>Mf;return t.ngInherit=!0,t})();function Kv(){return pp}function Mf(t){return t.type.prototype.ngOnChanges&&(t.setInput=Yv),Zv}function Zv(){let t=hp(this),e=t?.current;if(e){let n=t.previous;if(n===Tt)t.previous=e;else for(let r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e)}}function Yv(t,e,n,r,o){let i=this.declaredInputs[r],s=hp(t)||Jv(t,{previous:Tt,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[i];a[i]=new Ni(l&&l.currentValue,n,c===Tt),fp(t,e,o,n)}var yc="__ngSimpleChanges__";function hp(t){return Object.hasOwn(t,yc)&&t[yc]||null}function Jv(t,e){return t[yc]=e}var Nf=[];var F=function(t,e=null,n){for(let r=0;r<Nf.length;r++){let o=Nf[r];o(t,e,n)}};function Xv(t,e,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=e.type.prototype;if(r){let s=Kv()(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 mp(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:c,ngAfterViewChecked:l,ngOnDestroy:u}=i;s&&(t.contentHooks??=[]).push(-n,s),a&&((t.contentHooks??=[]).push(n,a),(t.contentCheckHooks??=[]).push(n,a)),c&&(t.viewHooks??=[]).push(-n,c),l&&((t.viewHooks??=[]).push(n,l),(t.viewCheckHooks??=[]).push(n,l)),u!=null&&(t.destroyHooks??=[]).push(n,u)}}function bi(t,e,n){gp(t,e,3,n)}function Si(t,e,n,r){(t[b]&3)===n&&gp(t,e,n,r)}function sc(t,e){let n=t[b];(n&3)===e&&(n&=16383,n+=1,t[b]=n)}function gp(t,e,n,r){let o=r!==void 0?t[tn]&65535:0,i=r??-1,s=e.length-1,a=0;for(let c=o;c<s;c++)if(typeof e[c+1]=="number"){if(a=e[c],r!=null&&a>=r)break}else e[c]<0&&(t[tn]+=65536),(a<i||i==-1)&&(eE(t,n,e,c),t[tn]=(t[tn]&4294901760)+c+2),c++}function xf(t,e){F(O.LifecycleHookStart,t,e);let n=D(null);try{e.call(t)}finally{D(n),F(O.LifecycleHookEnd,t,e)}}function eE(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[tn]>>16&&(t[b]&3)===e&&(t[b]+=16384,xf(a,i)):xf(a,i)}var $n=-1,ln=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(e,n,r,o){this.factory=e,this.name=o,this.canSeeViewProviders=n,this.injectImpl=r}};function tE(t){return(t.flags&8)!==0}function nE(t){return(t.flags&16)!==0}function rE(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];oE(i)?t.setProperty(e,i,s):t.setAttribute(e,i,s),r++}}return r}function yp(t){return t===3||t===4||t===6}function oE(t){return t.charCodeAt(0)===64}function Un(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?Af(t,n,o,null,e[++r]):Af(t,n,o,null,null))}}return t}function Af(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 vp(t){return t!==$n}function xi(t){return t&32767}function iE(t){return t>>16}function Ai(t,e){let n=iE(t),r=e;for(;n>0;)r=r[wt],n--;return r}var vc=!0;function ki(t){let e=vc;return vc=t,e}var sE=256,Ep=sE-1,Ip=5,aE=0,Xe={};function cE(t,e,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Jt)&&(r=n[Jt]),r==null&&(r=n[Jt]=aE++);let o=r&Ep,i=1<<o;e.data[t+(o>>Ip)]|=i}function Ri(t,e){let n=Dp(t,e);if(n!==-1)return n;let r=e[E];r.firstCreatePass&&(t.injectorIndex=e.length,ac(r.data,t),ac(e,null),ac(r.blueprint,null));let o=Xc(t,e),i=t.injectorIndex;if(vp(o)){let s=xi(o),a=Ai(o,e),c=a[E].data;for(let l=0;l<8;l++)e[i+l]=a[s+l]|c[s+l]}return e[i+8]=o,i}function ac(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Dp(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function Xc(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=Sp(o),r===null)return $n;if(n++,o=o[wt],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return $n}function Ec(t,e,n){cE(t,e,n)}function lE(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(yp(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 _p(t,e,n){if(n&8||t!==void 0)return t;ni(e,"NodeInjector")}function Tp(t,e,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=t[Qe],i=le(void 0);try{return o?o.get(e,r,n&8):_a(e,r,n&8)}finally{le(i)}}return _p(r,e,n)}function wp(t,e,n,r=0,o){if(t!==null){if(e[b]&2048&&!(r&2)){let s=hE(t,e,n,r,Xe);if(s!==Xe)return s}let i=bp(t,e,n,r,Xe);if(i!==Xe)return i}return Tp(e,n,r,o)}function bp(t,e,n,r,o){let i=dE(n);if(typeof i=="function"){if(!Ya(e,t,r))return r&1?_p(o,n,r):Tp(e,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))ni(n);else return s}finally{Ja()}}else if(typeof i=="number"){let s=null,a=Dp(t,e),c=$n,l=r&1?e[ue][ie]:null;for((a===-1||r&4)&&(c=a===-1?Xc(t,e):e[a+8],c===$n||!Rf(r,!1)?a=-1:(s=e[E],a=xi(c),e=Ai(c,e)));a!==-1;){let u=e[E];if(kf(i,a,u.data)){let d=uE(a,e,n,s,r,l);if(d!==Xe)return d}c=e[a+8],c!==$n&&Rf(r,e[E].data[a+8]===l)&&kf(i,a,e)?(s=u,a=xi(c),e=Ai(c,e)):a=-1}}return o}function uE(t,e,n,r,o,i){let s=e[E],a=s.data[t+8],c=r==null?at(a)&&vc:r!=s&&(a.type&3)!==0,l=o&1&&i===a,u=Ci(a,s,n,c,l);return u!==null?xr(e,s,u,a,o):Xe}function Ci(t,e,n,r,o){let i=t.providerIndexes,s=e.data,a=i&1048575,c=t.directiveStart,l=t.directiveEnd,u=i>>20,d=r?a:a+u,p=o?a+u:l;for(let f=d;f<p;f++){let h=s[f];if(f<c&&n===h||f>=c&&h.type===n)return f}if(o){let f=s[c];if(f&&Re(f)&&f.type===n)return c}return null}function xr(t,e,n,r,o){let i=t[n],s=e.data;if(i instanceof ln){let a=i;if(a.resolving)throw Da("");let c=ki(a.canSeeViewProviders);a.resolving=!0;let l=s[n].type||s[n],u,d=a.injectImpl?le(a.injectImpl):null,p=Ya(t,r,0);try{i=t[n]=a.factory(void 0,o,s,t,r),e.firstCreatePass&&n>=r.directiveStart&&Xv(n,s[n],e)}finally{d!==null&&le(d),ki(c),a.resolving=!1,Ja()}}return i}function dE(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(Jt)?t[Jt]:void 0;return typeof e=="number"?e>=0?e&Ep:fE:e}function kf(t,e,n){let r=1<<t;return!!(n[e+(t>>Ip)]&r)}function Rf(t,e){return!(t&2)&&!(t&1&&e)}var At=class{_tNode;_lView;constructor(e,n){this._tNode=e,this._lView=n}get(e,n,r){return wp(this._tNode,this._lView,e,Qt(r),n)}};function fE(){return new At(Q(),T())}function pE(t){return jr(()=>{let e=t.prototype.constructor,n=e[mr]||Ic(e),r=Object.prototype,o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==r;){let i=o[mr]||Ic(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Ic(t){return ma(t)?()=>{let e=Ic(Y(t));return e&&e()}:Et(t)}function hE(t,e,n,r,o){let i=t,s=e;for(;i!==null&&s!==null&&s[b]&2048&&!Ln(s);){let a=bp(i,s,n,r|2,Xe);if(a!==Xe)return a;let c=i.parent;if(!c){let l=s[Aa];if(l){let u=l.get(n,Xe,r&-5);if(u!==Xe)return u}c=Sp(s),s=s[wt]}i=c}return o}function Sp(t){let e=t[E],n=e.type;return n===2?e.declTNode:n===1?t[ie]:null}function Cp(t){return lE(Q(),t)}function Zn(t){return{token:t.token,providedIn:t.autoProvided===!1?null:"root",factory:t.factory,value:void 0}}function mE(){return Yn(Q(),T())}function Yn(t,e){return new Vr(be(t,e))}var Vr=(()=>{class t{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=mE}return t})();function Mp(t){return t instanceof Vr?t.nativeElement:t}function gE(){return this._results[Symbol.iterator]()}var Oi=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 ye}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=Ld(e);(this._changesDetected=!Pd(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]=gE};function Np(t){return(t.flags&128)===128}var el=(function(t){return t[t.OnPush=0]="OnPush",t[t.Eager=1]="Eager",t[t.Default=1]="Default",t})(el||{}),xp=new Map,yE=0;function vE(){return yE++}function EE(t){xp.set(t[Ye],t)}function Dc(t){xp.delete(t[Ye])}var Of="__ngContext__";function qn(t,e){st(e)?(t[Of]=e[Ye],EE(e)):t[Of]=e}function Ap(t){return Rp(t[On])}function kp(t){return Rp(t[_e])}function Rp(t){for(;t!==null&&!Te(t);)t=t[_e];return t}var _c;function IE(t){_c=t}function Op(){if(_c!==void 0)return _c;if(typeof document<"u")return document;throw new g(210,!1)}var Pp="r";var Lp="di";var Fp=!1,jp=new P("",{factory:()=>Fp});var Pf=new WeakMap;function DE(t,e){if(t==null||typeof t!="object")return;let n=Pf.get(t);n||(n=new WeakSet,Pf.set(t,n)),n.add(e)}var _E=(t,e,n,r)=>{};function TE(t,e,n,r){_E(t,e,n,r)}function Zi(t){return(t.flags&32)===32}var wE=()=>null;function Vp(t,e,n=!1){return wE(t,e,n)}function Hp(t,e){let n=t.contentQueries;if(n!==null){let r=D(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];wr(i),a.contentQueries(2,e[s],s)}}}finally{D(r)}}}function Tc(t,e,n){wr(0);let r=D(null);try{e(t,n)}finally{D(r)}}function tl(t,e,n){if(Ra(e)){let r=D(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 c=n[s];a.contentQueries(1,c,s)}}}finally{D(r)}}}var un=(function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t[t.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",t})(un||{});var _i;function bE(){if(_i===void 0&&(_i=null,_t.trustedTypes))try{_i=_t.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return _i}function Yi(t){return bE()?.createHTML(t)||t}var ct=class{changingThisBreaksApplicationSecurity;constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Ko})`}},wc=class extends ct{getTypeName(){return"HTML"}},bc=class extends ct{getTypeName(){return"Style"}},Sc=class extends ct{getTypeName(){return"Script"}},Cc=class extends ct{getTypeName(){return"URL"}},Mc=class extends ct{getTypeName(){return"ResourceURL"}};function nl(t){return t instanceof ct?t.changingThisBreaksApplicationSecurity:t}function SE(t,e){let n=Bp(t);if(n!=null&&n!==e){if(n==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${n} (see ${Ko})`)}return n===e}function Bp(t){return t instanceof ct&&t.getTypeName()||null}function CE(t){return new wc(t)}function ME(t){return new bc(t)}function NE(t){return new Sc(t)}function xE(t){return new Cc(t)}function AE(t){return new Mc(t)}function kE(t){let e=new xc(t);return RE()?new Nc(e):e}var Nc=class{inertDocumentHelper;constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{let n=new window.DOMParser().parseFromString(Yi(e),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(e):(n.firstChild?.remove(),n)}catch(n){return null}}},xc=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=Yi(e),n}};function RE(){try{return!!new window.DOMParser().parseFromString(Yi(""),"text/html")}catch(t){return!1}}var OE=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function $p(t){return t=String(t),t.match(OE)?t:"unsafe:"+t}function lt(t){let e={};for(let n of t.split(","))e[n]=!0;return e}function Hr(...t){let e={};for(let n of t)for(let r in n)n.hasOwnProperty(r)&&(e[r]=!0);return e}var Up=lt("area,br,col,hr,img,wbr"),qp=lt("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),zp=lt("rp,rt"),PE=Hr(zp,qp),LE=Hr(qp,lt("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")),FE=Hr(zp,lt("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")),Lf=Hr(Up,LE,FE,PE),Gp=lt("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),jE=lt("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"),VE=lt("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"),HE=Hr(Gp,jE,VE),BE=lt("script,style,template"),Ac=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=qE(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=UE(n);if(i){n=i;break}n=o.pop()}}return this.buf.join("")}startElement(e){let n=Ff(e).toLowerCase();if(!Lf.hasOwnProperty(n))return this.sanitizedSomething=!0,!BE.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(!HE.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let c=i.value;Gp[a]&&(c=$p(c)),this.buf.push(" ",s,'="',jf(c),'"')}return this.buf.push(">"),!0}endElement(e){let n=Ff(e).toLowerCase();Lf.hasOwnProperty(n)&&!Up.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(e){this.buf.push(jf(e))}};function $E(t,e){return(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function UE(t){let e=t.nextSibling;if(e&&t!==e.previousSibling)throw Wp(e);return e}function qE(t){let e=t.firstChild;if(e&&$E(t,e))throw Wp(e);return e}function Ff(t){let e=t.nodeName;return typeof e=="string"?e:"FORM"}function Wp(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var zE=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,GE=/([^\#-~ |!])/g;function jf(t){return t.replace(/&/g,"&").replace(zE,function(e){let n=e.charCodeAt(0),r=e.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(GE,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}var Ti;function WE(t,e){let n=null;try{Ti=Ti||kE(t);let r=e?String(e):"";n=Ti.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=Ti.getInertBodyElement(r)}while(r!==i);let a=new Ac().sanitizeChildren(Vf(n)||n);return Yi(a)}finally{if(n){let r=Vf(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function Vf(t){return"content"in t&&QE(t)?t.content:null}function QE(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var KE=/^>|^->|<!--|-->|--!>|<!-$/g,ZE=/(<|>)/g,YE="\u200B$1\u200B";function JE(t){return t.replace(KE,e=>e.replace(ZE,YE))}function XE(t,e){return t.createText(e)}function eI(t,e,n){t.setValue(e,n)}function tI(t,e){return t.createComment(JE(e))}function Qp(t,e,n){return t.createElement(e,n)}function Pi(t,e,n,r,o){t.insertBefore(e,n,r,o)}function Kp(t,e,n){t.appendChild(e,n)}function Hf(t,e,n,r,o){r!==null?Pi(t,e,n,r,o):Kp(t,e,n)}function Zp(t,e,n,r){t.removeChild(null,e,n,r)}function nI(t,e,n){t.setAttribute(e,"style",n)}function rI(t,e,n){n===""?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n)}function Yp(t,e,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&rE(t,e,r),o!==null&&rI(t,e,o),i!==null&&nI(t,e,i)}var Jp=(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[t.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",t})(Jp||{});function oI(t){return t.ownerDocument}function iI(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 Xp="ng-template";function sI(t,e,n,r){let o=0;if(r){for(;o<e.length&&typeof e[o]=="string";o+=2)if(e[o]==="class"&&iI(e[o+1].toLowerCase(),n,0)!==-1)return!0}else if(rl(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 rl(t){return t.type===4&&t.value!==Xp}function aI(t,e,n){let r=t.type===4&&!n?Xp:t.value;return e===r}function cI(t,e,n){let r=4,o=t.attrs,i=o!==null?dI(o):0,s=!1;for(let a=0;a<e.length;a++){let c=e[a];if(typeof c=="number"){if(!s&&!Pe(r)&&!Pe(c))return!1;if(s&&Pe(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!aI(t,c,n)||c===""&&e.length===1){if(Pe(r))return!1;s=!0}}else if(r&8){if(o===null||!sI(t,o,c,n)){if(Pe(r))return!1;s=!0}}else{let l=e[++a],u=lI(c,o,rl(t),n);if(u===-1){if(Pe(r))return!1;s=!0;continue}if(l!==""){let d;if(u>i?d="":d=o[u+1].toLowerCase(),r&2&&l!==d){if(Pe(r))return!1;s=!0}}}}return Pe(r)||s}function Pe(t){return(t&1)===0}function lI(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 fI(e,t)}function eh(t,e,n=!1){for(let r=0;r<e.length;r++)if(cI(t,e[r],n))return!0;return!1}function uI(t){let e=t.attrs;if(e!=null){let n=e.indexOf(5);if((n&1)===0)return e[n+1]}return null}function dI(t){for(let e=0;e<t.length;e++){let n=t[e];if(yp(n))return e}return t.length}function fI(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 pI(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 Bf(t,e){return t?":not("+e.trim()+")":e}function hI(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!==""&&!Pe(s)&&(e+=Bf(i,o),o=""),r=s,i=i||!Pe(r);n++}return o!==""&&(e+=Bf(i,o)),e}function mI(t){return t.map(hI).join(",")}function gI(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(!Pe(o))break;o=i}r++}return n.length&&e.push(1,...n),e}var se={},Li=(function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t})(Li||{}),yI;function ol(t,e){return yI(t,e)}var CO=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";var kc=new WeakMap;function th(t){return t?t[wt]??t:null}var Cr=new WeakSet;function vI(t,e,n){let r=kc.get(t);if(!r||r.length===0)return;let o=e.parentNode,i=e.previousSibling,s=th(n);for(let a=r.length-1;a>=0;a--){let{el:c,declarationView:l}=r[a],u=c.parentNode;c===e?(r.splice(a,1),Cr.add(c),c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}}))):i&&c===i?(r.splice(a,1),c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),c.parentNode?.removeChild(c)):u&&o&&u!==o&&(s===null||l===null||s===l)&&(r.splice(a,1),c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),c.parentNode?.removeChild(c))}}function EI(t,e,n){let r=th(n),o=kc.get(t);o?o.some(i=>i.el===e)||o.push({el:e,declarationView:r}):kc.set(t,[{el:e,declarationView:r}])}var zn=new Set,Ji=(function(t){return t[t.CHANGE_DETECTION=0]="CHANGE_DETECTION",t[t.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",t})(Ji||{}),pn=new P(""),$f=new Set;function ut(t){$f.has(t)||($f.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}var Xi=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=pe({token:t,providedIn:"root",factory:()=>new t})}return t})(),il=[0,1,2,3],sl=(()=>{class t{ngZone=S(ne);scheduler=S(Ae);errorHandler=S(Yt,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){S(pn,{optional:!0})}execute(){let n=this.sequences.size>0;n&&F(O.AfterRenderHooksStart),this.executing=!0;for(let r of il)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&&F(O.AfterRenderHooksEnd)}register(n){let{view:r}=n;r!==void 0?((r[nn]??=[]).push(n),sn(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(Ji.AFTER_NEXT_RENDER,n):n()}static \u0275prov=pe({token:t,providedIn:"root",factory:()=>new t})}return t})(),Ar=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?.[nn];e&&(this.view[nn]=e.filter(n=>n!==this))}};function II(t,e){let n=e?.injector??S(We);return ut("NgAfterNextRender"),_I(t,n,e,!0)}function DI(t){return t instanceof Function?[void 0,void 0,t,void 0]:[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function _I(t,e,n,r){let o=e.get(Xi);o.impl??=e.get(sl);let i=e.get(pn,null,{optional:!0}),s=n?.manualCleanup!==!0?e.get(an):null,a=e.get(Vn,null,{optional:!0}),c=new Ar(o.impl,DI(t),a?.view,r,s,i?.snapshot(null));return o.impl.register(c),c}var al=new P("",{factory:()=>{let t=S(De),e=new Set;return t.onDestroy(()=>e.clear()),{queue:e,isScheduled:!1,scheduler:null,injector:t}}});function nh(t,e,n){let r=t.get(al);if(Array.isArray(e))for(let o of e)r.queue.add(o),n?.detachedLeaveAnimationFns?.push(o);else r.queue.add(e),n?.detachedLeaveAnimationFns?.push(e);r.scheduler&&r.scheduler(t)}function TI(t,e){let n=t.get(al);if(Array.isArray(e))for(let r of e)n.queue.delete(r);else n.queue.delete(e)}function wI(t,e){let n=t.get(al);if(e.detachedLeaveAnimationFns){for(let r of e.detachedLeaveAnimationFns)n.queue.delete(r);e.detachedLeaveAnimationFns=void 0}}function bI(t,e){for(let[n,r]of e)nh(t,r.animateFns)}function Uf(t,e,n,r){let o=t?.[Je]?.enter;e!==null&&o&&o.has(n.index)&&bI(r,o)}function qf(t,e,n,r){try{n.get(Ir)}catch(s){return r(!1)}let o=t?.[Je];o?.enter?.has(e.index)&&TI(n,o.enter.get(e.index).animateFns);let i=SI(t,e,o);if(i.size===0){let s=!1;if(t){let a=[];es(t,e,a),s=a.length>0}if(!s)return r(!1)}t&&zn.add(t[Ye]),nh(n,()=>CI(t,e,o||void 0,i,r),o||void 0)}function SI(t,e,n){let r=new Map,o=n?.leave;if(o&&o.has(e.index)&&r.set(e.index,o.get(e.index)),t&&o)for(let[i,s]of o){if(r.has(i))continue;let c=t[E].data[i].parent;for(;c;){if(c===e){r.set(i,s);break}c=c.parent}}return r}function CI(t,e,n,r,o){let i=[];if(n&&n.leave)for(let[s]of r){if(!n.leave.has(s))continue;let a=n.leave.get(s);for(let c of a.animateFns){let{promise:l}=c();i.push(l)}n.detachedLeaveAnimationFns=void 0}if(t&&es(t,e,i),i.length>0){let s=n||t?.[Je];if(s){let a=s.running;a&&i.push(a),s.running=Promise.allSettled(i),NI(t,s.running,o)}else Promise.allSettled(i).then(()=>{t&&zn.delete(t[Ye]),o(!0)})}else t&&zn.delete(t[Ye]),o(!1)}function es(t,e,n){if(e.type&12){let o=t[e.index];if(Te(o))for(let i=z;i<o.length;i++){let s=o[i];s[E].type===2&&MI(s,n)}}let r=e.child;for(;r;)es(t,r,n),r=r.next}function MI(t,e){let n=t[Je];if(n&&n.leave)for(let o of n.leave.values())for(let i of o.animateFns){let{promise:s}=i();e.push(s)}let r=t[E].firstChild;for(;r;)es(t,r,e),r=r.next}function NI(t,e,n){e.then(()=>{t[Je]?.running===e&&(t[Je].running=void 0,zn.delete(t[Ye])),n(!0)})}function Bn(t,e,n,r,o,i,s,a){if(o!=null){let c,l=!1;Te(o)?c=o:st(o)&&(l=!0,o=o[ke]);let u=we(o);t===0&&r!==null?(Uf(a,r,i,n),s==null?Kp(e,r,u):Pi(e,r,u,s||null,!0)):t===1&&r!==null?(Uf(a,r,i,n),Pi(e,r,u,s||null,!0),vI(i,u,a)):t===2?(a?.[Je]?.leave?.has(i.index)&&EI(i,u,a),Cr.delete(u),qf(a,i,n,d=>{if(Cr.has(u)){Cr.delete(u);return}Zp(e,u,l,d)})):t===3&&(Cr.delete(u),qf(a,i,n,()=>{e.destroyNode(u)})),c!=null&&VI(e,t,n,c,i,r,s)}}function xI(t,e){rh(t,e),e[ke]=null,e[ie]=null}function AI(t,e,n,r,o,i){r[ke]=o,r[ie]=e,ns(t,r,n,1,o,i)}function rh(t,e){e[Ke].changeDetectionScheduler?.notify(9),ns(t,e,e[V],2,null,null)}function kI(t){let e=t[On];if(!e)return cc(t[E],t);for(;e;){let n=null;if(st(e))n=e[On];else{let r=e[z];r&&(n=r)}if(!n){for(;e&&!e[_e]&&e!==t;)st(e)&&cc(e[E],e),e=e[J];e===null&&(e=t),st(e)&&cc(e[E],e),n=e&&e[_e]}e=n}}function cl(t,e){let n=t[rn],r=n.indexOf(e);n.splice(r,1)}function ts(t,e){if(on(e))return;let n=e[V];n.destroyNode&&ns(t,e,n,3,null,null),kI(e)}function cc(t,e){if(on(e))return;let n=D(null);try{e[b]&=-129,e[b]|=256,e[ve]&&mt(e[ve]),OI(t,e),RI(t,e),e[E].type===1&&e[V].destroy();let r=e[bt];if(r!==null&&Te(e[J])){r!==e[J]&&cl(r,e);let o=e[Ze];o!==null&&o.detachView(t)}Dc(e)}finally{D(n)}}function RI(t,e){let n=t.cleanup,r=e[Rn];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[Rn]=null);let o=e[rt];if(o!==null){e[rt]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=e[It];if(i!==null){e[It]=null;for(let s of i)s.destroy()}}function OI(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 ln)){let i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){let a=o[i[s]],c=i[s+1];F(O.LifecycleHookStart,a,c);try{c.call(a)}finally{F(O.LifecycleHookEnd,a,c)}}else{F(O.LifecycleHookStart,o,i);try{i.call(o)}finally{F(O.LifecycleHookEnd,o,i)}}}}}function oh(t,e,n){return PI(t,e.parent,n)}function PI(t,e,n){let r=e;for(;r!==null&&r.type&168;)e=r,r=e.parent;if(r===null)return n[ke];if(at(r)){let{encapsulation:o}=t.data[r.directiveStart+r.componentOffset];if(o===un.None||o===un.Emulated)return null}return be(r,n)}function ih(t,e,n){return FI(t,e,n)}function LI(t,e,n){return t.type&40?be(t,n):null}var FI=LI,zf;function ll(t,e,n,r){let o=oh(t,r,e),i=e[V],s=r.parent||e[ie],a=ih(s,r,e);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)Hf(i,o,n[c],a,!1);else Hf(i,o,n,a,!1);zf!==void 0&&zf(i,r,e,n,o)}function Mr(t,e){if(e!==null){let n=e.type;if(n&3)return be(e,t);if(n&4)return Rc(-1,t[e.index]);if(n&8){let r=e.child;if(r!==null)return Mr(t,r);{let o=t[e.index];return Te(o)?Rc(-1,o):we(o)}}else{if(n&128)return Mr(t,e.next);if(n&32)return ol(e,t)()||we(t[e.index]);{let r=sh(t,e);if(r!==null){if(Array.isArray(r))return r[0];let o=ot(t[ue]);return Mr(o,r)}else return Mr(t,e.next)}}}return null}function sh(t,e){if(e!==null){let r=t[ue][ie],o=e.projection;return r.projection[o]}return null}function Rc(t,e){let n=z+t+1;if(n<e.length){let r=e[n],o=r[E].firstChild;if(o!==null)return Mr(r,o)}return e[St]}function ul(t,e,n,r,o,i,s){for(;n!=null;){let a=r[Qe];if(n.type===128){n=n.next;continue}let c=r[n.index],l=n.type;if(s&&e===0&&(c&&qn(we(c),r),n.flags|=2),!Zi(n))if(l&8)ul(t,e,n.child,r,o,i,!1),Bn(e,t,a,o,c,n,i,r);else if(l&32){let u=ol(n,r),d;for(;d=u();)Bn(e,t,a,o,d,n,i,r);Bn(e,t,a,o,c,n,i,r)}else l&16?ah(t,e,r,n,o,i):Bn(e,t,a,o,c,n,i,r);n=s?n.projectionNext:n.next}}function ns(t,e,n,r,o,i){ul(n,r,t.firstChild,e,o,i,!1)}function jI(t,e,n){let r=e[V],o=oh(t,n,e),i=n.parent||e[ie],s=ih(i,n,e);ah(r,0,e,n,o,s)}function ah(t,e,n,r,o,i){let s=n[ue],c=s[ie].projection[r.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++){let u=c[l];Bn(e,t,n[Qe],o,u,r,i,n)}else{let l=c,u=s[J];Np(r)&&(l.flags|=128),ul(t,e,l,u,o,i,!0)}}function VI(t,e,n,r,o,i,s){let a=r[St],c=we(r);a!==c&&Bn(e,t,n,i,a,o,s);for(let l=z;l<r.length;l++){let u=r[l];ns(u[E],u,t,e,i,a)}}function HI(t,e,n,r,o){if(e)o?t.addClass(n,r):t.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:Li.DashCase;o==null?t.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=Li.Important),t.setStyle(n,r,o,i))}}function dl(t,e,n,r,o,i,s,a,c,l,u){let d=U+r,p=d+o,f=BI(d,p),h=typeof l=="function"?l():l;return f[E]={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:c,consts:h,incompleteFirstPass:!1,ssrId:u}}function BI(t,e){let n=[];for(let r=0;r<e;r++)n.push(r<t?null:se);return n}function $I(t){let e=t.tView;return e===null||e.incompleteFirstPass?t.tView=dl(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):e}function fl(t,e,n,r,o,i,s,a,c,l,u){let d=e.blueprint.slice();return d[ke]=o,d[b]=r|4|128|8|64|1024,(l!==null||t&&t[b]&2048)&&(d[b]|=2048),ja(d),d[J]=d[wt]=t,d[W]=n,d[Ke]=s||t&&t[Ke],d[V]=a||t&&t[V],d[Qe]=c||t&&t[Qe]||null,d[ie]=i,d[Ye]=vE(),d[en]=u,d[Aa]=l,d[ue]=e.type==2?t[ue]:d,d}function UI(t,e,n){let r=be(e,t),o=$I(n),i=t[Ke].rendererFactory,s=pl(t,fl(t,o,null,ch(n),r,e,null,i.createRenderer(r,n),null,null,null));return t[e.index]=s}function ch(t){let e=16;return t.signals?e=4096:t.onPush&&(e=64),e}function lh(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 pl(t,e){return t[On]?t[xa][_e]=e:t[On]=e,t[xa]=e,e}function qI(t=1){uh(B(),T(),Oe()+t,!1)}function uh(t,e,n,r){if(!r)if((e[b]&3)===3){let i=t.preOrderCheckHooks;i!==null&&bi(e,i,n)}else{let i=t.preOrderHooks;i!==null&&Si(e,i,0,n)}Mt(n)}var rs=(function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t})(rs||{});function dn(t,e,n,r){let o=D(null);try{let[i,s,a]=t.inputs[n],c=null;(s&rs.SignalBased)!==0&&(c=e[i][Z]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(e,r)),t.setInput!==null?t.setInput(e,c,r,n,i):fp(e,c,i,r)}finally{D(o)}}function dh(t,e,n,r,o){let i=Oe(),s=r&2;try{Mt(-1),s&&e.length>U&&uh(t,e,U,!1);let a=s?O.TemplateUpdateStart:O.TemplateCreateStart;F(a,o,n),n(r,o)}finally{Mt(i);let a=s?O.TemplateUpdateEnd:O.TemplateCreateEnd;F(a,o,n)}}function os(t,e,n){ZI(t,e,n),(n.flags&64)===64&&YI(t,e,n)}function Br(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 zI(t,e,n,r){let i=r.get(jp,Fp)||n===un.ShadowDom||n===un.ExperimentalIsolatedShadowDom,s=t.selectRootElement(e,i);return GI(s),s}function GI(t){WI(t)}var WI=()=>null;function QI(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function fh(t,e,n,r,o,i){let s=e[E];if(yl(t,s,e,n,r)){at(t)&&KI(e,t.index);return}t.type&3&&(n=QI(n)),ph(t,e,n,r,o,i)}function ph(t,e,n,r,o,i){if(t.type&3){let s=be(t,e);r=i!=null?i(r,t.value||"",n):r,o.setProperty(s,n,r)}else t.type&12}function KI(t,e){let n=Se(e,t);n[b]&16||(n[b]|=64)}function ZI(t,e,n){let r=n.directiveStart,o=n.directiveEnd;at(n)&&UI(e,n,t.data[r+n.componentOffset]),t.firstCreatePass||Ri(n,e);let i=n.initialInputs;for(let s=r;s<o;s++){let a=t.data[s],c=xr(e,t,s,n);if(qn(c,e),i!==null&&tD(e,s-r,c,a,n,i),Re(a)){let l=Se(n.index,e);l[W]=xr(e,t,s,n)}}}function YI(t,e,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=cf();try{Mt(i);for(let a=r;a<o;a++){let c=t.data[a],l=e[a];pi(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&JI(c,l)}}finally{Mt(-1),pi(s)}}function JI(t,e){t.hostBindings!==null&&t.hostBindings(1,e)}function hl(t,e){let n=t.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];eh(e,i.selectors,!1)&&(r??=[],Re(i)?r.unshift(i):r.push(i))}return r}function XI(t,e,n,r,o,i){let s=be(t,e);eD(e[V],s,i,t.value,n,r,o)}function eD(t,e,n,r,o,i,s){if(i==null)s?.(i,r||"",o),t.removeAttribute(e,o,n);else{let a=s==null?it(i):s(i,r||"",o);t.setAttribute(e,o,a,n)}}function tD(t,e,n,r,o,i){let s=i[e];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],l=s[a+1];dn(r,n,c,l)}}function ml(t,e,n,r,o){let i=U+n,s=e[E],a=o(s,e,t,r,n);e[i]=a,Fn(t,!0);let c=t.type===2;return c?(Yp(e[V],a,t),(Yd()===0||Pn(t))&&qn(a,e),Jd()):qn(a,e),yi()&&(!c||!Zi(t))&&ll(s,e,a,t),t}function gl(t){let e=t;return Wa()?Qa():(e=e.parent,Fn(e,!1)),e}function nD(t,e){let n=t[Qe];if(!n)return;let r;try{r=n.get(xt,null)}catch(o){r=null}r?.(e)}function yl(t,e,n,r,o){let i=t.inputs?.[r],s=t.hostDirectiveInputs?.[r],a=!1;if(s)for(let c=0;c<s.length;c+=2){let l=s[c],u=s[c+1],d=e.data[l];dn(d,n[l],u,o),a=!0}if(i)for(let c of i){let l=n[c],u=e.data[c];dn(u,l,r,o),a=!0}return a}function rD(t,e,n,r,o,i){let s=null,a=null,c=null,l=!1,u=t.directiveToIndex.get(r.type);if(typeof u=="number"?s=u:[s,a,c]=u,a!==null&&c!==null&&t.hostDirectiveInputs?.hasOwnProperty(o)){let d=t.hostDirectiveInputs[o];for(let p=0;p<d.length;p+=2){let f=d[p];if(f>=a&&f<=c){let h=e.data[f],m=d[p+1];dn(h,n[f],m,i),l=!0}else if(f>c)break}}return s!==null&&r.inputs.hasOwnProperty(o)&&(dn(r,n[s],o,i),l=!0),l}function oD(t,e){let n=Se(e,t),r=n[E];iD(r,n);let o=n[ke];o!==null&&n[en]===null&&(n[en]=Vp(o,n[Qe])),F(O.ComponentStart);try{vl(r,n,n[W])}finally{F(O.ComponentEnd,n[W])}}function iD(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}function vl(t,e,n){mi(e);try{let r=t.viewQuery;r!==null&&Tc(1,r,n);let o=t.template;o!==null&&dh(t,e,o,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),e[Ze]?.finishViewCreation(t),t.staticContentQueries&&Hp(t,e),t.staticViewQueries&&Tc(2,t.viewQuery,n);let i=t.components;i!==null&&sD(e,i)}catch(r){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),r}finally{e[b]&=-5,gi()}}function sD(t,e){for(let n=0;n<e.length;n++)oD(t,e[n])}function $r(t,e,n,r){let o=D(null);try{let i=e.tView,a=t[b]&4096?4096:16,c=fl(t,i,n,a,null,e,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),l=t[e.index];c[bt]=l;let u=t[Ze];return u!==null&&(c[Ze]=u.createEmbeddedView(i)),vl(i,c,n),c}finally{D(o)}}function Gn(t,e){return!e||e.firstChild===null||Np(t)}function kr(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(we(i)),Te(i)&&hh(i,r);let s=n.type;if(s&8)kr(t,e,n.child,r);else if(s&32){let a=ol(n,e),c;for(;c=a();)r.push(c)}else if(s&16){let a=sh(e,n);if(Array.isArray(a))r.push(...a);else{let c=ot(e[ue]);kr(c[E],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function hh(t,e){for(let n=z;n<t.length;n++){let r=t[n],o=r[E].firstChild;o!==null&&kr(r[E],r,o,e)}t[St]!==t[ke]&&e.push(t[St])}function mh(t){if(t[nn]!==null){for(let e of t[nn])e.impl.addSequence(e);t[nn].length=0}}var gh=[];function aD(t){return t[ve]??cD(t)}function cD(t){let e=gh.pop()??Object.create(uD);return e.lView=t,e}function lD(t){t.lView[ve]!==t&&(t.lView=null,gh.push(t))}var uD=ee(G({},jt),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{sn(t.lView)},consumerOnSignalRead(){this.lView[ve]=this}});function dD(t){let e=t[ve]??Object.create(fD);return e.lView=t,e}var fD=ee(G({},jt),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let e=ot(t.lView);for(;e&&!yh(e[E]);)e=ot(e);e&&Va(e)},consumerOnSignalRead(){this.lView[ve]=this}});function yh(t){return t.type!==2}function vh(t){if(t[It]===null)return;let e=!0;for(;e;){let n=!1;for(let r of t[It])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));e=n&&!!(t[b]&8192)}}var pD=100;function Eh(t,e=0){let r=t[Ke].rendererFactory,o=!1;o||r.begin?.();try{hD(t,e)}finally{o||r.end?.()}}function hD(t,e){let n=Ka();try{gr(!0),Oc(t,e);let r=0;for(;_r(t);){if(r===pD)throw new g(103,!1);r++,Oc(t,1)}}finally{gr(n)}}function mD(t,e,n,r){if(on(e))return;let o=e[b],i=!1,s=!1;mi(e);let a=!0,c=null,l=null;i||(yh(t)?(l=aD(e),c=ht(l)):co()===null?(a=!1,l=dD(e),c=ht(l)):e[ve]&&(mt(e[ve]),e[ve]=null));try{ja(e),of(t.bindingStartIndex),n!==null&&dh(t,e,n,2,r);let u=(o&3)===3;if(!i)if(u){let f=t.preOrderCheckHooks;f!==null&&bi(e,f,null)}else{let f=t.preOrderHooks;f!==null&&Si(e,f,0,null),sc(e,0)}if(s||gD(e),vh(e),Ih(e,0),t.contentQueries!==null&&Hp(t,e),!i)if(u){let f=t.contentCheckHooks;f!==null&&bi(e,f)}else{let f=t.contentHooks;f!==null&&Si(e,f,1),sc(e,1)}vD(t,e);let d=t.components;d!==null&&_h(e,d,0);let p=t.viewQuery;if(p!==null&&Tc(2,p,r),!i)if(u){let f=t.viewCheckHooks;f!==null&&bi(e,f)}else{let f=t.viewHooks;f!==null&&Si(e,f,2),sc(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[ai]){for(let f of e[ai])f();e[ai]=null}i||(mh(e),e[b]&=-73)}catch(u){throw i||sn(e),u}finally{l!==null&&(Ht(l,c),a&&lD(l)),gi()}}function Ih(t,e){for(let n=Ap(t);n!==null;n=kp(n))for(let r=z;r<n.length;r++){let o=n[r];Dh(o,e)}}function gD(t){for(let e=Ap(t);e!==null;e=kp(e)){if(!(e[b]&2))continue;let n=e[rn];for(let r=0;r<n.length;r++){let o=n[r];Va(o)}}}function yD(t,e,n){F(O.ComponentStart);let r=Se(e,t);try{Dh(r,n)}finally{F(O.ComponentEnd,r[W])}}function Dh(t,e){li(t)&&Oc(t,e)}function Oc(t,e){let r=t[E],o=t[b],i=t[ve],s=!!(e===0&&o&16);if(s||=!!(o&64&&e===0),s||=!!(o&1024),s||=!!(i?.dirty&&vn(i)),s||=!1,i&&(i.dirty=!1),t[b]&=-9217,s)mD(r,t,r.template,t[W]);else if(o&8192){let a=D(null);try{vh(t),Ih(t,1);let c=r.components;c!==null&&_h(t,c,1),mh(t)}finally{D(a)}}}function _h(t,e,n){for(let r=0;r<e.length;r++)yD(t,e[r],n)}function vD(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)Mt(~o);else{let i=o,s=n[++r],a=n[++r];af(s,i);let c=e[i];F(O.HostBindingsUpdateStart,c);try{a(2,c)}finally{F(O.HostBindingsUpdateEnd,c)}}}}finally{Mt(-1)}}function El(t,e){let n=Ka()?64:1088;for(t[Ke].changeDetectionScheduler?.notify(e);t;){t[b]|=n;let r=ot(t);if(Ln(t)&&!r)return t;t=r}return null}function Th(t,e,n,r){return[t,!0,0,e,null,r,null,n,null,null]}function wh(t,e){let n=z+e;if(n<t.length)return t[n]}function Ur(t,e,n,r=!0){let o=e[E];if(ED(o,e,t,n),r){let s=Rc(n,t),a=e[V],c=a.parentNode(t[St]);c!==null&&AI(o,t[ie],a,e,c,s)}let i=e[en];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function bh(t,e){let n=Rr(t,e);return n!==void 0&&ts(n[E],n),n}function Rr(t,e){if(t.length<=z)return;let n=z+e,r=t[n];if(r){let o=r[bt];o!==null&&o!==t&&cl(o,r),e>0&&(t[n-1][_e]=r[_e]);let i=Er(t,z+e);xI(r[E],r);let s=i[Ze];s!==null&&s.detachView(i[E]),r[J]=null,r[_e]=null,r[b]&=-129}return r}function ED(t,e,n,r){let o=z+r,i=n.length;r>0&&(n[o-1][_e]=e),r<i-z?(e[_e]=n[o],Ta(n,z+r,e)):(n.push(e),e[_e]=null),e[J]=n;let s=e[bt];s!==null&&n!==s&&Sh(s,e);let a=e[Ze];a!==null&&a.insertView(t),ui(e),e[b]|=128}function Sh(t,e){let n=t[rn],r=e[J];if(st(r))t[b]|=2;else{let o=r[J][ue];e[ue]!==o&&(t[b]|=2)}n===null?t[rn]=[e]:n.push(e)}var kt=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let e=this._lView,n=e[E];return kr(n,e,n.firstChild,[])}constructor(e,n){this._lView=e,this._cdRefInjectingView=n}get context(){return this._lView[W]}set context(e){this._lView[W]=e}get destroyed(){return on(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let e=this._lView[J];if(Te(e)){let n=e[Dr],r=n?n.indexOf(this):-1;r>-1&&(Rr(e,r),Er(n,r))}this._attachedToViewContainer=!1}ts(this._lView[E],this._lView)}onDestroy(e){di(this._lView,e)}markForCheck(){El(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[b]&=-129}reattach(){ui(this._lView),this._lView[b]|=128}detectChanges(){this._lView[b]|=1024,Eh(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new g(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=Ln(this._lView),n=this._lView[bt];n!==null&&!e&&cl(n,this._lView),rh(this._lView[E],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new g(902,!1);this._appRef=e;let n=Ln(this._lView),r=this._lView[bt];r!==null&&!n&&Sh(r,this._lView),ui(this._lView)}};var Or=(()=>{class t{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=ID;constructor(n,r,o){this._declarationLView=n,this._declarationTContainer=r,this.elementRef=o}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,r){return this.createEmbeddedViewImpl(n,r)}createEmbeddedViewImpl(n,r,o){let i=$r(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:o});return new kt(i)}}return t})();function ID(){return is(Q(),T())}function is(t,e){return t.type&4?new Or(e,t,Yn(t,e)):null}function Jn(t,e,n,r,o){let i=t.data[e];if(i===null)i=DD(t,e,n,r,o),sf()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=tf();i.injectorIndex=s===null?-1:s.injectorIndex}return Fn(i,!0),i}function DD(t,e,n,r,o){let i=Ga(),s=Wa(),a=s?i:i&&i.parent,c=t.data[e]=TD(t,a,n,e,r,o);return _D(t,c,i,s),c}function _D(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 TD(t,e,n,r,o,i){let s=e?e.injectorIndex:-1,a=0;return Ua()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,controlDirectiveIndex:-1,customControlIndex:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,namespace:Xa(),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}}function wD(t){let e=t[ka]??[],r=t[J][V],o=[];for(let i of e)i.data[Lp]!==void 0?o.push(i):bD(i,r);t[ka]=o}function bD(t,e){let n=0,r=t.firstChild;if(r){let o=t.data[Pp];for(;n<o;){let i=r.nextSibling;Zp(e,r,!1),r=i,n++}}}var SD=()=>null,CD=()=>null;function Fi(t,e){return SD(t,e)}function Ch(t,e,n){return CD(t,e,n)}var Mh=class{},Pr=class{},MD=(()=>{class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>ND()}return t})();function ND(){let t=T(),e=Q(),n=Se(e.index,t);return(st(n)?n:t)[V]}var Nh=(()=>{class t{static \u0275prov=pe({token:t,providedIn:"root",factory:()=>null})}return t})();function xh(t){return t.debugInfo?.className||t.type.name||null}var Mi={},ji=class{injector;parentInjector;constructor(e,n){this.injector=e,this.parentInjector=n}get(e,n,r){let o=this.injector.get(e,Mi,r);return o!==Mi||n===Mi?o:this.parentInjector.get(e,n,r)}};function Il(t){return kh(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function Ah(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 kh(t){return t!==null&&(typeof t=="function"||typeof t=="object")}function xD(t,e,n){return t[e]=n}function Fe(t,e,n){if(n===se)return!1;let r=t[e];return Object.is(r,n)?!1:(t[e]=n,!0)}function Vi(t,e,n,r){let o=Fe(t,e,n);return Fe(t,e+1,r)||o}function AD(t,e,n,r,o,i){let s=Vi(t,e,n,r);return Vi(t,e+2,o,i)||s}function cn(t,e,n){return function r(o){let i=r.__ngNativeEl__;i!==void 0&&DE(o,i);let s=at(t)?Se(t.index,e):e;El(s,5);let a=e[W],c=Gf(e,a,n,o),l=r.__ngNextListenerFn__;for(;l;)c=Gf(e,a,l,o)&&c,l=l.__ngNextListenerFn__;return c}}function Gf(t,e,n,r){let o=D(null);try{return F(O.OutputStart,e,n),n(r)!==!1}catch(i){return nD(t,i),!1}finally{F(O.OutputEnd,e,n),D(o)}}function Dl(t,e,n,r,o,i,s,a){let c=Pn(t),l=!1,u=null;if(!r&&c&&(u=RD(e,n,i,t.index)),u!==null){let d=u.__ngLastListenerFn__||u;d.__ngNextListenerFn__=s,u.__ngLastListenerFn__=s,l=!0}else{let d=be(t,n),p=r?r(d):d;TE(n,p,i,a),r||(a.__ngNativeEl__=d);let f=o.listen(p,i,a);if(!kD(i)){let h=r?m=>r(we(m[t.index])):t.index;Rh(h,e,n,i,a,f,!1)}}return l}function kD(t){return t.startsWith("animation")||t.startsWith("transition")}function RD(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[Rn],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(i+=2)}return null}function Rh(t,e,n,r,o,i,s){let a=e.firstCreatePass?Ba(e):null,c=Ha(n),l=c.length;c.push(o,i),a&&a.push(r,t,l,(l+1)*(s?-1:1))}function Wf(t,e,n,r,o){let i=null,s=null,a=null,c=!1,l=t.directiveToIndex.get(n.type);if(typeof l=="number"?i=l:[i,s,a]=l,s!==null&&a!==null&&t.hostDirectiveOutputs?.hasOwnProperty(r)){let u=t.hostDirectiveOutputs[r];for(let d=0;d<u.length;d+=2){let p=u[d];if(p>=s&&p<=a)c=!0,Hi(t,e,p,u[d+1],r,o);else if(p>a)break}}return n.outputs.hasOwnProperty(r)&&(c=!0,Hi(t,e,i,r,r,o)),c}function Hi(t,e,n,r,o,i){let s=e[n],a=e[E],l=a.data[n].outputs[r],d=s[l].subscribe(i);Rh(t.index,a,e,o,i,d,!0)}function OD(){PD()}function PD(){let t=T(),e=B(),n=Q();if(e.firstCreatePass&&jD(e,n),n.controlDirectiveIndex===-1)return;ut("NgSignalForms");let r=t[n.controlDirectiveIndex];e.data[n.controlDirectiveIndex].controlDef.create(r,new Bi(t,e,n))}function LD(){FD()}function FD(){let t=T(),e=B(),n=jn();if(n.controlDirectiveIndex===-1)return;let r=e.data[n.controlDirectiveIndex].controlDef,o=t[n.controlDirectiveIndex];r.update(o,new Bi(t,e,n))}var Bi=class{lView;tView;tNode;hasPassThrough;constructor(e,n,r){this.lView=e,this.tView=n,this.tNode=r,this.hasPassThrough=!!(r.flags&4096)}get customControl(){return this.tNode.customControlIndex!==-1?this.lView[this.tNode.customControlIndex]:void 0}get nativeElement(){return be(this.tNode,this.lView)}get descriptor(){return`<${this.tNode.value}>`}listenToCustomControlOutput(e,n){let r=this.tView.data[this.tNode.customControlIndex];Wf(this.tNode,this.lView,r,e,cn(this.tNode,this.lView,n))}listenToCustomControlModel(e){let n=this.tNode.flags&1024?"valueChange":"checkedChange",r=this.tView.data[this.tNode.customControlIndex];Wf(this.tNode,this.lView,r,n,cn(this.tNode,this.lView,e))}listenToDom(e,n){Dl(this.tNode,this.tView,this.lView,void 0,this.lView[V],e,n,cn(this.tNode,this.lView,n))}setInputOnDirectives(e,n){let r=this.tNode.inputs?.[e],o=this.tNode.hostDirectiveInputs?.[e];if(!r&&!o)return!1;let i=!1;if(r)for(let s of r){if(s===this.tNode.controlDirectiveIndex)continue;let a=this.tView.data[s],c=this.lView[s];dn(a,c,e,n),i=!0}if(o)for(let s=0;s<o.length;s+=2){let a=o[s];if(a===this.tNode.controlDirectiveIndex)continue;let c=o[s+1],l=this.tView.data[a],u=this.lView[a];dn(l,u,c,n),i=!0}return i}setCustomControlModelInput(e){let n=this.tView.data[this.tNode.customControlIndex],r=this.tNode.flags&1024?"value":"checked";rD(this.tNode,this.tView,this.lView,n,r,e)}customControlHasInput(e){if(this.tNode.customControlIndex===-1)return!1;let n=this.tView.data[this.tNode.customControlIndex];return(n.signalFormsInputPresence??=this._buildCustomControlInputCache(n))[e]===!0}_buildCustomControlInputCache(e){let n={};for(let r in e.inputs)n[r]=!0;if(e.hostDirectives!==null){let r=[...e.hostDirectives];for(;r.length>0;){let o=r.shift();if(typeof o!="function"){for(let s in o.inputs)n[o.inputs[s]]=!0;let i=Qf(o.directive);i!==null&&r.push(...i);continue}for(let i of o()){if(typeof i=="function")continue;if(i.inputs)for(let a=0;a<i.inputs.length;a+=2){let c=i.inputs[a+1]||i.inputs[a];n[c]=!0}let s=Qf(i.directive);s!==null&&r.push(...s)}}}return n}};function Qf(t){return typeof t=="function"&&"\u0275dir"in t?t.\u0275dir.hostDirectives??null:null}function jD(t,e,n){for(let o=e.directiveStart;o<e.directiveEnd;o++)if(t.data[o].controlDef){e.controlDirectiveIndex=o;break}if(e.controlDirectiveIndex===-1)return;let r=t.data[e.controlDirectiveIndex].controlDef;if(r.passThroughInput&&(e.inputs?.[r.passThroughInput]?.length??0)>1){e.flags|=4096;return}VD(t,e)}function VD(t,e){for(let n=e.directiveStart;n<e.directiveEnd;n++){let r=t.data[n];if(!(e.directiveToIndex&&!e.directiveToIndex.has(r.type))){if(Kf(r,"value")){e.flags|=1024,e.customControlIndex=n;return}if(Kf(r,"checked")){e.flags|=2048,e.customControlIndex=n;return}}}if(e.hostDirectiveInputs!==null&&e.hostDirectiveOutputs!==null&&e.directiveToIndex!==null){let n=(r,o)=>{let i=e.hostDirectiveInputs[r],s=e.hostDirectiveOutputs[r+"Change"];if(!i||!s)return!1;for(let a=0;a<i.length;a+=2){let c=i[a];for(let l=0;l<s.length;l+=2){let u=s[l];if(c===u)for(let d of e.directiveToIndex.values()){if(!Array.isArray(d))continue;let[p,f,h]=d;if(c>=f&&c<=h)return e.flags|=o,e.customControlIndex=p,!0}}}return!1};if(n("value",1024)||n("checked",2048))return}}function Kf(t,e){return HD(t,e)&&BD(t,e+"Change")}function HD(t,e){return e in t.inputs}function BD(t,e){return e in t.outputs}var Pc=Symbol("BINDING");var Oh=new P("");function $i(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=Yo(o,a);else if(i==2){let c=a,l=e[++s];r=Yo(r,c+": "+l+";")}}n?t.styles=r:t.stylesWithoutHost=r,n?t.classes=o:t.classesWithoutHost=o}function qr(t,e=0){let n=T();if(n===null)return Ge(t,e);let r=Q();return wp(r,n,Y(t),e)}function $D(){let t="invalid";throw new Error(t)}function Ph(t,e,n,r,o){let i=r===null?null:{"":-1},s=o(t,n);if(s!==null){let a=s,c=null,l=null;for(let u of s)if(u.resolveHostDirectives!==null){[a,c,l]=u.resolveHostDirectives(s);break}zD(t,e,n,a,i,c,l)}i!==null&&r!==null&&UD(n,r,i)}function UD(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 g(-301,!1);r.push(e[o],i)}}function qD(t,e,n){e.componentOffset=n,(t.components??=[]).push(e.index)}function zD(t,e,n,r,o,i,s){let a=r.length,c=null;for(let p=0;p<a;p++){let f=r[p];c===null&&Re(f)&&(c=f,qD(t,n,p)),Ec(Ri(n,e),t,f.type)}YD(n,t.data.length,a),c?.viewProvidersResolver&&c.viewProvidersResolver(c);for(let p=0;p<a;p++){let f=r[p];f.providersResolver&&f.providersResolver(f)}let l=!1,u=!1,d=lh(t,e,a,null);a>0&&(n.directiveToIndex=new Map);for(let p=0;p<a;p++){let f=r[p];if(n.mergedAttrs=Un(n.mergedAttrs,f.hostAttrs),WD(t,n,e,d,f),ZD(d,f,o),s!==null&&s.has(f)){let[m,v]=s.get(f);n.directiveToIndex.set(f.type,[d,m+n.directiveStart,v+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;!l&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((t.preOrderHooks??=[]).push(n.index),l=!0),!u&&(h.ngOnChanges||h.ngDoCheck)&&((t.preOrderCheckHooks??=[]).push(n.index),u=!0),d++}GD(t,n,i)}function GD(t,e,n){for(let r=e.directiveStart;r<e.directiveEnd;r++){let o=t.data[r];if(n===null||!n.has(o))Zf(0,e,o,r),Zf(1,e,o,r),Jf(e,r,!1);else{let i=n.get(o);Yf(0,e,i,r),Yf(1,e,i,r),Jf(e,r,!0)}}}function Zf(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),Lh(e,i)}}function Yf(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),Lh(e,s)}}function Lh(t,e){e==="class"?t.flags|=8:e==="style"&&(t.flags|=16)}function Jf(t,e,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=t;if(r===null||!n&&o===null||n&&i===null||rl(t)){t.initialInputs??=[],t.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let c=r[a];if(c===0){a+=4;continue}else if(c===5){a+=2;continue}else if(typeof c=="number")break;if(!n&&o.hasOwnProperty(c)){let l=o[c];for(let u of l)if(u===e){s??=[],s.push(c,r[a+1]);break}}else if(n&&i.hasOwnProperty(c)){let l=i[c];for(let u=0;u<l.length;u+=2)if(l[u]===e){s??=[],s.push(l[u+1],r[a+1]);break}}a+=2}t.initialInputs??=[],t.initialInputs.push(s)}function WD(t,e,n,r,o){t.data[r]=o;let i=o.factory||(o.factory=Et(o.type,!0)),s=new ln(i,Re(o),qr,null);t.blueprint[r]=s,n[r]=s,QD(t,e,r,lh(t,n,o.hostVars,se),o)}function QD(t,e,n,r,o){let i=o.hostBindings;if(i){let s=t.hostBindingOpCodes;s===null&&(s=t.hostBindingOpCodes=[]);let a=~e.index;KD(s)!=a&&s.push(a),s.push(n,r,i)}}function KD(t){let e=t.length;for(;e>0;){let n=t[--e];if(typeof n=="number"&&n<0)return n}return 0}function ZD(t,e,n){if(n){if(e.exportAs)for(let r=0;r<e.exportAs.length;r++)n[e.exportAs[r]]=t;Re(e)&&(n[""]=t)}}function YD(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function _l(t,e,n,r,o,i,s,a){let c=e[E],l=c.consts,u=Ee(l,s),d=Jn(c,t,n,r,u);return i&&Ph(c,e,d,Ee(l,a),o),d.mergedAttrs=Un(d.mergedAttrs,d.attrs),d.attrs!==null&&$i(d,d.attrs,!1),d.mergedAttrs!==null&&$i(d,d.mergedAttrs,!0),c.queries!==null&&c.queries.elementStart(c,d),d}function Tl(t,e){mp(t,e),Ra(e)&&t.queries.elementEnd(e)}function JD(t,e,n,r,o,i){let s=e.consts,a=Ee(s,o),c=Jn(e,t,n,r,a);if(c.mergedAttrs=Un(c.mergedAttrs,c.attrs),i!=null){let l=Ee(s,i);c.localNames=[];for(let u=0;u<l.length;u+=2)c.localNames.push(l[u],-1)}return c.attrs!==null&&$i(c,c.attrs,!1),c.mergedAttrs!==null&&$i(c,c.mergedAttrs,!0),e.queries!==null&&e.queries.elementStart(e,c),c}var Fh=typeof ShadowRoot<"u",XD=typeof Document<"u";function e_(t){return Object.keys(t).map(e=>{let[n,r,o]=t[e],i={propName:n,templateName:e,isSignal:(r&rs.SignalBased)!==0};return o&&(i.transform=o),i})}function t_(t){return Object.keys(t).map(e=>({propName:t[e],templateName:e}))}function n_(t,e,n){let r=e instanceof De?e:e?.injector;return r&&t.getStandaloneInjector!==null&&(r=t.getStandaloneInjector(r)||r),r?new ji(n,r):n}function r_(t){let e=t.get(Pr,null);if(e===null)throw new g(407,!1);let n=t.get(Nh,null),r=t.get(Ae,null),o=t.get(pn,null,{optional:!0});return{rendererFactory:e,sanitizer:n,changeDetectionScheduler:r,ngReflect:!1,tracingService:o}}function o_(t,e){let n=jh(t);return Qp(e,n,n==="svg"?Oa:n==="math"?zd:null)}function i_(t){if(t?.toLowerCase()==="script")throw new g(905,!1)}function jh(t){return(t.selectors[0][0]||"div").toLowerCase()}var Wn=class{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=e_(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=t_(this.componentDef.outputs),this.cachedOutputs}constructor(e,n){this.componentDef=e,this.ngModule=n,this.componentType=e.type,this.selector=mI(e.selectors),this.ngContentSelectors=e.ngContentSelectors??[],this.isBoundToModule=!!n}create(e,n,r,o,i,s){F(O.DynamicComponentStart);let a=D(null);try{let c=this.componentDef,l=n_(c,o||this.ngModule,e),u=r_(l),d=u.tracingService;return d&&d.componentCreate?d.componentCreate(xh(c),()=>this.createComponentRef(u,l,n,r,i,s)):this.createComponentRef(u,l,n,r,i,s)}finally{D(a)}}createComponentRef(e,n,r,o,i,s){let a=this.componentDef,c=s_(o,a,s,i),l=e.rendererFactory.createRenderer(null,a),u=o?zI(l,o,a.encapsulation,n):o_(a,l);i_(u?.tagName);let d=n.get(Oh,null),p=a_(u,()=>n.get(vi,null)??Op());d&&d.addHost(p);let f=s?.some(Xf)||i?.some(v=>typeof v!="function"&&v.bindings.some(Xf)),h=fl(null,c,null,512|ch(a),null,null,e,l,n,null,Vp(u,n,!0));d&&Fh&&p instanceof ShadowRoot&&di(h,()=>{d.removeHost(p)}),h[U]=u,mi(h);let m=null;try{let v=_l(U,h,2,"#host",()=>c.directiveRegistry,!0,0);Yp(l,u,v),qn(u,h),os(c,h,v),tl(c,v,h),Tl(c,v),r!==void 0&&l_(v,this.ngContentSelectors,r),m=Se(v.index,h),h[W]=m[W],vl(c,h,null)}catch(v){throw m!==null&&Dc(m),Dc(h),v}finally{F(O.DynamicComponentEnd),gi()}return new Ui(this.componentType,h,!!f)}};function s_(t,e,n,r){let o=t?["ng-version","22.0.5"]:gI(e.selectors[0]),i=null,s=null,a=0;if(n)for(let u of n)a+=u[Pc].requiredVars,u.create&&(u.targetIdx=0,(i??=[]).push(u)),u.update&&(u.targetIdx=0,(s??=[]).push(u));if(r)for(let u=0;u<r.length;u++){let d=r[u];if(typeof d!="function")for(let p of d.bindings){a+=p[Pc].requiredVars;let f=u+1;p.create&&(p.targetIdx=f,(i??=[]).push(p)),p.update&&(p.targetIdx=f,(s??=[]).push(p))}}let c=[e];if(r)for(let u of r){let d=typeof u=="function"?u:u.type,p=ti(d);c.push(p)}return dl(0,null,c_(i,s),1,a,c,null,null,null,[o],null)}function a_(t,e){let n=t.getRootNode?.();return XD&&n instanceof Document?n.head:n&&Fh&&n instanceof ShadowRoot?n:e().head}function c_(t,e){return!t&&!e?null:n=>{if(n&1&&t)for(let r of t)r.create();if(n&2&&e)for(let r of e)r.update()}}function Xf(t){let e=t[Pc].kind;return e==="input"||e==="twoWay"}var Ui=class extends Mh{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(e,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=ci(n[E],U),this.location=Yn(this._tNode,n),this.instance=Se(this._tNode.index,n)[W],this.hostView=this.changeDetectorRef=new kt(n,void 0),this.componentType=e}setInput(e,n){this._hasInputBindings;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=yl(r,o[E],o,e,n);this.previousInputValues.set(e,n);let s=Se(r.index,o);El(s,1)}get injector(){return new At(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}};function l_(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 ss=(()=>{class t{static __NG_ELEMENT_ID__=u_}return t})();function u_(){let t=Q();return Vh(t,T())}var Lc=class t extends ss{_lContainer;_hostTNode;_hostLView;constructor(e,n,r){super(),this._lContainer=e,this._hostTNode=n,this._hostLView=r}get element(){return Yn(this._hostTNode,this._hostLView)}get injector(){return new At(this._hostTNode,this._hostLView)}get parentInjector(){let e=Xc(this._hostTNode,this._hostLView);if(vp(e)){let n=Ai(e,this._hostLView),r=xi(e),o=n[E].data[r+8];return new At(o,n)}else return new At(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let n=ep(this._lContainer);return n!==null&&n[e]||null}get length(){return this._lContainer.length-z}createEmbeddedView(e,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Fi(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,Gn(this._hostTNode,s)),a}createComponent(e,n,r,o,i,s,a){let c,l=n||{};c=l.index,r=l.injector,o=l.projectableNodes,i=l.environmentInjector||l.ngModuleRef,s=l.directives,a=l.bindings;let u=new Wn(Dt(e)),d=r||this.parentInjector;if(!i&&u.ngModule==null){let _=this.parentInjector.get(De,null);_&&(i=_)}let p=Dt(u.componentType??{}),f=Fi(this._lContainer,p?.id??null),h=f?.firstChild??null,m=u.create(d,o,h,i,s,a);return this.insertImpl(m.hostView,c,Gn(this._hostTNode,f)),m}insert(e,n){return this.insertImpl(e,n,!0)}insertImpl(e,n,r){let o=e._lView;if(Wd(o)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let c=o[J],l=new t(c,c[ie],c[J]);l.detach(l.indexOf(e))}}let i=this._adjustIndex(n),s=this._lContainer;return Ur(s,o,i,r),e.attachToViewContainerRef(),Ta(lc(s),i,e),e}move(e,n){return this.insert(e,n)}indexOf(e){let n=ep(this._lContainer);return n!==null?n.indexOf(e):-1}remove(e){let n=this._adjustIndex(e,-1),r=Rr(this._lContainer,n);r&&(Er(lc(this._lContainer),n),ts(r[E],r))}detach(e){let n=this._adjustIndex(e,-1),r=Rr(this._lContainer,n);return r&&Er(lc(this._lContainer),n)!=null?new kt(r):null}_adjustIndex(e,n=0){return e??this.length+n}};function ep(t){return t[Dr]}function lc(t){return t[Dr]||(t[Dr]=[])}function Vh(t,e){let n,r=e[t.index];return Te(r)?n=r:(n=Th(r,e,null,t),e[t.index]=n,pl(e,n)),f_(n,e,t,r),new Lc(n,t,e)}function d_(t,e){let n=t[V],r=n.createComment(""),o=be(e,t),i=n.parentNode(o);return Pi(n,i,r,n.nextSibling(o),!1),r}var f_=m_,p_=()=>!1;function h_(t,e,n){return p_(t,e,n)}function m_(t,e,n,r){if(t[St])return;let o;n.type&8?o=we(r):o=d_(e,n),t[St]=o}var Fc=class t{queryList;matches=null;constructor(e){this.queryList=e}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},jc=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++)bl(e,n).matches!==null&&this.queries[n].setDirty()}},qi=class{flags;read;predicate;constructor(e,n,r=null){this.flags=n,this.read=r,typeof e=="string"?this.predicate=I_(e):this.predicate=e}},Vc=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)}},Hc=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,g_(n,i)),this.matchTNodeWithReadOption(e,n,Ci(n,e,i,!1,!1))}else r===Or?n.type&4&&this.matchTNodeWithReadOption(e,n,-1):this.matchTNodeWithReadOption(e,n,Ci(n,e,r,!1,!1))}matchTNodeWithReadOption(e,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===Vr||o===ss||o===Or&&n.type&4)this.addMatch(n.index,-2);else{let i=Ci(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 g_(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 y_(t,e){return t.type&11?Yn(t,e):t.type&4?is(t,e):null}function v_(t,e,n,r){return n===-1?y_(e,t):n===-2?E_(t,e,r):xr(t,t[E],n,e)}function E_(t,e,n){if(n===Vr)return Yn(e,t);if(n===Or)return is(e,t);if(n===ss)return Vh(e,t)}function Hh(t,e,n,r){let o=e[Ze].queries[r];if(o.matches===null){let i=t.data,s=n.matches,a=[];for(let c=0;s!==null&&c<s.length;c+=2){let l=s[c];if(l<0)a.push(null);else{let u=i[l];a.push(v_(e,u,s[c+1],n.metadata.read))}}o.matches=a}return o.matches}function Bc(t,e,n,r){let o=t.queries.getByIndex(n),i=o.matches;if(i!==null){let s=Hh(t,e,o,n);for(let a=0;a<i.length;a+=2){let c=i[a];if(c>0)r.push(s[a/2]);else{let l=i[a+1],u=e[-c];for(let d=z;d<u.length;d++){let p=u[d];p[bt]===p[J]&&Bc(p[E],p,l,r)}if(u[rn]!==null){let d=u[rn];for(let p=0;p<d.length;p++){let f=d[p];Bc(f[E],f,l,r)}}}}}return r}function wl(t,e){return t[Ze].queries[e].queryList}function Bh(t,e,n){let r=new Oi((n&4)===4);return Zd(t,e,r,r.destroy),(e[Ze]??=new jc).queries.push(new Fc(r))-1}function $h(t,e,n){let r=B();return r.firstCreatePass&&(qh(r,new qi(t,e,n),-1),(e&2)===2&&(r.staticViewQueries=!0)),Bh(r,T(),e)}function Uh(t,e,n,r){let o=B();if(o.firstCreatePass){let i=Q();qh(o,new qi(e,n,r),i.index),D_(o,t),(n&2)===2&&(o.staticContentQueries=!0)}return Bh(o,T(),n)}function I_(t){return t.split(",").map(e=>e.trim())}function qh(t,e,n){t.queries===null&&(t.queries=new Vc),t.queries.track(new Hc(e,n))}function D_(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 bl(t,e){return t.queries.getByIndex(e)}function zh(t,e){let n=t[E],r=bl(n,e);return r.crossesNgTemplate?Bc(n,t,e,[]):Hh(n,t,r,e)}function Gh(t,e,n){let r,o=ir(()=>{r._dirtyCounter();let i=__(r,t);if(e&&i===void 0)throw new g(-951,!1);return i});return r=o[Z],r._dirtyCounter=oc(0),r._flatValue=void 0,o}function Sl(t){return Gh(!0,!1,t)}function Cl(t){return Gh(!0,!0,t)}function Wh(t,e){let n=t[Z];n._lView=T(),n._queryIndex=e,n._queryList=wl(n._lView,e),n._queryList.onDirty(()=>n._dirtyCounter.update(r=>r+1))}function __(t,e){let n=t._lView,r=t._queryIndex;if(n===void 0||r===void 0||n[b]&4)return e?void 0:oe;let o=wl(n,r),i=zh(n,r);return o.reset(i,Mp),e?o.first:o._changesDetected||t._flatValue===void 0?t._flatValue=o.toArray():t._flatValue}function Ml(t){return!!t&&typeof t.then=="function"}function Qh(t){return!!t&&typeof t.subscribe=="function"}var zi=class{};var Lr=class extends zi{injector;instance=null;constructor(e){super();let n=new Zt([...e.providers,{provide:zi,useValue:this}],e.parent||kn(),e.debugName,new Set(["environment"]));this.injector=n,e.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function Kh(t,e,n=null){return new Lr({providers:t,parent:e,debugName:n,runEnvironmentInitializers:!0}).injector}var T_=(()=>{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=Sa(!1,n.type),o=r.length>0?Kh([r],this._injector,""):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=pe({token:t,providedIn:"environment",factory:()=>new t(Ge(De))})}return t})();function w_(t){return jr(()=>{let e=Zh(t),n=ee(G({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection!==el.Eager,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:e.standalone?o=>o.get(T_).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||un.Emulated,styles:t.styles||oe,_:null,schemas:t.schemas||null,tView:null,id:""});e.standalone&&ut("NgStandalone"),Yh(n);let r=t.dependencies;return n.directiveDefs=tp(r,b_),n.pipeDefs=tp(r,Ad),n.id=A_(n),n})}function b_(t){return Dt(t)||ti(t)}function S_(t){return jr(()=>({type:t.type,bootstrap:t.bootstrap||oe,declarations:t.declarations||oe,imports:t.imports||oe,exports:t.exports||oe,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function C_(t,e){if(t==null)return Tt;let n={};for(let r in t)if(t.hasOwnProperty(r)){let o=t[r],i,s,a,c;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,c=o[3]||null):(i=o,s=o,a=rs.None,c=null),n[i]=[r,a,c],e[i]=s}return n}function M_(t){if(t==null)return Tt;let e={};for(let n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}function N_(t){return jr(()=>{let e=Zh(t);return Yh(e),e})}function x_(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 Zh(t){let e={};return{type:t.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputConfig:t.inputs||Tt,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||oe,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,signalFormsInputPresence:null,inputs:C_(t.inputs,e),outputs:M_(t.outputs),debugInfo:null}}function Yh(t){t.features?.forEach(e=>e(t))}function tp(t,e){return t?()=>{let n=typeof t=="function"?t():t,r=[];for(let o of n){let i=e(o);i!==null&&r.push(i)}return r}:null}function A_(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}var Jh=new P("");var Nl=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=S(Jh,{optional:!0})??[];injector=S(We);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=si(this.injector,o);if(Ml(i))n.push(i);else if(Qh(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});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=Zn({token:t,factory:t.\u0275fac})}return t})();function k_(t){return e=>{e.controlDef={create:(n,r)=>{n?.\u0275ngControlCreate(r)},update:(n,r)=>{n?.\u0275ngControlUpdate?.(r)},passThroughInput:t}}}function R_(t){let e=n=>{let r=Array.isArray(t);n.hostDirectives===null?(n.resolveHostDirectives=O_,n.hostDirectives=r?t.map($c):[t]):r?n.hostDirectives.unshift(...t.map($c)):n.hostDirectives.unshift(t)};return e.ngInherit=!0,e}function O_(t){let e=[],n=!1,r=null,o=null;for(let i=0;i<t.length;i++){let s=t[i];if(s.hostDirectives!==null){let a=e.length;r??=new Map,o??=new Map,Xh(s,e,r,t),o.set(s,[a,e.length-1])}i===0&&Re(s)&&(n=!0,e.push(s))}for(let i=n?1:0;i<t.length;i++)e.push(t[i]);return r!==null&&r.forEach((i,s)=>{P_(s.declaredInputs,i.inputs)}),[e,r,o]}function Xh(t,e,n,r){if(t.hostDirectives!==null)for(let o of t.hostDirectives)if(typeof o=="function"){let i=o();for(let s of i)np($c(s),e,n,r)}else np(o,e,n,r)}function np(t,e,n,r){let o=ti(t.directive);if(Xh(o,e,n,r),n.has(o)){let i=n.get(o);rp(i,t.inputs,"input"),rp(i,t.outputs,"output")}else r.includes(o)||(n.set(o,t),e.push(o))}function rp(t,e,n){let r=n==="input"?t.inputs:t.outputs;Object.keys(e).forEach(o=>{let i=e[o];(!r.hasOwnProperty(o)||r[o]===i)&&(r[o]=i)})}function $c(t){return typeof t=="function"?{directive:Y(t),inputs:{},outputs:{}}:{directive:Y(t.directive),inputs:op(t.inputs),outputs:op(t.outputs)}}function op(t){let e={};if(t!==void 0&&t.length>0)for(let n=0;n<t.length;n+=2)e[t[n]]=t[n+1];return e}function P_(t,e){for(let n in e)if(e.hasOwnProperty(n)){let r=e[n],o=t[n];t[r]=o}}function L_(t){return Object.getPrototypeOf(t.prototype).constructor}function em(t){let e=L_(t.type),n=!0,r=[t];for(;e;){let o;if(Re(t))o=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new g(903,!1);o=e.\u0275dir}if(o){if(n){r.push(o);let s=t;s.inputs=uc(t.inputs),s.declaredInputs=uc(t.declaredInputs),s.outputs=uc(t.outputs);let a=o.hostBindings;a&&B_(t,a);let c=o.viewQuery,l=o.contentQueries;if(c&&V_(t,c),l&&H_(t,l),F_(t,o),Nd(t.outputs,o.outputs),Re(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===em&&(n=!1)}}e=Object.getPrototypeOf(e)}j_(r)}function F_(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 j_(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=Un(o.hostAttrs,n=Un(n,o.hostAttrs))}}function uc(t){return t===Tt?{}:t===oe?[]:t}function V_(t,e){let n=t.viewQuery;n?t.viewQuery=(r,o)=>{e(r,o),n(r,o)}:t.viewQuery=e}function H_(t,e){let n=t.contentQueries;n?t.contentQueries=(r,o,i)=>{e(r,o,i),n(r,o,i)}:t.contentQueries=e}function B_(t,e){let n=t.hostBindings;n?t.hostBindings=(r,o)=>{e(r,o),n(r,o)}:t.hostBindings=e}function tm(t,e,n,r,o,i,s,a){if(n.firstCreatePass){t.mergedAttrs=Un(t.mergedAttrs,t.attrs);let u=t.tView=dl(2,t,o,i,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,t),u.queries=n.queries.embeddedTView(t))}a&&(t.flags|=a),Fn(t,!1);let c=U_(n,e,t,r);yi()&&ll(n,e,c,t),qn(c,e);let l=Th(c,e,c,t);e[r+U]=l,pl(e,l),h_(l,t,e)}function $_(t,e,n,r,o,i,s,a,c,l,u){let d=n+U,p;return e.firstCreatePass?(p=Jn(e,d,4,s||null,a||null),fi()&&Ph(e,t,p,Ee(e.consts,l),hl),mp(e,p)):p=e.data[d],tm(p,t,e,n,r,o,i,c),Pn(p)&&os(e,t,p),l!=null&&Br(t,p,u),p}function Qn(t,e,n,r,o,i,s,a,c,l,u){let d=n+U,p;if(e.firstCreatePass){if(p=Jn(e,d,4,s||null,a||null),l!=null){let f=Ee(e.consts,l);p.localNames=[];for(let h=0;h<f.length;h+=2)p.localNames.push(f[h],-1)}}else p=e.data[d];return tm(p,t,e,n,r,o,i,c),l!=null&&Br(t,p,u),p}function nm(t,e,n,r,o,i,s,a){let c=T(),l=B(),u=Ee(l.consts,i);return $_(c,l,t,e,n,r,o,u,void 0,s,a),nm}function rm(t,e,n,r,o,i,s,a){let c=T(),l=B(),u=Ee(l.consts,i);return Qn(c,l,t,e,n,r,o,u,void 0,s,a),rm}var U_=q_;function q_(t,e,n,r){return br(!0),e[V].createComment("")}var om=new P("");var im=new P("");function sm(){Os(()=>{let t="";throw new g(600,t)})}var z_=10;var zr=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=S(xt);afterRenderManager=S(Xi);zonelessEnabled=S(Hn);rootEffectScheduler=S(Ii);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new ye;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=S(Nt);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(tt(n=>!n))}constructor(){S(pn,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=S(De);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=We.NULL){return this._injector.get(ne).run(()=>{if(F(O.BootstrapComponentStart),!this._injector.get(Nl).done){let _="";throw new g(405,_)}let a=Dt(n),c=this._injector.get(zi),l=new Wn(a,c);this.componentTypes.push(n);let{hostElement:u,directives:d,bindings:p}=G_(r),f=u||l.selector,h=l.create(o,[],f,c.injector,d,p),m=h.location.nativeElement,v=h.injector.get(om,null);return v?.registerApplication(m),h.onDestroy(()=>{this.detachView(h.hostView),Nr(this.components,h),v?.unregisterApplication(m)}),this._loadComponent(h),F(O.BootstrapComponentEnd,h),h})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){F(O.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(Ji.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw F(O.ChangeDetectionEnd),new g(101,!1);let n=D(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,D(n),this.afterTick.next(),F(O.ChangeDetectionEnd)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Pr,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<z_;){F(O.ChangeDetectionSyncStart);try{this.synchronizeOnce()}finally{F(O.ChangeDetectionSyncEnd)}}}synchronizeOnce(){this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let n=!1;if(this.dirtyFlags&7){let r=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:o}of this.allViews){if(!r&&!_r(o))continue;let i=r&&!this.zonelessEnabled?0:1;Eh(o,i),n=!0}if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}n||(this._rendererFactory?.begin?.(),this._rendererFactory?.end?.()),this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>_r(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;Nr(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView);try{this.tick()}catch(o){this.internalErrorHandler(o)}this.components.push(n),this._injector.get(im,[]).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),()=>Nr(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new g(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=Zn({token:t,factory:t.\u0275fac})}return t})();function G_(t){return t===void 0||typeof t=="string"||t instanceof Element?{hostElement:t}:t}function Nr(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}function am(t,e,n,r){let o=T(),i=Ct();if(Fe(o,i,e)){let s=B(),a=jn();XI(a,o,t,e,n,r)}return am}var Uc=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 dc(t,e,n,r,o){return t===n&&Object.is(e,r)?1:Object.is(o(t,e),o(n,r))?-1:0}function W_(t,e,n,r){let o,i,s=0,a=t.length-1,c=void 0;if(Array.isArray(e)){D(r);let l=e.length-1;for(D(null);s<=a&&s<=l;){let u=t.at(s),d=e[s],p=dc(s,u,s,d,n);if(p!==0){p<0&&t.updateValue(s,d),s++;continue}let f=t.at(a),h=e[l],m=dc(a,f,l,h,n);if(m!==0){m<0&&t.updateValue(a,h),a--,l--;continue}let v=n(s,u),_=n(a,f),L=n(s,d);if(Object.is(L,_)){let K=n(l,h);Object.is(K,v)?(t.swap(s,a),t.updateValue(a,h),l--,a--):t.move(a,s),t.updateValue(s,d),s++;continue}if(o??=new Gi,i??=sp(t,s,a,n),qc(t,o,s,L))t.updateValue(s,d),s++,a++;else if(i.has(L))o.set(v,t.detach(s)),a--;else{let K=t.create(s,e[s]);t.attach(s,K),s++,a++}}for(;s<=l;)ip(t,o,n,s,e[s]),s++}else if(e!=null){D(r);let l=e[Symbol.iterator]();D(null);let u=l.next();for(;!u.done&&s<=a;){let d=t.at(s),p=u.value,f=dc(s,d,s,p,n);if(f!==0)f<0&&t.updateValue(s,p),s++,u=l.next();else{o??=new Gi,i??=sp(t,s,a,n);let h=n(s,p);if(qc(t,o,s,h))t.updateValue(s,p),s++,a++,u=l.next();else if(!i.has(h))t.attach(s,t.create(s,p)),s++,a++,u=l.next();else{let m=n(s,d);o.set(m,t.detach(s)),a--}}}for(;!u.done;)ip(t,o,n,t.length,u.value),u=l.next()}for(;s<=a;)t.destroy(t.detach(a--));o?.forEach(l=>{t.destroy(l)})}function qc(t,e,n,r){return e!==void 0&&e.has(r)?(t.attach(n,e.get(r)),e.delete(r),!0):!1}function ip(t,e,n,r,o){if(qc(t,e,r,n(r,o)))t.updateValue(r,o);else{let i=t.create(r,o);t.attach(r,i)}}function sp(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 Gi=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 Q_(t,e,n,r,o,i,s,a){ut("NgControlFlow");let c=T(),l=B(),u=Ee(l.consts,i);return Qn(c,l,t,e,n,r,o,u,256,s,a),xl}function xl(t,e,n,r,o,i,s,a){ut("NgControlFlow");let c=T(),l=B(),u=Ee(l.consts,i);return Qn(c,l,t,e,n,r,o,u,512,s,a),xl}function K_(t,e){ut("NgControlFlow");let n=T(),r=Ct(),o=n[r]!==se?n[r]:-1,i=o!==-1?Wi(n,U+o):void 0,s=0;if(Fe(n,r,t)){let a=D(null);try{if(i!==void 0&&bh(i,s),t!==-1){let c=U+t,l=Wi(n,c),u=Qc(n[E],c),d=Ch(l,u,n),p=$r(n,u,e,{dehydratedView:d});Ur(l,p,s,Gn(u,d))}}finally{D(a)}}else if(i!==void 0){let a=wh(i,s);a!==void 0&&(a[W]=e)}}var zc=class{lContainer;$implicit;$index;constructor(e,n,r){this.lContainer=e,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-z}};function Z_(t,e){return e}var Gc=class{hasEmptyBlock;trackByFn;liveCollection;constructor(e,n,r){this.hasEmptyBlock=e,this.trackByFn=n,this.liveCollection=r}};function Y_(t,e,n,r,o,i,s,a,c,l,u,d,p){ut("NgControlFlow");let f=T(),h=B(),m=c!==void 0,v=T(),_=a?s.bind(v[ue][W]):s,L=new Gc(m,_);v[U+t]=L,Qn(f,h,t+1,e,n,r,o,Ee(h.consts,i),256),m&&Qn(f,h,t+2,c,l,u,d,Ee(h.consts,p),512)}var Wc=class extends Uc{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-z}at(e){return this.getLView(e)[W].$implicit}attach(e,n){let r=n[en];this.needsIndexUpdate||=e!==this.length,Ur(this.lContainer,n,e,Gn(this.templateTNode,r)),X_(this.lContainer,e)}detach(e){return this.needsIndexUpdate||=e!==this.length-1,eT(this.lContainer,e),tT(this.lContainer,e)}create(e,n){let r=Fi(this.lContainer,this.templateTNode.tView.ssrId);return $r(this.hostLView,this.templateTNode,new zc(this.lContainer,n,e),{dehydratedView:r})}destroy(e){ts(e[E],e)}updateValue(e,n){this.getLView(e)[W].$implicit=n}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e<this.length;e++)this.getLView(e)[W].$index=e}getLView(e){return nT(this.lContainer,e)}};function J_(t){let e=D(null),n=Oe();try{let r=T(),o=r[E],i=r[n],s=n+1,a=Wi(r,s);if(i.liveCollection===void 0){let l=Qc(o,s);i.liveCollection=new Wc(a,r,l)}else i.liveCollection.reset();let c=i.liveCollection;if(W_(c,t,i.trackByFn,e),c.updateIndexes(),i.hasEmptyBlock){let l=Ct(),u=c.length===0;if(Fe(r,l,u)){let d=n+2,p=Wi(r,d);if(u){let f=Qc(o,d),h=Ch(p,f,r),m=$r(r,f,void 0,{dehydratedView:h});Ur(p,m,0,Gn(f,h))}else o.firstUpdatePass&&wD(p),bh(p,0)}}}finally{D(e)}}function Wi(t,e){return t[e]}function X_(t,e){if(t.length<=z)return;let n=z+e,r=t[n],o=r?r[Je]:void 0;if(r&&o&&o.detachedLeaveAnimationFns&&o.detachedLeaveAnimationFns.length>0){let i=r[Qe];wI(i,o),zn.delete(r[Ye]),o.detachedLeaveAnimationFns=void 0}}function eT(t,e){if(t.length<=z)return;let n=z+e,r=t[n],o=r?r[Je]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[])}function tT(t,e){return Rr(t,e)}function nT(t,e){return wh(t,e)}function Qc(t,e){return ci(t,e)}function cm(t,e,n){let r=T(),o=Ct();if(Fe(r,o,e)){let i=B(),s=jn();fh(s,r,t,e,r[V],n)}return cm}function Kc(t,e,n,r,o){yl(e,t,n,o?"class":"style",r)}function Qi(t,e,n,r){let o=T(),i=o[E],s=t+U,a=i.firstCreatePass?_l(s,o,2,e,hl,fi(),n,r):i.data[s];if(at(a)){let c=o[Ke].tracingService;if(c&&c.componentCreate){let l=i.data[a.directiveStart+a.componentOffset];return c.componentCreate(xh(l),()=>(ap(t,e,o,a,r),Qi))}}return ap(t,e,o,a,r),Qi}function ap(t,e,n,r,o){if(ml(r,n,t,e,dm),Pn(r)){let i=n[E];os(i,n,r),tl(i,r,n)}o!=null&&Br(n,r)}function Al(){let t=B(),e=Q(),n=gl(e);return t.firstCreatePass&&Tl(t,n),qa(n)&&za(),$a(),n.classesWithoutHost!=null&&tE(n)&&Kc(t,n,T(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&nE(n)&&Kc(t,n,T(),n.stylesWithoutHost,!1),Al}function lm(t,e,n,r){return Qi(t,e,n,r),Al(),lm}function kl(t,e,n,r){let o=T(),i=o[E],s=t+U,a=i.firstCreatePass?JD(s,i,2,e,n,r):i.data[s];return ml(a,o,t,e,dm),r!=null&&Br(o,a),kl}function Rl(){let t=Q(),e=gl(t);return qa(e)&&za(),$a(),Rl}function um(t,e,n,r){return kl(t,e,n,r),Rl(),um}var dm=(t,e,n,r,o)=>(br(!0),Qp(e[V],r,Xa()));function Ol(t,e,n){let r=T(),o=r[E],i=t+U,s=o.firstCreatePass?_l(i,r,8,"ng-container",hl,fi(),e,n):o.data[i];if(ml(s,r,t,"ng-container",rT),Pn(s)){let a=r[E];os(a,r,s),tl(a,s,r)}return n!=null&&Br(r,s),Ol}function Pl(){let t=B(),e=Q(),n=gl(e);return t.firstCreatePass&&Tl(t,n),Pl}function fm(t,e,n){return Ol(t,e,n),Pl(),fm}var rT=(t,e,n,r,o)=>(br(!0),tI(e[V],""));function oT(){return T()}function pm(t,e,n){let r=T(),o=Ct();if(Fe(r,o,e)){let i=B(),s=jn();ph(s,r,t,e,r[V],n)}return pm}var Sr=void 0;function iT(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return e===1&&n===0?1:5}var sT=["en",[["a","p"],["AM","PM"]],[["AM","PM"]],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Sr,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Sr,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm\u202Fa","h:mm:ss\u202Fa","h:mm:ss\u202Fa z","h:mm:ss\u202Fa zzzz"],["{1}, {0}",Sr,Sr,Sr],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",iT],fc=Object.create(null);function aT(t){let e=lT(t),n=cp(e);if(n)return n;let r=e.split("-")[0];if(n=cp(r),n)return n;if(r==="en")return sT;throw new g(701,!1)}function cp(t){if(!(t in fc)){let e=_t.ng&&_t.ng.common&&_t.ng.common.locales&&_t.ng.common.locales[t];return e!==void 0&&(fc[t]=e),e}return fc[t]}var cT={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencyCode:15,CurrencySymbol:16,CurrencyName:17,Currencies:18,Directionality:19,PluralCase:20,ExtraData:21};function lT(t){return t.toLowerCase().replace(/_/g,"-")}var Gr="en-US";var uT=Gr;function hm(t){typeof t=="string"&&(uT=t.toLowerCase().replace(/_/g,"-"))}function mm(t,e,n){let r=T(),o=B(),i=Q();return ym(o,r,r[V],i,t,e,n),mm}function gm(t,e,n){let r=T(),o=B(),i=Q();return(i.type&3||n)&&Dl(i,o,r,n,r[V],t,e,cn(i,r,e)),gm}function ym(t,e,n,r,o,i,s){let a=!0,c=null;if((r.type&3||s)&&(c??=cn(r,e,i),Dl(r,t,e,s,n,o,i,c)&&(a=!1)),a){let l=r.outputs?.[o],u=r.hostDirectiveOutputs?.[o];if(u&&u.length)for(let d=0;d<u.length;d+=2){let p=u[d],f=u[d+1];c??=cn(r,e,i),Hi(r,e,p,f,o,c)}if(l&&l.length)for(let d of l)c??=cn(r,e,i),Hi(r,e,d,o,o,c)}}function dT(t=1){return pf(t)}function fT(t,e){let n=null,r=uI(t);for(let o=0;o<e.length;o++){let i=e[o];if(i==="*"){n=o;continue}if(r===null?eh(t,i,!0):pI(r,i))return o}return n}function pT(t){let e=T()[ue][ie];if(!e.projection){let n=t?t.length:1,r=e.projection=Fd(n,null),o=r.slice(),i=e.child;for(;i!==null;){if(i.type!==128){let s=t?fT(i,t):0;s!==null&&(o[s]?o[s].projectionNext=i:r[s]=i,o[s]=i)}i=i.next}}}function hT(t,e=0,n,r,o,i){let s=T(),a=B(),c=r?t+1:null;c!==null&&Qn(s,a,c,r,o,i,null,n);let l=Jn(a,U+t,16,null,n||null);l.projection===null&&(l.projection=e),Qa();let d=!s[en]||Ua();s[ue][ie].projection[l.projection]===null&&c!==null?mT(s,a,c):d&&!Zi(l)&&jI(a,s,l)}function mT(t,e,n){let r=U+n,o=e.data[r],i=t[r],s=Fi(i,o.tView.ssrId),a=$r(t,o,void 0,{dehydratedView:s});Ur(i,a,0,Gn(o,s))}function vm(t,e,n,r){return Uh(t,e,n,r),vm}function Em(t,e,n){return $h(t,e,n),Em}function gT(t){let e=T(),n=B(),r=hi();wr(r+1);let o=bl(n,r);if(t.dirty&&Gd(e)===((o.metadata.flags&2)===2)){if(o.matches===null)t.reset([]);else{let i=zh(e,r);t.reset(i,Mp),t.notifyOnChanges()}return!0}return!1}function yT(){return wl(T(),hi())}function Im(t,e,n,r,o){return Wh(e,Uh(t,n,r,o)),Im}function Dm(t,e,n,r){return Wh(t,$h(e,n,r)),Dm}function vT(t=1){wr(hi()+t)}function ET(t){let e=nf();return La(e,U+t)}function wi(t,e){return t<<17|e<<2}function fn(t){return t>>17&32767}function IT(t){return(t&2)==2}function DT(t,e){return t&131071|e<<17}function Zc(t){return t|2}function Kn(t){return(t&131068)>>2}function pc(t,e){return t&-131069|e<<2}function _T(t){return(t&1)===1}function Yc(t){return t|1}function TT(t,e,n,r,o,i){let s=i?e.classBindings:e.styleBindings,a=fn(s),c=Kn(s);t[r]=n;let l=!1,u;if(Array.isArray(n)){let d=n;u=d[1],(u===null||An(d,u)>0)&&(l=!0)}else u=n;if(o)if(c!==0){let p=fn(t[a+1]);t[r+1]=wi(p,a),p!==0&&(t[p+1]=pc(t[p+1],r)),t[a+1]=DT(t[a+1],r)}else t[r+1]=wi(a,0),a!==0&&(t[a+1]=pc(t[a+1],r)),a=r;else t[r+1]=wi(c,0),a===0?a=r:t[c+1]=pc(t[c+1],r),c=r;l&&(t[r+1]=Zc(t[r+1])),lp(t,u,r,!0),lp(t,u,r,!1),wT(e,u,t,r,i),s=wi(a,c),i?e.classBindings=s:e.styleBindings=s}function wT(t,e,n,r,o){let i=o?t.residualClasses:t.residualStyles;i!=null&&typeof e=="string"&&An(i,e)>=0&&(n[r+1]=Yc(n[r+1]))}function lp(t,e,n,r){let o=t[n+1],i=e===null,s=r?fn(o):Kn(o),a=!1;for(;s!==0&&(a===!1||i);){let c=t[s],l=t[s+1];bT(c,e)&&(a=!0,t[s+1]=r?Yc(l):Zc(l)),s=r?fn(l):Kn(l)}a&&(t[n+1]=r?Zc(o):Yc(o))}function bT(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?An(t,e)>=0:!1}var Le={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function ST(t){return t.substring(Le.key,Le.keyEnd)}function CT(t){return MT(t),_m(t,Tm(t,0,Le.textEnd))}function _m(t,e){let n=Le.textEnd;return n===e?-1:(e=Le.keyEnd=NT(t,Le.key=e,n),Tm(t,e,n))}function MT(t){Le.key=0,Le.keyEnd=0,Le.value=0,Le.valueEnd=0,Le.textEnd=t.length}function Tm(t,e,n){for(;e<n&&t.charCodeAt(e)<=32;)e++;return e}function NT(t,e,n){for(;e<n&&t.charCodeAt(e)>32;)e++;return e}function wm(t,e,n){return Sm(t,e,n,!1),wm}function bm(t,e){return Sm(t,e,null,!0),bm}function xT(t){kT(jT,AT,t,!0)}function AT(t,e){for(let n=CT(e);n>=0;n=_m(e,n))oi(t,ST(e),!0)}function Sm(t,e,n,r){let o=T(),i=B(),s=Tr(2);if(i.firstUpdatePass&&Mm(i,t,s,r),e!==se&&Fe(o,s,e)){let a=i.data[Oe()];Nm(i,a,o,o[V],t,o[s+1]=HT(e,n),r,s)}}function kT(t,e,n,r){let o=B(),i=Tr(2);o.firstUpdatePass&&Mm(o,null,i,r);let s=T();if(n!==se&&Fe(s,i,n)){let a=o.data[Oe()];if(xm(a,r)&&!Cm(o,i)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(n=Yo(c,n||"")),Kc(o,a,s,n,r)}else VT(o,a,s,s[V],s[i+1],s[i+1]=FT(t,e,n),r,i)}}function Cm(t,e){return e>=t.expandoStartIndex}function Mm(t,e,n,r){let o=t.data;if(o[n+1]===null){let i=o[Oe()],s=Cm(t,n);xm(i,r)&&e===null&&!s&&(e=!1),e=RT(o,i,e,r),TT(o,i,e,n,s,r)}}function RT(t,e,n,r){let o=lf(t),i=r?e.residualClasses:e.residualStyles;if(o===null)(r?e.classBindings:e.styleBindings)===0&&(n=hc(null,t,e,n,r),n=Fr(n,e.attrs,r),i=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==o)if(n=hc(o,t,e,n,r),i===null){let c=OT(t,e,r);c!==void 0&&Array.isArray(c)&&(c=hc(null,t,e,c[1],r),c=Fr(c,e.attrs,r),PT(t,e,r,c))}else i=LT(t,e,r)}return i!==void 0&&(r?e.residualClasses=i:e.residualStyles=i),n}function OT(t,e,n){let r=n?e.classBindings:e.styleBindings;if(Kn(r)!==0)return t[fn(r)]}function PT(t,e,n,r){let o=n?e.classBindings:e.styleBindings;t[fn(o)]=r}function LT(t,e,n){let r,o=e.directiveEnd;for(let i=1+e.directiveStylingLast;i<o;i++){let s=t[i].hostAttrs;r=Fr(r,s,n)}return Fr(r,e.attrs,n)}function hc(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=Fr(r,i.hostAttrs,o),i!==t);)a++;return t!==null&&(n.directiveStylingLast=a),r}function Fr(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]),oi(t,s,n?!0:e[++i]))}return t===void 0?null:t}function FT(t,e,n){if(n==null||n==="")return oe;let r=[],o=nl(n);if(Array.isArray(o))for(let i=0;i<o.length;i++)t(r,o[i],!0);else if(o instanceof Set)for(let i of o)t(r,i,!0);else if(typeof o=="object")for(let i in o)Object.hasOwn(o,i)&&t(r,i,o[i]);else typeof o=="string"&&e(r,o);return r}function jT(t,e,n){let r=String(e);r!==""&&!r.includes(" ")&&oi(t,r,n)}function VT(t,e,n,r,o,i,s,a){o===se&&(o=oe);let c=0,l=0,u=0<o.length?o[0]:null,d=0<i.length?i[0]:null;for(;u!==null||d!==null;){let p=c<o.length?o[c+1]:void 0,f=l<i.length?i[l+1]:void 0,h=null,m;u===d?(c+=2,l+=2,p!==f&&(h=d,m=f)):d===null||u!==null&&u<d?(c+=2,h=u):(l+=2,h=d,m=f),h!==null&&Nm(t,e,n,r,h,m,s,a),u=c<o.length?o[c]:null,d=l<i.length?i[l]:null}}function Nm(t,e,n,r,o,i,s,a){if(!(e.type&3))return;let c=t.data,l=c[a+1],u=_T(l)?up(c,e,n,o,Kn(l),s):void 0;if(!Ki(u)){Ki(i)||IT(l)&&(i=up(c,null,n,o,a,s));let d=Pa(Oe(),n);HI(r,s,d,o,i)}}function up(t,e,n,r,o,i){let s=e===null,a;for(;o>0;){let c=t[o],l=Array.isArray(c),u=l?c[1]:c,d=u===null,p=n[o+1];p===se&&(p=d?oe:void 0);let f=d?ii(p,r):u===r?p:void 0;if(l&&!Ki(f)&&(f=ii(c,r)),Ki(f)&&(a=f,s))return a;let h=t[o+1];o=s?fn(h):Kn(h)}if(e!==null){let c=i?e.residualClasses:e.residualStyles;c!=null&&(a=ii(c,r))}return a}function Ki(t){return t!==void 0}function HT(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=Zo(nl(t)))),t}function xm(t,e){return(t.flags&(e?8:16))!==0}function BT(t,e=""){let n=T(),r=B(),o=t+U,i=r.firstCreatePass?Jn(r,o,1,e,null):r.data[o],s=$T(r,n,i,e);n[o]=s,yi()&&ll(r,n,s,i),Fn(i,!1)}var $T=(t,e,n,r)=>(br(!0),XE(e[V],r));function UT(t,e,n,r=""){return Fe(t,Ct(),n)?e+it(n)+r:se}function qT(t,e,n,r,o,i=""){let s=Za(),a=Vi(t,s,n,o);return Tr(2),a?e+it(n)+r+it(o)+i:se}function zT(t,e,n,r,o,i,s,a,c,l=""){let u=Za(),d=AD(t,u,n,o,s,c);return Tr(4),d?e+it(n)+r+it(o)+i+it(s)+a+it(c)+l:se}function Am(t){return Ll("",t),Am}function Ll(t,e,n){let r=T(),o=UT(r,t,e,n);return o!==se&&Fl(r,Oe(),o),Ll}function km(t,e,n,r,o){let i=T(),s=qT(i,t,e,n,r,o);return s!==se&&Fl(i,Oe(),s),km}function Rm(t,e,n,r,o,i,s,a,c){let l=T(),u=zT(l,t,e,n,r,o,i,s,a,c);return u!==se&&Fl(l,Oe(),u),Rm}function Fl(t,e,n){let r=Pa(e,t);eI(t[V],r,n)}function Om(t,e,n){Di(e)&&(e=e());let r=T(),o=Ct();if(Fe(r,o,e)){let i=B(),s=jn();fh(s,r,t,e,r[V],n)}return Om}function GT(t,e){let n=Di(t);return n&&t.set(e),n}function Pm(t,e){let n=T(),r=B(),o=Q();return ym(r,n,n[V],o,t,e),Pm}function dp(t,e,n){let r=B();r.firstCreatePass&&Lm(e,r.data,r.blueprint,Re(t),n)}function Lm(t,e,n,r,o){if(t=Y(t),Array.isArray(t))for(let i=0;i<t.length;i++)Lm(t[i],e,n,r,o);else{let i=B(),s=T(),a=Q(),c=Kt(t)?t:Y(t.provide),l=Na(t),u=a.providerIndexes&1048575,d=a.directiveStart,p=a.providerIndexes>>20;if(Kt(t)||!t.multi){let f=new ln(l,o,qr,null),h=gc(c,e,o?u:u+p,d);h===-1?(Ec(Ri(a,s),i,c),mc(i,t,e.length),e.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[h]=f,s[h]=f)}else{let f=gc(c,e,u+p,d),h=gc(c,e,u,u+p),m=f>=0&&n[f],v=h>=0&&n[h];if(o&&!v||!o&&!m){Ec(Ri(a,s),i,c);let _=KT(o?QT:WT,n.length,o,r,l,t);!o&&v&&(n[h].providerFactory=_),mc(i,t,e.length,0),e.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(_),s.push(_)}else{let _=Fm(n[o?h:f],l,!o&&r);mc(i,t,f>-1?f:h,_)}!o&&r&&v&&n[h].componentProviders++}}}function mc(t,e,n,r){let o=Kt(e),i=$d(e);if(o||i){let c=(i?Y(e.useClass):e).prototype.ngOnDestroy;if(c){let l=t.destroyHooks||(t.destroyHooks=[]);if(!o&&e.multi){let u=l.indexOf(n);u===-1?l.push(n,[r,c]):l[u+1].push(r,c)}else l.push(n,c)}}}function Fm(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function gc(t,e,n,r){for(let o=n;o<r;o++)if(e[o]===t)return o;return-1}function WT(t,e,n,r,o){return Jc(this.multi,[])}function QT(t,e,n,r,o){let i=this.multi,s;if(this.providerFactory){let a=this.providerFactory.componentProviders,c=xr(r,r[E],this.providerFactory.index,o);s=c.slice(0,a),Jc(i,s);for(let l=a;l<c.length;l++)s.push(c[l])}else s=[],Jc(i,s);return s}function Jc(t,e){for(let n=0;n<t.length;n++){let r=t[n];e.push(r())}return e}function KT(t,e,n,r,o,i){let s=new ln(t,n,qr,null);return s.multi=[],s.index=e,s.componentProviders=0,Fm(s,o,r&&!n),s}function ZT(t,e){return n=>{n.providersResolver=(r,o)=>dp(r,o?o(t):t,!1),e&&(n.viewProvidersResolver=(r,o)=>dp(r,o?o(e):e,!0))}}function YT(t,e){let n=t[e];return n===se?void 0:n}function JT(t,e,n,r,o,i,s){let a=e+n;return Vi(t,a,o,i)?xD(t,a+2,s?r.call(s,o,i):r(o,i)):YT(t,a+2)}function XT(t,e){let n=B(),r,o=t+U;n.firstCreatePass?(r=ew(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=Et(r.type,!0)),s,a=le(qr);try{let c=ki(!1),l=i();return ki(c),Fa(n,T(),o,l),l}finally{le(a)}}function ew(t,e){if(e)for(let n=e.length-1;n>=0;n--){let r=e[n];if(t===r.name)return r}}function tw(t,e,n,r){let o=t+U,i=T(),s=La(i,o);return nw(i,o)?JT(i,rf(),e,s.transform,n,r,s):s.transform(n,r)}function nw(t,e){return t[E].data[e].pure}function rw(t,e){return is(t,e)}var jm=(()=>{class t{applicationErrorHandler=S(xt);appRef=S(zr);taskService=S(Nt);ngZone=S(ne);zonelessEnabled=S(Hn);tracing=S(pn,{optional:!0});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new $;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(yr):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(S(Ei,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let n=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(n);return}this.switchToMicrotaskScheduler(),this.taskService.remove(n)})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()}))}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let n=this.taskService.add();this.useMicrotaskScheduler=!0,queueMicrotask(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})})}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:case 2:{this.appRef.dirtyFlags|=2;break}case 3:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2;break}case 12:{this.appRef.dirtyFlags|=16;break}case 13:{this.appRef.dirtyFlags|=2;break}case 11:break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?Ef:tc;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(yr+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){this.applicationErrorHandler(r)}finally{this.taskService.remove(n),this.cleanup()}}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=Zn({token:t,factory:t.\u0275fac})}return t})();function Vm(){return[{provide:Ae,useExisting:jm},{provide:ne,useClass:vr},{provide:Hn,useValue:!0}]}function ow(){return typeof $localize<"u"&&$localize.locale||Gr}var jl=new P("",{factory:()=>S(jl,{optional:!0,skipSelf:!0})||ow()});function iw(t,e){return ir(t,e?.equal)}function sw(t){return $u(t)}var Gm=Symbol("InputSignalNode#UNSET"),aw=ee(G({},sr),{transformFn:void 0,applyValueToInputSignal(t,e){In(t,e)}});function Wm(t,e){let n=Object.create(aw);n.value=t,n.transformFn=e?.transform;function r(){if(Vt(n),n.value===Gm){let o=null;throw new g(-950,o)}return n.value}return r[Z]=n,r}var Hm=class{attributeName;constructor(e){this.attributeName=e}__NG_ELEMENT_ID__=()=>Cp(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}},Gj=(()=>{let t=new P("");return t.__NG_ELEMENT_ID__=e=>{let n=Q();if(n===null)throw new g(-204,!1);if(n.type&2)return n.value;if(e&8)return null;throw new g(-204,!1)},t})();function Bm(t,e){return Wm(t,e)}function cw(t){return Wm(Gm,t)}var Wj=(Bm.required=cw,Bm);function $m(t,e){return Sl(e)}function lw(t,e){return Cl(e)}var Qj=($m.required=lw,$m);function Um(t,e){return Sl(e)}function uw(t,e){return Cl(e)}var Kj=(Um.required=uw,Um);var dw=1e4;var Zj=dw-1e3;var Hl=class{supports(e){return Il(e)}create(e){return new Bl(e)}},fw=(t,e)=>e,Bl=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||fw}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<qm(r,o,i)?n:r,a=qm(s,o,i),c=s.currentIndex;if(s===r)o--,r=r._nextRemoved;else if(n=n._next,s.previousIndex==null)o++;else{i||(i=[]);let l=a-o,u=c-o;if(l!=u){for(let p=0;p<l;p++){let f=p<i.length?i[p]:i[p]=0,h=f+p;u<=h&&h<l&&(i[p]=f+1)}let d=s.previousIndex;i[d]=u-l}}a!==c&&e(s,a,c)}}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=[]),!Il(e))throw new g(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,Ah(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 $l(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 cs),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 cs),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}},$l=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}},Ul=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}},cs=class{map=new Map;put(e){let n=e.trackById,r=this.map.get(n);r||(r=new Ul,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 qm(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}function zm(){return new pw([new Hl])}var pw=(()=>{class t{factories;static \u0275prov=pe({token:t,providedIn:"root",factory:zm});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:()=>{let r=S(t,{optional:!0,skipSelf:!0});return t.create(n,r||zm())}}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new g(901,!1)}}return t})();var Yj=(()=>{class t{static __NG_ELEMENT_ID__=hw}return t})();function hw(t){return mw(Q(),T(),(t&16)===16)}function mw(t,e,n){if(at(t)&&!n){let r=Se(t.index,e);return new kt(r,r)}else if(t.type&175){let r=e[ue];return new kt(r,e)}return null}var gw=(()=>{class t{zone=S(ne);changeDetectionScheduler=S(Ae);applicationRef=S(zr);applicationErrorHandler=S(xt);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick()}catch(n){this.applicationErrorHandler(n)}})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Zn({token:t,factory:t.\u0275fac})}return t})(),yw=new P("",{factory:()=>!1});function vw({ngZoneFactory:t,scheduleInRootZone:e}){return t??=()=>new ne(ee(G({},Qm()),{scheduleInRootZone:e})),[{provide:Hn,useValue:!1},{provide:ne,useFactory:t},{provide:Xt,multi:!0,useFactory:()=>{let n=S(gw,{optional:!0});return()=>n.initialize()}},{provide:Xt,multi:!0,useFactory:()=>{let n=S(Ew);return()=>{n.initialize()}}},{provide:Ei,useValue:e??ec}]}function Jj(t){let e=t?.scheduleInRootZone,n=vw({ngZoneFactory:()=>{let r=Qm(t);return r.scheduleInRootZone=e,r.shouldCoalesceEventChangeDetection&&ut("NgZone_CoalesceEvent"),new ne(r)},scheduleInRootZone:e});return ba([{provide:yw,useValue:!0},n])}function Qm(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var Ew=(()=>{class t{subscription=new $;initialized=!1;zone=S(ne);pendingTasks=S(Nt);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(()=>{ne.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ne.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Zn({token:t,factory:t.\u0275fac})}return t})();var ql=new P(""),Iw=new P("");function Wr(t){return!t.moduleRef}function Dw(t){let e=Wr(t)?t.r3Injector:t.moduleRef.injector,n=e.get(ne);return n.run(()=>{Wr(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let r=e.get(xt),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r})}),Wr(t)){let i=()=>e.destroy(),s=t.platformInjector.get(ql);s.add(i),e.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>t.moduleRef.destroy(),s=t.platformInjector.get(ql);s.add(i),t.moduleRef.onDestroy(()=>{Nr(t.allPlatformModules,t.moduleRef),o.unsubscribe(),s.delete(i)})}return Tw(r,n,()=>{let i=e.get(Nt),s=i.add(),a=e.get(Nl);return a.runInitializers(),a.donePromise.then(()=>{let c=e.get(jl,Gr);if(hm(c||Gr),!e.get(Iw,!0))return Wr(t)?e.get(zr):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(Wr(t)){let u=e.get(zr);return t.rootComponent!==void 0&&u.bootstrap(t.rootComponent),u}else return _w?.(t.moduleRef,t.allPlatformModules),t.moduleRef}).finally(()=>{i.remove(s)})})})}var _w;function Tw(t,e,n){try{let r=n();return Ml(r)?r.catch(o=>{throw e.runOutsideAngular(()=>t(o)),o}):r}catch(r){throw e.runOutsideAngular(()=>t(r)),r}}var as=null;function ww(t=[],e){return We.create({name:e,providers:[{provide:Ma,useValue:"platform"},{provide:ql,useValue:new Set([()=>as=null])},...t]})}function bw(t=[]){if(as)return as;let e=ww(t);return as=e,sm(),Sw(e),e}function Sw(t){let e=t.get(wf,null);si(t,()=>{e?.forEach(n=>n())})}function Xj(t){let{rootComponent:e,appProviders:n,platformProviders:r,platformRef:o}=t;F(O.BootstrapApplicationStart);try{let i=o?.injector??bw(r),s=[Vm(),Df,...n||[]],a=new Lr({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return Dw({r3Injector:a.injector,platformInjector:i,rootComponent:e})}catch(i){return Promise.reject(i)}finally{F(O.BootstrapApplicationEnd)}}function eV(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function tV(t,e=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):e}var Vl=Symbol("NOT_SET"),Km=new Set,Cw=ee(G({},sr),{kind:"afterRenderEffectPhase",consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,value:Vl,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(this.sequence.lastPhase===null||this.sequence.lastPhase<this.phase)return;this.sequence.erroredOrDestroyed=!0}this.sequence.scheduler.notify(7)},phaseFn(t){if(this.sequence.lastPhase=this.phase,!this.dirty)return this.signal;if(this.dirty=!1,this.value!==Vl&&!vn(this))return this.signal;try{for(let o of this.cleanup??Km)o()}finally{this.cleanup?.clear()}let e=[];t!==void 0&&e.push(t),e.push(this.registerCleanupFn);let n=ht(this),r;try{r=this.userFn.apply(null,e)}finally{Ht(this,n)}return(this.value===Vl||!this.equal(this.value,r))&&(this.value=r,this.version++),this.signal}}),zl=class extends Ar{scheduler;lastPhase=null;nodes=[void 0,void 0,void 0,void 0];onDestroyFns=null;constructor(e,n,r,o,i,s=null){super(e,[void 0,void 0,void 0,void 0],r,!1,i.get(an),s),this.scheduler=o;for(let a of il){let c=n[a];if(c===void 0)continue;let l=Object.create(Cw);l.sequence=this,l.phase=a,l.userFn=c,l.dirty=!0,l.signal=()=>(Vt(l),l.value),l.signal[Z]=l,l.registerCleanupFn=u=>(l.cleanup??=new Set).add(u),this.nodes[a]=l,this.hooks[a]=u=>l.phaseFn(u)}}afterRun(){super.afterRun(),this.lastPhase=null}destroy(){if(this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();super.destroy();for(let e of this.nodes)if(e)try{for(let n of e.cleanup??Km)n()}finally{mt(e)}}};function nV(t,e){let n=e?.injector??S(We),r=n.get(Ae),o=n.get(Xi),i=n.get(pn,null,{optional:!0});o.impl??=n.get(sl);let s=t;typeof s=="function"&&(s={mixedReadWrite:t});let a=n.get(Vn,null,{optional:!0}),c=new zl(o.impl,[s.earlyRead,s.write,s.mixedReadWrite,s.read],a?.view,r,n,i?.snapshot(null));return o.impl.register(c),c}function rV(t,e){let n=Dt(t),r=e.elementInjector||kn();return new Wn(n).create(r,e.projectableNodes,e.hostElement,e.environmentInjector,e.directives,e.bindings)}var A=(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})(A||{}),je="*";function Zm(t,e=null){return{type:A.Sequence,steps:t,options:e}}function Gl(t){return{type:A.Style,styles:t,offset:null}}var dt=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}},Xn=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}},Qr="!";function Ym(t){return new g(3e3,!1)}function Nw(){return new g(3100,!1)}function xw(){return new g(3101,!1)}function Aw(t){return new g(3001,!1)}function kw(t){return new g(3003,!1)}function Rw(t){return new g(3004,!1)}function Xm(t,e){return new g(3005,!1)}function eg(){return new g(3006,!1)}function tg(){return new g(3007,!1)}function ng(t,e){return new g(3008,!1)}function rg(t){return new g(3002,!1)}function og(t,e,n,r,o){return new g(3010,!1)}function ig(){return new g(3011,!1)}function sg(){return new g(3012,!1)}function ag(){return new g(3200,!1)}function cg(){return new g(3202,!1)}function lg(){return new g(3013,!1)}function ug(t){return new g(3014,!1)}function dg(t){return new g(3015,!1)}function fg(t){return new g(3016,!1)}function pg(t){return new g(3500,!1)}function hg(t){return new g(3501,!1)}function mg(t,e){return new g(3404,!1)}function Ow(t){return new g(3502,!1)}function gg(t){return new g(3503,!1)}function yg(){return new g(3300,!1)}function vg(t){return new g(3504,!1)}function Eg(t){return new g(3301,!1)}function Ig(t,e){return new g(3302,!1)}function Dg(t){return new g(3303,!1)}function _g(t,e){return new g(3400,!1)}function Tg(t){return new g(3401,!1)}function wg(t){return new g(3402,!1)}function bg(t,e){return new g(3505,!1)}var Pw=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 ft(t){switch(t.length){case 0:return new dt;case 1:return t[0];default:return new Xn(t)}}function Zl(t,e,n=new Map,r=new Map){let o=[],i=[],s=-1,a=null;if(e.forEach(c=>{let l=c.get("offset"),u=l==s,d=u&&a||new Map;c.forEach((p,f)=>{let h=f,m=p;if(f!=="offset")switch(h=t.normalizePropertyName(h,o),m){case Qr:m=n.get(f);break;case je:m=r.get(f);break;default:m=t.normalizeStyleValue(f,h,m,o);break}d.set(h,m)}),u||i.push(d),a=d,s=l}),o.length)throw Ow(o);return i}function ls(t,e,n,r){switch(e){case"start":t.onStart(()=>r(n&&Wl(n,"start",t)));break;case"done":t.onDone(()=>r(n&&Wl(n,"done",t)));break;case"destroy":t.onDestroy(()=>r(n&&Wl(n,"destroy",t)));break}}function Wl(t,e,n){let r=n.totalTime,o=!!n.disabled,i=us(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 us(t,e,n,r,o="",i=0,s){return{element:t,triggerName:e,fromState:n,toState:r,phaseName:o,totalTime:i,disabled:!!s}}function he(t,e,n){let r=t.get(e);return r||t.set(e,r=n),r}function Yl(t){let e=t.indexOf(":"),n=t.substring(1,e),r=t.slice(e+1);return[n,r]}var Lw=typeof document>"u"?null:document.documentElement;function ds(t){let e=t.parentNode||t.host||null;return e===Lw?null:e}function Fw(t){return t.substring(1,6)=="ebkit"}var hn=null,Jm=!1;function Sg(t){hn||(hn=Vw()||{},Jm=hn.style?"WebkitAppearance"in hn.style:!1);let e=!0;return hn.style&&!Fw(t)&&(e=t in hn.style,!e&&Jm&&(e="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in hn.style)),e}function jw(t){return Pw.has(t)}function Vw(){return typeof document<"u"?document.body:null}function Jl(t,e){for(;e;){if(e===t)return!0;e=ds(e)}return!1}function Xl(t,e,n){if(n)return Array.from(t.querySelectorAll(e));let r=t.querySelector(e);return r?[r]:[]}var Hw=1e3,eu="{{",Bw="}}",fs="ng-enter",Kr="ng-leave",Zr="ng-trigger",Yr=".ng-trigger",tu="ng-animating",ps=".ng-animating";function et(t){if(typeof t=="number")return t;let e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Ql(parseFloat(e[1]),e[2])}function Ql(t,e){return e==="s"?t*Hw:t}function Jr(t,e,n){return t.hasOwnProperty("duration")?t:Uw(t,e,n)}var $w=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function Uw(t,e,n){let r,o=0,i="";if(typeof t=="string"){let s=t.match($w);if(s===null)return e.push(Ym(t)),{duration:0,delay:0,easing:""};r=Ql(parseFloat(s[1]),s[2]);let a=s[3];a!=null&&(o=Ql(parseFloat(a),s[4]));let c=s[5];c&&(i=c)}else r=t;if(!n){let s=!1,a=e.length;r<0&&(e.push(Nw()),s=!0),o<0&&(e.push(xw()),s=!0),s&&e.splice(a,0,Ym(t))}return{duration:r,delay:o,easing:i}}function Cg(t){return t.length?t[0]instanceof Map?t:t.map(e=>new Map(Object.entries(e))):[]}function nu(t){return Array.isArray(t)?new Map(...t):new Map(t)}function Ve(t,e,n){e.forEach((r,o)=>{let i=hs(o);n&&!n.has(o)&&n.set(o,t.style[i]),t.style[i]=r})}function Rt(t,e){e.forEach((n,r)=>{let o=hs(r);t.style[o]=""})}function er(t){return Array.isArray(t)?t.length==1?t[0]:Zm(t):t}function Mg(t,e,n){let r=e.params||{},o=ru(t);o.length&&o.forEach(i=>{r.hasOwnProperty(i)||n.push(Aw(i))})}var Kl=new RegExp(`${eu}\\s*(.+?)\\s*${Bw}`,"g");function ru(t){let e=[];if(typeof t=="string"){let n;for(;n=Kl.exec(t);)e.push(n[1]);Kl.lastIndex=0}return e}function tr(t,e,n){let r=`${t}`,o=r.replace(Kl,(i,s)=>{let a=e[s];return a==null&&(n.push(kw(s)),a=""),a.toString()});return o==r?t:o}var qw=/-+([a-z0-9])/g;function hs(t){return t.replace(qw,(...e)=>e[1].toUpperCase())}function zw(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Ng(t,e){return t===0||e===0}function xg(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,ms(t,a)))}}return e}function me(t,e,n){switch(e.type){case A.Trigger:return t.visitTrigger(e,n);case A.State:return t.visitState(e,n);case A.Transition:return t.visitTransition(e,n);case A.Sequence:return t.visitSequence(e,n);case A.Group:return t.visitGroup(e,n);case A.Animate:return t.visitAnimate(e,n);case A.Keyframes:return t.visitKeyframes(e,n);case A.Style:return t.visitStyle(e,n);case A.Reference:return t.visitReference(e,n);case A.AnimateChild:return t.visitAnimateChild(e,n);case A.AnimateRef:return t.visitAnimateRef(e,n);case A.Query:return t.visitQuery(e,n);case A.Stagger:return t.visitStagger(e,n);default:throw Rw(e.type)}}function ms(t,e){return window.getComputedStyle(t)[e]}var qg=(()=>{class t{validateStyleProperty(n){return Sg(n)}containsElement(n,r){return Jl(n,r)}getParentElement(n){return ds(n)}query(n,r,o){return Xl(n,r,o)}computeStyle(n,r,o){return o||""}animate(n,r,o,i,s,a=[],c){return new dt(o,i)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=pe({token:t,factory:t.\u0275fac})}return t})(),Ag=class{static NOOP=new qg},lu=class{},uu=class{normalizePropertyName(e,n){return e}normalizeStyleValue(e,n,r,o){return r}},Gw=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"]),du=class extends lu{normalizePropertyName(e,n){return hs(e)}normalizeStyleValue(e,n,r,o){let i="",s=r.toString().trim();if(Gw.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(Xm(e,r))}return s+i}};var Is="*";function Ww(t,e){let n=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(r=>Qw(r,n,e)):n.push(t),n}function Qw(t,e,n){if(t[0]==":"){let c=Kw(t,n);if(typeof c=="function"){e.push(c);return}t=c}let r=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(r==null||r.length<4)return n.push(dg(t)),e;let o=r[1],i=r[2],s=r[3];e.push(kg(o,s));let a=o==Is&&s==Is;i[0]=="<"&&!a&&e.push(kg(s,o))}function Kw(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(fg(t)),"* => *"}}var gs=new Set(["true","1"]),ys=new Set(["false","0"]);function kg(t,e){let n=gs.has(t)||ys.has(t),r=gs.has(e)||ys.has(e);return(o,i)=>{let s=t==Is||t==o,a=e==Is||e==i;return!s&&n&&typeof o=="boolean"&&(s=o?gs.has(t):ys.has(t)),!a&&r&&typeof i=="boolean"&&(a=i?gs.has(e):ys.has(e)),s&&a}}var zg=":self",Zw=new RegExp(`s*${zg}s*,?`,"g");function wu(t,e,n,r){return new fu(t).build(e,n,r)}var Rg="",fu=class{_driver;constructor(e){this._driver=e}build(e,n,r){let o=new pu(n);return this._resetContextStyleTimingState(o),me(this,er(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(eg()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(n),a.type==A.State){let c=a,l=c.name;l.toString().split(/\s*,\s*/).forEach(u=>{c.name=u,i.push(this.visitState(c,n))}),c.name=l}else if(a.type==A.Transition){let c=this.visitTransition(a,n);r+=c.queryCount,o+=c.depCount,s.push(c)}else n.errors.push(tg())}),{type:A.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(c=>{ru(c).forEach(l=>{s.hasOwnProperty(l)||i.add(l)})})}),i.size&&n.errors.push(ng(e.name,[...i.values()]))}return{type:A.State,name:e.name,style:r,options:o?{params:o}:null}}visitTransition(e,n){n.queryCount=0,n.depCount=0;let r=me(this,er(e.animation),n),o=Ww(e.expr,n.errors);return{type:A.Transition,matchers:o,animation:r,queryCount:n.queryCount,depCount:n.depCount,options:mn(e.options)}}visitSequence(e,n){return{type:A.Sequence,steps:e.steps.map(r=>me(this,r,n)),options:mn(e.options)}}visitGroup(e,n){let r=n.currentTime,o=0,i=e.steps.map(s=>{n.currentTime=r;let a=me(this,s,n);return o=Math.max(o,n.currentTime),a});return n.currentTime=o,{type:A.Group,steps:i,options:mn(e.options)}}visitAnimate(e,n){let r=eb(e.timings,n.errors);n.currentAnimateTimings=r;let o,i=e.styles?e.styles:Gl({});if(i.type==A.Keyframes)o=this.visitKeyframes(i,n);else{let s=e.styles,a=!1;if(!s){a=!0;let l={};r.easing&&(l.easing=r.easing),s=Gl(l)}n.currentTime+=r.duration+r.delay;let c=this.visitStyle(s,n);c.isEmptyStep=a,o=c}return n.currentAnimateTimings=null,{type:A.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===je?r.push(a):n.errors.push(rg(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 c of a.values())if(c.toString().indexOf(eu)>=0){i=!0;break}}}),{type:A.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,c)=>{let l=n.collectedStyles.get(n.currentQuerySelector),u=l.get(c),d=!0;u&&(i!=o&&i>=u.startTime&&o<=u.endTime&&(n.errors.push(og(c,u.startTime,u.endTime,i,o)),d=!1),i=u.startTime),d&&l.set(c,{startTime:i,endTime:o}),n.options&&Mg(a,n.options,n.errors)})})}visitKeyframes(e,n){let r={type:A.Keyframes,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push(ig()),r;let o=1,i=0,s=[],a=!1,c=!1,l=0,u=e.steps.map(_=>{let L=this._makeStyleAst(_,n),K=L.offset!=null?L.offset:Xw(L.styles),te=0;return K!=null&&(i++,te=L.offset=K),c=c||te<0||te>1,a=a||te<l,l=te,s.push(te),L});c&&n.errors.push(sg()),a&&n.errors.push(ag());let d=e.steps.length,p=0;i>0&&i<d?n.errors.push(cg()):i==0&&(p=o/(d-1));let f=d-1,h=n.currentTime,m=n.currentAnimateTimings,v=m.duration;return u.forEach((_,L)=>{let K=p>0?L==f?1:p*L:s[L],te=K*v;n.currentTime=h+m.delay+te,m.duration=te,this._validateStyleAst(_,n),_.offset=K,r.styles.push(_)}),r}visitReference(e,n){return{type:A.Reference,animation:me(this,er(e.animation),n),options:mn(e.options)}}visitAnimateChild(e,n){return n.depCount++,{type:A.AnimateChild,options:mn(e.options)}}visitAnimateRef(e,n){return{type:A.AnimateRef,animation:this.visitReference(e.animation,n),options:mn(e.options)}}visitQuery(e,n){let r=n.currentQuerySelector,o=e.options||{};n.queryCount++,n.currentQuery=e;let[i,s]=Yw(e.selector);n.currentQuerySelector=r.length?r+" "+i:i,he(n.collectedStyles,n.currentQuerySelector,new Map);let a=me(this,er(e.animation),n);return n.currentQuery=null,n.currentQuerySelector=r,{type:A.Query,selector:i,limit:o.limit||0,optional:!!o.optional,includeSelf:s,animation:a,originalSelector:e.selector,options:mn(e.options)}}visitStagger(e,n){n.currentQuery||n.errors.push(lg());let r=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Jr(e.timings,n.errors,!0);return{type:A.Stagger,animation:me(this,er(e.animation),n),timings:r,options:null}}};function Yw(t){let e=!!t.split(/\s*,\s*/).find(n=>n==zg);return e&&(t=t.replace(Zw,"")),t=t.replace(/@\*/g,Yr).replace(/@\w+/g,n=>Yr+"-"+n.slice(1)).replace(/:animating/g,ps),[t,e]}function Jw(t){return t?G({},t):null}var pu=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 Xw(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 eb(t,e){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let i=Jr(t,e).duration;return ou(i,0,"")}let n=t;if(n.split(/\s+/).some(i=>i.charAt(0)=="{"&&i.charAt(1)=="{")){let i=ou(0,0,"");return i.dynamic=!0,i.strValue=n,i}let o=Jr(n,e);return ou(o.duration,o.delay,o.easing)}function mn(t){return t?(t=G({},t),t.params&&(t.params=Jw(t.params))):t={},t}function ou(t,e,n){return{duration:t,delay:e,easing:n}}function bu(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 rr=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()}},tb=1,nb=":enter",rb=new RegExp(nb,"g"),ob=":leave",ib=new RegExp(ob,"g");function Su(t,e,n,r,o,i=new Map,s=new Map,a,c,l=[]){return new hu().buildKeyframes(t,e,n,r,o,i,s,a,c,l)}var hu=class{buildKeyframes(e,n,r,o,i,s,a,c,l,u=[]){l=l||new rr;let d=new mu(e,n,l,o,i,u,[]);d.options=c;let p=c.delay?et(c.delay):0;d.currentTimeline.delayNextStep(p),d.currentTimeline.setStyles([s],null,d.errors,c),me(this,r,d);let f=d.timelines.filter(h=>h.containsAnimation());if(f.length&&a.size){let h;for(let m=f.length-1;m>=0;m--){let v=f[m];if(v.element===n){h=v;break}}h&&!h.allowOnlyTimelineStyles()&&h.setStyles([a],null,d.errors,c)}return f.length?f.map(h=>h.buildKeyframes()):[bu(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:et(tr(i,o?.params??{},n.errors));r.delayNextStep(s)}}}_visitSubInstructions(e,n,r){let i=n.currentTimeline.currentTime,s=r.duration!=null?et(r.duration):null,a=r.delay!=null?et(r.delay):null;return s!==0&&e.forEach(c=>{let l=n.appendInstructionToTimeline(c,s,a);i=Math.max(i,l.duration+l.delay)}),i}visitReference(e,n){n.updateOptions(e.options,!0),me(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==A.Style&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Ds);let s=et(i.delay);o.delayNextStep(s)}e.steps.length&&(e.steps.forEach(s=>me(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?et(e.options.delay):0;e.steps.forEach(s=>{let a=n.createSubContext(e.options);i&&a.delayNextStep(i),me(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?tr(r,n.params,n.errors):r;return Jr(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==A.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(c=>{let l=c.offset||0;a.forwardTime(l*i),a.setStyles(c.styles,c.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?et(o.delay):0;i&&(n.previousNode.type===A.Style||r==0&&n.currentTimeline.hasCurrentStyleProperties())&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=Ds);let s=r,a=n.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!o.optional,n.errors);n.currentQueryTotal=a.length;let c=null;a.forEach((l,u)=>{n.currentQueryIndex=u;let d=n.createSubContext(e.options,l);i&&d.delayNextStep(i),l===n.element&&(c=d.currentTimeline),me(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),c&&(n.currentTimeline.mergeTimelineCollectedStyles(c),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),c=s*n.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":c=a-c;break;case"full":c=r.currentStaggerTime;break}let u=n.currentTimeline;c&&u.delayNextStep(c);let d=u.currentTime;me(this,e.animation,n),n.previousNode=e,r.currentStaggerTime=o.currentTime-d+(o.startTime-r.currentTimeline.startTime)}},Ds={},mu=class t{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=Ds;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(e,n,r,o,i,s,a,c){this._driver=e,this.element=n,this.subInstructions=r,this._enterClassName=o,this._leaveClassName=i,this.errors=s,this.timelines=a,this.currentTimeline=c||new _s(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=et(r.duration)),r.delay!=null&&(o.delay=et(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]=tr(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=Ds,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 gu(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(rb,"."+this._enterClassName),e=e.replace(ib,"."+this._leaveClassName);let c=r!=1,l=this._driver.query(this.element,e,c);r!==0&&(l=r<0?l.slice(l.length+r,l.length):l.slice(0,r)),a.push(...l)}return!i&&a.length==0&&s.push(ug(n)),a}},_s=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+=tb,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||je),this._currentKeyframe.set(n,je);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,n,r,o){n&&this._previousKeyframe.set("easing",n);let i=o&&o.params||{},s=sb(e,this._globalTimelineStyles);for(let[a,c]of s){let l=tr(c,i,r);this._pendingStyles.set(a,l),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??je),this._updateStyle(a,l)}}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,c)=>{let l=new Map([...this._backFill,...a]);l.forEach((u,d)=>{u===Qr?e.add(d):u===je&&n.add(d)}),r||l.set("offset",c/this.duration),o.push(l)});let i=[...e.values()],s=[...n.values()];if(r){let a=o[0],c=new Map(a);a.set("offset",0),c.set("offset",1),o=[a,c]}return bu(this.element,o,i,s,this.duration,this.startTime,this.easing,!1)}},gu=class extends _s{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,c=new Map(e[0]);c.set("offset",0),i.push(c);let l=new Map(e[0]);l.set("offset",Og(a)),i.push(l);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 bu(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 sb(t,e){let n=new Map,r;return t.forEach(o=>{if(o==="*"){r??=e.keys();for(let i of r)n.set(i,je)}else for(let[i,s]of o)n.set(i,s)}),n}function Pg(t,e,n,r,o,i,s,a,c,l,u,d,p){return{type:0,element:t,triggerName:e,isRemovalTransition:o,fromState:n,fromStyles:i,toState:r,toStyles:s,timelines:a,queriedElements:c,preStyleProps:l,postStyleProps:u,totalTime:d,errors:p}}var iu={},Ts=class{_triggerName;ast;_stateStyles;constructor(e,n,r){this._triggerName=e,this.ast=n,this._stateStyles=r}match(e,n,r,o){return ab(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,c,l,u){let d=[],p=this.ast.options&&this.ast.options.params||iu,f=a&&a.params||iu,h=this.buildStyles(r,f,d),m=c&&c.params||iu,v=this.buildStyles(o,m,d),_=new Set,L=new Map,K=new Map,te=o==="void",gn={params:Gg(m,p),delay:this.ast.options?.delay},Be=u?[]:Su(e,n,this.ast.animation,i,s,h,v,gn,l,d),ae=0;return Be.forEach(de=>{ae=Math.max(de.duration+de.delay,ae)}),d.length?Pg(n,this._triggerName,r,o,te,h,v,[],[],L,K,ae,d):(Be.forEach(de=>{let Ot=de.element,yn=he(L,Ot,new Set);de.preStyleProps.forEach(Pt=>yn.add(Pt));let Cu=he(K,Ot,new Set);de.postStyleProps.forEach(Pt=>Cu.add(Pt)),Ot!==n&&_.add(Ot)}),Pg(n,this._triggerName,r,o,te,h,v,Be,[..._.values()],L,K,ae))}};function ab(t,e,n,r,o){return t.some(i=>i(e,n,r,o))}function Gg(t,e){let n=G({},e);return Object.entries(t).forEach(([r,o])=>{o!=null&&(n[r]=o)}),n}var yu=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=Gg(e,this.defaultParams);return this.styles.styles.forEach(i=>{typeof i!="string"&&i.forEach((s,a)=>{s&&(s=tr(s,o,n));let c=this.normalizer.normalizePropertyName(a,n);s=this.normalizer.normalizeStyleValue(a,c,s,n),r.set(a,s)})}),r}};function cb(t,e,n){return new vu(t,e,n)}var vu=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 yu(o.style,i,r))}),Lg(this.states,"true","1"),Lg(this.states,"false","0"),n.transitions.forEach(o=>{this.transitionFactories.push(new Ts(e,o,this.states))}),this.fallbackTransition=lb(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 lb(t,e,n){let r=[(s,a)=>!0],o={type:A.Sequence,steps:[],options:null},i={type:A.Transition,animation:o,matchers:r,options:null,queryCount:0,depCount:0};return new Ts(t,i,e)}function Lg(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 ub=new rr,Eu=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=wu(this._driver,n,r,o);if(r.length)throw gg(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=Su(this._driver,n,i,fs,Kr,new Map,new Map,r,ub,o),s.forEach(u=>{let d=he(a,u.element,new Map);u.postStyleProps.forEach(p=>d.set(p,null))})):(o.push(yg()),s=[]),o.length)throw vg(o);a.forEach((u,d)=>{u.forEach((p,f)=>{u.set(f,this._driver.computeStyle(d,f,je))})});let c=s.map(u=>{let d=a.get(u.element);return this._buildPlayer(u,new Map,d)}),l=ft(c);return this._playersById.set(e,l),l.onDestroy(()=>this.destroy(e)),this.players.push(l),l}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 Eg(e);return n}listen(e,n,r,o){let i=us(n,"","","");return ls(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}}},Fg="ng-animate-queued",db=".ng-animate-queued",su="ng-animate-disabled",fb=".ng-animate-disabled",pb="ng-star-inserted",hb=".ng-star-inserted",mb=[],Wg={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},gb={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},He="__ng_removed",eo=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=vb(o),r){let i=e,{value:s}=i,a=Ns(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])})}}},Xr="void",au=new eo(Xr),Iu=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,Ce(n,this._hostClassName)}listen(e,n,r,o){if(!this._triggers.has(n))throw Ig(r,n);if(r==null||r.length==0)throw Dg(n);if(!Eb(r))throw _g(r,n);let i=he(this._elementListeners,e,[]),s={name:n,phase:r,callback:o};i.push(s);let a=he(this._engine.statesByElement,e,new Map);return a.has(n)||(Ce(e,Zr),Ce(e,Zr+"-"+n),a.set(n,au)),()=>{this._engine.afterFlush(()=>{let c=i.indexOf(s);c>=0&&i.splice(c,1),this._triggers.has(n)||a.delete(n)})}}register(e,n){return this._triggers.has(e)?!1:(this._triggers.set(e,n),!0)}_getTrigger(e){let n=this._triggers.get(e);if(!n)throw Tg(e);return n}trigger(e,n,r,o=!0){let i=this._getTrigger(n),s=new to(this.id,n,e),a=this._engine.statesByElement.get(e);a||(Ce(e,Zr),Ce(e,Zr+"-"+n),this._engine.statesByElement.set(e,a=new Map));let c=a.get(n),l=new eo(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&c&&l.absorbOptions(c.options),a.set(n,l),c||(c=au),!(l.value===Xr)&&c.value===l.value){if(!_b(c.params,l.params)){let m=[],v=i.matchStyles(c.value,c.params,m),_=i.matchStyles(l.value,l.params,m);m.length?this._engine.reportError(m):this._engine.afterFlush(()=>{Rt(e,v),Ve(e,_)})}return}let p=he(this._engine.playersByElement,e,[]);p.forEach(m=>{m.namespaceId==this.id&&m.triggerName==n&&m.queued&&m.destroy()});let f=i.matchTransition(c.value,l.value,e,l.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:c,toState:l,player:s,isFallbackTransition:h}),h||(Ce(e,Fg),s.onStart(()=>{nr(e,Fg)})),s.onDone(()=>{let m=this.players.indexOf(s);m>=0&&this.players.splice(m,1);let v=this._engine.playersByElement.get(e);if(v){let _=v.indexOf(s);_>=0&&v.splice(_,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,Yr,!0);r.forEach(o=>{if(o[He])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((c,l)=>{if(s.set(l,c.value),this._triggers.has(l)){let u=this.trigger(e,l,Xr,o);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,n,s),r&&ft(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 c=this._triggers.get(s).fallbackTransition,l=r.get(s)||au,u=new eo(Xr),d=new to(this.id,s,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:s,transition:c,fromState:l,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[He];(!i||i===Wg)&&(r.afterFlush(()=>this.clearElementCache(e)),r.destroyInnerAnimations(e),r._onRemovalComplete(e,n))}}insertNode(e,n){Ce(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 c=us(i,r.triggerName,r.fromState.value,r.toState.value);c._data=e,ls(r.player,a.phase,c,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)}},Du=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 Iu(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 c=o.get(a);if(c){let l=r.indexOf(c);r.splice(l+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(vs(n)){let i=this._fetchNamespace(e);if(i)return i.trigger(n,r,o),!0}return!1}insertNode(e,n,r,o){if(!vs(n))return;let i=n[He];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),Ce(e,su)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),nr(e,su))}removeNode(e,n,r){if(vs(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[He]={namespaceId:e,setForRemoval:o,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:i}}listen(e,n,r,o,i){return vs(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,Yr,!0);n.forEach(r=>this.destroyActiveAnimationsForElement(r)),this.playersByQueriedElement.size!=0&&(n=this.driver.query(e,ps,!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 ft(this.players).onDone(()=>e());e()})}processLeaveNode(e){let n=e[He];if(n&&n.setForRemoval){if(e[He]=Wg,n.namespaceId){this.destroyInnerAnimations(e);let r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}e.classList?.contains(su)&&this.markElementAsDisabled(e,!1),this.driver.query(e,fb,!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];Ce(o,pb)}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?ft(n).onDone(()=>{r.forEach(o=>o())}):r.forEach(o=>o())}}reportError(e){throw wg(e)}_flushAnimations(e,n){let r=new rr,o=[],i=new Map,s=[],a=new Map,c=new Map,l=new Map,u=new Set;this.disabledNodes.forEach(y=>{u.add(y);let I=this.driver.query(y,db,!0);for(let w=0;w<I.length;w++)u.add(I[w])});let d=this.bodyNode,p=Array.from(this.statesByElement.keys()),f=Hg(p,this.collectedEnterElements),h=new Map,m=0;f.forEach((y,I)=>{let w=fs+m++;h.set(I,w),y.forEach(R=>Ce(R,w))});let v=[],_=new Set,L=new Set;for(let y=0;y<this.collectedLeaveElements.length;y++){let I=this.collectedLeaveElements[y],w=I[He];w&&w.setForRemoval&&(v.push(I),_.add(I),w.hasAnimation?this.driver.query(I,hb,!0).forEach(R=>_.add(R)):L.add(I))}let K=new Map,te=Hg(p,Array.from(_));te.forEach((y,I)=>{let w=Kr+m++;K.set(I,w),y.forEach(R=>Ce(R,w))}),e.push(()=>{f.forEach((y,I)=>{let w=h.get(I);y.forEach(R=>nr(R,w))}),te.forEach((y,I)=>{let w=K.get(I);y.forEach(R=>nr(R,w))}),v.forEach(y=>{this.processLeaveNode(y)})});let gn=[],Be=[];for(let y=this._namespaceList.length-1;y>=0;y--)this._namespaceList[y].drainQueuedTransitions(n).forEach(w=>{let R=w.player,X=w.element;if(gn.push(R),this.collectedEnterElements.length){let re=X[He];if(re&&re.setForMove){if(re.previousTriggersValues&&re.previousTriggersValues.has(w.triggerName)){let Lt=re.previousTriggersValues.get(w.triggerName),Ie=this.statesByElement.get(w.element);if(Ie&&Ie.has(w.triggerName)){let no=Ie.get(w.triggerName);no.value=Lt,Ie.set(w.triggerName,no)}}R.destroy();return}}let $e=!d||!this.driver.containsElement(d,X),ge=K.get(X),pt=h.get(X),q=this._buildInstruction(w,r,pt,ge,$e);if(q.errors&&q.errors.length){Be.push(q);return}if($e){R.onStart(()=>Rt(X,q.fromStyles)),R.onDestroy(()=>Ve(X,q.toStyles)),o.push(R);return}if(w.isFallbackTransition){R.onStart(()=>Rt(X,q.fromStyles)),R.onDestroy(()=>Ve(X,q.toStyles)),o.push(R);return}let xu=[];q.timelines.forEach(re=>{re.stretchStartingKeyframe=!0,this.disabledNodes.has(re.element)||xu.push(re)}),q.timelines=xu,r.append(X,q.timelines);let Zg={instruction:q,player:R,element:X};s.push(Zg),q.queriedElements.forEach(re=>he(a,re,[]).push(R)),q.preStyleProps.forEach((re,Lt)=>{if(re.size){let Ie=c.get(Lt);Ie||c.set(Lt,Ie=new Set),re.forEach((no,Ms)=>Ie.add(Ms))}}),q.postStyleProps.forEach((re,Lt)=>{let Ie=l.get(Lt);Ie||l.set(Lt,Ie=new Set),re.forEach((no,Ms)=>Ie.add(Ms))})});if(Be.length){let y=[];Be.forEach(I=>{y.push(bg(I.triggerName,I.errors))}),gn.forEach(I=>I.destroy()),this.reportError(y)}let ae=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,ae))}),o.forEach(y=>{let I=y.element;this._getPreviousPlayers(I,!1,y.namespaceId,y.triggerName,null).forEach(R=>{he(ae,I,[]).push(R),R.destroy()})});let Ot=v.filter(y=>Bg(y,c,l)),yn=new Map;Vg(yn,this.driver,L,l,je).forEach(y=>{Bg(y,c,l)&&Ot.push(y)});let Pt=new Map;f.forEach((y,I)=>{Vg(Pt,this.driver,new Set(y),c,Qr)}),Ot.forEach(y=>{let I=yn.get(y),w=Pt.get(y);yn.set(y,new Map([...I?.entries()??[],...w?.entries()??[]]))});let Cs=[],Mu=[],Nu={};s.forEach(y=>{let{element:I,player:w,instruction:R}=y;if(r.has(I)){if(u.has(I)){w.onDestroy(()=>Ve(I,R.toStyles)),w.disabled=!0,w.overrideTotalTime(R.totalTime),o.push(w);return}let X=Nu;if(de.size>1){let ge=I,pt=[];for(;ge=ge.parentNode;){let q=de.get(ge);if(q){X=q;break}pt.push(ge)}pt.forEach(q=>de.set(q,X))}let $e=this._buildAnimation(w.namespaceId,R,ae,i,Pt,yn);if(w.setRealPlayer($e),X===Nu)Cs.push(w);else{let ge=this.playersByElement.get(X);ge&&ge.length&&(w.parentPlayer=ft(ge)),o.push(w)}}else Rt(I,R.fromStyles),w.onDestroy(()=>Ve(I,R.toStyles)),Mu.push(w),u.has(I)&&o.push(w)}),Mu.forEach(y=>{let I=i.get(y.element);if(I&&I.length){let w=ft(I);y.setRealPlayer(w)}}),o.forEach(y=>{y.parentPlayer?y.syncPlayerEvents(y.parentPlayer):y.destroy()});for(let y=0;y<v.length;y++){let I=v[y],w=I[He];if(nr(I,Kr),w&&w.hasAnimation)continue;let R=[];if(a.size){let $e=a.get(I);$e&&$e.length&&R.push(...$e);let ge=this.driver.query(I,ps,!0);for(let pt=0;pt<ge.length;pt++){let q=a.get(ge[pt]);q&&q.length&&R.push(...q)}}let X=R.filter($e=>!$e.destroyed);X.length?Ib(this,I,X):this.processLeaveNode(I)}return v.length=0,Cs.forEach(y=>{this.players.push(y),y.onDone(()=>{y.destroy();let I=this.players.indexOf(y);this.players.splice(I,1)}),y.play()}),Cs}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 c=!i||i==Xr;a.forEach(l=>{l.queued||!c&&l.triggerName!=o||s.push(l)})}}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 c of n.timelines){let l=c.element,u=l!==i,d=he(r,l,[]);this._getPreviousPlayers(l,u,s,a,n.toState).forEach(f=>{let h=f.getRealPlayer();h.beforeDestroy&&h.beforeDestroy(),f.destroy(),d.push(f)})}Rt(i,n.fromStyles)}_buildAnimation(e,n,r,o,i,s){let a=n.triggerName,c=n.element,l=[],u=new Set,d=new Set,p=n.timelines.map(h=>{let m=h.element;u.add(m);let v=m[He];if(v&&v.removedBeforeQueried)return new dt(h.duration,h.delay);let _=m!==c,L=Db((r.get(m)||mb).map(ae=>ae.getRealPlayer())).filter(ae=>{let de=ae;return de.element?de.element===m:!1}),K=i.get(m),te=s.get(m),gn=Zl(this._normalizer,h.keyframes,K,te),Be=this._buildPlayer(h,gn,L);if(h.subTimeline&&o&&d.add(m),_){let ae=new to(e,a,m);ae.setRealPlayer(Be),l.push(ae)}return Be});l.forEach(h=>{he(this.playersByQueriedElement,h.element,[]).push(h),h.onDone(()=>yb(this.playersByQueriedElement,h.element,h))}),u.forEach(h=>Ce(h,tu));let f=ft(p);return f.onDestroy(()=>{u.forEach(h=>nr(h,tu)),Ve(c,n.toStyles)}),d.forEach(h=>{he(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 dt(e.duration,e.delay)}},to=class{namespaceId;triggerName;element;_player=new dt;_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=>ls(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){he(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 yb(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 vb(t){return t??null}function vs(t){return t&&t.nodeType===1}function Eb(t){return t=="start"||t=="done"}function jg(t,e){let n=t.style.display;return t.style.display=e??"none",n}function Vg(t,e,n,r,o){let i=[];n.forEach(c=>i.push(jg(c)));let s=[];r.forEach((c,l)=>{let u=new Map;c.forEach(d=>{let p=e.computeStyle(l,d,o);u.set(d,p),(!p||p.length==0)&&(l[He]=gb,s.push(l))}),t.set(l,u)});let a=0;return n.forEach(c=>jg(c,i[a++])),s}function Hg(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 c=i.get(a);if(c)return c;let l=a.parentNode;return n.has(l)?c=l:o.has(l)?c=r:c=s(l),i.set(a,c),c}return e.forEach(a=>{let c=s(a);c!==r&&n.get(c).push(a)}),n}function Ce(t,e){t.classList?.add(e)}function nr(t,e){t.classList?.remove(e)}function Ib(t,e,n){ft(n).onDone(()=>t.processLeaveNode(e))}function Db(t){let e=[];return Qg(t,e),e}function Qg(t,e){for(let n=0;n<t.length;n++){let r=t[n];r instanceof Xn?Qg(r.players,e):e.push(r)}}function _b(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 Bg(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 ws=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,n)=>{};constructor(e,n,r){this._driver=n,this._normalizer=r,this._transitionEngine=new Du(e.body,n,r),this._timelineEngine=new Eu(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 c=[],l=[],u=wu(this._driver,i,c,l);if(c.length)throw mg(o,c);a=cb(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]=Yl(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]=Yl(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 Tb(t,e){let n=null,r=null;return Array.isArray(e)&&e.length?(n=cu(e[0]),e.length>1&&(r=cu(e[e.length-1]))):e instanceof Map&&(n=cu(e)),n||r?new wb(t,n,r):null}var wb=(()=>{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&&Ve(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ve(this._element,this._initialStyles),this._endStyles&&(Ve(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Rt(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Rt(this._element,this._endStyles),this._endStyles=null),Ve(this._element,this._initialStyles),this._state=3)}}return t})();function cu(t){let e=null;return t.forEach((n,r)=>{bb(r)&&(e=e||new Map,e.set(r,n))}),e}function bb(t){return t==="display"||t==="position"}var bs=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer=null;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.domPlayer;this._initialized=!0;let e=this.keyframes,n=this._triggerWebAnimation(this.element,e,this.options);if(!n)return this._onFinish(),null;this.domPlayer=n,this._finalKeyframe=e.length?e[e.length-1]:new Map;let r=()=>this._onFinish();return n.addEventListener("finish",r),this.onDestroy(()=>{n.removeEventListener("finish",r)}),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){let o=this._convertKeyframesToObject(n);try{return e.animate(o,r)}catch(i){return null}}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(){let e=this._buildPlayer();e&&(this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),e.play())}pause(){this.init(),this.domPlayer?.pause()}finish(){this.init(),this.domPlayer&&(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?.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||this.init(),this.domPlayer&&(this.domPlayer.currentTime=e*this.time)}getPosition(){return this.domPlayer?+(this.domPlayer.currentTime??0)/this.time:this._initialized?1:0}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:ms(this.element,o))}),this.currentSnapshot=e}triggerCallback(e){let n=e==="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},_u=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,n){return Jl(e,n)}getParentElement(e){return ds(e)}query(e,n,r){return Xl(e,n,r)}computeStyle(e,n,r){return ms(e,n)}animate(e,n,r,o,i,s=[]){let a=o==0?"both":"forwards",c={duration:r,delay:o,fill:a};i&&(c.easing=i);let l=new Map,u=s.filter(f=>f instanceof bs);Ng(r,o)&&u.forEach(f=>{f.currentSnapshot.forEach((h,m)=>l.set(m,h))});let d=Cg(n).map(f=>new Map(f));d=xg(e,d,l);let p=Tb(e,d);return new bs(e,d,c,p)}};function pV(t,e){return t==="noop"?new ws(e,new qg,new uu):new ws(e,new _u,new du)}var $g=class{_driver;_animationAst;constructor(e,n){this._driver=e;let r=[],i=wu(e,n,r,[]);if(r.length)throw pg(r);this._animationAst=i}buildTimelines(e,n,r,o,i){let s=Array.isArray(n)?nu(n):n,a=Array.isArray(r)?nu(r):r,c=[];i=i||new rr;let l=Su(this._driver,e,this._animationAst,fs,Kr,s,a,o,i,c);if(c.length)throw hg(c);return l}},Es="@",Kg="@.disabled",Ss=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,o){if(o){this.delegate.removeChild(e,n,r,o);return}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)==Es&&n==Kg?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)}},Tu=class extends Ss{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)==Es?n.charAt(1)=="."&&n==Kg?(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)==Es){let i=Sb(e),s=n.slice(1),a="";return s.charAt(0)!=Es&&([s,a]=Cb(s)),this.engine.listen(this.namespaceId,i,s,a,c=>{let l=c._data||-1;this.factory.scheduleListenerCallback(l,r,c)})}return this.delegate.listen(e,n,r,o)}};function Sb(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function Cb(t){let e=t.indexOf("."),n=t.substring(0,e),r=t.slice(e+1);return[n,r]}var Ug=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 o=this.delegate.createRenderer(e,n);if(!e||!n?.data?.animation){let l=this._rendererCache,u=l.get(o);if(!u){let d=()=>l.delete(o);u=new Ss("",o,this.engine,d),l.set(o,u)}return u}let i=n.id,s=n.id+"-"+this._currentId;this._currentId++,this.engine.register(s,e);let a=l=>{Array.isArray(l)?l.forEach(a):this.engine.registerTrigger(i,s,e,l.name,l)};return n.data.animation.forEach(a),new Tu(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{G as a,ee as b,xs as c,$ as d,k as e,Ws as f,ye as g,ar as h,lr as i,hy as j,my as k,fr as l,ze as m,Ty as n,wy as o,by as p,Sy as q,tt as r,Oy as s,Mn as t,Ly as u,Fy as v,pr as w,jy as x,Ys as y,Vy as z,Js as A,Hy as B,Ed as C,$o as D,By as E,_d as F,Uy as G,qy as H,ta as I,zy as J,Gy as K,Td as L,wd as M,Wy as N,Qy as O,Ky as P,g as Q,Jo as R,pe as S,xd as T,P as U,Ge as V,S as W,ba as X,Ma as Y,De as Z,si as _,Xd as $,ef as aa,hf as ba,mf as ca,We as da,vi as ea,an as fa,nt as ga,ne as ha,Yt as ia,oc as ja,Tf as ka,wf as la,Cv as ma,Mv as na,Nv as oa,Ae as pa,Av as qa,ic as ra,Cf as sa,Qv as ta,pE as ua,Zn as va,Vr as wa,Oi as xa,IE as ya,un as za,nl as Aa,SE as Ba,CE as Ca,ME as Da,NE as Ea,xE as Fa,AE as Ga,$p as Ha,WE as Ia,Jp as Ja,oI as Ka,Li as La,zn as Ma,pn as Na,ut as Oa,II as Pa,qI as Qa,Or as Ra,Pr as Sa,MD as Ta,OD as Ua,LD as Va,Oh as Wa,qr as Xa,$D as Ya,ss as Za,Ml as _a,zi as $a,w_ as ab,S_ as bb,N_ as cb,x_ as db,k_ as eb,R_ as fb,em as gb,nm as hb,rm as ib,zr as jb,am as kb,Q_ as lb,K_ as mb,Z_ as nb,Y_ as ob,J_ as pb,cm as qb,Qi as rb,Al as sb,lm as tb,kl as ub,Rl as vb,um as wb,Ol as xb,Pl as yb,fm as zb,oT as Ab,pm as Bb,aT as Cb,cT as Db,mm as Eb,gm as Fb,dT as Gb,pT as Hb,hT as Ib,vm as Jb,Em as Kb,gT as Lb,yT as Mb,Im as Nb,Dm as Ob,vT as Pb,ET as Qb,wm as Rb,bm as Sb,xT as Tb,BT as Ub,Am as Vb,Ll as Wb,km as Xb,Rm as Yb,Om as Zb,GT as _b,Pm as $b,ZT as ac,XT as bc,tw as cc,rw as dc,jl as ec,iw as fc,sw as gc,Hm as hc,Gj as ic,Wj as jc,Qj as kc,Kj as lc,pw as mc,Yj as nc,Jj as oc,Xj as pc,eV as qc,tV as rc,nV as sc,rV as tc,ds as uc,Sg as vc,jw as wc,Jl as xc,Xl as yc,fs as zc,Kr as Ac,Cg as Bc,zw as Cc,Ng as Dc,qg as Ec,Ag as Fc,lu as Gc,uu as Hc,du as Ic,to as Jc,ws as Kc,bs as Lc,_u as Mc,pV as Nc,$g as Oc,Ss as Pc,Tu as Qc,Ug as Rc};
|