@letscooee/web-sdk 9.14.4 → 10.0.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.
@@ -1,8 +0,0 @@
1
- var Sp=Object.create;var vr=Object.defineProperty,Tp=Object.defineProperties,el=Object.getOwnPropertyDescriptor,Mp=Object.getOwnPropertyDescriptors,xp=Object.getOwnPropertyNames,mr=Object.getOwnPropertySymbols,Np=Object.getPrototypeOf,Ni=Object.prototype.hasOwnProperty,tl=Object.prototype.propertyIsEnumerable;var xi=(e,t,n)=>t in e?vr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,J=(e,t)=>{for(var n in t||={})Ni.call(t,n)&&xi(e,n,t[n]);if(mr)for(var n of mr(t))tl.call(t,n)&&xi(e,n,t[n]);return e},X=(e,t)=>Tp(e,Mp(t));var ZE=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,n)=>(typeof require<"u"?require:t)[n]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var YE=(e,t)=>{var n={};for(var r in e)Ni.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&mr)for(var r of mr(e))t.indexOf(r)<0&&tl.call(e,r)&&(n[r]=e[r]);return n};var QE=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Rp=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of xp(t))!Ni.call(e,o)&&o!==n&&vr(e,o,{get:()=>t[o],enumerable:!(r=el(t,o))||r.enumerable});return e};var KE=(e,t,n)=>(n=e!=null?Sp(Np(e)):{},Rp(t||!e||!e.__esModule?vr(n,"default",{value:e,enumerable:!0}):n,e));var JE=(e,t,n,r)=>{for(var o=r>1?void 0:r?el(t,n):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(r?s(t,n,o):s(o))||o);return r&&o&&vr(t,n,o),o};var XE=(e,t,n)=>xi(e,typeof t!="symbol"?t+"":t,n);function rl(e,t){return Object.is(e,t)}var q=null,yn=!1,Pi=1,ae=Symbol("SIGNAL");function b(e){let t=q;return q=e,t}function ol(){return q}function Ap(){return yn}var ht={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function _n(e){if(yn)throw new Error("");if(q===null)return;q.consumerOnSignalRead(e);let t=q.nextProducerIndex++;if(_r(q),t<q.producerNode.length&&q.producerNode[t]!==e&&Dn(q)){let n=q.producerNode[t];Dr(n,q.producerIndexOfThis[t])}q.producerNode[t]!==e&&(q.producerNode[t]=e,q.producerIndexOfThis[t]=Dn(q)?ll(e,q,t):0),q.producerLastReadVersion[t]=e.version}function Op(){Pi++}function il(e){if(!(Dn(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===Pi)){if(!e.producerMustRecompute(e)&&!En(e)){nl(e);return}e.producerRecomputeValue(e),nl(e)}}function sl(e){if(e.liveConsumerNode===void 0)return;let t=yn;yn=!0;try{for(let n of e.liveConsumerNode)n.dirty||cl(n)}finally{yn=t}}function al(){return q?.consumerAllowSignalWrites!==!1}function cl(e){e.dirty=!0,sl(e),e.consumerMarkedDirty?.(e)}function nl(e){e.dirty=!1,e.lastCleanEpoch=Pi}function Lt(e){return e&&(e.nextProducerIndex=0),b(e)}function wn(e,t){if(b(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(Dn(e))for(let n=e.nextProducerIndex;n<e.producerNode.length;n++)Dr(e.producerNode[n],e.producerIndexOfThis[n]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function En(e){_r(e);for(let t=0;t<e.producerNode.length;t++){let n=e.producerNode[t],r=e.producerLastReadVersion[t];if(r!==n.version||(il(n),r!==n.version))return!0}return!1}function Vt(e){if(_r(e),Dn(e))for(let t=0;t<e.producerNode.length;t++)Dr(e.producerNode[t],e.producerIndexOfThis[t]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function ll(e,t,n){if(ul(e),e.liveConsumerNode.length===0&&dl(e))for(let r=0;r<e.producerNode.length;r++)e.producerIndexOfThis[r]=ll(e.producerNode[r],e,r);return e.liveConsumerIndexOfThis.push(n),e.liveConsumerNode.push(t)-1}function Dr(e,t){if(ul(e),e.liveConsumerNode.length===1&&dl(e))for(let r=0;r<e.producerNode.length;r++)Dr(e.producerNode[r],e.producerIndexOfThis[r]);let n=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[n],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[n],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){let r=e.liveConsumerIndexOfThis[t],o=e.liveConsumerNode[t];_r(o),o.producerIndexOfThis[r]=t}}function Dn(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function _r(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function ul(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function dl(e){return e.producerNode!==void 0}function fl(e){let t=Object.create(Pp);t.computation=e;let n=()=>{if(il(t),_n(t),t.value===yr)throw t.error;return t.value};return n[ae]=t,n}var Ri=Symbol("UNSET"),Ai=Symbol("COMPUTING"),yr=Symbol("ERRORED"),Pp=X(J({},ht),{value:Ri,dirty:!0,error:null,equal:rl,kind:"computed",producerMustRecompute(e){return e.value===Ri||e.value===Ai},producerRecomputeValue(e){if(e.value===Ai)throw new Error("Detected cycle in computations.");let t=e.value;e.value=Ai;let n=Lt(e),r,o=!1;try{r=e.computation(),b(null),o=t!==Ri&&t!==yr&&r!==yr&&e.equal(t,r)}catch(i){r=yr,e.error=i}finally{wn(e,n)}if(o){e.value=t;return}e.value=r,e.version++}});function kp(){throw new Error}var hl=kp;function pl(e){hl(e)}function gl(e){hl=e}var Fp=null;function ml(e){let t=Object.create(ki);t.value=e;let n=()=>(_n(t),t.value);return n[ae]=t,n}function In(e,t){al()||pl(e),e.equal(e.value,t)||(e.value=t,Lp(e))}function vl(e,t){al()||pl(e),In(e,t(e.value))}var ki=X(J({},ht),{equal:rl,value:void 0,kind:"signal"});function Lp(e){e.version++,Op(),sl(e),Fp?.()}function yl(e,t,n){let r=Object.create(Vp);n&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=t;let o=c=>{r.cleanupFn=c};function i(c){return c.fn===null&&c.schedule===null}function s(c){i(c)||(Vt(c),c.cleanupFn(),c.fn=null,c.schedule=null,c.cleanupFn=Oi)}let a=()=>{if(r.fn===null)return;if(Ap())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(r.dirty=!1,r.hasRun&&!En(r))return;r.hasRun=!0;let c=Lt(r);try{r.cleanupFn(),r.cleanupFn=Oi,r.fn(o)}finally{wn(r,c)}};return r.ref={notify:()=>cl(r),run:a,cleanup:()=>r.cleanupFn(),destroy:()=>s(r),[ae]:r},r.ref}var Oi=()=>{},Vp=X(J({},ht),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule!==null&&e.schedule(e.ref)},hasRun:!1,cleanupFn:Oi});function w(e){return typeof e=="function"}function wr(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Er=wr(e=>function(n){e(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 pt(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var P=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(w(r))try{r()}catch(i){t=i instanceof Er?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Dl(i)}catch(s){t=t??[],s instanceof Er?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Er(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Dl(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&pt(n,t)}remove(t){let{_finalizers:n}=this;n&&pt(n,t),t instanceof e&&t._removeParent(this)}};P.EMPTY=(()=>{let e=new P;return e.closed=!0,e})();var Fi=P.EMPTY;function Ir(e){return e instanceof P||e&&"closed"in e&&w(e.remove)&&w(e.add)&&w(e.unsubscribe)}function Dl(e){w(e)?e():e.unsubscribe()}var we={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var jt={setTimeout(e,t,...n){let{delegate:r}=jt;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=jt;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Cr(e){jt.setTimeout(()=>{let{onUnhandledError:t}=we;if(t)t(e);else throw e})}function Cn(){}var _l=Li("C",void 0,void 0);function wl(e){return Li("E",void 0,e)}function El(e){return Li("N",e,void 0)}function Li(e,t,n){return{kind:e,value:t,error:n}}var gt=null;function Bt(e){if(we.useDeprecatedSynchronousErrorHandling){let t=!gt;if(t&&(gt={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=gt;if(gt=null,n)throw r}}else e()}function Il(e){we.useDeprecatedSynchronousErrorHandling&&gt&&(gt.errorThrown=!0,gt.error=e)}var mt=class extends P{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Ir(t)&&t.add(this)):this.destination=Hp}static create(t,n,r){return new Ht(t,n,r)}next(t){this.isStopped?ji(El(t),this):this._next(t)}error(t){this.isStopped?ji(wl(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?ji(_l,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},jp=Function.prototype.bind;function Vi(e,t){return jp.call(e,t)}var Bi=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){br(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){br(r)}else br(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){br(n)}}},Ht=class extends mt{constructor(t,n,r){super();let o;if(w(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&we.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Vi(t.next,i),error:t.error&&Vi(t.error,i),complete:t.complete&&Vi(t.complete,i)}):o=t}this.destination=new Bi(o)}};function br(e){we.useDeprecatedSynchronousErrorHandling?Il(e):Cr(e)}function Bp(e){throw e}function ji(e,t){let{onStoppedNotification:n}=we;n&&jt.setTimeout(()=>n(e,t))}var Hp={closed:!0,next:Cn,error:Bp,complete:Cn};var $t=typeof Symbol=="function"&&Symbol.observable||"@@observable";function et(e){return e}function Cl(e){return e.length===0?et:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var R=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=Up(n)?n:new Ht(n,r,o);return Bt(()=>{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=bl(r),new r((o,i)=>{let s=new Ht({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)}[$t](){return this}pipe(...n){return Cl(n)(this)}toPromise(n){return n=bl(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function bl(e){var t;return(t=e??we.Promise)!==null&&t!==void 0?t:Promise}function $p(e){return e&&w(e.next)&&w(e.error)&&w(e.complete)}function Up(e){return e&&e instanceof mt||$p(e)&&Ir(e)}function zp(e){return w(e?.lift)}function L(e){return t=>{if(zp(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function j(e,t,n,r,o){return new Hi(e,t,n,r,o)}var Hi=class extends mt{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};var Ut={schedule(e){let t=requestAnimationFrame,n=cancelAnimationFrame,{delegate:r}=Ut;r&&(t=r.requestAnimationFrame,n=r.cancelAnimationFrame);let o=t(i=>{n=void 0,e(i)});return new P(()=>n?.(o))},requestAnimationFrame(...e){let{delegate:t}=Ut;return(t?.requestAnimationFrame||requestAnimationFrame)(...e)},cancelAnimationFrame(...e){let{delegate:t}=Ut;return(t?.cancelAnimationFrame||cancelAnimationFrame)(...e)},delegate:void 0};var Sl=wr(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var S=(()=>{class e extends R{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Sr(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Sl}next(n){Bt(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Bt(()=>{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(){Bt(()=>{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?Fi:(this.currentObservers=null,i.push(n),new P(()=>{this.currentObservers=null,pt(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new R;return n.source=this,n}}return e.create=(t,n)=>new Sr(t,n),e})(),Sr=class extends S{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:Fi}};var vt=class extends S{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var bn={now(){return(bn.delegate||Date).now()},delegate:void 0};var $i=class extends S{constructor(t=1/0,n=1/0,r=bn){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!t.closed;s+=r?1:2)t.next(i[s]);return this._checkFinalizedStatuses(t),n}_trimBuffer(){let{_bufferSize:t,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*t;if(t<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 Tr=class extends P{constructor(t,n){super()}schedule(t,n=0){return this}};var Sn={setInterval(e,t,...n){let{delegate:r}=Sn;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=Sn;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var zt=class extends Tr{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=!1}schedule(t,n=0){var r;if(this.closed)return this;this.state=t;let 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(t,n,r=0){return Sn.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(r!=null&&this.delay===r&&this.pending===!1)return n;n!=null&&Sn.clearInterval(n)}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let r=this._execute(t,n);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,n){let r=!1,o;try{this.work(t)}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:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,pt(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var Gt=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};Gt.now=bn.now;var Wt=class extends Gt{constructor(t,n=Gt.now){super(t,n),this.actions=[],this._active=!1}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=!0;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var Tn=new Wt(zt),Tl=Tn;var Mr=class extends zt{constructor(t,n){super(t,n),this.scheduler=t,this.work=n}requestAsyncId(t,n,r=0){return r!==null&&r>0?super.requestAsyncId(t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=Ut.requestAnimationFrame(()=>t.flush(void 0))))}recycleAsyncId(t,n,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(t,n,r);let{actions:i}=t;n!=null&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(Ut.cancelAnimationFrame(n),t._scheduled=void 0)}};var xr=class extends Wt{flush(t){this._active=!0;let n=this._scheduled;this._scheduled=void 0;let{actions:r}=this,o;t=t||r.shift();do if(o=t.execute(t.state,t.delay))break;while((t=r[0])&&t.id===n&&r.shift());if(this._active=!1,o){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw o}}};var Nr=new xr(Mr);var Mn=new R(e=>e.complete());function Rr(e){return e&&w(e.schedule)}function Ml(e){return e[e.length-1]}function tt(e){return Rr(Ml(e))?e.pop():void 0}function xl(e,t){return typeof Ml(e)=="number"?e.pop():t}function Rl(e,t,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(e,t||[])).next())})}function Nl(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function yt(e){return this instanceof yt?(this.v=e,this):new yt(e)}function Al(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),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(p){return Promise.resolve(p).then(f,d)}}function a(f,p){r[f]&&(o[f]=function(m){return new Promise(function(M,N){i.push([f,m,M,N])>1||c(f,m)})},p&&(o[f]=p(o[f])))}function c(f,p){try{l(r[f](p))}catch(m){h(i[0][3],m)}}function l(f){f.value instanceof yt?Promise.resolve(f.value.v).then(u,d):h(i[0][2],f)}function u(f){c("next",f)}function d(f){c("throw",f)}function h(f,p){f(p),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Ol(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Nl=="function"?Nl(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[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 qt=e=>e&&typeof e.length=="number"&&typeof e!="function";function Ar(e){return w(e?.then)}function Or(e){return w(e[$t])}function Pr(e){return Symbol.asyncIterator&&w(e?.[Symbol.asyncIterator])}function kr(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Gp(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Fr=Gp();function Lr(e){return w(e?.[Fr])}function Vr(e){return Al(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield yt(n.read());if(o)return yield yt(void 0);yield yield yt(r)}}finally{n.releaseLock()}})}function jr(e){return w(e?.getReader)}function B(e){if(e instanceof R)return e;if(e!=null){if(Or(e))return Wp(e);if(qt(e))return qp(e);if(Ar(e))return Zp(e);if(Pr(e))return Pl(e);if(Lr(e))return Yp(e);if(jr(e))return Qp(e)}throw kr(e)}function Wp(e){return new R(t=>{let n=e[$t]();if(w(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function qp(e){return new R(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function Zp(e){return new R(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Cr)})}function Yp(e){return new R(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Pl(e){return new R(t=>{Kp(e,t).catch(n=>t.error(n))})}function Qp(e){return Pl(Vr(e))}function Kp(e,t){var n,r,o,i;return Rl(this,void 0,void 0,function*(){try{for(n=Ol(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.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}}t.complete()})}function pe(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function Br(e,t=0){return L((n,r)=>{n.subscribe(j(r,o=>pe(r,e,()=>r.next(o),t),()=>pe(r,e,()=>r.complete(),t),o=>pe(r,e,()=>r.error(o),t)))})}function Hr(e,t=0){return L((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function kl(e,t){return B(e).pipe(Hr(t),Br(t))}function Fl(e,t){return B(e).pipe(Hr(t),Br(t))}function Ll(e,t){return new R(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Vl(e,t){return new R(n=>{let r;return pe(n,t,()=>{r=e[Fr](),pe(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>w(r?.return)&&r.return()})}function $r(e,t){if(!e)throw new Error("Iterable cannot be null");return new R(n=>{pe(n,t,()=>{let r=e[Symbol.asyncIterator]();pe(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function jl(e,t){return $r(Vr(e),t)}function Bl(e,t){if(e!=null){if(Or(e))return kl(e,t);if(qt(e))return Ll(e,t);if(Ar(e))return Fl(e,t);if(Pr(e))return $r(e,t);if(Lr(e))return Vl(e,t);if(jr(e))return jl(e,t)}throw kr(e)}function Dt(e,t){return t?Bl(e,t):B(e)}function Ui(...e){let t=tt(e);return Dt(e,t)}function Hl(e){return e instanceof Date&&!isNaN(e)}function $e(e,t){return L((n,r)=>{let o=0;n.subscribe(j(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:Jp}=Array;function Xp(e,t){return Jp(t)?e(...t):e(t)}function $l(e){return $e(t=>Xp(e,t))}function Ul(e,t,n,r,o,i,s,a){let c=[],l=0,u=0,d=!1,h=()=>{d&&!c.length&&!l&&t.complete()},f=m=>l<r?p(m):c.push(m),p=m=>{i&&t.next(m),l++;let M=!1;B(n(m,u++)).subscribe(j(t,N=>{o?.(N),i?f(N):t.next(N)},()=>{M=!0},void 0,()=>{if(M)try{for(l--;c.length&&l<r;){let N=c.shift();s?pe(t,s,()=>p(N)):p(N)}h()}catch(N){t.error(N)}}))};return e.subscribe(j(t,f,()=>{d=!0,h()})),()=>{a?.()}}function Zt(e,t,n=1/0){return w(t)?Zt((r,o)=>$e((i,s)=>t(r,i,o,s))(B(e(r,o))),n):(typeof t=="number"&&(n=t),L((r,o)=>Ul(r,o,e,n)))}function Ur(e=1/0){return Zt(et,e)}function zl(){return Ur(1)}function zi(...e){return zl()(Dt(e,tt(e)))}function eg(e){return new R(t=>{B(e()).subscribe(t)})}var tg=["addListener","removeListener"],ng=["addEventListener","removeEventListener"],rg=["on","off"];function Gi(e,t,n,r){if(w(n)&&(r=n,n=void 0),r)return Gi(e,t,n).pipe($l(r));let[o,i]=sg(e)?ng.map(s=>a=>e[s](t,a,n)):og(e)?tg.map(Gl(e,t)):ig(e)?rg.map(Gl(e,t)):[];if(!o&&qt(e))return Zt(s=>Gi(s,t,n))(B(e));if(!o)throw new TypeError("Invalid event target");return new R(s=>{let a=(...c)=>s.next(1<c.length?c:c[0]);return o(a),()=>i(a)})}function Gl(e,t){return n=>r=>e[n](t,r)}function og(e){return w(e.addListener)&&w(e.removeListener)}function ig(e){return w(e.on)&&w(e.off)}function sg(e){return w(e.addEventListener)&&w(e.removeEventListener)}function zr(e=0,t,n=Tl){let r=-1;return t!=null&&(Rr(t)?n=t:r=t),new R(o=>{let i=Hl(e)?+e-n.now():e;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 Wi(e=0,t=Tn){return e<0&&(e=0),zr(e,e,t)}function Gr(...e){let t=tt(e),n=xl(e,1/0),r=e;return r.length?r.length===1?B(r[0]):Ur(n)(Dt(r,t)):Mn}function xn(e,t){return L((n,r)=>{let o=0;n.subscribe(j(r,i=>e.call(t,i,o++)&&r.next(i)))})}function Wl(e){return L((t,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()};t.subscribe(j(n,l=>{r=!0,o=l,i||B(e(l)).subscribe(i=j(n,a,c))},()=>{s=!0,(!r||!i||i.closed)&&n.complete()}))})}function Wr(e,t=Tn){return Wl(()=>zr(e,t))}function qi(e){return e<=0?()=>Mn:L((t,n)=>{let r=0;t.subscribe(j(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function ql(e,t=et){return e=e??ag,L((n,r)=>{let o,i=!0;n.subscribe(j(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}function ag(e,t){return e===t}function cg(e){return xn((t,n)=>e<=n)}function qr(...e){let t=tt(e);return L((n,r)=>{(t?zi(e,n,t):zi(e,n)).subscribe(r)})}function Zr(e,t){return L((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(j(r,c=>{o?.unsubscribe();let l=0,u=i++;B(e(c,u)).subscribe(o=j(r,d=>r.next(t?t(c,d,u,l++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Yt(e){return L((t,n)=>{B(e).subscribe(j(n,()=>n.complete(),Cn)),!n.closed&&t.subscribe(n)})}function Zi(e,t,n){let r=w(e)||t||n?{next:e,error:t,complete:n}:e;return r?L((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(j(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)}))}):et}var ju="https://g.co/ng/security#xss",D=class extends Error{code;constructor(t,n){super(wa(t,n)),this.code=t}};function wa(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}var Oo=Symbol("InputSignalNode#UNSET"),Bu=X(J({},ki),{transformFn:void 0,applyValueToInputSignal(e,t){In(e,t)}});function Hu(e,t){let n=Object.create(Bu);n.value=e,n.transformFn=t?.transform;function r(){if(_n(n),n.value===Oo)throw new D(-950,!1);return n.value}return r[ae]=n,r}function Yn(e){return{toString:e}.toString()}var Yr="__parameters__";function lg(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function $u(e,t,n){return Yn(()=>{let r=lg(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(c,l,u){let d=c.hasOwnProperty(Yr)?c[Yr]:Object.defineProperty(c,Yr,{value:[]})[Yr];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),c}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}var Ue=globalThis;function F(e){for(let t in e)if(e[t]===F)return t;throw Error("Could not find renamed property on target object.")}function ug(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function ge(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(ge).join(", ")}]`;if(e==null)return""+e;let t=e.overriddenName||e.name;if(t)return`${t}`;let n=e.toString();if(n==null)return""+n;let r=n.indexOf(`
4
- `);return r>=0?n.slice(0,r):n}function us(e,t){return e?t?`${e} ${t}`:e:t||""}var dg=F({__forward_ref__:F});function Ea(e){return e.__forward_ref__=Ea,e.toString=function(){return ge(this())},e}function Y(e){return Uu(e)?e():e}function Uu(e){return typeof e=="function"&&e.hasOwnProperty(dg)&&e.__forward_ref__===Ea}function _(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Qn(e){return{providers:e.providers||[],imports:e.imports||[]}}function Ia(e){return Zl(e,zu)||Zl(e,Gu)}function Zl(e,t){return e.hasOwnProperty(t)?e[t]:null}function fg(e){let t=e&&(e[zu]||e[Gu]);return t||null}function Yl(e){return e&&(e.hasOwnProperty(Ql)||e.hasOwnProperty(hg))?e[Ql]:null}var zu=F({\u0275prov:F}),Ql=F({\u0275inj:F}),Gu=F({ngInjectableDef:F}),hg=F({ngInjectorDef:F}),E=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=_({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Wu(e){return e&&!!e.\u0275providers}var pg=F({\u0275cmp:F}),gg=F({\u0275dir:F}),mg=F({\u0275pipe:F});var ao=F({\u0275fac:F}),On=F({__NG_ELEMENT_ID__:F}),Kl=F({__NG_ENV_ID__:F});function Kn(e){return typeof e=="string"?e:e==null?"":String(e)}function vg(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():Kn(e)}function yg(e,t){throw new D(-200,e)}function Ca(e,t){throw new D(-201,!1)}var T=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(T||{}),ds;function qu(){return ds}function ce(e){let t=ds;return ds=e,t}function Zu(e,t,n){let r=Ia(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&T.Optional)return null;if(t!==void 0)return t;Ca(e,"Injector")}var Dg={},Pn=Dg,fs="__NG_DI_FLAG__",co="ngTempTokenPath",_g="ngTokenPath",wg=/\n/gm,Eg="\u0275",Jl="__source",en;function Ig(){return en}function nt(e){let t=en;return en=e,t}function Cg(e,t=T.Default){if(en===void 0)throw new D(-203,!1);return en===null?Zu(e,void 0,t):en.get(e,t&T.Optional?null:void 0,t)}function x(e,t=T.Default){return(qu()||Cg)(Y(e),t)}function g(e,t=T.Default){return x(e,Po(t))}function Po(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function hs(e){let t=[];for(let n=0;n<e.length;n++){let r=Y(e[n]);if(Array.isArray(r)){if(r.length===0)throw new D(900,!1);let o,i=T.Default;for(let s=0;s<r.length;s++){let a=r[s],c=bg(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}t.push(x(o,i))}else t.push(x(r))}return t}function Yu(e,t){return e[fs]=t,e.prototype[fs]=t,e}function bg(e){return e[fs]}function Sg(e,t,n,r){let o=e[co];throw t[Jl]&&o.unshift(t[Jl]),e.message=Tg(`
5
- `+e.message,o,n,r),e[_g]=o,e[co]=null,e}function Tg(e,t,n,r=null){e=e&&e.charAt(0)===`
6
- `&&e.charAt(1)==Eg?e.slice(2):e;let o=ge(t);if(Array.isArray(t))o=t.map(ge).join(" -> ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):ge(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(wg,`
7
- `)}`}var ba=Yu($u("Optional"),8);var Mg=Yu($u("SkipSelf"),4);function Et(e,t){let n=e.hasOwnProperty(ao);return n?e[ao]:null}function xg(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(n&&(o=n(o),i=n(i)),i!==o)return!1}return!0}function Ng(e){return e.flat(Number.POSITIVE_INFINITY)}function Sa(e,t){e.forEach(n=>Array.isArray(n)?Sa(n,t):t(n))}function Qu(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function lo(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Rg(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function ko(e,t,n){let r=Jn(e,t);return r>=0?e[r|1]=n:(r=~r,Rg(e,r,t,n)),r}function Yi(e,t){let n=Jn(e,t);if(n>=0)return e[n|1]}function Jn(e,t){return Ag(e,t,1)}function Ag(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1}return~(o<<n)}var Oe={},re=[],kn=new E(""),Ku=new E("",-1),Ju=new E(""),uo=class{get(t,n=Pn){if(n===Pn){let r=new Error(`NullInjectorError: No provider for ${ge(t)}!`);throw r.name="NullInjectorError",r}return n}};function It(e){return e[pg]||null}function Ta(e){return e[gg]||null}function Xu(e){return e[mg]||null}function Og(e){let t=It(e)||Ta(e)||Xu(e);return t!==null&&t.standalone}function ed(e){return{\u0275providers:e}}function Pg(...e){return{\u0275providers:td(!0,e),\u0275fromNgModule:!0}}function td(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return Sa(t,s=>{let a=s;ps(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&nd(o,i),n}function nd(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];Ma(o,i=>{t(i,r)})}}function ps(e,t,n,r){if(e=Y(e),!e)return!1;let o=null,i=Yl(e),s=!i&&It(e);if(!i&&!s){let c=e.ngModule;if(i=Yl(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}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)ps(l,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let l;try{Sa(i.imports,u=>{ps(u,t,n,r)&&(l||=[],l.push(u))})}finally{}l!==void 0&&nd(l,t)}if(!a){let l=Et(o)||(()=>new o);t({provide:o,useFactory:l,deps:re},o),t({provide:Ju,useValue:o,multi:!0},o),t({provide:kn,useValue:()=>x(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let l=e;Ma(c,u=>{t(u,l)})}}else return!1;return o!==e&&e.providers!==void 0}function Ma(e,t){for(let n of e)Wu(n)&&(n=n.\u0275providers),Array.isArray(n)?Ma(n,t):t(n)}var kg=F({provide:String,useValue:F});function rd(e){return e!==null&&typeof e=="object"&&kg in e}function Fg(e){return!!(e&&e.useExisting)}function Lg(e){return!!(e&&e.useFactory)}function rn(e){return typeof e=="function"}function Vg(e){return!!e.useClass}var Fo=new E(""),eo={},jg={},Qi;function Lo(){return Qi===void 0&&(Qi=new uo),Qi}var Pe=class{},Fn=class extends Pe{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,ms(t,s=>this.processProvider(s)),this.records.set(Ku,Qt(void 0,this)),o.has("environment")&&this.records.set(Pe,Qt(void 0,this));let i=this.records.get(Fo);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Ju,re,T.Self))}destroy(){Rn(this),this._destroyed=!0;let t=b(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(),b(t)}}onDestroy(t){return Rn(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Rn(this);let n=nt(this),r=ce(void 0),o;try{return t()}finally{nt(n),ce(r)}}get(t,n=Pn,r=T.Default){if(Rn(this),t.hasOwnProperty(Kl))return t[Kl](this);r=Po(r);let o,i=nt(this),s=ce(void 0);try{if(!(r&T.SkipSelf)){let c=this.records.get(t);if(c===void 0){let l=zg(t)&&Ia(t);l&&this.injectableDefInScope(l)?c=Qt(gs(t),eo):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c)}let a=r&T.Self?Lo():this.parent;return n=r&T.Optional&&n===Pn?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[co]=a[co]||[]).unshift(ge(t)),i)throw a;return Sg(a,t,"R3InjectorError",this.source)}else throw a}finally{ce(s),nt(i)}}resolveInjectorInitializers(){let t=b(null),n=nt(this),r=ce(void 0),o;try{let i=this.get(kn,re,T.Self);for(let s of i)s()}finally{nt(n),ce(r),b(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(ge(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=Y(t);let n=rn(t)?t:Y(t&&t.provide),r=Hg(t);if(!rn(t)&&t.multi===!0){let o=this.records.get(n);o||(o=Qt(void 0,eo,!0),o.factory=()=>hs(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=b(null);try{return n.value===eo&&(n.value=jg,n.value=n.factory()),typeof n.value=="object"&&n.value&&Ug(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{b(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=Y(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function gs(e){let t=Ia(e),n=t!==null?t.factory:Et(e);if(n!==null)return n;if(e instanceof E)throw new D(204,!1);if(e instanceof Function)return Bg(e);throw new D(204,!1)}function Bg(e){if(e.length>0)throw new D(204,!1);let n=fg(e);return n!==null?()=>n.factory(e):()=>new e}function Hg(e){if(rd(e))return Qt(void 0,e.useValue);{let t=od(e);return Qt(t,eo)}}function od(e,t,n){let r;if(rn(e)){let o=Y(e);return Et(o)||gs(o)}else if(rd(e))r=()=>Y(e.useValue);else if(Lg(e))r=()=>e.useFactory(...hs(e.deps||[]));else if(Fg(e))r=()=>x(Y(e.useExisting));else{let o=Y(e&&(e.useClass||e.provide));if($g(e))r=()=>new o(...hs(e.deps));else return Et(o)||gs(o)}return r}function Rn(e){if(e.destroyed)throw new D(205,!1)}function Qt(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function $g(e){return!!e.deps}function Ug(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function zg(e){return typeof e=="function"||typeof e=="object"&&e instanceof E}function ms(e,t){for(let n of e)Array.isArray(n)?ms(n,t):n&&Wu(n)?ms(n.\u0275providers,t):t(n)}function id(e,t){e instanceof Fn&&Rn(e);let n,r=nt(e),o=ce(void 0);try{return t()}finally{nt(r),ce(o)}}function sd(){return qu()!==void 0||Ig()!=null}function Vo(e){if(!sd())throw new D(-203,!1)}function Gg(e){return typeof e=="function"}var Ze=0,y=1,v=2,te=3,Ce=4,Te=5,Ln=6,fo=7,$=8,Vn=9,Ge=10,G=11,jn=12,Xl=13,ln=14,be=15,Ct=16,Kt=17,We=18,Xn=19,ad=20,rt=21,to=22,bt=23,le=24,tn=25,H=26,cd=1;var St=7,ho=8,on=9,ee=10;function ze(e){return Array.isArray(e)&&typeof e[cd]=="object"}function Ye(e){return Array.isArray(e)&&e[cd]===!0}function xa(e){return(e.flags&4)!==0}function un(e){return e.componentOffset>-1}function jo(e){return(e.flags&1)===1}function ke(e){return!!e.template}function po(e){return(e[v]&512)!==0}function er(e){return(e[v]&256)===256}var vs=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function ld(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var tr=(()=>{let e=()=>ud;return e.ngInherit=!0,e})();function ud(e){return e.type.prototype.ngOnChanges&&(e.setInput=qg),Wg}function Wg(){let e=fd(this),t=e?.current;if(t){let n=e.previous;if(n===Oe)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function qg(e,t,n,r,o){let i=this.declaredInputs[r],s=fd(e)||Zg(e,{previous:Oe,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[i];a[i]=new vs(l&&l.currentValue,n,c===Oe),ld(e,t,o,n)}var dd="__ngSimpleChanges__";function fd(e){return e[dd]||null}function Zg(e,t){return e[dd]=t}var eu=null;var A=function(e,t=null,n){eu?.(e,t,n)},hd="svg",Yg="math";function ue(e){for(;Array.isArray(e);)e=e[Ze];return e}function pd(e,t){return ue(t[e])}function je(e,t){return ue(t[e.index])}function Na(e,t){return e.data[t]}function Bo(e,t){return e[t]}function me(e,t){let n=t[e];return ze(n)?n:n[Ze]}function Qg(e){return(e[v]&4)===4}function Ra(e){return(e[v]&128)===128}function Kg(e){return Ye(e[te])}function ot(e,t){return t==null?null:e[t]}function gd(e){e[Kt]=0}function Aa(e){e[v]&1024||(e[v]|=1024,Ra(e)&&dn(e))}function Jg(e,t){for(;e>0;)t=t[ln],e--;return t}function Ho(e){return!!(e[v]&9216||e[le]?.dirty)}function ys(e){e[Ge].changeDetectionScheduler?.notify(8),e[v]&64&&(e[v]|=1024),Ho(e)&&dn(e)}function dn(e){e[Ge].changeDetectionScheduler?.notify(0);let t=Tt(e);for(;t!==null&&!(t[v]&8192||(t[v]|=8192,!Ra(t)));)t=Tt(t)}function md(e,t){if(er(e))throw new D(911,!1);e[rt]===null&&(e[rt]=[]),e[rt].push(t)}function Xg(e,t){if(e[rt]===null)return;let n=e[rt].indexOf(t);n!==-1&&e[rt].splice(n,1)}function Tt(e){let t=e[te];return Ye(t)?t[te]:t}function vd(e){return e[fo]??=[]}function yd(e){return e.cleanup??=[]}function em(e,t,n,r){let o=vd(t);o.push(n),e.firstCreatePass&&yd(e).push(r,o.length-1)}var I={lFrame:Td(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Ds=!1;function tm(){return I.lFrame.elementDepthCount}function nm(){I.lFrame.elementDepthCount++}function rm(){I.lFrame.elementDepthCount--}function Oa(){return I.bindingsEnabled}function om(){return I.skipHydrationRootTNode!==null}function im(e){return I.skipHydrationRootTNode===e}function sm(){I.skipHydrationRootTNode=null}function C(){return I.lFrame.lView}function U(){return I.lFrame.tView}function wM(e){return I.lFrame.contextLView=e,e[$]}function EM(e){return I.lFrame.contextLView=null,e}function de(){let e=Dd();for(;e!==null&&e.type===64;)e=e.parent;return e}function Dd(){return I.lFrame.currentTNode}function am(){let e=I.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function at(e,t){let n=I.lFrame;n.currentTNode=e,n.isParent=t}function Pa(){return I.lFrame.isParent}function _d(){I.lFrame.isParent=!1}function wd(){return I.lFrame.contextLView}function Ed(){return Ds}function go(e){let t=Ds;return Ds=e,t}function $o(){let e=I.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function cm(e){return I.lFrame.bindingIndex=e}function nr(){return I.lFrame.bindingIndex++}function Id(e){let t=I.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function lm(){return I.lFrame.inI18n}function um(e,t){let n=I.lFrame;n.bindingIndex=n.bindingRootIndex=e,_s(t)}function dm(){return I.lFrame.currentDirectiveIndex}function _s(e){I.lFrame.currentDirectiveIndex=e}function fm(e){let t=I.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Cd(){return I.lFrame.currentQueryIndex}function ka(e){I.lFrame.currentQueryIndex=e}function hm(e){let t=e[y];return t.type===2?t.declTNode:t.type===1?e[Te]:null}function bd(e,t,n){if(n&T.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&T.Host);)if(o=hm(i),o===null||(i=i[ln],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=I.lFrame=Sd();return r.currentTNode=t,r.lView=e,!0}function Fa(e){let t=Sd(),n=e[y];I.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Sd(){let e=I.lFrame,t=e===null?null:e.child;return t===null?Td(e):t}function Td(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function Md(){let e=I.lFrame;return I.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var xd=Md;function La(){let e=Md();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function pm(e){return(I.lFrame.contextLView=Jg(e,I.lFrame.contextLView))[$]}function Qe(){return I.lFrame.selectedIndex}function Mt(e){I.lFrame.selectedIndex=e}function Va(){let e=I.lFrame;return Na(e.tView,e.selectedIndex)}function IM(){I.lFrame.currentNamespace=hd}function CM(){gm()}function gm(){I.lFrame.currentNamespace=null}function mm(){return I.lFrame.currentNamespace}var Nd=!0;function Uo(){return Nd}function zo(e){Nd=e}function vm(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=ud(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function ja(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:l,ngOnDestroy:u}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),c&&(e.viewHooks??=[]).push(-n,c),l&&((e.viewHooks??=[]).push(n,l),(e.viewCheckHooks??=[]).push(n,l)),u!=null&&(e.destroyHooks??=[]).push(n,u)}}function no(e,t,n){Rd(e,t,3,n)}function ro(e,t,n,r){(e[v]&3)===n&&Rd(e,t,n,r)}function Ki(e,t){let n=e[v];(n&3)===t&&(n&=16383,n+=1,e[v]=n)}function Rd(e,t,n,r){let o=r!==void 0?e[Kt]&65535:0,i=r??-1,s=t.length-1,a=0;for(let c=o;c<s;c++)if(typeof t[c+1]=="number"){if(a=t[c],r!=null&&a>=r)break}else t[c]<0&&(e[Kt]+=65536),(a<i||i==-1)&&(ym(e,n,t,c),e[Kt]=(e[Kt]&4294901760)+c+2),c++}function tu(e,t){A(4,e,t);let n=b(null);try{t.call(e)}finally{b(n),A(5,e,t)}}function ym(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[v]>>14<e[Kt]>>16&&(e[v]&3)===t&&(e[v]+=16384,tu(a,i)):tu(a,i)}var nn=-1,xt=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r){this.factory=t,this.canSeeViewProviders=n,this.injectImpl=r}};function Dm(e){return e instanceof xt}function _m(e){return(e.flags&8)!==0}function wm(e){return(e.flags&16)!==0}function Em(e,t,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++];e.setAttribute(t,s,a,i)}else{let i=o,s=n[++r];Cm(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function Im(e){return e===3||e===4||e===6}function Cm(e){return e.charCodeAt(0)===64}function sn(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let o=t[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?nu(e,n,o,null,t[++r]):nu(e,n,o,null,null))}}return e}function nu(e,t,n,r,o){let i=0,s=e.length;if(t===-1)s=-1;else for(;i<e.length;){let a=e[i++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=i-1;break}}}for(;i<e.length;){let a=e[i];if(typeof a=="number")break;if(a===n){if(r===null){o!==null&&(e[i+1]=o);return}else if(r===e[i+1]){e[i+2]=o;return}}i++,r!==null&&i++,o!==null&&i++}s!==-1&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),r!==null&&e.splice(i++,0,r),o!==null&&e.splice(i++,0,o)}var Ji={},ws=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=Po(r);let o=this.injector.get(t,Ji,r);return o!==Ji||n===Ji?o:this.parentInjector.get(t,n,r)}};function Ad(e){return e!==nn}function mo(e){return e&32767}function bm(e){return e>>16}function vo(e,t){let n=bm(e),r=t;for(;n>0;)r=r[ln],n--;return r}var Es=!0;function yo(e){let t=Es;return Es=e,t}var Sm=256,Od=Sm-1,Pd=5,Tm=0,Re={};function Mm(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(On)&&(r=n[On]),r==null&&(r=n[On]=Tm++);let o=r&Od,i=1<<o;t.data[e+(o>>Pd)]|=i}function Do(e,t){let n=kd(e,t);if(n!==-1)return n;let r=t[y];r.firstCreatePass&&(e.injectorIndex=t.length,Xi(r.data,e),Xi(t,null),Xi(r.blueprint,null));let o=Ba(e,t),i=e.injectorIndex;if(Ad(o)){let s=mo(o),a=vo(o,t),c=a[y].data;for(let l=0;l<8;l++)t[i+l]=a[s+l]|c[s+l]}return t[i+8]=o,i}function Xi(e,t){e.push(0,0,0,0,0,0,0,0,t)}function kd(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Ba(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=Bd(o),r===null)return nn;if(n++,o=o[ln],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return nn}function Is(e,t,n){Mm(e,t,n)}function Fd(e,t,n){if(n&T.Optional||e!==void 0)return e;Ca(t,"NodeInjector")}function Ld(e,t,n,r){if(n&T.Optional&&r===void 0&&(r=null),(n&(T.Self|T.Host))===0){let o=e[Vn],i=ce(void 0);try{return o?o.get(t,r,n&T.Optional):Zu(t,r,n&T.Optional)}finally{ce(i)}}return Fd(r,t,n)}function Vd(e,t,n,r=T.Default,o){if(e!==null){if(t[v]&2048&&!(r&T.Self)){let s=Am(e,t,n,r,Re);if(s!==Re)return s}let i=jd(e,t,n,r,Re);if(i!==Re)return i}return Ld(t,n,r,o)}function jd(e,t,n,r,o){let i=Nm(n);if(typeof i=="function"){if(!bd(t,e,r))return r&T.Host?Fd(o,n,r):Ld(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&T.Optional))Ca(n);else return s}finally{xd()}}else if(typeof i=="number"){let s=null,a=kd(e,t),c=nn,l=r&T.Host?t[be][Te]:null;for((a===-1||r&T.SkipSelf)&&(c=a===-1?Ba(e,t):t[a+8],c===nn||!ou(r,!1)?a=-1:(s=t[y],a=mo(c),t=vo(c,t)));a!==-1;){let u=t[y];if(ru(i,a,u.data)){let d=xm(a,t,n,s,r,l);if(d!==Re)return d}c=t[a+8],c!==nn&&ou(r,t[y].data[a+8]===l)&&ru(i,a,t)?(s=u,a=mo(c),t=vo(c,t)):a=-1}}return o}function xm(e,t,n,r,o,i){let s=t[y],a=s.data[e+8],c=r==null?un(a)&&Es:r!=s&&(a.type&3)!==0,l=o&T.Host&&i===a,u=oo(a,s,n,c,l);return u!==null?Bn(t,s,u,a):Re}function oo(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,l=e.directiveEnd,u=i>>20,d=r?a:a+u,h=o?a+u:l;for(let f=d;f<h;f++){let p=s[f];if(f<c&&n===p||f>=c&&p.type===n)return f}if(o){let f=s[c];if(f&&ke(f)&&f.type===n)return c}return null}function Bn(e,t,n,r){let o=e[n],i=t.data;if(Dm(o)){let s=o;s.resolving&&yg(vg(i[n]));let a=yo(s.canSeeViewProviders);s.resolving=!0;let c,l=s.injectImpl?ce(s.injectImpl):null,u=bd(e,r,T.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&vm(n,i[n],t)}finally{l!==null&&ce(l),yo(a),s.resolving=!1,xd()}}return o}function Nm(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(On)?e[On]:void 0;return typeof t=="number"?t>=0?t&Od:Rm:t}function ru(e,t,n){let r=1<<e;return!!(n[t+(e>>Pd)]&r)}function ou(e,t){return!(e&T.Self)&&!(e&T.Host&&t)}var wt=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Vd(this._tNode,this._lView,t,Po(r),n)}};function Rm(){return new wt(de(),C())}function bM(e){return Yn(()=>{let t=e.prototype.constructor,n=t[ao]||Cs(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[ao]||Cs(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Cs(e){return Uu(e)?()=>{let t=Cs(Y(e));return t&&t()}:Et(e)}function Am(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[v]&2048&&!po(s);){let a=jd(i,s,n,r|T.Self,Re);if(a!==Re)return a;let c=i.parent;if(!c){let l=s[ad];if(l){let u=l.get(n,Re,r);if(u!==Re)return u}c=Bd(s),s=s[ln]}i=c}return o}function Bd(e){let t=e[y],n=t.type;return n===2?t.declTNode:n===1?e[Te]:null}function iu(e,t=null,n=null,r){let o=Om(e,t,n,r);return o.resolveInjectorInitializers(),o}function Om(e,t=null,n=null,r,o=new Set){let i=[n||re,Pg(e)];return r=r||(typeof e=="object"?void 0:ge(e)),new Fn(i,t||Lo(),r||null,o)}var K=class e{static THROW_IF_NOT_FOUND=Pn;static NULL=new uo;static create(t,n){if(Array.isArray(t))return iu({name:""},n,t,"");{let r=t.name??"";return iu({name:r},t.parent,t.providers,r)}}static \u0275prov=_({token:e,providedIn:"any",factory:()=>x(Ku)});static __NG_ELEMENT_ID__=-1};var Pm=new E("");Pm.__NG_ELEMENT_ID__=e=>{let t=de();if(t===null)throw new D(204,!1);if(t.type&2)return t.value;if(e&T.Optional)return null;throw new D(204,!1)};var Hd=!1,fn=(()=>{class e{static __NG_ELEMENT_ID__=km;static __NG_ENV_ID__=n=>n}return e})(),_o=class extends fn{_lView;constructor(t){super(),this._lView=t}onDestroy(t){return md(this._lView,t),()=>Xg(this._lView,t)}};function km(){return new _o(C())}var it=class{},Go=new E("",{providedIn:"root",factory:()=>!1});var $d=new E(""),Ha=new E(""),rr=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new vt(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=_({token:e,providedIn:"root",factory:()=>new e})}return e})();var bs=class extends S{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,sd()&&(this.destroyRef=g(fn,{optional:!0})??void 0,this.pendingTasks=g(rr,{optional:!0})??void 0)}emit(t){let n=b(null);try{super.next(t)}finally{b(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;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 t instanceof P&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},Q=bs;function Hn(...e){}function Ud(e){let t,n;function r(){e=Hn;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function su(e){return queueMicrotask(()=>e()),()=>{e=Hn}}var $a="isAngularZone",wo=$a+"_ID",Fm=0,V=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Q(!1);onMicrotaskEmpty=new Q(!1);onStable=new Q(!1);onError=new Q(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=Hd}=t;if(typeof Zone>"u")throw new D(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,jm(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get($a)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new D(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new D(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,Lm,Hn,Hn);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},Lm={};function Ua(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Vm(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Ud(()=>{e.callbackScheduled=!1,Ss(e),e.isCheckStableRunning=!0,Ua(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Ss(e)}function jm(e){let t=()=>{Vm(e)},n=Fm++;e._inner=e._inner.fork({name:"angular",properties:{[$a]:!0,[wo]:n,[wo+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(Bm(c))return r.invokeTask(i,s,a,c);try{return au(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),cu(e)}},onInvoke:(r,o,i,s,a,c,l)=>{try{return au(e),r.invoke(i,s,a,c,l)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Hm(c)&&t(),cu(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Ss(e),Ua(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function Ss(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function au(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function cu(e){e._nesting--,Ua(e)}var Eo=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Q;onMicrotaskEmpty=new Q;onStable=new Q;onError=new Q;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function Bm(e){return zd(e,"__ignore_ng_zone__")}function Hm(e){return zd(e,"__scheduler_tick__")}function zd(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Se=class{_console=console;handleError(t){this._console.error("ERROR",t)}},$m=new E("",{providedIn:"root",factory:()=>{let e=g(V),t=g(Se);return n=>e.runOutsideAngular(()=>t.handleError(n))}}),Io=class{destroyed=!1;listeners=null;errorHandler=g(Se,{optional:!0});destroyRef=g(fn);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(t){if(this.destroyed)throw new D(953,!1);return(this.listeners??=[]).push(t),{unsubscribe:()=>{let n=this.listeners?.indexOf(t);n!==void 0&&n!==-1&&this.listeners?.splice(n,1)}}}emit(t){if(this.destroyed)throw new D(953,!1);if(this.listeners===null)return;let n=b(null);try{for(let r of this.listeners)try{r(t)}catch(o){this.errorHandler?.handleError(o)}}finally{b(n)}}};function SM(e){return new Io}function lu(e,t){return Hu(e,t)}function Um(e){return Hu(Oo,e)}var TM=(lu.required=Um,lu);function zm(){return hn(de(),C())}function hn(e,t){return new fe(je(e,t))}var fe=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=zm}return e})();function Gm(e){return e instanceof fe?e.nativeElement:e}function za(e,t){let n=ml(e),r=n[ae];return t?.equal&&(r.equal=t.equal),n.set=o=>In(r,o),n.update=o=>vl(r,o),n.asReadonly=Gd.bind(n),n}function Gd(){let e=this[ae];if(e.readonlyFn===void 0){let t=()=>this();t[ae]=e,e.readonlyFn=t}return e.readonlyFn}function Wm(){return this._results[Symbol.iterator]()}var Ts=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 S}constructor(t=!1){this._emitDistinctChangesOnly=t}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=Ng(t);(this._changesDetected=!xg(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(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=Wm};function Wd(e){return(e.flags&128)===128}var qd=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(qd||{}),Ga=new Map,qm=0;function Zm(){return qm++}function Ym(e){Ga.set(e[Xn],e)}function Zd(e){return Ga.get(e)||null}function Ms(e){Ga.delete(e[Xn])}var xs=class{lViewId;nodeIndex;native;component;directives;localRefs;get lView(){return Zd(this.lViewId)}constructor(t,n,r){this.lViewId=t,this.nodeIndex=n,this.native=r}};function MM(e){let t=es(e);if(t){if(ze(t)){let n=t,r,o,i;if(Yd(e)){if(r=Jm(n,e),r==-1)throw new Error("The provided component was not found in the application");o=e}else if(Qm(e)){if(r=Xm(n,e),r==-1)throw new Error("The provided directive was not found in the application");i=ev(r,n)}else if(r=du(n,e),r==-1)return null;let s=ue(n[r]),a=es(s),c=a&&!Array.isArray(a)?a:uu(n,r,s);if(o&&c.component===void 0&&(c.component=o,Ae(c.component,c)),i&&c.directives===void 0){c.directives=i;for(let l=0;l<i.length;l++)Ae(i[l],c)}Ae(c.native,c),t=c}}else{let n=e,r=n;for(;r=r.parentNode;){let o=es(r);if(o){let i=Array.isArray(o)?o:o.lView;if(!i)return null;let s=du(i,n);if(s>=0){let a=ue(i[s]),c=uu(i,s,a);Ae(a,c),t=c;break}}}}return t||null}function uu(e,t,n){return new xs(e[Xn],t,n)}var Ns="__ngContext__";function Ae(e,t){ze(t)?(e[Ns]=t[Xn],Ym(t)):e[Ns]=t}function es(e){let t=e[Ns];return typeof t=="number"?Zd(t):t||null}function Yd(e){return e&&e.constructor&&e.constructor.\u0275cmp}function Qm(e){return e&&e.constructor&&e.constructor.\u0275dir}function du(e,t){let n=e[y];for(let r=H;r<n.bindingStartIndex;r++)if(ue(e[r])===t)return r;return-1}function Km(e){if(e.child)return e.child;if(e.next)return e.next;for(;e.parent&&!e.parent.next;)e=e.parent;return e.parent&&e.parent.next}function Jm(e,t){let n=e[y].components;if(n)for(let r=0;r<n.length;r++){let o=n[r];if(me(o,e)[$]===t)return o}else if(me(H,e)[$]===t)return H;return-1}function Xm(e,t){let n=e[y].firstChild;for(;n;){let r=n.directiveStart,o=n.directiveEnd;for(let i=r;i<o;i++)if(e[i]===t)return n.index;n=Km(n)}return-1}function ev(e,t){let n=t[y].data[e];if(n.directiveStart===0)return re;let r=[];for(let o=n.directiveStart;o<n.directiveEnd;o++){let i=t[o];Yd(i)||r.push(i)}return r}function Qd(e){return Jd(e[jn])}function Kd(e){return Jd(e[Ce])}function Jd(e){for(;e!==null&&!Ye(e);)e=e[Ce];return e}var Rs;function Xd(e){Rs=e}function ef(){if(Rs!==void 0)return Rs;if(typeof document<"u")return document;throw new D(210,!1)}var or=new E("",{providedIn:"root",factory:()=>tv}),tv="ng",Wa=new E(""),Ot=new E("",{providedIn:"platform",factory:()=>"unknown"});var xM=new E(""),qa=new E("",{providedIn:"root",factory:()=>ef().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var nv="h",rv="b";var tf=!1,ov=new E("",{providedIn:"root",factory:()=>tf});var Za=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}(Za||{}),pn=new E(""),fu=new Set;function ct(e){fu.has(e)||(fu.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var Ya=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=iv}return e})();function iv(){return new Ya(C(),de())}var Jt=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(Jt||{}),nf=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=_({token:e,providedIn:"root",factory:()=>new e})}return e})(),sv=[Jt.EarlyRead,Jt.Write,Jt.MixedReadWrite,Jt.Read],av=(()=>{class e{ngZone=g(V);scheduler=g(it);errorHandler=g(Se,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){g(pn,{optional:!0})}execute(){let n=this.sequences.size>0;n&&A(16),this.executing=!0;for(let r of sv)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&&A(17)}register(n){let{view:r}=n;r!==void 0?((r[tn]??=[]).push(n),dn(r),r[v]|=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(Za.AFTER_NEXT_RENDER,n):n()}static \u0275prov=_({token:e,providedIn:"root",factory:()=>new e})}return e})(),As=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(t,n,r,o,i,s=null){this.impl=t,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 t=this.view?.[tn];t&&(this.view[tn]=t.filter(n=>n!==this))}};function cv(e,t){!t?.injector&&Vo(cv);let n=t?.injector??g(K);return ct("NgAfterRender"),rf(e,n,t,!1)}function Wo(e,t){!t?.injector&&Vo(Wo);let n=t?.injector??g(K);return ct("NgAfterNextRender"),rf(e,n,t,!0)}function lv(e,t){if(e instanceof Function){let n=[void 0,void 0,void 0,void 0];return n[t]=e,n}else return[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function rf(e,t,n,r){let o=t.get(nf);o.impl??=t.get(av);let i=t.get(pn,null,{optional:!0}),s=n?.phase??Jt.MixedReadWrite,a=n?.manualCleanup!==!0?t.get(fn):null,c=t.get(Ya,null,{optional:!0}),l=new As(o.impl,lv(e,s),c?.view,r,a,i?.snapshot(null));return o.impl.register(l),l}var uv=()=>null;function of(e,t,n=!1){return uv(e,t,n)}function sf(e,t){let n=e.contentQueries;if(n!==null){let r=b(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=e.data[s];ka(i),a.contentQueries(2,t[s],s)}}}finally{b(r)}}}function Os(e,t,n){ka(0);let r=b(null);try{t(e,n)}finally{b(r)}}function Qa(e,t,n){if(xa(t)){let r=b(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;s<i;s++){let a=e.data[s];if(a.contentQueries){let c=n[s];a.contentQueries(1,c,s)}}}finally{b(r)}}}var Fe=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Fe||{}),Qr;function dv(){if(Qr===void 0&&(Qr=null,Ue.trustedTypes))try{Qr=Ue.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Qr}function qo(e){return dv()?.createHTML(e)||e}var Kr;function fv(){if(Kr===void 0&&(Kr=null,Ue.trustedTypes))try{Kr=Ue.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Kr}function hu(e){return fv()?.createHTML(e)||e}var qe=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${ju})`}},Ps=class extends qe{getTypeName(){return"HTML"}},ks=class extends qe{getTypeName(){return"Style"}},Fs=class extends qe{getTypeName(){return"Script"}},Ls=class extends qe{getTypeName(){return"URL"}},Vs=class extends qe{getTypeName(){return"ResourceURL"}};function Me(e){return e instanceof qe?e.changingThisBreaksApplicationSecurity:e}function lt(e,t){let n=hv(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${ju})`)}return n===t}function hv(e){return e instanceof qe&&e.getTypeName()||null}function af(e){return new Ps(e)}function cf(e){return new ks(e)}function lf(e){return new Fs(e)}function uf(e){return new Ls(e)}function df(e){return new Vs(e)}function pv(e){let t=new Bs(e);return gv()?new js(t):t}var js=class{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{let n=new window.DOMParser().parseFromString(qo(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}},Bs=class{defaultDoc;inertDocument;constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){let n=this.inertDocument.createElement("template");return n.innerHTML=qo(t),n}};function gv(){try{return!!new window.DOMParser().parseFromString(qo(""),"text/html")}catch{return!1}}var mv=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Zo(e){return e=String(e),e.match(mv)?e:"unsafe:"+e}function Ke(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function ir(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var ff=Ke("area,br,col,hr,img,wbr"),hf=Ke("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),pf=Ke("rp,rt"),vv=ir(pf,hf),yv=ir(hf,Ke("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")),Dv=ir(pf,Ke("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")),pu=ir(ff,yv,Dv,vv),gf=Ke("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),_v=Ke("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"),wv=Ke("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"),Ev=ir(gf,_v,wv),Iv=Ke("script,style,template"),Hs=class{sanitizedSomething=!1;buf=[];sanitizeChildren(t){let n=t.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=Sv(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=bv(n);if(i){n=i;break}n=o.pop()}}return this.buf.join("")}startElement(t){let n=gu(t).toLowerCase();if(!pu.hasOwnProperty(n))return this.sanitizedSomething=!0,!Iv.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=t.attributes;for(let o=0;o<r.length;o++){let i=r.item(o),s=i.name,a=s.toLowerCase();if(!Ev.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let c=i.value;gf[a]&&(c=Zo(c)),this.buf.push(" ",s,'="',mu(c),'"')}return this.buf.push(">"),!0}endElement(t){let n=gu(t).toLowerCase();pu.hasOwnProperty(n)&&!ff.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(mu(t))}};function Cv(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function bv(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw mf(t);return t}function Sv(e){let t=e.firstChild;if(t&&Cv(e,t))throw mf(t);return t}function gu(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function mf(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var Tv=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Mv=/([^\#-~ |!])/g;function mu(e){return e.replace(/&/g,"&amp;").replace(Tv,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(Mv,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var Jr;function Ka(e,t){let n=null;try{Jr=Jr||pv(e);let r=t?String(t):"";n=Jr.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=Jr.getInertBodyElement(r)}while(r!==i);let a=new Hs().sanitizeChildren(vu(n)||n);return qo(a)}finally{if(n){let r=vu(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function vu(e){return"content"in e&&xv(e)?e.content:null}function xv(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var Be=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Be||{});function NM(e){let t=vf();return t?hu(t.sanitize(Be.HTML,e)||""):lt(e,"HTML")?hu(Me(e)):Ka(ef(),Kn(e))}function RM(e){let t=vf();return t?t.sanitize(Be.URL,e)||"":lt(e,"URL")?Me(e):Zo(Kn(e))}function vf(){let e=C();return e&&e[Ge].sanitizer}var Nv=/^>|^->|<!--|-->|--!>|<!-$/g,Rv=/(<|>)/g,Av="\u200B$1\u200B";function Ov(e){return e.replace(Nv,t=>t.replace(Rv,Av))}function Pv(e,t,n){let r=e.length;for(;;){let o=e.indexOf(t,n);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}var yf="ng-template";function kv(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&Pv(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if(Ja(e))return!1;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&typeof(i=t[o])=="string";)if(i.toLowerCase()===n)return!0}return!1}function Ja(e){return e.type===4&&e.value!==yf}function Fv(e,t,n){let r=e.type===4&&!n?yf:e.value;return t===r}function Lv(e,t,n){let r=4,o=e.attrs,i=o!==null?Bv(o):0,s=!1;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!Ee(r)&&!Ee(c))return!1;if(s&&Ee(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!Fv(e,c,n)||c===""&&t.length===1){if(Ee(r))return!1;s=!0}}else if(r&8){if(o===null||!kv(e,o,c,n)){if(Ee(r))return!1;s=!0}}else{let l=t[++a],u=Vv(c,o,Ja(e),n);if(u===-1){if(Ee(r))return!1;s=!0;continue}if(l!==""){let d;if(u>i?d="":d=o[u+1].toLowerCase(),r&2&&l!==d){if(Ee(r))return!1;s=!0}}}}return Ee(r)||s}function Ee(e){return(e&1)===0}function Vv(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){let s=t[o];if(s===e)return o;if(s===3||s===6)i=!0;else if(s===1||s===2){let a=t[++o];for(;typeof a=="string";)a=t[++o];continue}else{if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2}return-1}else return Hv(t,e)}function jv(e,t,n=!1){for(let r=0;r<t.length;r++)if(Lv(e,t[r],n))return!0;return!1}function Bv(e){for(let t=0;t<e.length;t++){let n=e[t];if(Im(n))return t}return e.length}function Hv(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function yu(e,t){return e?":not("+t.trim()+")":t}function $v(e){let t=e[0],n=1,r=2,o="",i=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!Ee(s)&&(t+=yu(i,o),o=""),r=s,i=i||!Ee(r);n++}return o!==""&&(t+=yu(i,o)),t}function Uv(e){return e.map($v).join(",")}function zv(e){let t=[],n=[],r=1,o=2;for(;r<e.length;){let i=e[r];if(typeof i=="string")o===2?i!==""&&t.push(i,e[++r]):o===8&&n.push(i);else{if(!Ee(o))break;o=i}r++}return n.length&&t.push(1,...n),t}var xe={};function Gv(e,t){return e.createText(t)}function Wv(e,t,n){e.setValue(t,n)}function qv(e,t){return e.createComment(Ov(t))}function Df(e,t,n){return e.createElement(t,n)}function Co(e,t,n,r,o){e.insertBefore(t,n,r,o)}function _f(e,t,n){e.appendChild(t,n)}function Du(e,t,n,r,o){r!==null?Co(e,t,n,r,o):_f(e,t,n)}function Zv(e,t,n){e.removeChild(null,t,n)}function Yv(e,t,n){e.setAttribute(t,"style",n)}function Qv(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function wf(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&Em(e,t,r),o!==null&&Qv(e,t,o),i!==null&&Yv(e,t,i)}function Xa(e,t,n,r,o,i,s,a,c,l,u){let d=H+r,h=d+o,f=Kv(d,h),p=typeof l=="function"?l():l;return f[y]={type:e,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:t,data:f.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:h,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:c,consts:p,incompleteFirstPass:!1,ssrId:u}}function Kv(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:xe);return n}function Jv(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=Xa(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function ec(e,t,n,r,o,i,s,a,c,l,u){let d=t.blueprint.slice();return d[Ze]=o,d[v]=r|4|128|8|64|1024,(l!==null||e&&e[v]&2048)&&(d[v]|=2048),gd(d),d[te]=d[ln]=e,d[$]=n,d[Ge]=s||e&&e[Ge],d[G]=a||e&&e[G],d[Vn]=c||e&&e[Vn]||null,d[Te]=i,d[Xn]=Zm(),d[Ln]=u,d[ad]=l,d[be]=t.type==2?e[be]:d,d}function Xv(e,t,n){let r=je(t,e),o=Jv(n),i=e[Ge].rendererFactory,s=tc(e,ec(e,o,null,Ef(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function Ef(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function If(e,t,n,r){if(n===0)return-1;let o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function tc(e,t){return e[jn]?e[Xl][Ce]=t:e[jn]=t,e[Xl]=t,t}function ey(e=1){Cf(U(),C(),Qe()+e,!1)}function Cf(e,t,n,r){if(!r)if((t[v]&3)===3){let i=e.preOrderCheckHooks;i!==null&&no(t,i,n)}else{let i=e.preOrderHooks;i!==null&&ro(t,i,0,n)}Mt(n)}var Yo=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Yo||{});function $s(e,t,n,r){let o=b(null);try{let[i,s,a]=e.inputs[n],c=null;(s&Yo.SignalBased)!==0&&(c=t[i][ae]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,c,r,n,i):ld(t,c,i,r)}finally{b(o)}}function bf(e,t,n,r,o){let i=Qe(),s=r&2;try{Mt(-1),s&&t.length>H&&Cf(e,t,H,!1),A(s?2:0,o),n(r,o)}finally{Mt(i),A(s?3:1,o)}}function Qo(e,t,n){sy(e,t,n),(n.flags&64)===64&&ay(e,t,n)}function nc(e,t,n=je){let r=t.localNames;if(r!==null){let o=t.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(t,e):e[s];e[o++]=a}}}function ty(e,t,n,r){let i=r.get(ov,tf)||n===Fe.ShadowDom,s=e.selectRootElement(t,i);return ny(s),s}function ny(e){ry(e)}var ry=()=>null;function oy(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function Sf(e,t,n,r,o,i,s,a){if(!a&&oc(t,e,n,r,o)){un(t)&&iy(n,t.index);return}if(t.type&3){let c=je(t,n);r=oy(r),o=s!=null?s(o,t.value||"",r):o,i.setProperty(c,r,o)}else t.type&12}function iy(e,t){let n=me(t,e);n[v]&16||(n[v]|=64)}function sy(e,t,n){let r=n.directiveStart,o=n.directiveEnd;un(n)&&Xv(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||Do(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=Bn(t,e,s,n);if(Ae(c,t),i!==null&&dy(t,s-r,c,a,n,i),ke(a)){let l=me(n.index,t);l[$]=Bn(t,e,s,n)}}}function ay(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=dm();try{Mt(i);for(let a=r;a<o;a++){let c=e.data[a],l=t[a];_s(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&cy(c,l)}}finally{Mt(-1),_s(s)}}function cy(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function rc(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];jv(t,i.selectors,!1)&&(r??=[],ke(i)?r.unshift(i):r.push(i))}return r}function ly(e,t,n,r,o,i){let s=je(e,t);uy(t[G],s,i,e.value,n,r,o)}function uy(e,t,n,r,o,i,s){if(i==null)e.removeAttribute(t,o,n);else{let a=s==null?Kn(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}function dy(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],l=s[a+1];$s(r,n,c,l)}}function Tf(e,t){let n=e[Vn],r=n?n.get(Se,null):null;r&&r.handleError(t)}function oc(e,t,n,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=!1;if(s)for(let c=0;c<s.length;c+=2){let l=s[c],u=s[c+1],d=t.data[l];$s(d,n[l],u,o),a=!0}if(i)for(let c of i){let l=n[c],u=t.data[c];$s(u,l,r,o),a=!0}return a}function fy(e,t){let n=me(t,e),r=n[y];hy(r,n);let o=n[Ze];o!==null&&n[Ln]===null&&(n[Ln]=of(o,n[Vn])),A(18),ic(r,n,n[$]),A(19,n[$])}function hy(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function ic(e,t,n){Fa(t);try{let r=e.viewQuery;r!==null&&Os(1,r,n);let o=e.template;o!==null&&bf(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[We]?.finishViewCreation(e),e.staticContentQueries&&sf(e,t),e.staticViewQueries&&Os(2,e.viewQuery,n);let i=e.components;i!==null&&py(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[v]&=-5,La()}}function py(e,t){for(let n=0;n<t.length;n++)fy(e,t[n])}function Ko(e,t,n,r){let o=b(null);try{let i=t.tView,a=e[v]&4096?4096:16,c=ec(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),l=e[t.index];c[Ct]=l;let u=e[We];return u!==null&&(c[We]=u.createEmbeddedView(i)),ic(i,c,n),c}finally{b(o)}}function $n(e,t){return!t||t.firstChild===null||Wd(e)}var gy;function sc(e,t){return gy(e,t)}var Le=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Le||{});function Mf(e){return(e.flags&32)===32}function Xt(e,t,n,r,o){if(r!=null){let i,s=!1;Ye(r)?i=r:ze(r)&&(s=!0,r=r[Ze]);let a=ue(r);e===0&&n!==null?o==null?_f(t,n,a):Co(t,n,a,o||null,!0):e===1&&n!==null?Co(t,n,a,o||null,!0):e===2?Zv(t,a,s):e===3&&t.destroyNode(a),i!=null&&Ty(t,e,i,n,o)}}function my(e,t){xf(e,t),t[Ze]=null,t[Te]=null}function vy(e,t,n,r,o,i){r[Ze]=o,r[Te]=t,ei(e,r,n,1,o,i)}function xf(e,t){t[Ge].changeDetectionScheduler?.notify(9),ei(e,t,t[G],2,null,null)}function yy(e){let t=e[jn];if(!t)return ts(e[y],e);for(;t;){let n=null;if(ze(t))n=t[jn];else{let r=t[ee];r&&(n=r)}if(!n){for(;t&&!t[Ce]&&t!==e;)ze(t)&&ts(t[y],t),t=t[te];t===null&&(t=e),ze(t)&&ts(t[y],t),n=t&&t[Ce]}t=n}}function ac(e,t){let n=e[on],r=n.indexOf(t);n.splice(r,1)}function Jo(e,t){if(er(t))return;let n=t[G];n.destroyNode&&ei(e,t,n,3,null,null),yy(t)}function ts(e,t){if(er(t))return;let n=b(null);try{t[v]&=-129,t[v]|=256,t[le]&&Vt(t[le]),_y(e,t),Dy(e,t),t[y].type===1&&t[G].destroy();let r=t[Ct];if(r!==null&&Ye(t[te])){r!==t[te]&&ac(r,t);let o=t[We];o!==null&&o.detachView(e)}Ms(t)}finally{b(n)}}function Dy(e,t){let n=e.cleanup,r=t[fo];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&&(t[fo]=null);let o=t[rt];if(o!==null){t[rt]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=t[bt];if(i!==null){t[bt]=null;for(let s of i)s.destroy()}}function _y(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let o=t[n[r]];if(!(o instanceof xt)){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];A(4,a,c);try{c.call(a)}finally{A(5,a,c)}}else{A(4,o,i);try{i.call(o)}finally{A(5,o,i)}}}}}function wy(e,t,n){return Ey(e,t.parent,n)}function Ey(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[Ze];if(un(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===Fe.None||o===Fe.Emulated)return null}return je(r,n)}function Iy(e,t,n){return by(e,t,n)}function Cy(e,t,n){return e.type&40?je(e,n):null}var by=Cy,_u;function Xo(e,t,n,r){let o=wy(e,r,t),i=t[G],s=r.parent||t[Te],a=Iy(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)Du(i,o,n[c],a,!1);else Du(i,o,n,a,!1);_u!==void 0&&_u(i,r,t,n,o)}function An(e,t){if(t!==null){let n=t.type;if(n&3)return je(t,e);if(n&4)return Us(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return An(e,r);{let o=e[t.index];return Ye(o)?Us(-1,o):ue(o)}}else{if(n&128)return An(e,t.next);if(n&32)return sc(t,e)()||ue(e[t.index]);{let r=Nf(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=Tt(e[be]);return An(o,r)}else return An(e,t.next)}}}return null}function Nf(e,t){if(t!==null){let r=e[be][Te],o=t.projection;return r.projection[o]}return null}function Us(e,t){let n=ee+e+1;if(n<t.length){let r=t[n],o=r[y].firstChild;if(o!==null)return An(r,o)}return t[St]}function cc(e,t,n,r,o,i,s){for(;n!=null;){if(n.type===128){n=n.next;continue}let a=r[n.index],c=n.type;if(s&&t===0&&(a&&Ae(ue(a),r),n.flags|=2),!Mf(n))if(c&8)cc(e,t,n.child,r,o,i,!1),Xt(t,e,o,a,i);else if(c&32){let l=sc(n,r),u;for(;u=l();)Xt(t,e,o,u,i);Xt(t,e,o,a,i)}else c&16?Sy(e,t,r,n,o,i):Xt(t,e,o,a,i);n=s?n.projectionNext:n.next}}function ei(e,t,n,r,o,i){cc(n,r,e.firstChild,t,o,i,!1)}function Sy(e,t,n,r,o,i){let s=n[be],c=s[Te].projection[r.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++){let u=c[l];Xt(t,e,o,u,i)}else{let l=c,u=s[te];Wd(r)&&(l.flags|=128),cc(e,t,l,u,o,i,!0)}}function Ty(e,t,n,r,o){let i=n[St],s=ue(n);i!==s&&Xt(t,e,r,i,o);for(let a=ee;a<n.length;a++){let c=n[a];ei(c[y],c,e,t,r,i)}}function My(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:Le.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=Le.Important),e.setStyle(n,r,o,i))}}function bo(e,t,n,r,o=!1){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=t[n.index];i!==null&&r.push(ue(i)),Ye(i)&&xy(i,r);let s=n.type;if(s&8)bo(e,t,n.child,r);else if(s&32){let a=sc(n,t),c;for(;c=a();)r.push(c)}else if(s&16){let a=Nf(t,n);if(Array.isArray(a))r.push(...a);else{let c=Tt(t[be]);bo(c[y],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function xy(e,t){for(let n=ee;n<e.length;n++){let r=e[n],o=r[y].firstChild;o!==null&&bo(r[y],r,o,t)}e[St]!==e[Ze]&&t.push(e[St])}function Rf(e){if(e[tn]!==null){for(let t of e[tn])t.impl.addSequence(t);e[tn].length=0}}var Af=[];function Ny(e){return e[le]??Ry(e)}function Ry(e){let t=Af.pop()??Object.create(Oy);return t.lView=e,t}function Ay(e){e.lView[le]!==e&&(e.lView=null,Af.push(e))}var Oy=X(J({},ht),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{dn(e.lView)},consumerOnSignalRead(){this.lView[le]=this}});function Py(e){let t=e[le]??Object.create(ky);return t.lView=e,t}var ky=X(J({},ht),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=Tt(e.lView);for(;t&&!Of(t[y]);)t=Tt(t);t&&Aa(t)},consumerOnSignalRead(){this.lView[le]=this}});function Of(e){return e.type!==2}function Pf(e){if(e[bt]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[bt])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[v]&8192)}}var Fy=100;function kf(e,t=!0,n=0){let o=e[Ge].rendererFactory,i=!1;i||o.begin?.();try{Ly(e,n)}catch(s){throw t&&Tf(e,s),s}finally{i||o.end?.()}}function Ly(e,t){let n=Ed();try{go(!0),zs(e,t);let r=0;for(;Ho(e);){if(r===Fy)throw new D(103,!1);r++,zs(e,1)}}finally{go(n)}}function Vy(e,t,n,r){if(er(t))return;let o=t[v],i=!1,s=!1;Fa(t);let a=!0,c=null,l=null;i||(Of(e)?(l=Ny(t),c=Lt(l)):ol()===null?(a=!1,l=Py(t),c=Lt(l)):t[le]&&(Vt(t[le]),t[le]=null));try{gd(t),cm(e.bindingStartIndex),n!==null&&bf(e,t,n,2,r);let u=(o&3)===3;if(!i)if(u){let f=e.preOrderCheckHooks;f!==null&&no(t,f,null)}else{let f=e.preOrderHooks;f!==null&&ro(t,f,0,null),Ki(t,0)}if(s||jy(t),Pf(t),Ff(t,0),e.contentQueries!==null&&sf(e,t),!i)if(u){let f=e.contentCheckHooks;f!==null&&no(t,f)}else{let f=e.contentHooks;f!==null&&ro(t,f,1),Ki(t,1)}Hy(e,t);let d=e.components;d!==null&&Vf(t,d,0);let h=e.viewQuery;if(h!==null&&Os(2,h,r),!i)if(u){let f=e.viewCheckHooks;f!==null&&no(t,f)}else{let f=e.viewHooks;f!==null&&ro(t,f,2),Ki(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[to]){for(let f of t[to])f();t[to]=null}i||(Rf(t),t[v]&=-73)}catch(u){throw i||dn(t),u}finally{l!==null&&(wn(l,c),a&&Ay(l)),La()}}function Ff(e,t){for(let n=Qd(e);n!==null;n=Kd(n))for(let r=ee;r<n.length;r++){let o=n[r];Lf(o,t)}}function jy(e){for(let t=Qd(e);t!==null;t=Kd(t)){if(!(t[v]&2))continue;let n=t[on];for(let r=0;r<n.length;r++){let o=n[r];Aa(o)}}}function By(e,t,n){A(18);let r=me(t,e);Lf(r,n),A(19,r[$])}function Lf(e,t){Ra(e)&&zs(e,t)}function zs(e,t){let r=e[y],o=e[v],i=e[le],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&En(i)),s||=!1,i&&(i.dirty=!1),e[v]&=-9217,s)Vy(r,e,r.template,e[$]);else if(o&8192){Pf(e),Ff(e,1);let a=r.components;a!==null&&Vf(e,a,1),Rf(e)}}function Vf(e,t,n){for(let r=0;r<t.length;r++)By(e,t[r],n)}function Hy(e,t){let n=e.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];um(s,i);let c=t[i];A(24,c),a(2,c),A(25,c)}}}finally{Mt(-1)}}function lc(e,t){let n=Ed()?64:1088;for(e[Ge].changeDetectionScheduler?.notify(t);e;){e[v]|=n;let r=Tt(e);if(po(e)&&!r)return e;e=r}return null}function jf(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function Bf(e,t){let n=ee+t;if(n<e.length)return e[n]}function ti(e,t,n,r=!0){let o=t[y];if($y(o,t,e,n),r){let s=Us(n,e),a=t[G],c=a.parentNode(e[St]);c!==null&&vy(o,e[Te],a,t,c,s)}let i=t[Ln];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function Hf(e,t){let n=Un(e,t);return n!==void 0&&Jo(n[y],n),n}function Un(e,t){if(e.length<=ee)return;let n=ee+t,r=e[n];if(r){let o=r[Ct];o!==null&&o!==e&&ac(o,r),t>0&&(e[n-1][Ce]=r[Ce]);let i=lo(e,ee+t);my(r[y],r);let s=i[We];s!==null&&s.detachView(i[y]),r[te]=null,r[Ce]=null,r[v]&=-129}return r}function $y(e,t,n,r){let o=ee+r,i=n.length;r>0&&(n[o-1][Ce]=t),r<i-ee?(t[Ce]=n[o],Qu(n,ee+r,t)):(n.push(t),t[Ce]=null),t[te]=n;let s=t[Ct];s!==null&&n!==s&&$f(s,t);let a=t[We];a!==null&&a.insertView(e),ys(t),t[v]|=128}function $f(e,t){let n=e[on],r=t[te];if(ze(r))e[v]|=2;else{let o=r[te][be];t[be]!==o&&(e[v]|=2)}n===null?e[on]=[t]:n.push(t)}var Nt=class{_lView;_cdRefInjectingView;notifyErrorHandler;_appRef=null;_attachedToViewContainer=!1;get rootNodes(){let t=this._lView,n=t[y];return bo(n,t,n.firstChild,[])}constructor(t,n,r=!0){this._lView=t,this._cdRefInjectingView=n,this.notifyErrorHandler=r}get context(){return this._lView[$]}get dirty(){return!!(this._lView[v]&9280)||!!this._lView[le]?.dirty}set context(t){this._lView[$]=t}get destroyed(){return er(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[te];if(Ye(t)){let n=t[ho],r=n?n.indexOf(this):-1;r>-1&&(Un(t,r),lo(n,r))}this._attachedToViewContainer=!1}Jo(this._lView[y],this._lView)}onDestroy(t){md(this._lView,t)}markForCheck(){lc(this._cdRefInjectingView||this._lView,4)}markForRefresh(){Aa(this._cdRefInjectingView||this._lView)}detach(){this._lView[v]&=-129}reattach(){ys(this._lView),this._lView[v]|=128}detectChanges(){this._lView[v]|=1024,kf(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new D(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=po(this._lView),n=this._lView[Ct];n!==null&&!t&&ac(n,this._lView),xf(this._lView[y],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new D(902,!1);this._appRef=t;let n=po(this._lView),r=this._lView[Ct];r!==null&&!n&&$f(r,this._lView),ys(this._lView)}},Rt=(()=>{class e{static __NG_ELEMENT_ID__=Gy}return e})(),Uy=Rt,zy=class extends Uy{_declarationLView;_declarationTContainer;elementRef;constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){let o=Ko(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new Nt(o)}};function Gy(){return ni(de(),C())}function ni(e,t){return e.type&4?new zy(t,e,hn(e,t)):null}function sr(e,t,n,r,o){let i=e.data[t];if(i===null)i=Wy(e,t,n,r,o),lm()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=am();i.injectorIndex=s===null?-1:s.injectorIndex}return at(i,!0),i}function Wy(e,t,n,r,o){let i=Dd(),s=Pa(),a=s?i:i&&i.parent,c=e.data[t]=Zy(e,a,n,t,r,o);return qy(e,c,i,s),c}function qy(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function Zy(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return om()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var OM=new RegExp(`^(\\d+)*(${rv}|${nv})*(.*)`);var Yy=()=>null;function zn(e,t){return Yy(e,t)}var Gs=class{},So=class{},Ws=class{resolveComponentFactory(t){throw Error(`No component factory found for ${ge(t)}.`)}},Gn=class{static NULL=new Ws},ve=class{},ar=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>Qy()}return e})();function Qy(){let e=C(),t=de(),n=me(t.index,e);return(ze(n)?n:e)[G]}var Ky=(()=>{class e{static \u0275prov=_({token:e,providedIn:"root",factory:()=>null})}return e})();function qs(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")i=a;else if(i==1)o=us(o,a);else if(i==2){let c=a,l=t[++s];r=us(r,c+": "+l+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function ne(e,t=T.Default){let n=C();if(n===null)return x(e,t);let r=de();return Vd(r,n,Y(e),t)}function uc(e,t,n,r,o){let i=r===null?null:{"":-1},s=o(e,n);if(s!==null){let a,c=null,l=null,u=Xy(s);u===null?a=s:[a,c,l]=u,nD(e,t,n,a,i,c,l)}i!==null&&r!==null&&Jy(n,r,i)}function Jy(e,t,n){let r=e.localNames=[];for(let o=0;o<t.length;o+=2){let i=n[t[o+1]];if(i==null)throw new D(-301,!1);r.push(t[o],i)}}function Xy(e){let t=null,n=!1;for(let s=0;s<e.length;s++){let a=e[s];if(s===0&&ke(a)&&(t=a),a.findHostDirectiveDefs!==null){n=!0;break}}if(!n)return null;let r=null,o=null,i=null;for(let s of e)s.findHostDirectiveDefs!==null&&(r??=[],o??=new Map,i??=new Map,eD(s,r,i,o)),s===t&&(r??=[],r.push(s));return r!==null?(r.push(...t===null?e:e.slice(1)),[r,o,i]):null}function eD(e,t,n,r){let o=t.length;e.findHostDirectiveDefs(e,t,r),n.set(e,[o,t.length-1])}function tD(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function nD(e,t,n,r,o,i,s){let a=r.length,c=!1;for(let h=0;h<a;h++){let f=r[h];!c&&ke(f)&&(c=!0,tD(e,n,h)),Is(Do(n,t),e,f.type)}cD(n,e.data.length,a);for(let h=0;h<a;h++){let f=r[h];f.providersResolver&&f.providersResolver(f)}let l=!1,u=!1,d=If(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let h=0;h<a;h++){let f=r[h];if(n.mergedAttrs=sn(n.mergedAttrs,f.hostAttrs),oD(e,n,t,d,f),aD(d,f,o),s!==null&&s.has(f)){let[m,M]=s.get(f);n.directiveToIndex.set(f.type,[d,m+n.directiveStart,M+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 p=f.type.prototype;!l&&(p.ngOnChanges||p.ngOnInit||p.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),l=!0),!u&&(p.ngOnChanges||p.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),u=!0),d++}rD(e,n,i)}function rD(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))wu(0,t,o,r),wu(1,t,o,r),Iu(t,r,!1);else{let i=n.get(o);Eu(0,t,i,r),Eu(1,t,i,r),Iu(t,r,!0)}}}function wu(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[i]??=[],s[i].push(r),Uf(t,i)}}function Eu(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s=o[i],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),Uf(t,s)}}function Uf(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function Iu(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||Ja(e)){e.initialInputs??=[],e.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===t){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]===t){s??=[],s.push(l[u+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function oD(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=Et(o.type,!0)),s=new xt(i,ke(o),ne);e.blueprint[r]=s,n[r]=s,iD(e,t,r,If(e,n,o.hostVars,xe),o)}function iD(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;sD(s)!=a&&s.push(a),s.push(n,r,i)}}function sD(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function aD(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;ke(t)&&(n[""]=e)}}function cD(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function zf(e,t,n,r,o,i,s,a){let c=t.consts,l=ot(c,s),u=sr(t,e,2,r,l);return i&&uc(t,n,u,ot(c,a),o),u.mergedAttrs=sn(u.mergedAttrs,u.attrs),u.attrs!==null&&qs(u,u.attrs,!1),u.mergedAttrs!==null&&qs(u,u.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,u),u}function Gf(e,t){ja(e,t),xa(t)&&e.queries.elementEnd(t)}var Zs=class extends Gn{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=It(t);return new Wn(n,this.ngModule)}};function lD(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&Yo.SignalBased)!==0};return o&&(i.transform=o),i})}function uD(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function dD(e,t,n){let r=t instanceof Pe?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new ws(n,r):n}function fD(e){let t=e.get(ve,null);if(t===null)throw new D(407,!1);let n=e.get(Ky,null),r=e.get(it,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r}}function hD(e,t){let n=(e.selectors[0][0]||"div").toLowerCase();return Df(t,n,n==="svg"?hd:n==="math"?Yg:null)}var Wn=class extends So{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;get inputs(){return lD(this.componentDef.inputs)}get outputs(){return uD(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=Uv(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,o){A(22);let i=b(null);try{let s=this.componentDef,a=r?["ng-version","19.2.0"]:zv(this.componentDef.selectors[0]),c=Xa(0,null,null,1,0,null,null,null,null,[a],null),l=dD(s,o||this.ngModule,t),u=fD(l),d=u.rendererFactory.createRenderer(null,s),h=r?ty(d,r,s.encapsulation,l):hD(s,d),f=ec(null,c,null,512|Ef(s),null,null,u,d,l,null,of(h,l,!0));f[H]=h,Fa(f);let p=null;try{let m=zf(H,c,f,"#host",()=>[this.componentDef],!0,0);h&&(wf(d,h,m),Ae(h,f)),Qo(c,f,m),Qa(c,m,f),Gf(c,m),n!==void 0&&pD(m,this.ngContentSelectors,n),p=me(m.index,f),f[$]=p[$],ic(c,f,null)}catch(m){throw p!==null&&Ms(p),Ms(f),m}finally{A(23),La()}return new Ys(this.componentType,f)}finally{b(i)}}},Ys=class extends Gs{_rootLView;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n){super(),this._rootLView=n,this._tNode=Na(n[y],H),this.location=hn(this._tNode,n),this.instance=me(this._tNode.index,n)[$],this.hostView=this.changeDetectorRef=new Nt(n,void 0,!1),this.componentType=t}setInput(t,n){let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView,i=oc(r,o[y],o,t,n);this.previousInputValues.set(t,n);let s=me(r.index,o);lc(s,1)}get injector(){return new wt(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function pD(e,t,n){let r=e.projection=[];for(let o=0;o<t.length;o++){let i=n[o];r.push(i!=null&&i.length?Array.from(i):null)}}var ut=(()=>{class e{static __NG_ELEMENT_ID__=gD}return e})();function gD(){let e=de();return qf(e,C())}var mD=ut,Wf=class extends mD{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return hn(this._hostTNode,this._hostLView)}get injector(){return new wt(this._hostTNode,this._hostLView)}get parentInjector(){let t=Ba(this._hostTNode,this._hostLView);if(Ad(t)){let n=vo(t,this._hostLView),r=mo(t),o=n[y].data[r+8];return new wt(o,n)}else return new wt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=Cu(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-ee}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=zn(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,$n(this._hostTNode,s)),a}createComponent(t,n,r,o,i){let s=t&&!Gg(t),a;if(s)a=n;else{let p=n||{};a=p.index,r=p.injector,o=p.projectableNodes,i=p.environmentInjector||p.ngModuleRef}let c=s?t:new Wn(It(t)),l=r||this.parentInjector;if(!i&&c.ngModule==null){let m=(s?l:this.parentInjector).get(Pe,null);m&&(i=m)}let u=It(c.componentType??{}),d=zn(this._lContainer,u?.id??null),h=d?.firstChild??null,f=c.create(l,o,h,i);return this.insertImpl(f.hostView,a,$n(this._hostTNode,d)),f}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(Kg(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[te],l=new Wf(c,c[Te],c[te]);l.detach(l.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return ti(s,o,i,r),t.attachToViewContainerRef(),Qu(ns(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=Cu(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Un(this._lContainer,n);r&&(lo(ns(this._lContainer),n),Jo(r[y],r))}detach(t){let n=this._adjustIndex(t,-1),r=Un(this._lContainer,n);return r&&lo(ns(this._lContainer),n)!=null?new Nt(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Cu(e){return e[ho]}function ns(e){return e[ho]||(e[ho]=[])}function qf(e,t){let n,r=t[e.index];return Ye(r)?n=r:(n=jf(r,t,null,e),t[e.index]=n,tc(t,n)),yD(n,t,e,r),new Wf(n,e,t)}function vD(e,t){let n=e[G],r=n.createComment(""),o=je(t,e),i=n.parentNode(o);return Co(n,i,r,n.nextSibling(o),!1),r}var yD=wD,DD=()=>!1;function _D(e,t,n){return DD(e,t,n)}function wD(e,t,n,r){if(e[St])return;let o;n.type&8?o=ue(r):o=vD(t,n),e[St]=o}var Qs=class e{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},Ks=class e{queries;constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.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 e(o)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}finishViewCreation(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)dc(t,n).matches!==null&&this.queries[n].setDirty()}},Js=class{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=xD(t):this.predicate=t}},Xs=class e{queries;constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){let o=n!==null?n.length:0,i=this.getByIndex(r).embeddedTView(t,o);i&&(i.indexInDeclarationView=r,n!==null?n.push(i):n=[i])}return n!==null?new e(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}},ea=class e{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(t,n=-1){this.metadata=t,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=t.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){let i=r[o];this.matchTNodeWithReadOption(t,n,ED(n,i)),this.matchTNodeWithReadOption(t,n,oo(n,t,i,!1,!1))}else r===Rt?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,oo(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===fe||o===ut||o===Rt&&n.type&4)this.addMatch(n.index,-2);else{let i=oo(n,t,o,!1,!1);i!==null&&this.addMatch(n.index,i)}else this.addMatch(n.index,r)}}addMatch(t,n){this.matches===null?this.matches=[t,n]:this.matches.push(t,n)}};function ED(e,t){let n=e.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1]}return null}function ID(e,t){return e.type&11?hn(e,t):e.type&4?ni(e,t):null}function CD(e,t,n,r){return n===-1?ID(t,e):n===-2?bD(e,t,r):Bn(e,e[y],n,t)}function bD(e,t,n){if(n===fe)return hn(t,e);if(n===Rt)return ni(t,e);if(n===ut)return qf(t,e)}function Zf(e,t,n,r){let o=t[We].queries[r];if(o.matches===null){let i=e.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(CD(t,u,s[c+1],n.metadata.read))}}o.matches=a}return o.matches}function ta(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=Zf(e,t,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=t[-c];for(let d=ee;d<u.length;d++){let h=u[d];h[Ct]===h[te]&&ta(h[y],h,l,r)}if(u[on]!==null){let d=u[on];for(let h=0;h<d.length;h++){let f=d[h];ta(f[y],f,l,r)}}}}}return r}function SD(e,t){return e[We].queries[t].queryList}function TD(e,t,n){let r=new Ts((n&4)===4);return em(e,t,r,r.destroy),(t[We]??=new Ks).queries.push(new Qs(r))-1}function MD(e,t,n){let r=U();return r.firstCreatePass&&(ND(r,new Js(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=!0)),TD(r,C(),t)}function xD(e){return e.split(",").map(t=>t.trim())}function ND(e,t,n){e.queries===null&&(e.queries=new Xs),e.queries.track(new ea(t,n))}function dc(e,t){return e.queries.getByIndex(t)}function RD(e,t){let n=e[y],r=dc(n,t);return r.crossesNgTemplate?ta(n,e,t,[]):Zf(n,e,r,t)}function Yf(e,t){let n=Object.create(Bu),r=new Io;n.value=e;function o(){return _n(n),bu(n.value),n.value}return o[ae]=n,o.asReadonly=Gd.bind(o),o.set=i=>{n.equal(n.value,i)||(In(n,i),r.emit(i))},o.update=i=>{bu(n.value),o.set(i(n.value))},o.subscribe=r.subscribe.bind(r),o.destroyRef=r.destroyRef,o}function bu(e){if(e===Oo)throw new D(952,!1)}function Su(e,t){return Yf(e,t)}function AD(e){return Yf(Oo,e)}var kM=(Su.required=AD,Su);var an=class{};var To=class extends an{injector;componentFactoryResolver=new Zs(this);instance=null;constructor(t){super();let n=new Fn([...t.providers,{provide:an,useValue:this},{provide:Gn,useValue:this.componentFactoryResolver}],t.parent||Lo(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function OD(e,t,n=null){return new To({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var PD=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=td(!1,n.type),o=r.length>0?OD([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=_({token:e,providedIn:"environment",factory:()=>new e(x(Pe))})}return e})();function fc(e){return Yn(()=>{let t=Qf(e),n=X(J({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===qd.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(PD).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Fe.Emulated,styles:e.styles||re,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&ct("NgStandalone"),Kf(n);let r=e.dependencies;return n.directiveDefs=Tu(r,!1),n.pipeDefs=Tu(r,!0),n.id=jD(n),n})}function kD(e){return It(e)||Ta(e)}function FD(e){return e!==null}function cr(e){return Yn(()=>({type:e.type,bootstrap:e.bootstrap||re,declarations:e.declarations||re,imports:e.imports||re,exports:e.exports||re,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function LD(e,t){if(e==null)return Oe;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[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=Yo.None,c=null),n[i]=[r,a,c],t[i]=s}return n}function VD(e){if(e==null)return Oe;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function Pt(e){return Yn(()=>{let t=Qf(e);return Kf(t),t})}function ri(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function Qf(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||Oe,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||re,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:LD(e.inputs,t),outputs:VD(e.outputs),debugInfo:null}}function Kf(e){e.features?.forEach(t=>t(e))}function Tu(e,t){if(!e)return null;let n=t?Xu:kD;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(FD)}function jD(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function BD(e){return Object.getPrototypeOf(e.prototype).constructor}function Jf(e){let t=BD(e.type),n=!0,r=[e];for(;t;){let o;if(ke(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new D(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=rs(e.inputs),s.declaredInputs=rs(e.declaredInputs),s.outputs=rs(e.outputs);let a=o.hostBindings;a&&GD(e,a);let c=o.viewQuery,l=o.contentQueries;if(c&&UD(e,c),l&&zD(e,l),HD(e,o),ug(e.outputs,o.outputs),ke(o)&&o.data.animation){let u=e.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(e),a===Jf&&(n=!1)}}t=Object.getPrototypeOf(t)}$D(r)}function HD(e,t){for(let n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;let r=t.inputs[n];r!==void 0&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n])}}function $D(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=sn(o.hostAttrs,n=sn(n,o.hostAttrs))}}function rs(e){return e===Oe?{}:e===re?[]:e}function UD(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function zD(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function GD(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function FM(e){let t=n=>{let r=Array.isArray(e);n.hostDirectives===null?(n.findHostDirectiveDefs=Xf,n.hostDirectives=r?e.map(na):[e]):r?n.hostDirectives.unshift(...e.map(na)):n.hostDirectives.unshift(e)};return t.ngInherit=!0,t}function Xf(e,t,n){if(e.hostDirectives!==null)for(let r of e.hostDirectives)if(typeof r=="function"){let o=r();for(let i of o)Mu(na(i),t,n)}else Mu(r,t,n)}function Mu(e,t,n){let r=Ta(e.directive);WD(r.declaredInputs,e.inputs),Xf(r,t,n),n.set(r,e),t.push(r)}function na(e){return typeof e=="function"?{directive:Y(e),inputs:Oe,outputs:Oe}:{directive:Y(e.directive),inputs:xu(e.inputs),outputs:xu(e.outputs)}}function xu(e){if(e===void 0||e.length===0)return Oe;let t={};for(let n=0;n<e.length;n+=2)t[e[n]]=e[n+1];return t}function WD(e,t){for(let n in t)if(t.hasOwnProperty(n)){let r=t[n],o=e[n];e[r]=o}}function eh(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function th(e,t,n){return e[t]=n}function Ve(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function qD(e,t,n,r){let o=Ve(e,t,n);return Ve(e,t+1,r)||o}function ZD(e,t,n,r,o,i,s,a,c){let l=t.consts,u=sr(t,e,4,s||null,a||null);Oa()&&uc(t,n,u,ot(l,c),rc),u.mergedAttrs=sn(u.mergedAttrs,u.attrs),ja(t,u);let d=u.tView=Xa(2,u,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,l,null);return t.queries!==null&&(t.queries.template(t,u),d.queries=t.queries.embeddedTView(u)),u}function ra(e,t,n,r,o,i,s,a,c,l){let u=n+H,d=t.firstCreatePass?ZD(u,t,e,r,o,i,s,a,c):t.data[u];at(d,!1);let h=QD(t,e,d,n);Uo()&&Xo(t,e,h,d),Ae(h,e);let f=jf(h,e,h,d);return e[u]=f,tc(e,f),_D(f,d,e),jo(d)&&Qo(t,e,d),c!=null&&nc(e,d,l),d}function YD(e,t,n,r,o,i,s,a){let c=C(),l=U(),u=ot(l.consts,i);return ra(c,l,e,t,n,r,o,u,s,a),YD}var QD=KD;function KD(e,t,n,r){return zo(!0),t[G].createComment("")}var nh=new E("");var rh=(()=>{class e{static \u0275prov=_({token:e,providedIn:"root",factory:()=>new Mo})}return e})(),Mo=class{queuedEffectCount=0;queues=new Map;schedule(t){this.enqueue(t)}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),this.queuedEffectCount--)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||(this.queuedEffectCount++,r.add(t))}flush(){for(;this.queuedEffectCount>0;)for(let[t,n]of this.queues)t===null?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(let n of t)t.delete(n),this.queuedEffectCount--,n.run()}};function hc(e){return!!e&&typeof e.then=="function"}function oh(e){return!!e&&typeof e.subscribe=="function"}var JD=new E("");var ih=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=g(JD,{optional:!0})??[];injector=g(K);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=id(this.injector,o);if(hc(i))n.push(i);else if(oh(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||e)};static \u0275prov=_({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),XD=new E("");function e_(){gl(()=>{throw new D(600,!1)})}function t_(e){return e.isBoundToModule}var n_=10;var st=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=g($m);afterRenderManager=g(nf);zonelessEnabled=g(Go);rootEffectScheduler=g(rh);dirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new S;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=g(rr).hasPendingTasks.pipe($e(n=>!n));constructor(){g(pn,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=g(Pe);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){A(10);let o=n instanceof So;if(!this._injector.get(ih).done){let h=!o&&Og(n),f=!1;throw new D(405,f)}let s;o?s=n:s=this._injector.get(Gn).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=t_(s)?void 0:this._injector.get(an),c=r||s.selector,l=s.create(K.NULL,[],c,a),u=l.location.nativeElement,d=l.injector.get(nh,null);return d?.registerApplication(u),l.onDestroy(()=>{this.detachView(l.hostView),io(this.components,l),d?.unregisterApplication(u)}),this._loadComponent(l),A(11,l),l}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){A(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(Za.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new D(101,!1);let n=b(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,b(n),this.afterTick.next(),A(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(ve,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<n_;)A(14),this.synchronizeOnce(),A(15)}synchronizeOnce(){if(this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),this.dirtyFlags&7){let n=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:r,notifyErrorHandler:o}of this.allViews)r_(r,o,n,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}else this._rendererFactory?.begin?.(),this._rendererFactory?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>Ho(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;io(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(XD,[]).forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>io(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new D(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||e)};static \u0275prov=_({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function io(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function r_(e,t,n,r){if(!n&&!Ho(e))return;kf(e,t,n&&!r?0:1)}function sh(e,t,n,r){let o=C(),i=nr();if(Ve(o,i,t)){let s=U(),a=Va();ly(a,o,e,t,n,r)}return sh}function pc(e,t,n,r){return Ve(e,nr(),n)?t+Kn(n)+r:xe}function Xr(e,t){return e<<17|t<<2}function At(e){return e>>17&32767}function o_(e){return(e&2)==2}function i_(e,t){return e&131071|t<<17}function oa(e){return e|2}function cn(e){return(e&131068)>>2}function os(e,t){return e&-131069|t<<2}function s_(e){return(e&1)===1}function ia(e){return e|1}function a_(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=At(s),c=cn(s);e[r]=n;let l=!1,u;if(Array.isArray(n)){let d=n;u=d[1],(u===null||Jn(d,u)>0)&&(l=!0)}else u=n;if(o)if(c!==0){let h=At(e[a+1]);e[r+1]=Xr(h,a),h!==0&&(e[h+1]=os(e[h+1],r)),e[a+1]=i_(e[a+1],r)}else e[r+1]=Xr(a,0),a!==0&&(e[a+1]=os(e[a+1],r)),a=r;else e[r+1]=Xr(c,0),a===0?a=r:e[c+1]=os(e[c+1],r),c=r;l&&(e[r+1]=oa(e[r+1])),Nu(e,u,r,!0),Nu(e,u,r,!1),c_(t,u,e,r,i),s=Xr(a,c),i?t.classBindings=s:t.styleBindings=s}function c_(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Jn(i,t)>=0&&(n[r+1]=ia(n[r+1]))}function Nu(e,t,n,r){let o=e[n+1],i=t===null,s=r?At(o):cn(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],l=e[s+1];l_(c,t)&&(a=!0,e[s+1]=r?ia(l):oa(l)),s=r?At(l):cn(l)}a&&(e[n+1]=r?oa(o):ia(o))}function l_(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Jn(e,t)>=0:!1}var Ie={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function u_(e){return e.substring(Ie.key,Ie.keyEnd)}function d_(e){return f_(e),ah(e,ch(e,0,Ie.textEnd))}function ah(e,t){let n=Ie.textEnd;return n===t?-1:(t=Ie.keyEnd=h_(e,Ie.key=t,n),ch(e,t,n))}function f_(e){Ie.key=0,Ie.keyEnd=0,Ie.value=0,Ie.valueEnd=0,Ie.textEnd=e.length}function ch(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function h_(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}function p_(e,t,n){let r=C(),o=nr();if(Ve(r,o,t)){let i=U(),s=Va();Sf(i,s,r,e,t,r[G],n,!1)}return p_}function sa(e,t,n,r,o){oc(t,e,n,o?"class":"style",r)}function gc(e,t,n){return uh(e,t,n,!1),gc}function oi(e,t){return uh(e,t,null,!0),oi}function LM(e){dh(__,lh,e,!0)}function lh(e,t){for(let n=d_(t);n>=0;n=ah(t,n))ko(e,u_(t),!0)}function uh(e,t,n,r){let o=C(),i=U(),s=Id(2);if(i.firstUpdatePass&&hh(i,e,s,r),t!==xe&&Ve(o,s,t)){let a=i.data[Qe()];ph(i,a,o,o[G],e,o[s+1]=E_(t,n),r,s)}}function dh(e,t,n,r){let o=U(),i=Id(2);o.firstUpdatePass&&hh(o,null,i,r);let s=C();if(n!==xe&&Ve(s,i,n)){let a=o.data[Qe()];if(gh(a,r)&&!fh(o,i)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(n=us(c,n||"")),sa(o,a,s,n,r)}else w_(o,a,s,s[G],s[i+1],s[i+1]=D_(e,t,n),r,i)}}function fh(e,t){return t>=e.expandoStartIndex}function hh(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Qe()],s=fh(e,n);gh(i,r)&&t===null&&!s&&(t=!1),t=g_(o,i,t,r),a_(o,i,t,n,s,r)}}function g_(e,t,n,r){let o=fm(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=is(null,e,t,n,r),n=qn(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=is(o,e,t,n,r),i===null){let c=m_(e,t,r);c!==void 0&&Array.isArray(c)&&(c=is(null,e,t,c[1],r),c=qn(c,t.attrs,r),v_(e,t,r,c))}else i=y_(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function m_(e,t,n){let r=n?t.classBindings:t.styleBindings;if(cn(r)!==0)return e[At(r)]}function v_(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[At(o)]=r}function y_(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=qn(r,s,n)}return qn(r,t.attrs,n)}function is(e,t,n,r,o){let i=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(i=t[a],r=qn(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function qn(e,t,n){let r=n?1:2,o=-1;if(t!==null)for(let i=0;i<t.length;i++){let s=t[i];typeof s=="number"?o=s:o===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),ko(e,s,n?!0:t[++i]))}return e===void 0?null:e}function D_(e,t,n){if(n==null||n==="")return re;let r=[],o=Me(n);if(Array.isArray(o))for(let i=0;i<o.length;i++)e(r,o[i],!0);else if(typeof o=="object")for(let i in o)o.hasOwnProperty(i)&&e(r,i,o[i]);else typeof o=="string"&&t(r,o);return r}function __(e,t,n){let r=String(t);r!==""&&!r.includes(" ")&&ko(e,r,n)}function w_(e,t,n,r,o,i,s,a){o===xe&&(o=re);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 h=c<o.length?o[c+1]:void 0,f=l<i.length?i[l+1]:void 0,p=null,m;u===d?(c+=2,l+=2,h!==f&&(p=d,m=f)):d===null||u!==null&&u<d?(c+=2,p=u):(l+=2,p=d,m=f),p!==null&&ph(e,t,n,r,p,m,s,a),u=c<o.length?o[c]:null,d=l<i.length?i[l]:null}}function ph(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,l=c[a+1],u=s_(l)?Ru(c,t,n,o,cn(l),s):void 0;if(!xo(u)){xo(i)||o_(l)&&(i=Ru(c,null,n,o,a,s));let d=pd(Qe(),n);My(r,s,d,o,i)}}function Ru(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let c=e[o],l=Array.isArray(c),u=l?c[1]:c,d=u===null,h=n[o+1];h===xe&&(h=d?re:void 0);let f=d?Yi(h,r):u===r?h:void 0;if(l&&!xo(f)&&(f=Yi(c,r)),xo(f)&&(a=f,s))return a;let p=e[o+1];o=s?At(p):cn(p)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=Yi(c,r))}return a}function xo(e){return e!==void 0}function E_(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=ge(Me(e)))),e}function gh(e,t){return(e.flags&(t?8:16))!==0}function VM(e,t,n){let r=C(),o=pc(r,e,t,n);dh(ko,lh,o,!0)}var aa=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,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(t,n){this.attach(n,this.detach(t))}};function ss(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function I_(e,t,n){let r,o,i=0,s=e.length-1,a=void 0;if(Array.isArray(t)){let c=t.length-1;for(;i<=s&&i<=c;){let l=e.at(i),u=t[i],d=ss(i,l,i,u,n);if(d!==0){d<0&&e.updateValue(i,u),i++;continue}let h=e.at(s),f=t[c],p=ss(s,h,c,f,n);if(p!==0){p<0&&e.updateValue(s,f),s--,c--;continue}let m=n(i,l),M=n(s,h),N=n(i,u);if(Object.is(N,M)){let se=n(c,f);Object.is(se,m)?(e.swap(i,s),e.updateValue(s,f),c--,s--):e.move(s,i),e.updateValue(i,u),i++;continue}if(r??=new No,o??=Ou(e,i,s,n),ca(e,r,i,N))e.updateValue(i,u),i++,s++;else if(o.has(N))r.set(m,e.detach(i)),s--;else{let se=e.create(i,t[i]);e.attach(i,se),i++,s++}}for(;i<=c;)Au(e,r,n,i,t[i]),i++}else if(t!=null){let c=t[Symbol.iterator](),l=c.next();for(;!l.done&&i<=s;){let u=e.at(i),d=l.value,h=ss(i,u,i,d,n);if(h!==0)h<0&&e.updateValue(i,d),i++,l=c.next();else{r??=new No,o??=Ou(e,i,s,n);let f=n(i,d);if(ca(e,r,i,f))e.updateValue(i,d),i++,s++,l=c.next();else if(!o.has(f))e.attach(i,e.create(i,d)),i++,s++,l=c.next();else{let p=n(i,u);r.set(p,e.detach(i)),s--}}}for(;!l.done;)Au(e,r,n,e.length,l.value),l=c.next()}for(;i<=s;)e.destroy(e.detach(s--));r?.forEach(c=>{e.destroy(c)})}function ca(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function Au(e,t,n,r,o){if(ca(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function Ou(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var No=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);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(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}};function jM(e,t){ct("NgControlFlow");let n=C(),r=nr(),o=n[r]!==xe?n[r]:-1,i=o!==-1?Ro(n,H+o):void 0,s=0;if(Ve(n,r,e)){let a=b(null);try{if(i!==void 0&&Hf(i,s),e!==-1){let c=H+e,l=Ro(n,c),u=fa(n[y],c),d=zn(l,u.tView.ssrId),h=Ko(n,u,t,{dehydratedView:d});ti(l,h,s,$n(u,d))}}finally{b(a)}}else if(i!==void 0){let a=Bf(i,s);a!==void 0&&(a[$]=t)}}var la=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-ee}};function BM(e,t){return t}var ua=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function HM(e,t,n,r,o,i,s,a,c,l,u,d,h){ct("NgControlFlow");let f=C(),p=U(),m=c!==void 0,M=C(),N=a?s.bind(M[be][$]):s,se=new ua(m,N);M[H+e]=se,ra(f,p,e+1,t,n,r,o,ot(p.consts,i)),m&&ra(f,p,e+2,c,l,u,d,ot(p.consts,h))}var da=class extends aa{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r}get length(){return this.lContainer.length-ee}at(t){return this.getLView(t)[$].$implicit}attach(t,n){let r=n[Ln];this.needsIndexUpdate||=t!==this.length,ti(this.lContainer,n,t,$n(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,C_(this.lContainer,t)}create(t,n){let r=zn(this.lContainer,this.templateTNode.tView.ssrId),o=Ko(this.hostLView,this.templateTNode,new la(this.lContainer,n,t),{dehydratedView:r});return this.operationsCounter?.recordCreate(),o}destroy(t){Jo(t[y],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[$].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[$].$index=t}getLView(t){return b_(this.lContainer,t)}};function $M(e){let t=b(null),n=Qe();try{let r=C(),o=r[y],i=r[n],s=n+1,a=Ro(r,s);if(i.liveCollection===void 0){let l=fa(o,s);i.liveCollection=new da(a,r,l)}else i.liveCollection.reset();let c=i.liveCollection;if(I_(c,e,i.trackByFn),c.updateIndexes(),i.hasEmptyBlock){let l=nr(),u=c.length===0;if(Ve(r,l,u)){let d=n+2,h=Ro(r,d);if(u){let f=fa(o,d),p=zn(h,f.tView.ssrId),m=Ko(r,f,void 0,{dehydratedView:p});ti(h,m,0,$n(f,p))}else Hf(h,0)}}}finally{b(t)}}function Ro(e,t){return e[t]}function C_(e,t){return Un(e,t)}function b_(e,t){return Bf(e,t)}function fa(e,t){return Na(e,t)}function mc(e,t,n,r){let o=C(),i=U(),s=H+e,a=o[G],c=i.firstCreatePass?zf(s,i,o,t,rc,Oa(),n,r):i.data[s],l=S_(i,o,c,a,t,e);o[s]=l;let u=jo(c);return at(c,!0),wf(a,l,c),!Mf(c)&&Uo()&&Xo(i,o,l,c),(tm()===0||u)&&Ae(l,o),nm(),u&&(Qo(i,o,c),Qa(i,c,o)),r!==null&&nc(o,c),mc}function vc(){let e=de();Pa()?_d():(e=e.parent,at(e,!1));let t=e;im(t)&&sm(),rm();let n=U();return n.firstCreatePass&&Gf(n,t),t.classesWithoutHost!=null&&_m(t)&&sa(n,t,C(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&wm(t)&&sa(n,t,C(),t.stylesWithoutHost,!1),vc}function mh(e,t,n,r){return mc(e,t,n,r),vc(),mh}var S_=(e,t,n,r,o,i)=>(zo(!0),Df(r,o,mm()));function T_(e,t,n,r,o){let i=t.consts,s=ot(i,r),a=sr(t,e,8,"ng-container",s);s!==null&&qs(a,s,!0);let c=ot(i,o);return Oa()&&uc(t,n,a,c,rc),a.mergedAttrs=sn(a.mergedAttrs,a.attrs),t.queries!==null&&t.queries.elementStart(t,a),a}function vh(e,t,n){let r=C(),o=U(),i=e+H,s=o.firstCreatePass?T_(i,o,r,t,n):o.data[i];at(s,!0);let a=x_(o,r,s,e);return r[i]=a,Uo()&&Xo(o,r,a,s),Ae(a,r),jo(s)&&(Qo(o,r,s),Qa(o,s,r)),n!=null&&nc(r,s),vh}function yh(){let e=de(),t=U();return Pa()?_d():(e=e.parent,at(e,!1)),t.firstCreatePass&&(ja(t,e),xa(e)&&t.queries.elementEnd(e)),yh}function M_(e,t,n){return vh(e,t,n),yh(),M_}var x_=(e,t,n,r)=>(zo(!0),qv(t[G],""));function UM(){return C()}var _t=void 0;function N_(e){let t=e,n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return n===1&&r===0?1:5}var R_=["en",[["a","p"],["AM","PM"],_t],[["AM","PM"],_t,_t],[["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"]],_t,[["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"]],_t,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",_t,"{1} 'at' {0}",_t],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",N_],as={};function ye(e){let t=A_(e),n=Pu(t);if(n)return n;let r=t.split("-")[0];if(n=Pu(r),n)return n;if(r==="en")return R_;throw new D(701,!1)}function Pu(e){return e in as||(as[e]=Ue.ng&&Ue.ng.common&&Ue.ng.common.locales&&Ue.ng.common.locales[e]),as[e]}var z=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(z||{});function A_(e){return e.toLowerCase().replace(/_/g,"-")}var Ao="en-US";var O_=Ao;function P_(e){typeof e=="string"&&(O_=e.toLowerCase().replace(/_/g,"-"))}var k_=(e,t,n)=>{};function F_(e,t,n,r){let o=C(),i=U(),s=de();return V_(i,o,o[G],s,e,t,r),F_}function L_(e,t,n,r){let o=e.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=t[fo],c=o[i+2];return a.length>c?a[c]:null}typeof s=="string"&&(i+=2)}return null}function V_(e,t,n,r,o,i,s){let a=jo(r),l=e.firstCreatePass?yd(e):null,u=t[$],d=vd(t),h=!0;if(r.type&3||s){let f=je(r,t),p=s?s(f):f,m=d.length,M=s?se=>s(ue(se[r.index])):r.index,N=null;if(!s&&a&&(N=L_(e,t,o,r.index)),N!==null){let se=N.__ngLastListenerFn__||N;se.__ngNextListenerFn__=i,N.__ngLastListenerFn__=i,h=!1}else{i=Lu(r,t,u,i),k_(f,o,i);let se=n.listen(p,o,i);d.push(i,se),l&&l.push(o,M,m,m+1)}}else i=Lu(r,t,u,i);if(h){let f=r.outputs?.[o],p=r.hostDirectiveOutputs?.[o];if(p&&p.length)for(let m=0;m<p.length;m+=2){let M=p[m],N=p[m+1];ku(r,e,t,M,N,o,i,d,l)}if(f&&f.length)for(let m of f)ku(r,e,t,m,o,o,i,d,l)}}function ku(e,t,n,r,o,i,s,a,c){let l=n[r],d=t.data[r].outputs[o],f=l[d].subscribe(s),p=a.length;a.push(s,f),c&&c.push(i,e.index,p,-(p+1))}function Fu(e,t,n,r){let o=b(null);try{return A(6,t,n),n(r)!==!1}catch(i){return Tf(e,i),!1}finally{A(7,t,n),b(o)}}function Lu(e,t,n,r){return function o(i){if(i===Function)return r;let s=un(e)?me(e.index,t):t;lc(s,5);let a=Fu(t,n,r,i),c=o.__ngNextListenerFn__;for(;c;)a=Fu(t,n,c,i)&&a,c=c.__ngNextListenerFn__;return a}}function zM(e=1){return pm(e)}function j_(e,t,n){return Dh(e,"",t,"",n),j_}function Dh(e,t,n,r,o){let i=C(),s=pc(i,t,n,r);if(s!==xe){let a=U(),c=Va();Sf(a,c,i,e,s,i[G],o,!1)}return Dh}function B_(e,t,n){MD(e,t,n)}function H_(e){let t=C(),n=U(),r=Cd();ka(r+1);let o=dc(n,r);if(e.dirty&&Qg(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else{let i=RD(t,r);e.reset(i,Gm),e.notifyOnChanges()}return!0}return!1}function $_(){return SD(C(),Cd())}function yc(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function GM(e){let t=wd();return Bo(t,H+e)}function WM(e,t=""){let n=C(),r=U(),o=e+H,i=r.firstCreatePass?sr(r,o,1,t,null):r.data[o],s=U_(r,n,i,t,e);n[o]=s,Uo()&&Xo(r,n,s,i),at(i,!1)}var U_=(e,t,n,r,o)=>(zo(!0),Gv(t[G],r));function z_(e){return _h("",e,""),z_}function _h(e,t,n){let r=C(),o=pc(r,e,t,n);return o!==xe&&G_(r,Qe(),o),_h}function G_(e,t,n){let r=pd(t,e);Wv(e[G],r,n)}var wh={};function W_(e){let t=U(),n=C(),r=e+H,o=sr(t,r,128,null,null);return at(o,!1),yc(t,n,r,wh),W_}function qM(e){ct("NgLet");let t=U(),n=C(),r=Qe();return yc(t,n,r,e),e}function ZM(e){let t=wd(),n=Bo(t,H+e);if(n===wh)throw new D(314,!1);return n}function q_(e,t,n){let r=U();if(r.firstCreatePass){let o=ke(e);ha(n,r.data,r.blueprint,o,!0),ha(t,r.data,r.blueprint,o,!1)}}function ha(e,t,n,r,o){if(e=Y(e),Array.isArray(e))for(let i=0;i<e.length;i++)ha(e[i],t,n,r,o);else{let i=U(),s=C(),a=de(),c=rn(e)?e:Y(e.provide),l=od(e),u=a.providerIndexes&1048575,d=a.directiveStart,h=a.providerIndexes>>20;if(rn(e)||!e.multi){let f=new xt(l,o,ne),p=ls(c,t,o?u:u+h,d);p===-1?(Is(Do(a,s),i,c),cs(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[p]=f,s[p]=f)}else{let f=ls(c,t,u+h,d),p=ls(c,t,u,u+h),m=f>=0&&n[f],M=p>=0&&n[p];if(o&&!M||!o&&!m){Is(Do(a,s),i,c);let N=Q_(o?Y_:Z_,n.length,o,r,l);!o&&M&&(n[p].providerFactory=N),cs(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(N),s.push(N)}else{let N=Eh(n[o?p:f],l,!o&&r);cs(i,e,f>-1?f:p,N)}!o&&r&&M&&n[p].componentProviders++}}}function cs(e,t,n,r){let o=rn(t),i=Vg(t);if(o||i){let c=(i?Y(t.useClass):t).prototype.ngOnDestroy;if(c){let l=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.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 Eh(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function ls(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function Z_(e,t,n,r){return pa(this.multi,[])}function Y_(e,t,n,r){let o=this.multi,i;if(this.providerFactory){let s=this.providerFactory.componentProviders,a=Bn(n,n[y],this.providerFactory.index,r);i=a.slice(0,s),pa(o,i);for(let c=s;c<a.length;c++)i.push(a[c])}else i=[],pa(o,i);return i}function pa(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r())}return t}function Q_(e,t,n,r,o){let i=new xt(e,n,ne);return i.multi=[],i.index=t,i.componentProviders=0,Eh(i,o,r&&!n),i}function Dc(e,t=[]){return n=>{n.providersResolver=(r,o)=>q_(r,o?o(e):e,t)}}function YM(e,t,n,r){return Ch(C(),$o(),e,t,n,r)}function QM(e,t,n,r,o){return bh(C(),$o(),e,t,n,r,o)}function Ih(e,t){let n=e[t];return n===xe?void 0:n}function Ch(e,t,n,r,o,i){let s=t+n;return Ve(e,s,o)?th(e,s+1,i?r.call(i,o):r(o)):Ih(e,s+1)}function bh(e,t,n,r,o,i,s){let a=t+n;return qD(e,a,o,i)?th(e,a+2,s?r.call(s,o,i):r(o,i)):Ih(e,a+2)}function KM(e,t){let n=U(),r,o=e+H;n.firstCreatePass?(r=K_(t,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=ce(ne);try{let c=yo(!1),l=i();return yo(c),yc(n,C(),o,l),l}finally{ce(a)}}function K_(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function JM(e,t,n){let r=e+H,o=C(),i=Bo(o,r);return Sh(o,r)?Ch(o,$o(),t,i.transform,n,i):i.transform(n)}function XM(e,t,n,r){let o=e+H,i=C(),s=Bo(i,o);return Sh(i,o)?bh(i,$o(),t,s.transform,n,r,s):s.transform(n,r)}function Sh(e,t){return e[y].data[t].pure}function e0(e,t){return ni(e,t)}var Zn=class{full;major;minor;patch;constructor(t){this.full=t;let n=t.split(".");this.major=n[0],this.minor=n[1],this.patch=n.slice(2).join(".")}},_c=new Zn("19.2.0");var J_=(()=>{class e{zone=g(V);changeDetectionScheduler=g(it);applicationRef=g(st);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=_({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function X_({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new V(X(J({},ew()),{scheduleInRootZone:n})),[{provide:V,useFactory:e},{provide:kn,multi:!0,useFactory:()=>{let r=g(J_,{optional:!0});return()=>r.initialize()}},{provide:kn,multi:!0,useFactory:()=>{let r=g(tw);return()=>{r.initialize()}}},t===!0?{provide:$d,useValue:!0}:[],{provide:Ha,useValue:n??Hd}]}function ew(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var tw=(()=>{class e{subscription=new P;initialized=!1;zone=g(V);pendingTasks=g(rr);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(()=>{V.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{V.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=_({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Th=(()=>{class e{appRef=g(st);taskService=g(rr);ngZone=g(V);zonelessEnabled=g(Go);tracing=g(pn,{optional:!0});disableScheduling=g($d,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new P;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(wo):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(g(Ha,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Eo||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{this.appRef.dirtyFlags|=16,r=!0;break}case 13:{this.appRef.dirtyFlags|=2,r=!0;break}case 11:{r=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let o=this.useMicrotaskScheduler?su:Ud;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(wo+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,su(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=_({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function t0(){return ct("NgZoneless"),ed([{provide:it,useExisting:Th},{provide:V,useClass:Eo},{provide:Go,useValue:!0},{provide:Ha,useValue:!1},[]])}function nw(){return typeof $localize<"u"&&$localize.locale||Ao}var ii=new E("",{providedIn:"root",factory:()=>g(ii,T.Optional|T.SkipSelf)||nw()});var ga=new E(""),rw=new E("");function Nn(e){return!e.moduleRef}function ow(e){let t=Nn(e)?e.r3Injector:e.moduleRef.injector,n=t.get(V);return n.run(()=>{Nn(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Se,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),Nn(e)){let i=()=>t.destroy(),s=e.platformInjector.get(ga);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(ga);s.add(i),e.moduleRef.onDestroy(()=>{io(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return sw(r,n,()=>{let i=t.get(ih);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get(ii,Ao);if(P_(s||Ao),!t.get(rw,!0))return Nn(e)?t.get(st):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Nn(e)){let c=t.get(st);return e.rootComponent!==void 0&&c.bootstrap(e.rootComponent),c}else return iw(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function iw(e,t){let n=e.injector.get(st);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new D(-403,!1);t.push(e)}function sw(e,t,n){try{let r=n();return hc(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var so=null;function aw(e=[],t){return K.create({name:t,providers:[{provide:Fo,useValue:"platform"},{provide:ga,useValue:new Set([()=>so=null])},...e]})}function cw(e=[]){if(so)return so;let t=aw(e);return so=t,e_(),lw(t),t}function lw(e){let t=e.get(Wa,null);id(e,()=>{t?.forEach(n=>n())})}var gn=(()=>{class e{static __NG_ELEMENT_ID__=uw}return e})();function uw(e){return dw(de(),C(),(e&16)===16)}function dw(e,t,n){if(un(e)&&!n){let r=me(e.index,t);return new Nt(r,r)}else if(e.type&175){let r=t[be];return new Nt(r,t)}return null}var ma=class{constructor(){}supports(t){return t instanceof Map||eh(t)}create(){return new va}},va=class{_records=new Map;_mapHead=null;_appendAfter=null;_previousMapHead=null;_changesHead=null;_changesTail=null;_additionsHead=null;_additionsTail=null;_removalsHead=null;_removalsTail=null;get isDirty(){return this._additionsHead!==null||this._changesHead!==null||this._removalsHead!==null}forEachItem(t){let n;for(n=this._mapHead;n!==null;n=n._next)t(n)}forEachPreviousItem(t){let n;for(n=this._previousMapHead;n!==null;n=n._nextPrevious)t(n)}forEachChangedItem(t){let n;for(n=this._changesHead;n!==null;n=n._nextChanged)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)t(n)}diff(t){if(!t)t=new Map;else if(!(t instanceof Map||eh(t)))throw new D(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(r,o)=>{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{let i=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;r!==null;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){let r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){let o=this._records.get(t);this._maybeAddToChanges(o,n);let i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o}let r=new ya(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;t!==null;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;t!=null;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){this._additionsHead===null?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){this._changesHead===null?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}},ya=class{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(t){this.key=t}};function Vu(){return new wc([new ma])}var wc=(()=>{class e{static \u0275prov=_({token:e,providedIn:"root",factory:Vu});factories;constructor(n){this.factories=n}static create(n,r){if(r){let o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Vu()),deps:[[e,new Mg,new ba]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r)return r;throw new D(901,!1)}}return e})();function Mh(e){A(8);try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=cw(r),i=[X_({}),{provide:it,useExisting:Th},...n||[]],s=new To({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1});return ow({r3Injector:s.injector,platformInjector:o,rootComponent:t})}catch(t){return Promise.reject(t)}finally{A(9)}}function si(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function Ec(e,t=NaN){return!isNaN(parseFloat(e))&&!isNaN(Number(e))?Number(e):t}function fw(e){let t=b(null);try{return e()}finally{b(t)}}function n0(e,t){let n=fl(e);return t?.equal&&(n[ae].equal=t.equal),n}var hw=!1,pw=(()=>{class e extends Mo{pendingTasks=g(rr);taskId=null;schedule(n){super.schedule(n),this.taskId===null&&(this.taskId=this.pendingTasks.add(),queueMicrotask(()=>this.flush()))}flush(){try{super.flush()}finally{this.taskId!==null&&(this.pendingTasks.remove(this.taskId),this.taskId=null)}}static \u0275prov=_({token:e,providedIn:"root",factory:()=>new e})}return e})(),Da=class{scheduler;effectFn;zone;injector;unregisterOnDestroy;watcher;constructor(t,n,r,o,i,s){this.scheduler=t,this.effectFn=n,this.zone=r,this.injector=i,this.watcher=yl(a=>this.runEffect(a),()=>this.schedule(),s),this.unregisterOnDestroy=o?.onDestroy(()=>this.destroy())}runEffect(t){try{this.effectFn(t)}catch(n){this.injector.get(Se,null,{optional:!0})?.handleError(n)}}run(){this.watcher.run()}schedule(){this.scheduler.schedule(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}};function gw(){}function mw(e,t){!t?.injector&&Vo(gw);let n=t?.injector??g(K),r=t?.manualCleanup!==!0?n.get(fn):null,o=new Da(n.get(pw),e,typeof Zone>"u"?null:Zone.current,r,n,t?.allowSignalWrites??!1),i=n.get(gn,null,{optional:!0});return!i||!(i._lView[v]&8)?o.watcher.notify():(i._lView[to]??=[]).push(o.watcher.notify),o}var vw=hw;var _a=class{[ae];constructor(t){this[ae]=t}destroy(){this[ae].destroy()}};function yw(e,t){if(vw)return mw(e,t);!t?.injector&&Vo(yw);let n=t?.injector??g(K),r=t?.manualCleanup!==!0?n.get(fn):null,o,i=n.get(Ya,null,{optional:!0}),s=n.get(it);return i!==null&&!t?.forceRoot?(o=ww(i.view,s,e),r instanceof _o&&r._lView===i.view&&(r=null)):o=Ew(e,n.get(rh),s),o.injector=n,r!==null&&(o.onDestroyFn=r.onDestroy(()=>o.destroy())),new _a(o)}var xh=X(J({},ht),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,cleanupFns:void 0,zone:null,kind:"effect",onDestroyFn:Hn,run(){if(this.dirty=!1,this.hasRun&&!En(this))return;this.hasRun=!0;let e=r=>(this.cleanupFns??=[]).push(r),t=Lt(this),n=go(!1);try{this.maybeCleanup(),this.fn(e)}finally{go(n),wn(this,t)}},maybeCleanup(){if(this.cleanupFns?.length)try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[]}}}),Dw=X(J({},xh),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){Vt(this),this.onDestroyFn(),this.maybeCleanup(),this.scheduler.remove(this)}}),_w=X(J({},xh),{consumerMarkedDirty(){this.view[v]|=8192,dn(this.view),this.notifier.notify(13)},destroy(){Vt(this),this.onDestroyFn(),this.maybeCleanup(),this.view[bt]?.delete(this)}});function ww(e,t,n){let r=Object.create(_w);return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=t,r.fn=n,e[bt]??=new Set,e[bt].add(r),r.consumerMarkedDirty(r),r}function Ew(e,t,n){let r=Object.create(Dw);return r.fn=e,r.scheduler=t,r.notifier=n,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.schedule(r),r.notifier.notify(12),r}function Nh(e,t){let n=It(e),r=t.elementInjector||Lo();return new Wn(n).create(r,t.projectableNodes,t.hostElement,t.environmentInjector)}var kh=null;function mn(){return kh}function Fh(e){kh??=e}var gi=class{};var Z=new E(""),Lh=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=_({token:e,factory:()=>g(Cw),providedIn:"platform"})}return e})();var Cw=(()=>{class e extends Lh{_location;_history;_doc=g(Z);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return mn().getBaseHref(this._doc)}onPopState(n){let r=mn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=mn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static \u0275fac=function(r){return new(r||e)};static \u0275prov=_({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function Vh(e,t){return e?t?e.endsWith("/")?t.startsWith("/")?e+t.slice(1):e+t:t.startsWith("/")?e+t:`${e}/${t}`:e:t}function Rh(e){let t=e.search(/#|\?|$/);return e[t-1]==="/"?e.slice(0,t-1)+e.slice(t):e}function kt(e){return e&&e[0]!=="?"?`?${e}`:e}var Tc=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=_({token:e,factory:()=>g(Sw),providedIn:"root"})}return e})(),bw=new E(""),Sw=(()=>{class e extends Tc{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??g(Z).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Vh(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+kt(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+kt(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+kt(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static \u0275fac=function(r){return new(r||e)(x(Lh),x(bw,8))};static \u0275prov=_({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Tw=(()=>{class e{_subject=new S;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=Nw(Rh(Ah(r))),this._locationStrategy.onPopState(o=>{this._subject.next({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+kt(r))}normalize(n){return e.stripTrailingSlash(xw(this._basePath,Ah(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+kt(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+kt(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r??void 0,complete:o??void 0})}static normalizeQueryParams=kt;static joinWithSlash=Vh;static stripTrailingSlash=Rh;static \u0275fac=function(r){return new(r||e)(x(Tc))};static \u0275prov=_({token:e,factory:()=>Mw(),providedIn:"root"})}return e})();function Mw(){return new Tw(x(Tc))}function xw(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function Ah(e){return e.replace(/\/index.html$/,"")}function Nw(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var oe=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}(oe||{}),O=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}(O||{}),he=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}(he||{}),dt={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function Rw(e){return ye(e)[z.LocaleId]}function Aw(e,t,n){let r=ye(e),o=[r[z.DayPeriodsFormat],r[z.DayPeriodsStandalone]],i=De(o,t);return De(i,n)}function Ow(e,t,n){let r=ye(e),o=[r[z.DaysFormat],r[z.DaysStandalone]],i=De(o,t);return De(i,n)}function Pw(e,t,n){let r=ye(e),o=[r[z.MonthsFormat],r[z.MonthsStandalone]],i=De(o,t);return De(i,n)}function kw(e,t){let r=ye(e)[z.Eras];return De(r,t)}function ai(e,t){let n=ye(e);return De(n[z.DateFormat],t)}function ci(e,t){let n=ye(e);return De(n[z.TimeFormat],t)}function li(e,t){let r=ye(e)[z.DateTimeFormat];return De(r,t)}function yi(e,t){let n=ye(e),r=n[z.NumberSymbols][t];if(typeof r>"u"){if(t===dt.CurrencyDecimal)return n[z.NumberSymbols][dt.Decimal];if(t===dt.CurrencyGroup)return n[z.NumberSymbols][dt.Group]}return r}function jh(e){if(!e[z.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[z.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Fw(e){let t=ye(e);return jh(t),(t[z.ExtraData][2]||[]).map(r=>typeof r=="string"?Ic(r):[Ic(r[0]),Ic(r[1])])}function Lw(e,t,n){let r=ye(e);jh(r);let o=[r[z.ExtraData][0],r[z.ExtraData][1]],i=De(o,t)||[];return De(i,n)||[]}function De(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new Error("Locale data API: locale data undefined")}function Ic(e){let[t,n]=e.split(":");return{hours:+t,minutes:+n}}var Vw=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ui={},jw=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;function Bw(e,t,n,r){let o=Yw(e);t=Xe(n,t)||t;let s=[],a;for(;t;)if(a=jw.exec(t),a){s=s.concat(a.slice(1));let u=s.pop();if(!u)break;t=u}else{s.push(t);break}let c=o.getTimezoneOffset();r&&(c=Hh(r,c),o=Zw(o,r,!0));let l="";return s.forEach(u=>{let d=Ww(u);l+=d?d(o,n,c):u==="''"?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function mi(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function Xe(e,t){let n=Rw(e);if(ui[n]??={},ui[n][t])return ui[n][t];let r="";switch(t){case"shortDate":r=ai(e,he.Short);break;case"mediumDate":r=ai(e,he.Medium);break;case"longDate":r=ai(e,he.Long);break;case"fullDate":r=ai(e,he.Full);break;case"shortTime":r=ci(e,he.Short);break;case"mediumTime":r=ci(e,he.Medium);break;case"longTime":r=ci(e,he.Long);break;case"fullTime":r=ci(e,he.Full);break;case"short":let o=Xe(e,"shortTime"),i=Xe(e,"shortDate");r=di(li(e,he.Short),[o,i]);break;case"medium":let s=Xe(e,"mediumTime"),a=Xe(e,"mediumDate");r=di(li(e,he.Medium),[s,a]);break;case"long":let c=Xe(e,"longTime"),l=Xe(e,"longDate");r=di(li(e,he.Long),[c,l]);break;case"full":let u=Xe(e,"fullTime"),d=Xe(e,"fullDate");r=di(li(e,he.Full),[u,d]);break}return r&&(ui[n][t]=r),r}function di(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return t!=null&&r in t?t[r]:n})),e}function Ne(e,t,n="-",r,o){let i="";(e<0||o&&e<=0)&&(o?e=-e+1:(e=-e,i=n));let s=String(e);for(;s.length<t;)s="0"+s;return r&&(s=s.slice(s.length-t)),i+s}function Hw(e,t){return Ne(e,3).substring(0,t)}function W(e,t,n=0,r=!1,o=!1){return function(i,s){let a=$w(e,i);if((n>0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return Hw(a,t);let c=yi(s,dt.MinusSign);return Ne(a,t,c,r,o)}}function $w(e,t){switch(e){case 0:return t.getFullYear();case 1:return t.getMonth();case 2:return t.getDate();case 3:return t.getHours();case 4:return t.getMinutes();case 5:return t.getSeconds();case 6:return t.getMilliseconds();case 7:return t.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}function k(e,t,n=oe.Format,r=!1){return function(o,i){return Uw(o,i,e,t,n,r)}}function Uw(e,t,n,r,o,i){switch(n){case 2:return Pw(t,o,r)[e.getMonth()];case 1:return Ow(t,o,r)[e.getDay()];case 0:let s=e.getHours(),a=e.getMinutes();if(i){let l=Fw(t),u=Lw(t,o,r),d=l.findIndex(h=>{if(Array.isArray(h)){let[f,p]=h,m=s>=f.hours&&a>=f.minutes,M=s<p.hours||s===p.hours&&a<p.minutes;if(f.hours<p.hours){if(m&&M)return!0}else if(m||M)return!0}else if(h.hours===s&&h.minutes===a)return!0;return!1});if(d!==-1)return u[d]}return Aw(t,o,r)[s<12?0:1];case 3:return kw(t,r)[e.getFullYear()<=0?0:1];default:let c=n;throw new Error(`unexpected translation type ${c}`)}}function fi(e){return function(t,n,r){let o=-1*r,i=yi(n,dt.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(e){case 0:return(o>=0?"+":"")+Ne(s,2,i)+Ne(Math.abs(o%60),2,i);case 1:return"GMT"+(o>=0?"+":"")+Ne(s,1,i);case 2:return"GMT"+(o>=0?"+":"")+Ne(s,2,i)+":"+Ne(Math.abs(o%60),2,i);case 3:return r===0?"Z":(o>=0?"+":"")+Ne(s,2,i)+":"+Ne(Math.abs(o%60),2,i);default:throw new Error(`Unknown zone width "${e}"`)}}}var zw=0,pi=4;function Gw(e){let t=mi(e,zw,1).getDay();return mi(e,0,1+(t<=pi?pi:pi+7)-t)}function Bh(e){let t=e.getDay(),n=t===0?-3:pi-t;return mi(e.getFullYear(),e.getMonth(),e.getDate()+n)}function Cc(e,t=!1){return function(n,r){let o;if(t){let i=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+i)/7)}else{let i=Bh(n),s=Gw(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return Ne(o,e,yi(r,dt.MinusSign))}}function hi(e,t=!1){return function(n,r){let i=Bh(n).getFullYear();return Ne(i,e,yi(r,dt.MinusSign),t)}}var bc={};function Ww(e){if(bc[e])return bc[e];let t;switch(e){case"G":case"GG":case"GGG":t=k(3,O.Abbreviated);break;case"GGGG":t=k(3,O.Wide);break;case"GGGGG":t=k(3,O.Narrow);break;case"y":t=W(0,1,0,!1,!0);break;case"yy":t=W(0,2,0,!0,!0);break;case"yyy":t=W(0,3,0,!1,!0);break;case"yyyy":t=W(0,4,0,!1,!0);break;case"Y":t=hi(1);break;case"YY":t=hi(2,!0);break;case"YYY":t=hi(3);break;case"YYYY":t=hi(4);break;case"M":case"L":t=W(1,1,1);break;case"MM":case"LL":t=W(1,2,1);break;case"MMM":t=k(2,O.Abbreviated);break;case"MMMM":t=k(2,O.Wide);break;case"MMMMM":t=k(2,O.Narrow);break;case"LLL":t=k(2,O.Abbreviated,oe.Standalone);break;case"LLLL":t=k(2,O.Wide,oe.Standalone);break;case"LLLLL":t=k(2,O.Narrow,oe.Standalone);break;case"w":t=Cc(1);break;case"ww":t=Cc(2);break;case"W":t=Cc(1,!0);break;case"d":t=W(2,1);break;case"dd":t=W(2,2);break;case"c":case"cc":t=W(7,1);break;case"ccc":t=k(1,O.Abbreviated,oe.Standalone);break;case"cccc":t=k(1,O.Wide,oe.Standalone);break;case"ccccc":t=k(1,O.Narrow,oe.Standalone);break;case"cccccc":t=k(1,O.Short,oe.Standalone);break;case"E":case"EE":case"EEE":t=k(1,O.Abbreviated);break;case"EEEE":t=k(1,O.Wide);break;case"EEEEE":t=k(1,O.Narrow);break;case"EEEEEE":t=k(1,O.Short);break;case"a":case"aa":case"aaa":t=k(0,O.Abbreviated);break;case"aaaa":t=k(0,O.Wide);break;case"aaaaa":t=k(0,O.Narrow);break;case"b":case"bb":case"bbb":t=k(0,O.Abbreviated,oe.Standalone,!0);break;case"bbbb":t=k(0,O.Wide,oe.Standalone,!0);break;case"bbbbb":t=k(0,O.Narrow,oe.Standalone,!0);break;case"B":case"BB":case"BBB":t=k(0,O.Abbreviated,oe.Format,!0);break;case"BBBB":t=k(0,O.Wide,oe.Format,!0);break;case"BBBBB":t=k(0,O.Narrow,oe.Format,!0);break;case"h":t=W(3,1,-12);break;case"hh":t=W(3,2,-12);break;case"H":t=W(3,1);break;case"HH":t=W(3,2);break;case"m":t=W(4,1);break;case"mm":t=W(4,2);break;case"s":t=W(5,1);break;case"ss":t=W(5,2);break;case"S":t=W(6,1);break;case"SS":t=W(6,2);break;case"SSS":t=W(6,3);break;case"Z":case"ZZ":case"ZZZ":t=fi(0);break;case"ZZZZZ":t=fi(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=fi(1);break;case"OOOO":case"ZZZZ":case"zzzz":t=fi(2);break;default:return null}return bc[e]=t,t}function Hh(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function qw(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function Zw(e,t,n){let r=n?-1:1,o=e.getTimezoneOffset(),i=Hh(t,o);return qw(e,r*(i-o))}function Yw(e){if(Oh(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[o,i=1,s=1]=e.split("-").map(a=>+a);return mi(o,i-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(Vw))return Qw(r)}let t=new Date(e);if(!Oh(t))throw new Error(`Unable to convert "${e}" into a date`);return t}function Qw(e){let t=new Date(0),n=0,r=0,o=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));let s=Number(e[4]||0)-n,a=Number(e[5]||0)-r,c=Number(e[6]||0),l=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return i.call(t,s,a,c,l),t}function Oh(e){return e instanceof Date&&!isNaN(e.valueOf())}function $h(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var Sc=/\s+/,Ph=[],S0=(()=>{class e{_ngEl;_renderer;initialClasses=Ph;rawClass;stateMap=new Map;constructor(n,r){this._ngEl=n,this._renderer=r}set klass(n){this.initialClasses=n!=null?n.trim().split(Sc):Ph}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(Sc):n}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let r of n)this._updateState(r,!0);else if(n!=null)for(let r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){let o=this.stateMap.get(n);o!==void 0?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let r=n[0],o=n[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),o.touched=!1}}_toggleClass(n,r){n=n.trim(),n.length>0&&n.split(Sc).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static \u0275fac=function(r){return new(r||e)(ne(fe),ne(ar))};static \u0275dir=Pt({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return e})();var T0=(()=>{class e{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(n,r,o){this._ngEl=n,this._differs=r,this._renderer=o}set ngStyle(n){this._ngStyle=n,!this._differ&&n&&(this._differ=this._differs.find(n).create())}ngDoCheck(){if(this._differ){let n=this._differ.diff(this._ngStyle);n&&this._applyChanges(n)}}_setStyle(n,r){let[o,i]=n.split("."),s=o.indexOf("-")===-1?void 0:Le.DashCase;r!=null?this._renderer.setStyle(this._ngEl.nativeElement,o,i?`${r}${i}`:r,s):this._renderer.removeStyle(this._ngEl.nativeElement,o,s)}_applyChanges(n){n.forEachRemovedItem(r=>this._setStyle(r.key,null)),n.forEachAddedItem(r=>this._setStyle(r.key,r.currentValue)),n.forEachChangedItem(r=>this._setStyle(r.key,r.currentValue))}static \u0275fac=function(r){return new(r||e)(ne(fe),ne(wc),ne(ar))};static \u0275dir=Pt({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return e})(),M0=(()=>{class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(n){this._viewContainerRef=n}ngOnChanges(n){if(this._shouldRecreateView(n)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(n){return!!n.ngTemplateOutlet||!!n.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(n,r,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,o):!1,get:(n,r,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,o)}})}static \u0275fac=function(r){return new(r||e)(ne(ut))};static \u0275dir=Pt({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[tr]})}return e})();function Kw(e,t){return new D(2100,!1)}var Jw="mediumDate",Xw=new E(""),eE=new E(""),x0=(()=>{class e{locale;defaultTimezone;defaultOptions;constructor(n,r,o){this.locale=n,this.defaultTimezone=r,this.defaultOptions=o}transform(n,r,o,i){if(n==null||n===""||n!==n)return null;try{let s=r??this.defaultOptions?.dateFormat??Jw,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return Bw(n,s,i||this.locale,a)}catch(s){throw Kw(e,s.message)}}static \u0275fac=function(r){return new(r||e)(ne(ii,16),ne(Xw,24),ne(eE,24))};static \u0275pipe=ri({name:"date",type:e,pure:!0})}return e})();var tE=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=cr({type:e});static \u0275inj=Qn({})}return e})(),Mc="browser",nE="server";function Uh(e){return e===Mc}function xc(e){return e===nE}var vi=class{};var Rc=class extends gi{supportsDOMEvents=!0},Ac=class e extends Rc{static makeCurrent(){Fh(new e)}onAndCancel(t,n,r,o){return t.addEventListener(n,r,o),()=>{t.removeEventListener(n,r,o)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=rE();return n==null?null:oE(n)}resetBaseElement(){lr=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return $h(document.cookie,t)}},lr=null;function rE(){return lr=lr||document.querySelector("base"),lr?lr.getAttribute("href"):null}function oE(e){return new URL(e,document.baseURI).pathname}var iE=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=_({token:e,factory:e.\u0275fac})}return e})(),Oc=new E(""),Yh=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o,i){return this._findPluginFor(r).addEventListener(n,r,o,i)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new D(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(x(Oc),x(V))};static \u0275prov=_({token:e,factory:e.\u0275fac})}return e})(),_i=class{_doc;constructor(t){this._doc=t}manager},Di="ng-app-id";function zh(e){for(let t of e)t.remove()}function Gh(e,t){let n=t.createElement("style");return n.textContent=e,n}function sE(e,t,n,r){let o=e.head?.querySelectorAll(`style[${Di}="${t}"],link[${Di}="${t}"]`);if(o)for(let i of o)i.removeAttribute(Di),i instanceof HTMLLinkElement?r.set(i.href.slice(i.href.lastIndexOf("/")+1),{usage:0,elements:[i]}):i.textContent&&n.set(i.textContent,{usage:0,elements:[i]})}function Pc(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var Qh=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.isServer=xc(i),sE(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,Gh);r?.forEach(o=>this.addUsage(o,this.external,Pc))}removeStyles(n,r){for(let o of n)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(n,r,o){let i=r.get(n);i?i.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(n,this.doc)))})}removeUsage(n,r){let o=r.get(n);o&&(o.usage--,o.usage<=0&&(zh(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])zh(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,Gh(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,Pc(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),this.isServer&&r.setAttribute(Di,this.appId),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(x(Z),x(or),x(qa,8),x(Ot))};static \u0275prov=_({token:e,factory:e.\u0275fac})}return e})(),Nc={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Fc=/%COMP%/g;var Kh="%COMP%",aE=`_nghost-${Kh}`,cE=`_ngcontent-${Kh}`,lE=!0,uE=new E("",{providedIn:"root",factory:()=>lE});function dE(e){return cE.replace(Fc,e)}function fE(e){return aE.replace(Fc,e)}function Jh(e,t){return t.map(n=>n.replace(Fc,e))}var Wh=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(n,r,o,i,s,a,c,l=null,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=l,this.tracingService=u,this.platformIsServer=xc(a),this.defaultRenderer=new ur(n,s,c,this.platformIsServer,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Fe.ShadowDom&&(r=X(J({},r),{encapsulation:Fe.Emulated}));let o=this.getOrCreateRenderer(n,r);return o instanceof wi?o.applyToHost(n):o instanceof dr&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,d=this.platformIsServer,h=this.tracingService;switch(r.encapsulation){case Fe.Emulated:i=new wi(c,l,r,this.appId,u,s,a,d,h);break;case Fe.ShadowDom:return new kc(c,l,n,r,s,a,this.nonce,d,h);default:i=new dr(c,l,r,u,s,a,d,h);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(r){return new(r||e)(x(Yh),x(Qh),x(or),x(uE),x(Z),x(Ot),x(V),x(qa),x(pn,8))};static \u0275prov=_({token:e,factory:e.\u0275fac})}return e})(),ur=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,o,i){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.tracingService=i}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(Nc[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(qh(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(qh(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new D(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;let i=Nc[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=Nc[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(Le.DashCase|Le.Important)?t.style.setProperty(n,r,o&Le.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&Le.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r,o){if(typeof t=="string"&&(t=mn().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${n}`);let i=this.decoratePreventDefault(r);return this.tracingService!==null&&this.tracingService.wrapEventListener&&(i=this.tracingService.wrapEventListener(t,n,i)),this.eventManager.addEventListener(t,n,i,o)}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))===!1&&n.preventDefault()}}};function qh(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var kc=class extends ur{sharedStylesHost;hostEl;shadowRoot;constructor(t,n,r,o,i,s,a,c,l){super(t,i,s,c,l),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=o.styles;u=Jh(o.id,u);for(let h of u){let f=document.createElement("style");a&&f.setAttribute("nonce",a),f.textContent=h,this.shadowRoot.appendChild(f)}let d=o.getExternalStyles?.();if(d)for(let h of d){let f=Pc(h,i);a&&f.setAttribute("nonce",a),this.shadowRoot.appendChild(f)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},dr=class extends ur{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,c,l){super(t,i,s,a,c),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o;let u=r.styles;this.styles=l?Jh(l,u):u,this.styleUrls=r.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},wi=class extends dr{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,c,l){let u=o+"-"+r.id;super(t,n,r,i,s,a,c,l,u),this.contentAttr=dE(u),this.hostAttr=fE(u)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}},hE=(()=>{class e extends _i{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o,i){return n.addEventListener(r,o,i),()=>this.removeEventListener(n,r,o,i)}removeEventListener(n,r,o,i){return n.removeEventListener(r,o,i)}static \u0275fac=function(r){return new(r||e)(x(Z))};static \u0275prov=_({token:e,factory:e.\u0275fac})}return e})(),Zh=["alt","control","meta","shift"],pE={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},gE={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},mE=(()=>{class e extends _i{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o,i){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>mn().onAndCancel(n,s.domEventName,a,i))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),Zh.forEach(l=>{let u=r.indexOf(l);u>-1&&(r.splice(u,1),s+=l+".")}),s+=i,r.length!=0||i.length===0)return null;let c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=pE[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),Zh.forEach(s=>{if(s!==o){let a=gE[s];a(n)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(x(Z))};static \u0275prov=_({token:e,factory:e.\u0275fac})}return e})();function Q0(e){return Mh(vE(e))}function vE(e){return{appProviders:[...EE,...e?.providers??[]],platformProviders:wE}}function yE(){Ac.makeCurrent()}function DE(){return new Se}function _E(){return Xd(document),document}var wE=[{provide:Ot,useValue:Mc},{provide:Wa,useValue:yE,multi:!0},{provide:Z,useFactory:_E,deps:[]}];var EE=[{provide:Fo,useValue:"root"},{provide:Se,useFactory:DE,deps:[]},{provide:Oc,useClass:hE,multi:!0,deps:[Z]},{provide:Oc,useClass:mE,multi:!0,deps:[Z]},Wh,Qh,Yh,{provide:ve,useExisting:Wh},{provide:vi,useClass:iE,deps:[]},[]];var Lc=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=_({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=x(IE),o},providedIn:"root"})}return e})(),IE=(()=>{class e extends Lc{_doc;constructor(n){super(),this._doc=n}sanitize(n,r){if(r==null)return null;switch(n){case Be.NONE:return r;case Be.HTML:return lt(r,"HTML")?Me(r):Ka(this._doc,String(r)).toString();case Be.STYLE:return lt(r,"Style")?Me(r):r;case Be.SCRIPT:if(lt(r,"Script"))return Me(r);throw new D(5200,!1);case Be.URL:return lt(r,"URL")?Me(r):Zo(String(r));case Be.RESOURCE_URL:if(lt(r,"ResourceURL"))return Me(r);throw new D(5201,!1);default:throw new D(5202,!1)}}bypassSecurityTrustHtml(n){return af(n)}bypassSecurityTrustStyle(n){return cf(n)}bypassSecurityTrustScript(n){return lf(n)}bypassSecurityTrustUrl(n){return uf(n)}bypassSecurityTrustResourceUrl(n){return df(n)}static \u0275fac=function(r){return new(r||e)(x(Z))};static \u0275prov=_({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Xh=class e{constructor(t){this.sanitizer=t}transform(t){return t?this.sanitizer.bypassSecurityTrustHtml(t):""}static \u0275fac=function(n){return new(n||e)(ne(Lc,16))};static \u0275pipe=ri({name:"safeHtml",type:e,pure:!0})};var Vc;function bE(){if(Vc==null){let e=typeof document<"u"?document.head:null;Vc=!!(e&&(e.createShadowRoot||e.attachShadow))}return Vc}function Ei(e){if(bE()){let t=e.getRootNode?e.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function X0(){let e=typeof document<"u"&&document?document.activeElement:null;for(;e&&e.shadowRoot;){let t=e.shadowRoot.activeElement;if(t===e)break;e=t}return e}function fr(e){return e.composedPath?e.composedPath()[0]:e.target}function ep(e){return e.buttons===0||e.detail===0}function tp(e){let t=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!!t&&t.identifier===-1&&(t.radiusX==null||t.radiusX===1)&&(t.radiusY==null||t.radiusY===1)}function jc(e,t=0){return SE(e)?Number(e):arguments.length===2?t:0}function SE(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}function He(e){return e instanceof fe?e.nativeElement:e}function ft(e,t,n,r,o){let i=parseInt(_c.major),s=parseInt(_c.minor);return i>19||i===19&&s>0||i===0&&s===0?e.listen(t,n,r,o):(t.addEventListener(n,r,o),()=>{t.removeEventListener(n,r,o)})}var Ii=new WeakMap,np=(()=>{class e{_appRef;_injector=g(K);_environmentInjector=g(Pe);load(n){let r=this._appRef=this._appRef||this._injector.get(st),o=Ii.get(r);o||(o={loaders:new Set,refs:[]},Ii.set(r,o),r.onDestroy(()=>{Ii.get(r)?.refs.forEach(i=>i.destroy()),Ii.delete(r)})),o.loaders.has(n)||(o.loaders.add(n),o.refs.push(Nh(n,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=_({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Bc;try{Bc=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Bc=!1}var Hc=(()=>{class e{_platformId=g(Ot);isBrowser=this._platformId?Uh(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||Bc)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=_({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var TE=new E("cdk-dir-doc",{providedIn:"root",factory:ME});function ME(){return g(Z)}var xE=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function NE(e){let t=e?.toLowerCase()||"";return t==="auto"&&typeof navigator<"u"&&navigator?.language?xE.test(navigator.language)?"rtl":"ltr":t==="rtl"?"rtl":"ltr"}var rp=(()=>{class e{value="ltr";change=new Q;constructor(){let n=g(TE,{optional:!0});if(n){let r=n.body?n.body.dir:null,o=n.documentElement?n.documentElement.dir:null;this.value=NE(r||o||"ltr")}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=_({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Ft;function vx(){if(Ft==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return Ft=!1,Ft;if("scrollBehavior"in document.documentElement.style)Ft=!0;else{let e=Element.prototype.scrollTo;e?Ft=!/\{\s*\[native code\]\s*\}/.test(e.toString()):Ft=!1}}return Ft}var RE=20,AE=(()=>{class e{_ngZone=g(V);_platform=g(Hc);_renderer=g(ve).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new S;_scrolledCount=0;scrollContainers=new Map;register(n){this.scrollContainers.has(n)||this.scrollContainers.set(n,n.elementScrolled().subscribe(()=>this._scrolled.next(n)))}deregister(n){let r=this.scrollContainers.get(n);r&&(r.unsubscribe(),this.scrollContainers.delete(n))}scrolled(n=RE){return this._platform.isBrowser?new R(r=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let o=n>0?this._scrolled.pipe(Wr(n)).subscribe(r):this._scrolled.subscribe(r);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):Ui()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((n,r)=>this.deregister(r)),this._scrolled.complete()}ancestorScrolled(n,r){let o=this.getAncestorScrollContainers(n);return this.scrolled(r).pipe(xn(i=>!i||o.indexOf(i)>-1))}getAncestorScrollContainers(n){let r=[];return this.scrollContainers.forEach((o,i)=>{this._scrollableContainsElement(i,n)&&r.push(i)}),r}_scrollableContainsElement(n,r){let o=He(r),i=n.getElementRef().nativeElement;do if(o==i)return!0;while(o=o.parentElement);return!1}static \u0275fac=function(r){return new(r||e)};static \u0275prov=_({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var OE=20,op=(()=>{class e{_platform=g(Hc);_listeners;_viewportSize;_change=new S;_document=g(Z,{optional:!0});constructor(){let n=g(V),r=g(ve).createRenderer(null,null);n.runOutsideAngular(()=>{if(this._platform.isBrowser){let o=i=>this._change.next(i);this._listeners=[r.listen("window","resize",o),r.listen("window","orientationchange",o)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(n=>n()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let n={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),n}getViewportRect(){let n=this.getViewportScrollPosition(),{width:r,height:o}=this.getViewportSize();return{top:n.top,left:n.left,bottom:n.top+o,right:n.left+r,height:o,width:r}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let n=this._document,r=this._getWindow(),o=n.documentElement,i=o.getBoundingClientRect(),s=-i.top||n.body.scrollTop||r.scrollY||o.scrollTop||0,a=-i.left||n.body.scrollLeft||r.scrollX||o.scrollLeft||0;return{top:s,left:a}}change(n=OE){return n>0?this._change.pipe(Wr(n)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let n=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:n.innerWidth,height:n.innerHeight}:{width:0,height:0}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=_({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var $c={},zx=(()=>{class e{_appId=g(or);getId(n){return this._appId!=="ng"&&(n+=this._appId),$c.hasOwnProperty(n)||($c[n]=0),`${n}${$c[n]++}`}static \u0275fac=function(r){return new(r||e)};static \u0275prov=_({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Wx(e){return Array.isArray(e)?e:[e]}function Dp(e){let t=e.cloneNode(!0),n=t.querySelectorAll("[id]"),r=e.nodeName.toLowerCase();t.removeAttribute("id");for(let o=0;o<n.length;o++)n[o].removeAttribute("id");return r==="canvas"?ap(e,t):(r==="input"||r==="select"||r==="textarea")&&sp(e,t),ip("canvas",e,t,ap),ip("input, textarea, select",e,t,sp),t}function ip(e,t,n,r){let o=t.querySelectorAll(e);if(o.length){let i=n.querySelectorAll(e);for(let s=0;s<o.length;s++)r(o[s],i[s])}}var PE=0;function sp(e,t){t.type!=="file"&&(t.value=e.value),t.type==="radio"&&t.name&&(t.name=`mat-clone-${t.name}-${PE++}`)}function ap(e,t){let n=t.getContext("2d");if(n)try{n.drawImage(e,0,0)}catch{}}function Qc(e){let t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height,x:t.x,y:t.y}}function Gc(e,t,n){let{top:r,bottom:o,left:i,right:s}=e;return n>=r&&n<=o&&t>=i&&t<=s}function gr(e,t,n){e.top+=t,e.bottom=e.top+e.height,e.left+=n,e.right=e.left+e.width}function cp(e,t,n,r){let{top:o,right:i,bottom:s,left:a,width:c,height:l}=e,u=c*t,d=l*t;return r>o-d&&r<s+d&&n>a-u&&n<i+u}var Ci=class{_document;positions=new Map;constructor(t){this._document=t}clear(){this.positions.clear()}cache(t){this.clear(),this.positions.set(this._document,{scrollPosition:this.getViewportScrollPosition()}),t.forEach(n=>{this.positions.set(n,{scrollPosition:{top:n.scrollTop,left:n.scrollLeft},clientRect:Qc(n)})})}handleScroll(t){let n=fr(t),r=this.positions.get(n);if(!r)return null;let o=r.scrollPosition,i,s;if(n===this._document){let l=this.getViewportScrollPosition();i=l.top,s=l.left}else i=n.scrollTop,s=n.scrollLeft;let a=o.top-i,c=o.left-s;return this.positions.forEach((l,u)=>{l.clientRect&&n!==u&&n.contains(u)&&gr(l.clientRect,a,c)}),o.top=i,o.left=s,{top:a,left:c}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}};function _p(e,t){let n=e.rootNodes;if(n.length===1&&n[0].nodeType===t.ELEMENT_NODE)return n[0];let r=t.createElement("div");return n.forEach(o=>r.appendChild(o)),r}function Kc(e,t,n){for(let r in t)if(t.hasOwnProperty(r)){let o=t[r];o?e.setProperty(r,o,n?.has(r)?"important":""):e.removeProperty(r)}return e}function vn(e,t){let n=t?"":"none";Kc(e.style,{"touch-action":t?"":"none","-webkit-user-drag":t?"":"none","-webkit-tap-highlight-color":t?"":"transparent","user-select":n,"-ms-user-select":n,"-webkit-user-select":n,"-moz-user-select":n})}function lp(e,t,n){Kc(e.style,{position:t?"":"fixed",top:t?"":"0",opacity:t?"":"0",left:t?"":"-999em"},n)}function bi(e,t){return t&&t!="none"?e+" "+t:e}function up(e,t){e.style.width=`${t.width}px`,e.style.height=`${t.height}px`,e.style.transform=Si(t.left,t.top)}function Si(e,t){return`translate3d(${Math.round(e)}px, ${Math.round(t)}px, 0)`}function dp(e){let t=e.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(e)*t}function kE(e){let t=getComputedStyle(e),n=Uc(t,"transition-property"),r=n.find(a=>a==="transform"||a==="all");if(!r)return 0;let o=n.indexOf(r),i=Uc(t,"transition-duration"),s=Uc(t,"transition-delay");return dp(i[o])+dp(s[o])}function Uc(e,t){return e.getPropertyValue(t).split(",").map(r=>r.trim())}var FE=new Set(["position"]),Wc=class{_document;_rootElement;_direction;_initialDomRect;_previewTemplate;_previewClass;_pickupPositionOnPage;_initialTransform;_zIndex;_renderer;_previewEmbeddedView;_preview;get element(){return this._preview}constructor(t,n,r,o,i,s,a,c,l,u){this._document=t,this._rootElement=n,this._direction=r,this._initialDomRect=o,this._previewTemplate=i,this._previewClass=s,this._pickupPositionOnPage=a,this._initialTransform=c,this._zIndex=l,this._renderer=u}attach(t){this._preview=this._createPreview(),t.appendChild(this._preview),fp(this._preview)&&this._preview.showPopover()}destroy(){this._preview.remove(),this._previewEmbeddedView?.destroy(),this._preview=this._previewEmbeddedView=null}setTransform(t){this._preview.style.transform=t}getBoundingClientRect(){return this._preview.getBoundingClientRect()}addClass(t){this._preview.classList.add(t)}getTransitionDuration(){return kE(this._preview)}addEventListener(t,n){return this._renderer.listen(this._preview,t,n)}_createPreview(){let t=this._previewTemplate,n=this._previewClass,r=t?t.template:null,o;if(r&&t){let i=t.matchSize?this._initialDomRect:null,s=t.viewContainer.createEmbeddedView(r,t.context);s.detectChanges(),o=_p(s,this._document),this._previewEmbeddedView=s,t.matchSize?up(o,i):o.style.transform=Si(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else o=Dp(this._rootElement),up(o,this._initialDomRect),this._initialTransform&&(o.style.transform=this._initialTransform);return Kc(o.style,{"pointer-events":"none",margin:fp(o)?"0 auto 0 0":"0",position:"fixed",top:"0",left:"0","z-index":this._zIndex+""},FE),vn(o,!1),o.classList.add("cdk-drag-preview"),o.setAttribute("popover","manual"),o.setAttribute("dir",this._direction),n&&(Array.isArray(n)?n.forEach(i=>o.classList.add(i)):o.classList.add(n)),o}};function fp(e){return"showPopover"in e}var LE={passive:!0},hp={passive:!1},VE={passive:!1,capture:!0},jE=800,pp=new Set(["position"]),qc=class{_config;_document;_ngZone;_viewportRuler;_dragDropRegistry;_renderer;_rootElementCleanups;_cleanupShadowRootSelectStart;_preview;_previewContainer;_placeholderRef;_placeholder;_pickupPositionInElement;_pickupPositionOnPage;_anchor;_passiveTransform={x:0,y:0};_activeTransform={x:0,y:0};_initialTransform;_hasStartedDragging=za(!1);_hasMoved;_initialContainer;_initialIndex;_parentPositions;_moveEvents=new S;_pointerDirectionDelta;_pointerPositionAtLastDirectionChange;_lastKnownPointerPosition;_rootElement;_ownerSVGElement;_rootElementTapHighlight;_pointerMoveSubscription=P.EMPTY;_pointerUpSubscription=P.EMPTY;_scrollSubscription=P.EMPTY;_resizeSubscription=P.EMPTY;_lastTouchEventTime;_dragStartTime;_boundaryElement=null;_nativeInteractionsEnabled=!0;_initialDomRect;_previewRect;_boundaryRect;_previewTemplate;_placeholderTemplate;_handles=[];_disabledHandles=new Set;_dropContainer;_direction="ltr";_parentDragRef;_cachedShadowRoot;lockAxis;dragStartDelay=0;previewClass;scale=1;get disabled(){return this._disabled||!!(this._dropContainer&&this._dropContainer.disabled)}set disabled(t){t!==this._disabled&&(this._disabled=t,this._toggleNativeDragInteractions(),this._handles.forEach(n=>vn(n,t)))}_disabled=!1;beforeStarted=new S;started=new S;released=new S;ended=new S;entered=new S;exited=new S;dropped=new S;moved=this._moveEvents;data;constrainPosition;constructor(t,n,r,o,i,s,a){this._config=n,this._document=r,this._ngZone=o,this._viewportRuler=i,this._dragDropRegistry=s,this._renderer=a,this.withRootElement(t).withParent(n.parentDragRef||null),this._parentPositions=new Ci(r),s.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){this._handles=t.map(r=>He(r)),this._handles.forEach(r=>vn(r,this.disabled)),this._toggleNativeDragInteractions();let n=new Set;return this._disabledHandles.forEach(r=>{this._handles.indexOf(r)>-1&&n.add(r)}),this._disabledHandles=n,this}withPreviewTemplate(t){return this._previewTemplate=t,this}withPlaceholderTemplate(t){return this._placeholderTemplate=t,this}withRootElement(t){let n=He(t);return n!==this._rootElement&&(this._removeRootElementListeners(),this._rootElementCleanups=this._ngZone.runOutsideAngular(()=>[ft(this._renderer,n,"mousedown",this._pointerDown,hp),ft(this._renderer,n,"touchstart",this._pointerDown,LE),ft(this._renderer,n,"dragstart",this._nativeDragStart,hp)]),this._initialTransform=void 0,this._rootElement=n),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(t){return this._boundaryElement=t?He(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(t){return this._parentDragRef=t,this}dispose(){this._removeRootElementListeners(),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeListeners(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging()&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(t){!this._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),vn(t,!0))}enableHandle(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),vn(t,this.disabled))}withDirection(t){return this._direction=t,this}_withDropContainer(t){this._dropContainer=t}getFreeDragPosition(){let t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}setFreeDragPosition(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}withPreviewContainer(t){return this._previewContainer=t,this}_sortFromLastPointerPosition(){let t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}_removeListeners(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe(),this._cleanupShadowRootSelectStart?.(),this._cleanupShadowRootSelectStart=void 0}_destroyPreview(){this._preview?.destroy(),this._preview=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_pointerDown=t=>{if(this.beforeStarted.next(),this._handles.length){let n=this._getTargetHandle(t);n&&!this._disabledHandles.has(n)&&!this.disabled&&this._initializeDragSequence(n,t)}else this.disabled||this._initializeDragSequence(this._rootElement,t)};_pointerMove=t=>{let n=this._getPointerPositionOnPage(t);if(!this._hasStartedDragging()){let o=Math.abs(n.x-this._pickupPositionOnPage.x),i=Math.abs(n.y-this._pickupPositionOnPage.y);if(o+i>=this._config.dragStartThreshold){let a=Date.now()>=this._dragStartTime+this._getDragStartDelay(t),c=this._dropContainer;if(!a){this._endDragSequence(t);return}(!c||!c.isDragging()&&!c.isReceiving())&&(t.cancelable&&t.preventDefault(),this._hasStartedDragging.set(!0),this._ngZone.run(()=>this._startDragSequence(t)))}return}t.cancelable&&t.preventDefault();let r=this._getConstrainedPointerPosition(n);if(this._hasMoved=!0,this._lastKnownPointerPosition=n,this._updatePointerDirectionDelta(r),this._dropContainer)this._updateActiveDropContainer(r,n);else{let o=this.constrainPosition?this._initialDomRect:this._pickupPositionOnPage,i=this._activeTransform;i.x=r.x-o.x+this._passiveTransform.x,i.y=r.y-o.y+this._passiveTransform.y,this._applyRootElementTransform(i.x,i.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:r,event:t,distance:this._getDragDistance(r),delta:this._pointerDirectionDelta})})};_pointerUp=t=>{this._endDragSequence(t)};_endDragSequence(t){if(this._dragDropRegistry.isDragging(this)&&(this._removeListeners(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),!!this._hasStartedDragging()))if(this.released.next({source:this,event:t}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(t),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;let n=this._getPointerPositionOnPage(t);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(n),dropPoint:n,event:t})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(t){hr(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();let n=this._getShadowRoot(),r=this._dropContainer;if(n&&this._ngZone.runOutsideAngular(()=>{this._cleanupShadowRootSelectStart=ft(this._renderer,n,"selectstart",BE,VE)}),r){let o=this._rootElement,i=o.parentNode,s=this._placeholder=this._createPlaceholderElement(),a=this._anchor=this._anchor||this._document.createComment("");i.insertBefore(a,o),this._initialTransform=o.style.transform||"",this._preview=new Wc(this._document,this._rootElement,this._direction,this._initialDomRect,this._previewTemplate||null,this.previewClass||null,this._pickupPositionOnPage,this._initialTransform,this._config.zIndex||1e3,this._renderer),this._preview.attach(this._getPreviewInsertionPoint(i,n)),lp(o,!1,pp),this._document.body.appendChild(i.replaceChild(s,o)),this.started.next({source:this,event:t}),r.start(),this._initialContainer=r,this._initialIndex=r.getItemIndex(this)}else this.started.next({source:this,event:t}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(r?r.getScrollableParents():[])}_initializeDragSequence(t,n){this._parentDragRef&&n.stopPropagation();let r=this.isDragging(),o=hr(n),i=!o&&n.button!==0,s=this._rootElement,a=fr(n),c=!o&&this._lastTouchEventTime&&this._lastTouchEventTime+jE>Date.now(),l=o?tp(n):ep(n);if(a&&a.draggable&&n.type==="mousedown"&&n.preventDefault(),r||i||c||l)return;if(this._handles.length){let h=s.style;this._rootElementTapHighlight=h.webkitTapHighlightColor||"",h.webkitTapHighlightColor="transparent"}this._hasMoved=!1,this._hasStartedDragging.set(this._hasMoved),this._removeListeners(),this._initialDomRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(h=>this._updateOnScroll(h)),this._boundaryElement&&(this._boundaryRect=Qc(this._boundaryElement));let u=this._previewTemplate;this._pickupPositionInElement=u&&u.template&&!u.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialDomRect,t,n);let d=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(n);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:d.x,y:d.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,n)}_cleanupDragArtifacts(t){lp(this._rootElement,!0,pp),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialDomRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{let n=this._dropContainer,r=n.getItemIndex(this),o=this._getPointerPositionOnPage(t),i=this._getDragDistance(o),s=n._isOverContainer(o.x,o.y);this.ended.next({source:this,distance:i,dropPoint:o,event:t}),this.dropped.next({item:this,currentIndex:r,previousIndex:this._initialIndex,container:n,previousContainer:this._initialContainer,isPointerOverContainer:s,distance:i,dropPoint:o,event:t}),n.drop(this,r,this._initialIndex,this._initialContainer,s,i,o,t),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:n},{x:r,y:o}){let i=this._initialContainer._getSiblingContainerFromPosition(this,t,n);!i&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(t,n)&&(i=this._initialContainer),i&&i!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=i,this._dropContainer.enter(this,t,n,i===this._initialContainer&&i.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:i,currentIndex:i.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(r,o),this._dropContainer._sortItem(this,t,n,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(t,n):this._applyPreviewTransform(t-this._pickupPositionInElement.x,n-this._pickupPositionInElement.y))}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();let t=this._placeholder.getBoundingClientRect();this._preview.addClass("cdk-drag-animating"),this._applyPreviewTransform(t.left,t.top);let n=this._preview.getTransitionDuration();return n===0?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(r=>{let o=a=>{(!a||this._preview&&fr(a)===this._preview.element&&a.propertyName==="transform")&&(s(),r(),clearTimeout(i))},i=setTimeout(o,n*1.5),s=this._preview.addEventListener("transitionend",o)}))}_createPlaceholderElement(){let t=this._placeholderTemplate,n=t?t.template:null,r;return n?(this._placeholderRef=t.viewContainer.createEmbeddedView(n,t.context),this._placeholderRef.detectChanges(),r=_p(this._placeholderRef,this._document)):r=Dp(this._rootElement),r.style.pointerEvents="none",r.classList.add("cdk-drag-placeholder"),r}_getPointerPositionInElement(t,n,r){let o=n===this._rootElement?null:n,i=o?o.getBoundingClientRect():t,s=hr(r)?r.targetTouches[0]:r,a=this._getViewportScrollPosition(),c=s.pageX-i.left-a.left,l=s.pageY-i.top-a.top;return{x:i.left-t.left+c,y:i.top-t.top+l}}_getPointerPositionOnPage(t){let n=this._getViewportScrollPosition(),r=hr(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,o=r.pageX-n.left,i=r.pageY-n.top;if(this._ownerSVGElement){let s=this._ownerSVGElement.getScreenCTM();if(s){let a=this._ownerSVGElement.createSVGPoint();return a.x=o,a.y=i,a.matrixTransform(s.inverse())}}return{x:o,y:i}}_getConstrainedPointerPosition(t){let n=this._dropContainer?this._dropContainer.lockAxis:null,{x:r,y:o}=this.constrainPosition?this.constrainPosition(t,this,this._initialDomRect,this._pickupPositionInElement):t;if(this.lockAxis==="x"||n==="x"?o=this._pickupPositionOnPage.y-(this.constrainPosition?this._pickupPositionInElement.y:0):(this.lockAxis==="y"||n==="y")&&(r=this._pickupPositionOnPage.x-(this.constrainPosition?this._pickupPositionInElement.x:0)),this._boundaryRect){let{x:i,y:s}=this.constrainPosition?{x:0,y:0}:this._pickupPositionInElement,a=this._boundaryRect,{width:c,height:l}=this._getPreviewRect(),u=a.top+s,d=a.bottom-(l-s),h=a.left+i,f=a.right-(c-i);r=gp(r,h,f),o=gp(o,u,d)}return{x:r,y:o}}_updatePointerDirectionDelta(t){let{x:n,y:r}=t,o=this._pointerDirectionDelta,i=this._pointerPositionAtLastDirectionChange,s=Math.abs(n-i.x),a=Math.abs(r-i.y);return s>this._config.pointerDirectionChangeThreshold&&(o.x=n>i.x?1:-1,i.x=n),a>this._config.pointerDirectionChangeThreshold&&(o.y=r>i.y?1:-1,i.y=r),o}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;let t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,vn(this._rootElement,t))}_removeRootElementListeners(){this._rootElementCleanups?.forEach(t=>t()),this._rootElementCleanups=void 0}_applyRootElementTransform(t,n){let r=1/this.scale,o=Si(t*r,n*r),i=this._rootElement.style;this._initialTransform==null&&(this._initialTransform=i.transform&&i.transform!="none"?i.transform:""),i.transform=bi(o,this._initialTransform)}_applyPreviewTransform(t,n){let r=this._previewTemplate?.template?void 0:this._initialTransform,o=Si(t,n);this._preview.setTransform(bi(o,r))}_getDragDistance(t){let n=this._pickupPositionOnPage;return n?{x:t.x-n.x,y:t.y-n.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:t,y:n}=this._passiveTransform;if(t===0&&n===0||this.isDragging()||!this._boundaryElement)return;let r=this._rootElement.getBoundingClientRect(),o=this._boundaryElement.getBoundingClientRect();if(o.width===0&&o.height===0||r.width===0&&r.height===0)return;let i=o.left-r.left,s=r.right-o.right,a=o.top-r.top,c=r.bottom-o.bottom;o.width>r.width?(i>0&&(t+=i),s>0&&(t-=s)):t=0,o.height>r.height?(a>0&&(n+=a),c>0&&(n-=c)):n=0,(t!==this._passiveTransform.x||n!==this._passiveTransform.y)&&this.setFreeDragPosition({y:n,x:t})}_getDragStartDelay(t){let n=this.dragStartDelay;return typeof n=="number"?n:hr(t)?n.touch:n?n.mouse:0}_updateOnScroll(t){let n=this._parentPositions.handleScroll(t);if(n){let r=fr(t);this._boundaryRect&&r!==this._boundaryElement&&r.contains(this._boundaryElement)&&gr(this._boundaryRect,n.top,n.left),this._pickupPositionOnPage.x+=n.left,this._pickupPositionOnPage.y+=n.top,this._dropContainer||(this._activeTransform.x-=n.left,this._activeTransform.y-=n.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return this._cachedShadowRoot===void 0&&(this._cachedShadowRoot=Ei(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(t,n){let r=this._previewContainer||"global";if(r==="parent")return t;if(r==="global"){let o=this._document;return n||o.fullscreenElement||o.webkitFullscreenElement||o.mozFullScreenElement||o.msFullscreenElement||o.body}return He(r)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialDomRect),this._previewRect}_nativeDragStart=t=>{if(this._handles.length){let n=this._getTargetHandle(t);n&&!this._disabledHandles.has(n)&&!this.disabled&&t.preventDefault()}else this.disabled||t.preventDefault()};_getTargetHandle(t){return this._handles.find(n=>t.target&&(t.target===n||n.contains(t.target)))}};function gp(e,t,n){return Math.max(t,Math.min(n,e))}function hr(e){return e.type[0]==="t"}function BE(e){e.preventDefault()}function wp(e,t,n){let r=mp(t,e.length-1),o=mp(n,e.length-1);if(r===o)return;let i=e[r],s=o<r?-1:1;for(let a=r;a!==o;a+=s)e[a]=e[a+s];e[o]=i}function mp(e,t){return Math.max(0,Math.min(t,e))}var Ti=class{_dragDropRegistry;_element;_sortPredicate;_itemPositions=[];_activeDraggables;orientation="vertical";direction;constructor(t){this._dragDropRegistry=t}_previousSwap={drag:null,delta:0,overlaps:!1};start(t){this.withItems(t)}sort(t,n,r,o){let i=this._itemPositions,s=this._getItemIndexFromPointerPosition(t,n,r,o);if(s===-1&&i.length>0)return null;let a=this.orientation==="horizontal",c=i.findIndex(M=>M.drag===t),l=i[s],u=i[c].clientRect,d=l.clientRect,h=c>s?1:-1,f=this._getItemOffsetPx(u,d,h),p=this._getSiblingOffsetPx(c,i,h),m=i.slice();return wp(i,c,s),i.forEach((M,N)=>{if(m[N]===M)return;let se=M.drag===t,Mi=se?f:p,Jc=se?t.getPlaceholderElement():M.drag.getRootElement();M.offset+=Mi;let Xc=Math.round(M.offset*(1/M.drag.scale));a?(Jc.style.transform=bi(`translate3d(${Xc}px, 0, 0)`,M.initialTransform),gr(M.clientRect,0,Mi)):(Jc.style.transform=bi(`translate3d(0, ${Xc}px, 0)`,M.initialTransform),gr(M.clientRect,Mi,0))}),this._previousSwap.overlaps=Gc(d,n,r),this._previousSwap.drag=l.drag,this._previousSwap.delta=a?o.x:o.y,{previousIndex:c,currentIndex:s}}enter(t,n,r,o){let i=o==null||o<0?this._getItemIndexFromPointerPosition(t,n,r):o,s=this._activeDraggables,a=s.indexOf(t),c=t.getPlaceholderElement(),l=s[i];if(l===t&&(l=s[i+1]),!l&&(i==null||i===-1||i<s.length-1)&&this._shouldEnterAsFirstChild(n,r)&&(l=s[0]),a>-1&&s.splice(a,1),l&&!this._dragDropRegistry.isDragging(l)){let u=l.getRootElement();u.parentElement.insertBefore(c,u),s.splice(i,0,t)}else this._element.appendChild(c),s.push(t);c.style.transform="",this._cacheItemPositions()}withItems(t){this._activeDraggables=t.slice(),this._cacheItemPositions()}withSortPredicate(t){this._sortPredicate=t}reset(){this._activeDraggables?.forEach(t=>{let n=t.getRootElement();if(n){let r=this._itemPositions.find(o=>o.drag===t)?.initialTransform;n.style.transform=r||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(t){return(this.orientation==="horizontal"&&this.direction==="rtl"?this._itemPositions.slice().reverse():this._itemPositions).findIndex(r=>r.drag===t)}updateOnScroll(t,n){this._itemPositions.forEach(({clientRect:r})=>{gr(r,t,n)}),this._itemPositions.forEach(({drag:r})=>{this._dragDropRegistry.isDragging(r)&&r._sortFromLastPointerPosition()})}withElementContainer(t){this._element=t}_cacheItemPositions(){let t=this.orientation==="horizontal";this._itemPositions=this._activeDraggables.map(n=>{let r=n.getVisibleElement();return{drag:n,offset:0,initialTransform:r.style.transform||"",clientRect:Qc(r)}}).sort((n,r)=>t?n.clientRect.left-r.clientRect.left:n.clientRect.top-r.clientRect.top)}_getItemOffsetPx(t,n,r){let o=this.orientation==="horizontal",i=o?n.left-t.left:n.top-t.top;return r===-1&&(i+=o?n.width-t.width:n.height-t.height),i}_getSiblingOffsetPx(t,n,r){let o=this.orientation==="horizontal",i=n[t].clientRect,s=n[t+r*-1],a=i[o?"width":"height"]*r;if(s){let c=o?"left":"top",l=o?"right":"bottom";r===-1?a-=s.clientRect[c]-i[l]:a+=i[c]-s.clientRect[l]}return a}_shouldEnterAsFirstChild(t,n){if(!this._activeDraggables.length)return!1;let r=this._itemPositions,o=this.orientation==="horizontal";if(r[0].drag!==this._activeDraggables[0]){let s=r[r.length-1].clientRect;return o?t>=s.right:n>=s.bottom}else{let s=r[0].clientRect;return o?t<=s.left:n<=s.top}}_getItemIndexFromPointerPosition(t,n,r,o){let i=this.orientation==="horizontal",s=this._itemPositions.findIndex(({drag:a,clientRect:c})=>{if(a===t)return!1;if(o){let l=i?o.x:o.y;if(a===this._previousSwap.drag&&this._previousSwap.overlaps&&l===this._previousSwap.delta)return!1}return i?n>=Math.floor(c.left)&&n<Math.floor(c.right):r>=Math.floor(c.top)&&r<Math.floor(c.bottom)});return s===-1||!this._sortPredicate(s,t)?-1:s}},Zc=class{_document;_dragDropRegistry;_element;_sortPredicate;_rootNode;_activeItems;_previousSwap={drag:null,deltaX:0,deltaY:0,overlaps:!1};_relatedNodes=[];constructor(t,n){this._document=t,this._dragDropRegistry=n}start(t){let n=this._element.childNodes;this._relatedNodes=[];for(let r=0;r<n.length;r++){let o=n[r];this._relatedNodes.push([o,o.nextSibling])}this.withItems(t)}sort(t,n,r,o){let i=this._getItemIndexFromPointerPosition(t,n,r),s=this._previousSwap;if(i===-1||this._activeItems[i]===t)return null;let a=this._activeItems[i];if(s.drag===a&&s.overlaps&&s.deltaX===o.x&&s.deltaY===o.y)return null;let c=this.getItemIndex(t),l=t.getPlaceholderElement(),u=a.getRootElement();i>c?u.after(l):u.before(l),wp(this._activeItems,c,i);let d=this._getRootNode().elementFromPoint(n,r);return s.deltaX=o.x,s.deltaY=o.y,s.drag=a,s.overlaps=u===d||u.contains(d),{previousIndex:c,currentIndex:i}}enter(t,n,r,o){let i=o==null||o<0?this._getItemIndexFromPointerPosition(t,n,r):o;i===-1&&(i=this._getClosestItemIndexToPointer(t,n,r));let s=this._activeItems[i],a=this._activeItems.indexOf(t);a>-1&&this._activeItems.splice(a,1),s&&!this._dragDropRegistry.isDragging(s)?(this._activeItems.splice(i,0,t),s.getRootElement().before(t.getPlaceholderElement())):(this._activeItems.push(t),this._element.appendChild(t.getPlaceholderElement()))}withItems(t){this._activeItems=t.slice()}withSortPredicate(t){this._sortPredicate=t}reset(){let t=this._element,n=this._previousSwap;for(let r=this._relatedNodes.length-1;r>-1;r--){let[o,i]=this._relatedNodes[r];o.parentNode===t&&o.nextSibling!==i&&(i===null?t.appendChild(o):i.parentNode===t&&t.insertBefore(o,i))}this._relatedNodes=[],this._activeItems=[],n.drag=null,n.deltaX=n.deltaY=0,n.overlaps=!1}getActiveItemsSnapshot(){return this._activeItems}getItemIndex(t){return this._activeItems.indexOf(t)}updateOnScroll(){this._activeItems.forEach(t=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}withElementContainer(t){t!==this._element&&(this._element=t,this._rootNode=void 0)}_getItemIndexFromPointerPosition(t,n,r){let o=this._getRootNode().elementFromPoint(Math.floor(n),Math.floor(r)),i=o?this._activeItems.findIndex(s=>{let a=s.getRootElement();return o===a||a.contains(o)}):-1;return i===-1||!this._sortPredicate(i,t)?-1:i}_getRootNode(){return this._rootNode||(this._rootNode=Ei(this._element)||this._document),this._rootNode}_getClosestItemIndexToPointer(t,n,r){if(this._activeItems.length===0)return-1;if(this._activeItems.length===1)return 0;let o=1/0,i=-1;for(let s=0;s<this._activeItems.length;s++){let a=this._activeItems[s];if(a!==t){let{x:c,y:l}=a.getRootElement().getBoundingClientRect(),u=Math.hypot(n-c,r-l);u<o&&(o=u,i=s)}}return i}},vp=.05,Ep=.05,_e=function(e){return e[e.NONE=0]="NONE",e[e.UP=1]="UP",e[e.DOWN=2]="DOWN",e}(_e||{}),ie=function(e){return e[e.NONE=0]="NONE",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e}(ie||{}),Yc=class{_dragDropRegistry;_ngZone;_viewportRuler;element;disabled=!1;sortingDisabled=!1;lockAxis;autoScrollDisabled=!1;autoScrollStep=2;enterPredicate=()=>!0;sortPredicate=()=>!0;beforeStarted=new S;entered=new S;exited=new S;dropped=new S;sorted=new S;receivingStarted=new S;receivingStopped=new S;data;_container;_isDragging=!1;_parentPositions;_sortStrategy;_domRect;_draggables=[];_siblings=[];_activeSiblings=new Set;_viewportScrollSubscription=P.EMPTY;_verticalScrollDirection=_e.NONE;_horizontalScrollDirection=ie.NONE;_scrollNode;_stopScrollTimers=new S;_cachedShadowRoot=null;_document;_scrollableElements=[];_initialScrollSnap;_direction="ltr";constructor(t,n,r,o,i){this._dragDropRegistry=n,this._ngZone=o,this._viewportRuler=i;let s=this.element=He(t);this._document=r,this.withOrientation("vertical").withElementContainer(s),n.registerDropContainer(this),this._parentPositions=new Ci(r)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(t,n,r,o){this._draggingStarted(),o==null&&this.sortingDisabled&&(o=this._draggables.indexOf(t)),this._sortStrategy.enter(t,n,r,o),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}exit(t){this._reset(),this.exited.next({item:t,container:this})}drop(t,n,r,o,i,s,a,c={}){this._reset(),this.dropped.next({item:t,currentIndex:n,previousIndex:r,container:this,previousContainer:o,isPointerOverContainer:i,distance:s,dropPoint:a,event:c})}withItems(t){let n=this._draggables;return this._draggables=t,t.forEach(r=>r._withDropContainer(this)),this.isDragging()&&(n.filter(o=>o.isDragging()).every(o=>t.indexOf(o)===-1)?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(t){return this._direction=t,this._sortStrategy instanceof Ti&&(this._sortStrategy.direction=t),this}connectedTo(t){return this._siblings=t.slice(),this}withOrientation(t){if(t==="mixed")this._sortStrategy=new Zc(this._document,this._dragDropRegistry);else{let n=new Ti(this._dragDropRegistry);n.direction=this._direction,n.orientation=t,this._sortStrategy=n}return this._sortStrategy.withElementContainer(this._container),this._sortStrategy.withSortPredicate((n,r)=>this.sortPredicate(n,r,this)),this}withScrollableParents(t){let n=this._container;return this._scrollableElements=t.indexOf(n)===-1?[n,...t]:t.slice(),this}withElementContainer(t){if(t===this._container)return this;let n=He(this.element),r=this._scrollableElements.indexOf(this._container),o=this._scrollableElements.indexOf(t);return r>-1&&this._scrollableElements.splice(r,1),o>-1&&this._scrollableElements.splice(o,1),this._sortStrategy&&this._sortStrategy.withElementContainer(t),this._cachedShadowRoot=null,this._scrollableElements.unshift(t),this._container=t,this}getScrollableParents(){return this._scrollableElements}getItemIndex(t){return this._isDragging?this._sortStrategy.getItemIndex(t):this._draggables.indexOf(t)}isReceiving(){return this._activeSiblings.size>0}_sortItem(t,n,r,o){if(this.sortingDisabled||!this._domRect||!cp(this._domRect,vp,n,r))return;let i=this._sortStrategy.sort(t,n,r,o);i&&this.sorted.next({previousIndex:i.previousIndex,currentIndex:i.currentIndex,container:this,item:t})}_startScrollingIfNecessary(t,n){if(this.autoScrollDisabled)return;let r,o=_e.NONE,i=ie.NONE;if(this._parentPositions.positions.forEach((s,a)=>{a===this._document||!s.clientRect||r||cp(s.clientRect,vp,t,n)&&([o,i]=HE(a,s.clientRect,this._direction,t,n),(o||i)&&(r=a))}),!o&&!i){let{width:s,height:a}=this._viewportRuler.getViewportSize(),c={width:s,height:a,top:0,right:s,bottom:a,left:0};o=Ip(c,n),i=Cp(c,t),r=window}r&&(o!==this._verticalScrollDirection||i!==this._horizontalScrollDirection||r!==this._scrollNode)&&(this._verticalScrollDirection=o,this._horizontalScrollDirection=i,this._scrollNode=r,(o||i)&&r?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){let t=this._container.style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){this._parentPositions.cache(this._scrollableElements),this._domRect=this._parentPositions.positions.get(this._container).clientRect}_reset(){this._isDragging=!1;let t=this._container.style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(n=>n._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_startScrollInterval=()=>{this._stopScrolling(),Wi(0,Nr).pipe(Yt(this._stopScrollTimers)).subscribe(()=>{let t=this._scrollNode,n=this.autoScrollStep;this._verticalScrollDirection===_e.UP?t.scrollBy(0,-n):this._verticalScrollDirection===_e.DOWN&&t.scrollBy(0,n),this._horizontalScrollDirection===ie.LEFT?t.scrollBy(-n,0):this._horizontalScrollDirection===ie.RIGHT&&t.scrollBy(n,0)})};_isOverContainer(t,n){return this._domRect!=null&&Gc(this._domRect,t,n)}_getSiblingContainerFromPosition(t,n,r){return this._siblings.find(o=>o._canReceive(t,n,r))}_canReceive(t,n,r){if(!this._domRect||!Gc(this._domRect,n,r)||!this.enterPredicate(t,this))return!1;let o=this._getShadowRoot().elementFromPoint(n,r);return o?o===this._container||this._container.contains(o):!1}_startReceiving(t,n){let r=this._activeSiblings;!r.has(t)&&n.every(o=>this.enterPredicate(o,this)||this._draggables.indexOf(o)>-1)&&(r.add(t),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:t,receiver:this,items:n}))}_stopReceiving(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:t,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(t=>{if(this.isDragging()){let n=this._parentPositions.handleScroll(t);n&&this._sortStrategy.updateOnScroll(n.top,n.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){let t=Ei(this._container);this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){let t=this._sortStrategy.getActiveItemsSnapshot().filter(n=>n.isDragging());this._siblings.forEach(n=>n._startReceiving(this,t))}};function Ip(e,t){let{top:n,bottom:r,height:o}=e,i=o*Ep;return t>=n-i&&t<=n+i?_e.UP:t>=r-i&&t<=r+i?_e.DOWN:_e.NONE}function Cp(e,t){let{left:n,right:r,width:o}=e,i=o*Ep;return t>=n-i&&t<=n+i?ie.LEFT:t>=r-i&&t<=r+i?ie.RIGHT:ie.NONE}function HE(e,t,n,r,o){let i=Ip(t,o),s=Cp(t,r),a=_e.NONE,c=ie.NONE;if(i){let l=e.scrollTop;i===_e.UP?l>0&&(a=_e.UP):e.scrollHeight-l>e.clientHeight&&(a=_e.DOWN)}if(s){let l=e.scrollLeft;n==="rtl"?s===ie.RIGHT?l<0&&(c=ie.RIGHT):e.scrollWidth+l>e.clientWidth&&(c=ie.LEFT):s===ie.LEFT?l>0&&(c=ie.LEFT):e.scrollWidth-l>e.clientWidth&&(c=ie.RIGHT)}return[a,c]}var pr={capture:!0},zc={passive:!1,capture:!0},$E=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275cmp=fc({type:e,selectors:[["ng-component"]],hostAttrs:["cdk-drag-resets-container",""],decls:0,vars:0,template:function(r,o){},styles:[`@layer cdk-resets{.cdk-drag-preview{background:none;border:none;padding:0;color:inherit;inset:auto}}.cdk-drag-placeholder *,.cdk-drag-preview *{pointer-events:none !important}
8
- `],encapsulation:2,changeDetection:0})}return e})(),bp=(()=>{class e{_ngZone=g(V);_document=g(Z);_styleLoader=g(np);_renderer=g(ve).createRenderer(null,null);_cleanupDocumentTouchmove;_dropInstances=new Set;_dragInstances=new Set;_activeDragInstances=za([]);_globalListeners;_draggingPredicate=n=>n.isDragging();_domNodesToDirectives=null;pointerMove=new S;pointerUp=new S;scroll=new S;constructor(){}registerDropContainer(n){this._dropInstances.has(n)||this._dropInstances.add(n)}registerDragItem(n){this._dragInstances.add(n),this._dragInstances.size===1&&this._ngZone.runOutsideAngular(()=>{this._cleanupDocumentTouchmove?.(),this._cleanupDocumentTouchmove=ft(this._renderer,this._document,"touchmove",this._persistentTouchmoveListener,zc)})}removeDropContainer(n){this._dropInstances.delete(n)}removeDragItem(n){this._dragInstances.delete(n),this.stopDragging(n),this._dragInstances.size===0&&this._cleanupDocumentTouchmove?.()}startDragging(n,r){if(!(this._activeDragInstances().indexOf(n)>-1)&&(this._styleLoader.load($E),this._activeDragInstances.update(o=>[...o,n]),this._activeDragInstances().length===1)){let o=r.type.startsWith("touch"),i=a=>this.pointerUp.next(a),s=[["scroll",a=>this.scroll.next(a),pr],["selectstart",this._preventDefaultWhileDragging,zc]];o?s.push(["touchend",i,pr],["touchcancel",i,pr]):s.push(["mouseup",i,pr]),o||s.push(["mousemove",a=>this.pointerMove.next(a),zc]),this._ngZone.runOutsideAngular(()=>{this._globalListeners=s.map(([a,c,l])=>ft(this._renderer,this._document,a,c,l))})}}stopDragging(n){this._activeDragInstances.update(r=>{let o=r.indexOf(n);return o>-1?(r.splice(o,1),[...r]):r}),this._activeDragInstances().length===0&&this._clearGlobalListeners()}isDragging(n){return this._activeDragInstances().indexOf(n)>-1}scrolled(n){let r=[this.scroll];return n&&n!==this._document&&r.push(new R(o=>this._ngZone.runOutsideAngular(()=>{let i=ft(this._renderer,n,"scroll",s=>{this._activeDragInstances().length&&o.next(s)},pr);return()=>{i()}}))),Gr(...r)}registerDirectiveNode(n,r){this._domNodesToDirectives??=new WeakMap,this._domNodesToDirectives.set(n,r)}removeDirectiveNode(n){this._domNodesToDirectives?.delete(n)}getDragDirectiveForNode(n){return this._domNodesToDirectives?.get(n)||null}ngOnDestroy(){this._dragInstances.forEach(n=>this.removeDragItem(n)),this._dropInstances.forEach(n=>this.removeDropContainer(n)),this._domNodesToDirectives=null,this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_preventDefaultWhileDragging=n=>{this._activeDragInstances().length>0&&n.preventDefault()};_persistentTouchmoveListener=n=>{this._activeDragInstances().length>0&&(this._activeDragInstances().some(this._draggingPredicate)&&n.preventDefault(),this.pointerMove.next(n))};_clearGlobalListeners(){this._globalListeners?.forEach(n=>n()),this._globalListeners=void 0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=_({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),UE={dragStartThreshold:5,pointerDirectionChangeThreshold:5},zE=(()=>{class e{_document=g(Z);_ngZone=g(V);_viewportRuler=g(op);_dragDropRegistry=g(bp);_renderer=g(ve).createRenderer(null,null);constructor(){}createDrag(n,r=UE){return new qc(n,r,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry,this._renderer)}createDropList(n){return new Yc(n,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=_({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),yp=new E("CDK_DRAG_PARENT");var GE=new E("CdkDragHandle");var WE=new E("CDK_DRAG_CONFIG"),qE=new E("CdkDropList"),pN=(()=>{class e{element=g(fe);dropContainer=g(qE,{optional:!0,skipSelf:!0});_ngZone=g(V);_viewContainerRef=g(ut);_dir=g(rp,{optional:!0});_changeDetectorRef=g(gn);_selfHandle=g(GE,{optional:!0,self:!0});_parentDrag=g(yp,{optional:!0,skipSelf:!0});_dragDropRegistry=g(bp);_destroyed=new S;_handles=new vt([]);_previewTemplate;_placeholderTemplate;_dragRef;data;lockAxis;rootElementSelector;boundaryElement;dragStartDelay;freeDragPosition;get disabled(){return this._disabled||!!(this.dropContainer&&this.dropContainer.disabled)}set disabled(n){this._disabled=n,this._dragRef.disabled=this._disabled}_disabled;constrainPosition;previewClass;previewContainer;scale=1;started=new Q;released=new Q;ended=new Q;entered=new Q;exited=new Q;dropped=new Q;moved=new R(n=>{let r=this._dragRef.moved.pipe($e(o=>({source:this,pointerPosition:o.pointerPosition,event:o.event,delta:o.delta,distance:o.distance}))).subscribe(n);return()=>{r.unsubscribe()}});_injector=g(K);constructor(){let n=this.dropContainer,r=g(WE,{optional:!0}),o=g(zE);this._dragRef=o.createDrag(this.element,{dragStartThreshold:r&&r.dragStartThreshold!=null?r.dragStartThreshold:5,pointerDirectionChangeThreshold:r&&r.pointerDirectionChangeThreshold!=null?r.pointerDirectionChangeThreshold:5,zIndex:r?.zIndex}),this._dragRef.data=this,this._dragDropRegistry.registerDirectiveNode(this.element.nativeElement,this),r&&this._assignDefaults(r),n&&(this._dragRef._withDropContainer(n._dropListRef),n.addItem(this),n._dropListRef.beforeStarted.pipe(Yt(this._destroyed)).subscribe(()=>{this._dragRef.scale=this.scale})),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(n){this._dragRef.setFreeDragPosition(n)}ngAfterViewInit(){Wo(()=>{this._updateRootElement(),this._setupHandlesListener(),this._dragRef.scale=this.scale,this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)},{injector:this._injector})}ngOnChanges(n){let r=n.rootElementSelector,o=n.freeDragPosition;r&&!r.firstChange&&this._updateRootElement(),this._dragRef.scale=this.scale,o&&!o.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this),this._dragDropRegistry.removeDirectiveNode(this.element.nativeElement),this._ngZone.runOutsideAngular(()=>{this._handles.complete(),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_addHandle(n){let r=this._handles.getValue();r.push(n),this._handles.next(r)}_removeHandle(n){let r=this._handles.getValue(),o=r.indexOf(n);o>-1&&(r.splice(o,1),this._handles.next(r))}_setPreviewTemplate(n){this._previewTemplate=n}_resetPreviewTemplate(n){n===this._previewTemplate&&(this._previewTemplate=null)}_setPlaceholderTemplate(n){this._placeholderTemplate=n}_resetPlaceholderTemplate(n){n===this._placeholderTemplate&&(this._placeholderTemplate=null)}_updateRootElement(){let n=this.element.nativeElement,r=n;this.rootElementSelector&&(r=n.closest!==void 0?n.closest(this.rootElementSelector):n.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(r||n)}_getBoundaryElement(){let n=this.boundaryElement;return n?typeof n=="string"?this.element.nativeElement.closest(n):He(n):null}_syncInputs(n){n.beforeStarted.subscribe(()=>{if(!n.isDragging()){let r=this._dir,o=this.dragStartDelay,i=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,s=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;n.disabled=this.disabled,n.lockAxis=this.lockAxis,n.scale=this.scale,n.dragStartDelay=typeof o=="object"&&o?o:jc(o),n.constrainPosition=this.constrainPosition,n.previewClass=this.previewClass,n.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(i).withPreviewTemplate(s).withPreviewContainer(this.previewContainer||"global"),r&&n.withDirection(r.value)}}),n.beforeStarted.pipe(qi(1)).subscribe(()=>{if(this._parentDrag){n.withParent(this._parentDrag._dragRef);return}let r=this.element.nativeElement.parentElement;for(;r;){let o=this._dragDropRegistry.getDragDirectiveForNode(r);if(o){n.withParent(o._dragRef);break}r=r.parentElement}})}_handleEvents(n){n.started.subscribe(r=>{this.started.emit({source:this,event:r.event}),this._changeDetectorRef.markForCheck()}),n.released.subscribe(r=>{this.released.emit({source:this,event:r.event})}),n.ended.subscribe(r=>{this.ended.emit({source:this,distance:r.distance,dropPoint:r.dropPoint,event:r.event}),this._changeDetectorRef.markForCheck()}),n.entered.subscribe(r=>{this.entered.emit({container:r.container.data,item:this,currentIndex:r.currentIndex})}),n.exited.subscribe(r=>{this.exited.emit({container:r.container.data,item:this})}),n.dropped.subscribe(r=>{this.dropped.emit({previousIndex:r.previousIndex,currentIndex:r.currentIndex,previousContainer:r.previousContainer.data,container:r.container.data,isPointerOverContainer:r.isPointerOverContainer,item:this,distance:r.distance,dropPoint:r.dropPoint,event:r.event})})}_assignDefaults(n){let{lockAxis:r,dragStartDelay:o,constrainPosition:i,previewClass:s,boundaryElement:a,draggingDisabled:c,rootElementSelector:l,previewContainer:u}=n;this.disabled=c??!1,this.dragStartDelay=o||0,r&&(this.lockAxis=r),i&&(this.constrainPosition=i),s&&(this.previewClass=s),a&&(this.boundaryElement=a),l&&(this.rootElementSelector=l),u&&(this.previewContainer=u)}_setupHandlesListener(){this._handles.pipe(Zi(n=>{let r=n.map(o=>o.element);this._selfHandle&&this.rootElementSelector&&r.push(this.element),this._dragRef.withHandles(r)}),Zr(n=>Gr(...n.map(r=>r._stateChanges.pipe(qr(r))))),Yt(this._destroyed)).subscribe(n=>{let r=this._dragRef,o=n.element.nativeElement;n.disabled?r.disableHandle(o):r.enableHandle(o)})}static \u0275fac=function(r){return new(r||e)};static \u0275dir=Pt({type:e,selectors:[["","cdkDrag",""]],hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(r,o){r&2&&oi("cdk-drag-disabled",o.disabled)("cdk-drag-dragging",o._dragRef.isDragging())},inputs:{data:[0,"cdkDragData","data"],lockAxis:[0,"cdkDragLockAxis","lockAxis"],rootElementSelector:[0,"cdkDragRootElement","rootElementSelector"],boundaryElement:[0,"cdkDragBoundary","boundaryElement"],dragStartDelay:[0,"cdkDragStartDelay","dragStartDelay"],freeDragPosition:[0,"cdkDragFreeDragPosition","freeDragPosition"],disabled:[2,"cdkDragDisabled","disabled",si],constrainPosition:[0,"cdkDragConstrainPosition","constrainPosition"],previewClass:[0,"cdkDragPreviewClass","previewClass"],previewContainer:[0,"cdkDragPreviewContainer","previewContainer"],scale:[2,"cdkDragScale","scale",Ec]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[Dc([{provide:yp,useExisting:e}]),tr]})}return e})();export{J as a,X as b,ZE as c,YE as d,QE as e,KE as f,JE as g,XE as h,P as i,R as j,S as k,vt as l,$i as m,Mn as n,Dt as o,Ui as p,Zt as q,eg as r,Gi as s,Gr as t,xn as u,ql as v,cg as w,qr as x,Zr as y,Yt as z,Ue as A,_ as B,Qn as C,E as D,mg as E,g as F,Pe as G,wM as H,EM as I,IM as J,CM as K,bM as L,K as M,it as N,Q as O,V as P,SM as Q,TM as R,fe as S,za as T,MM as U,xM as V,cv as W,Wo as X,NM as Y,RM as Z,ey as _,Rt as $,Gn as aa,ve as ba,ar as ca,ne as da,ut as ea,kM as fa,an as ga,fc as ha,cr as ia,Pt as ja,ri as ka,Jf as la,FM as ma,YD as na,st as oa,sh as pa,p_ as qa,gc as ra,oi as sa,LM as ta,VM as ua,jM as va,BM as wa,HM as xa,$M as ya,mc as za,vc as Aa,mh as Ba,M_ as Ca,UM as Da,F_ as Ea,zM as Fa,j_ as Ga,B_ as Ha,H_ as Ia,$_ as Ja,GM as Ka,WM as La,z_ as Ma,_h as Na,W_ as Oa,qM as Pa,ZM as Qa,YM as Ra,QM as Sa,KM as Ta,JM as Ua,XM as Va,e0 as Wa,t0 as Xa,gn as Ya,fw as Za,n0 as _a,yw as $a,Nh as ab,Z as bb,Tw as cb,S0 as db,T0 as eb,M0 as fb,x0 as gb,tE as hb,Q0 as ib,Xh as jb,Ei as kb,X0 as lb,fr as mb,ep as nb,tp as ob,He as pb,ft as qb,np as rb,Hc as sb,rp as tb,vx as ub,AE as vb,op as wb,zx as xb,Wx as yb,pN as zb};